Hello , I'm getting mad because I'm trying to do something but , I just don't know how to script ;-; , I thought that this script would have worked , welp it's working but like , I don't need to touch it that it will break :
function x(hit)
script.Parent.Anchored = false
script.Parent.GlassSound:Play()
script:remove()
end
script.Parent.Touched:connect(x)
I'm asking for your help , I want that when somebody hit the block , it's unanchoring . Thanks ;-;

1 comment
Edit: Put code in a code block