You can write your topic however you want, but you need to answer these questions:
What I want to achieve: I’m trying to make a tsunami, that will unanchor the part on impact and wait 10 seconds for it to be destroyed.
What is the issue: Once it hits the brick I want it to unanchor it, but it doesn’t even react to it being touched! Here is the script I’m using:
script.Parent.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then hit.Parent.Humanoid.Health = 0 end if hit:IsA("Part") and not hit.Name == "Water" then print("detected") --- It never prints this, but it does kill players. hit.Anchored = false wait(10) hit:Destroy() end end)
- Solutions I have tried: I’ve tried searching it on google and on the Developer Forum.
It does move, I just haven’t included that part of the script.