|
| 07 Jun 2012 10:11 PM |
| I am working on a game, and I need a brick that when you touch it, it gives you a sword. I have tried a couple scripts, bot nothing! Please help. |
|
|
| Report Abuse |
|
|
|
| 07 Jun 2012 10:13 PM |
FREE MODEL
>#god - mode abs |
|
|
| Report Abuse |
|
|
|
| 07 Jun 2012 10:13 PM |
local debounce = false
function onTouch(part)
local human = part.Parent:findFirstChild("Humanoid") if (human ~= nil) and debounce == false then
debounce = true
local player = getPlayer(human)
if (player == nil) then return end
script.Parent:clone().Parent = player.Backpack
wait(2) debounce = false end end
script.Parent.Parent.Touched:connect(onTouch)
|
|
|
| Report Abuse |
|
|
| |
|