Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do i make a brick to spin around?

Im new to scripting how do i make the spin to touch people and they died from touching it.

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.