Why Is My Teleport Script Teleporting Everyone In The Game To The Area? Please let me know down below.
that’s a bug, maybe rescript it again. but different.
1 Like
Because of player added. I don’t really know how to explain it but basically :
you coded it like this: When a player joins you check if a proximity prompt is triggered. you teleport them if it is. But the thing is, it affects all the players.
I hope its clear
1 Like
As has been suggested the fact that you’re wrapping everything inside a PlayerAdded event and a subsequent CharacterAdded event when it isn’t necessary to do so is causing the script to break (not work as intended), here’s all that you need to do.
local Prompt = script.Parent
local Teleport4 = workspace.Teleport4
Prompt.Triggered:Connect(function(Player)
local Character = Player.Character
Character:PivotTo(Teleport4.CFrame)
end)