Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Touch script not working?

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

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

2 comments

0

Oh you want it like if they click a button the Bricks go away?

0

No

This discussion is preserved as it was. New answers, comments, and votes are closed.