I would like to know how to make the respawn camera face the way i want, like facing the next level on an obby ?
Thanks in advance
I would like to know how to make the respawn camera face the way i want, like facing the next level on an obby ?
Thanks in advance
Can you provide more information? Like you want the camera to look at the place when you die or move?
when you die and respawn on the spawn of the level i want the camera look at the level they have to do
I think you just have to rotate the checkpoint, but i’m not sure.
we already did that it work for a moment but not anymore
Well you could just use camera manipulation. If you need the script I can write it for you.
Wait you want the player to face the level they have to do?
yes exactly-------------------
Ah alright well here
Try this.
local Players = game:GetService("Players")
local function onCharacterAdded(character)
Character.HumanoidRootPart.CFrame = CFrame.new(Character.HumanoidRootPart.Position, ReplaceThisWithThePartYouWantThePlayerToLookAt)
end
local function AddingPlayer(player)
player.CharacterAdded:Connect(onCharacterAdded)
end
Players.PlayerAdded:Connect(AddingPlayer)
Put it in a script in the workspace.
“ReplaceThisWithThePartYouWantThePlayerToLookAt” its a part of workspace or what ?
look, when a spawn :
i want :
No it’s not the workspace you got to replace that message with where ever your level is located so like
HumanoidRootPart.CFrame = CFrame.new(HumanoidRootPart.Position, workspace.Model.Part1)
ahhh okay so i have to do for every spawn of my obby ?
I mean if you want to then yeah, but You could just put in the script depending on what level the player is on then it will go based off of that.
Can you explain in more details what you exactly want? Do you want the camera to follow the client’s character but sideways? I don’t understand.
quand tu meurs et que tu réapparais à l’apparition du niveau, je veux que la caméra regarde le niveau qu’elle doit faire
put a localscript like this in StarterPlayersScript
local Player = game.Players.LocalPlayer
local LookAt = workspace:WaitForChild('Part') -- The part you want to look at
Player.CharacterAdded:Connect(function(Character)
Character:SetPrimaryPartCFrame(
CFrame.new(Character.PrimaryPart.Position, LookAt.Position)
)
end)
hi, thx but it wouldn’t work for every levels ?