Im new to scripting how do i make the spin to touch people and they died from touching it.
COMMUNITY QUESTION
How do i make a brick to spin around?
1 answer
Ok Basically This website is for scripting problems and not for asking people to make stuff for you but since I have nothing better to be doing I will just answer it anyway. Ok so set the rotvelocity of the part to whatever amount you are happy with then do this
function Touched (h)
if h:FindFirstChild("humanoid") then
if h.Parent.Humanoid.Health ~= 0 then -- kinda a debounce
h.Parent.Humanoid.Health = 0
end
end
end
Game.Workspace.Part.Touched:connect(Touched)
This should work if not then sorry.
This discussion is preserved as it was. New answers, comments, and votes are closed.
