local mobnumb = script.mobnumber
local bosstp = CFrame.new(989, 38, 450)
if mobnumb.Value == 0 then
for _, plr in pairs(game.Players:GetChildren()) do
plr.Character.HumanoidRootPart.CFrame = newCFrame
end
end
COMMUNITY QUESTION
for some reason it doesnt teleport the players after the mobnumb is 0?
1 answer
You're gonna wanna look into :SetPrimaryPartCFrame() for teleporting the players out.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
This detail has not been provided by your question, but when is this script enabled during the game?