I need to make it so when you step on a part you get teleported to a lobby, which I already have down. It's just that the "plrservice.PlayerAdded" part keeps track of the latest player added, and not the local player. How could I edit this to fire to the Localplayer's client, not some random person who joined after you?
plrservice.PlayerAdded:Connect(function(plr)
part1.Touched:Connect(function(hit)
if hit.Parent:WaitForChild("Humanoid") then
if debounce then
debounce = false
wait(0.8)
ev1:FireClient(plr)
wait(1)
debounce = true
end
end
end)
end)
1 comment
why would you need the localplayer? you can get the player instance in other ways