Posts: 1,562
Threads: 157
Joined: Apr 2011
Reputation:
0
How would I make a item giver?
Posts: 964
Threads: 49
Joined: Apr 2011
Reputation:
0
04-11-2011, 01:06 AM
(This post was last modified: 04-11-2011, 01:17 AM by Evil.)
Put your tool in Environment
[lua]
local jet = game.Environment.JetBoots:clone() --Tool name switched with JetBoots
local debounce = true
function touch(hit)
if game.Players:getChild(hit.Parent.Name)~=nil and debounce then
debounce = false
local clone = jet:clone()
clone.Parent = game.Players[hit.Parent.Name].Inventory
sleep(2)
debounce = true
end
end
link(script.Parent.Collided, touch)
[/lua]