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

Can someone help make a spinning killbrick?

I am making an obby and I need a spinning killbrick, can someone help? I already know the killbrick script, but correct me if I am wrong.

3 comments

0

You forgot to share the script with us

0

Oh ok, yall can downvote allya wan but it mean ya'll tripp1n

0

Watch packstabber on yt

1 answer

You could set the part's CFrame, then add a simple kill event.

local part = script.Parent

-- this will kill the player
part.Touched:Connect(function(hit)
	local humanoid = hit.Parent:FindFirstChild("Humanoid")

	if humanoid then
		humanoid.Health = 0
	end
end)

-- this will make the part spin, you might have to adjust it.
while wait() do
	part.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(0.1,0,0)
end

And just a quick FYI, Scripting Helpers is not a request site.

1 comment

0

please don't give the code, that just make they come back asking for more code

This discussion is preserved as it was. New answers, comments, and votes are closed.