of     2   
chevron_rightchevron_rightchevron_right

AntonioLorenzi
#139638287Tuesday, July 08, 2014 1:21 PM GMT

script.Parent.Touched:connect(function onTouch(hit) if hit.Parent then a = game.Players:FindFirstChild(hit.Parent.Name) game.Lighting["Tool"]:clone().Parent = game.Players.FindFirstChild(hit.Parent.Name).Backpack end end) its not working, meant to clone a tool from lighting into the player that touches the part's backpack
PRESTIGIOUSaLEGEND
#139638418Tuesday, July 08, 2014 1:24 PM GMT

script.Parent.Touched:connect(function(hit) if hit.Parent:IsA("Model") then a = game.Players:findFirstChild(hit.Parent.Name) local clone = game.Lighting["Tool"]:clone() clone.Parent = game.Players:findFirstChild(hit.Parent.Name).Backpack end end)
AntonioLorenzi
#139638459Tuesday, July 08, 2014 1:25 PM GMT

works but lol i think i need debounce, it cloned like 10 of them
PRESTIGIOUSaLEGEND
#139638598Tuesday, July 08, 2014 1:28 PM GMT

You probably know how to make debounce but here you go: local debounce = false script.Parent.Touched:connect(function(hit) if debounce == true then debounce = true if hit.Parent:IsA("Model") then a = game.Players:findFirstChild(hit.Parent.Name) local clone = game.Lighting["Tool"]:clone() clone.Parent = game.Players:findFirstChild(hit.Parent.Name).Backpack end wait(1) debounce = false end end) Also, in the future please try to avoid making duplicate posts or at least bury the previous threads.
AntonioLorenzi
#139638754Tuesday, July 08, 2014 1:32 PM GMT

ok and this fixed the debounce, just unsure if it will work when the player respawns or another player wants to take the tool but k debounce=true script.Parent.Touched:connect(function(hit) if hit.Parent:IsA("Model") then a = game.Players:findFirstChild(hit.Parent.Name) local clone = game.Lighting["Tool"]:clone() clone.Parent = game.Players:findFirstChild(hit.Parent.Name).Backpack elseif game.Players.findFirstChild(hit.Parent.Name.Backpack.Tool) then return false end debounce=true end)
YeahNick
#139638937Tuesday, July 08, 2014 1:36 PM GMT

ok i'm just rewriting your whole script script.Parent.Touched:connect(function(h) if h.Parent:FindFirstChild("Humanoid") then local p = game.Players:FindFirstChild(h.Parent.Name) if p then local t = game.Lighting.Tool:Clone() t.Parent = p.BackPack end end end) this should work try it out
AntonioLorenzi
#139639226Tuesday, July 08, 2014 1:42 PM GMT

omg seriously its broke again because i renamed the tool to Infopad and put handles and stuff in the tool and i changed the name of it in the script too and its not working
AnonyAnonymous
#139639362Tuesday, July 08, 2014 1:45 PM GMT

Change the name back to "Tool".
AntonioLorenzi
#139639386Tuesday, July 08, 2014 1:45 PM GMT

i did and its broke
AntonioLorenzi
#139639752Tuesday, July 08, 2014 1:52 PM GMT

the debounce is broke omg this works but when i add the debounce it breaks script.Parent.Touched:connect(function(hit) if hit.Parent:IsA("Model") then a = game.Players:findFirstChild(hit.Parent.Name) local clone = game.Lighting["Tool"]:clone() clone.Parent = game.Players:findFirstChild(hit.Parent.Name).Backpack end wait(1) end)
AntonioLorenzi
#139639930Tuesday, July 08, 2014 1:55 PM GMT

omg this is starting to get on my nerve help
YeahNick
#139673431Tuesday, July 08, 2014 8:00 PM GMT

wtf did u even try my version
AntonioLorenzi
#139681476Tuesday, July 08, 2014 9:10 PM GMT

ya and it has no debounce
AntonioLorenzi
#139776111Wednesday, July 09, 2014 5:58 PM GMT

huop
AntonioLorenzi
#139785097Wednesday, July 09, 2014 7:24 PM GMT

srs
AntonioLorenzi
#139787200Wednesday, July 09, 2014 7:42 PM GMT

STILL NOT FIXED
smiley599
#139788238Wednesday, July 09, 2014 7:51 PM GMT

script.Parent.Touched:connect(function(hit) a = game.Players:findFirstChild(hit.Parent.Name) if a then if not a.Backpack:findfirstChild("Tool") then local clone = game.Lighting["Tool"]:clone() clone.Parent = game.Players:findFirstChild(hit.Parent.Name).Backpack end end end)
AntonioLorenzi
#139793197Wednesday, July 09, 2014 8:37 PM GMT

not working but hi smiley frend
smiley599
#139796205Wednesday, July 09, 2014 9:06 PM GMT

It looks fine? Output? and hi friend
AntonioLorenzi
#139863938Thursday, July 10, 2014 11:07 AM GMT

test it urself if u think its right this is exactly wat i hav name of part is purrt script is inside it in lighting the tool is called tool
AntonioLorenzi
#139867319Thursday, July 10, 2014 12:33 PM GMT

._.
AnonyAnonymous
#139867586Thursday, July 10, 2014 12:39 PM GMT

Tool = game.Lighting.Tool:Clone() function AddTouch(Toucher) if Toucher.Parent game.Players:FindFirstChild(Toucher.Parent.Name) Player = game.Players:FindFirstChild(Toucher.Parent.Name) Tool.Parent = Player.Backpack end end script.Parent.Touched:connect(AddTouch)
YeahNick
#139869053Thursday, July 10, 2014 1:12 PM GMT

@above That'll only work once put the :clone() part in the function
AntonioLorenzi
#139870503Thursday, July 10, 2014 1:42 PM GMT

anon's script works ok as long as the person throws the tool away and then goes back again for it and thats the point k thx anon but it could be kinda improved, glitches a lot
lostend
#139877378Thursday, July 10, 2014 3:33 PM GMT

script.Parent.Touched:connect(function onTouch(hit) ypcall(function() if hit.Parent:IsA'Model' and not game:service'Players'[hit.Parent.Name].Backpack:FindFirstChild('Tool')then local tool=game:service'Lighting':WaitForChild'Tool':Clone() tool.Parent=game:service'Players'[hit.Parent.Name].Backpack end end) end)

    of     2   
chevron_rightchevron_rightchevron_right