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)

1 comment

0

You used LocalScript or Script?