Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Touch script not working?

Asked by 9 years ago

Well i made this script and it didnt work, I really need to know how to make it work cause i dont know whats wrong.

local bricks = game.Workspace
bricks.BrickFolder:GetChildren()
bricks.Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid")then
bricks:Remove()
end
end)


2 answers

Log in to vote
2
Answered by
duckyo01 120
9 years ago

Dude just put the script into the brick/bricks and change it up.

local brick= game.Workspace.Brick

script.Parent.Touched:connect(function(hit)

local Guy = script.Parent:FindFirstChild('Humanoid')

if Guy then

brick:Destroy()

end

end)

Hope it works

0
Oh you want it like if they click a button the Bricks go away? duckyo01 120 — 9y
0
No UltraUnitMode 419 — 9y
Ad
Log in to vote
0
Answered by
ItsMeKlc 235 Moderation Voter
9 years ago

Nothing runs in ServerStorage

Answer this question