You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? When i die with my camera open it breaks and the camera is stuck in a still position no matter what i do.
-
What is the issue? When I die with my camera on, it breaks and gets stuck in one position.
-
What solutions have you tried so far? ive tried appending:
playername = game.Players.LocalPlayer.Name
playerworkspace = game.Workspace:FindFirstChild(playername)
if playerworkspace.Humanoid.health == 0 then
ButtonsHolder.Visible = false
isOpened = false
MainUI.Enabled = false
end
to the end of it
i am not very good at scripting so i am out of ideas to fix this. This is my first post so sorry if i got anything wrong.
1 Like
could you make a video of the problem?
Camera.CFrame = Character.Head.CFrame -- Lock on head
Camera.CFrame. = Character.Humanoid.CFrame -- go back to normal
OR
local Connection
Connection = game:GetService("RunService"):Connect(function()
repeat task.wait()
Camera.CFrame = Character.Head.CFrame
until --write stipulation what makes your camera go back to normal.
Camera.CFrame = Character.Humanoid.CFrame
end
Connection() -- After you call this function, your camera will be the position of the head
If you want to do this when reviving a player, just write
and you have to single out a player
Player.CharacterAdded:Connect(function()
-- Code here
end)
sorry but idk how to record roblox studio.
sorry for posting after its been 17 days but the camera is a fnaf style camera not a player camera