I need help with studio

Back
Levi072412
Join Date:
Posts:
Jun 2023
200
5 months ago | 16 • 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
200
5 months ago • By Levi072412 OP

Sorry, I accidentally posted 2



ok

fishen
Join Date:
Posts:
Mar 2023
21
5 months ago • By fishen

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)


Levi072412 OP
Join Date:
Posts:
Jun 2023
200
5 months ago • By Levi072412 OP

thanks!



ok