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

How to make a kill Block?

How would I got about making a kill block that moves?

2 comments

0

Do not Request, you need to try something and show us your script. Plus too broad, Move up/down? Rotate? Go back and forth at a fixed pattern? Etc.

0

Thank you!!!

1 answer

You could do this. just make a script inside a block and paste this in it...


local kill = script.Parent
local function touched(part)
	local parent = part.Parent
if game.Players:GetPlayerFromCharacter(parent)then
parent.Humanoid.Health = 0
end
end
kill.Touched:connect(touched)

Instance.new("BodyPosition",script.Parent)

while true do
	wait()
	script.Parent.BodyPosition.position = game.Workspace.Player.Head.Position -- change this to  whatever
end

That should work...

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