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

Why won't the camera go back to the character?[SOLVED]

Asked by 9 years ago

I have a starting plate, when a player enters the camera focus is on that, and when you click the "Play" button it changes the camera subject to the players head! unfortunatly it does not go back to the player! here is my script

enter script

gravityPercent = 50 -- 100 means (almost) floating, 0 means high gravity

game:GetService("Players").PlayerAdded:connect(function(p)
p.CharacterAdded:connect(function()
Workspace.Camera.CameraSubject = script.Parent.SpawnPlate
end)
end) 

--not my script, the top part was free modeled

and the play button

function onClicked()
    wait(0.001)
    script.Parent.Parent.Parent.Parent.Parent.Parent.Workspace.Camera.CameraSubject = script.Parent.Parent.Parent.Parent.Character.Head
    script.Parent.Parent.Parent.Parent.Backpack.ForceFirstPerson.Disabled = false
end
script.Parent.MouseButton1Down:connect(onClicked)

^entirely mine^ Please help!!! Thank you!!!

Answer this question