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

Resetting a player but making it so that it doesnt respawn at a spawn location?

Asked by 3 years ago

How could I make it so that when you reset you dont spawn at the spawnpoint and you stay at the same location.

2 answers

Log in to vote
0
Answered by
stef0206 125
3 years ago

Take note of their HumanoidRootPart's CFrame before they reset, then instantly set it back to that when they respawn.

0
yeah, yeah, that's good, yeah. Good, good. DiamondComplex 285 — 3y
Ad
Log in to vote
0
Answered by
Necro_las 412 Moderation Voter
3 years ago
Edited 3 years ago

You can just do Player.RespawnLocation = nil, and if you want it to spawn in a nother specific location, user Character:SetPrimaryPartCFrame(newCFrame)

https://developer.roblox.com/en-us/api-reference/property/Player/RespawnLocation

Answer this question