I need help with studio

Back
Levi072412
Join Date:
Posts:
Jun 2023
201
11 months ago | 18 • By Levi072412

I'm trying to learn how to script kill bricks and I don't know how.
I'm doing this for an upcoming Obby.



ok

Levi072412 OP
Join Date:
Posts:
Jun 2023
201
11 months ago • By Levi072412 OP

Sorry, I accidentally posted 2



ok

fishen 3D Artist
Join Date:
Posts:
Streak:
Mar 2023
42
101 days
11 months ago • By fishen 101d

the most simple way
add a script in the part then paste this


local brick = script.Parent
brick.Touched:Connect(function(other)
if other:IsA("Player") then
other.Health = 0
end
end)



officially a fish

Levi072412 OP
Join Date:
Posts:
Jun 2023
201
11 months ago • By Levi072412 OP

thanks!



ok