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

Why won't my camera go back to my player?

Asked by 5 years ago

I can't get my camera that is attached to a part to move back to the local player.

local Camera = game.Workspace.CurrentCamera
local player = game.Players.LocalPlayer.Name

script.Parent.MouseButton1Click:Connect(function()
    wait(0.1)
    script.Parent.Parent.Breaker:TweenPosition(UDim2.new(0,0,0,-100),"Out","Quad",1,true)
    wait(1)
    Camera.CameraSubject = game.Workspace[player].Humanoid
    wait(1)
    script.Parent.Parent.Breaker:TweenPosition(UDim2.new(0,0,1,0),"Out","Quad",1,true)
    wait(1.1)
    script.Parent.Parent.Breaker:Destroy()
end)
0
You used LocalScript or Script? HaveASip 494 — 5y

Answer this question