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

Teleport Person once enemy killeD?

Asked by
22To 70
8 years ago

ok so I made this script but it wont work, it is suppose to teleport you once you have killed the boss.

local Humanoid = script.Parent.Enemy -- Type Of Enemy [Ex. Zombie]
function PwntX_X()
local tag = Humanoid:findFirstChild("creator") -- Don't Touch
if tag ~= nil then
if tag.Value ~= nil then
local Player = tag.Value
if Player ~= nil then
Player.Character.Torso.CFrame = CFrame.new(0,0,0) -- Teleport The Place You Want It To Be.
end
end
end
end
Humanoid.Died:connect(PwntX_X) 

Answer this question