Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

How to make a kill Block?

Asked by 9 years ago

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

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. alphawolvess 1784 — 9y
0
Thank you!!! screamingbannana14 0 — 9y

1 answer

Log in to vote
0
Answered by
Dr_Doge 100
9 years ago

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...

Ad

Answer this question