So I started using proximity prompt and made it teleport a person. However, it teleports everyone to the same place. I tried using a local script but it didn’t work. I am kinda new to scripting so please don’t judge my lack of knowledge.
Heya! It’s completely fine, I’ll give the explanation as to why your script is TP’ing all players:
Using CharacterAdded events and moving them with the char parameter will move all the Characters that are currently in the workspace
Well, how would you fix it?
Just remove the PlayerAdded & CharacterAdded Events, those should only be necessary if you want to change things when a player or character joins
The script should still work fine, & using your ProximityPrompt’s Triggered parameter (As the player object who triggered it) would teleport that specific Character only
Fixed script:
local ProximityPrompt = script.Parent
ProximityPrompt.Triggered:Connect(function(player)
player.Character:MoveTo(workspace.TeleportBlock.Position)
end)