3rd person script why it don't work? [described concisely] [figered out my self]
Asked by
5 years ago Edited 5 years ago
I dont know why this doesnt work.
The CameraPart exist is the serverstorage.
You can also see this as toggling shiftlock but with a script
02 | local Player = game.Players.LocalPlayer |
03 | local Character = Player.Character or Player.CharacterAdded:Wait() |
04 | local Camera = workspace.CurrentCamera |
06 | Player.CharacterAdded:Wait() |
08 | local part = game.ServerStorage.CameraPart:Clone() |
09 | part.Parent = game.Workspace |
10 | part.Name = Player.UserId |
13 | part.CanCollide = false |
14 | part.Orientation = Vector 3. new(- 13.61 , 0 , 0 ) |
15 | part.Position = Character.HumanoidRootPart.Position + Vector 3. new( 2.787 , 2.608 , 3.825 ) |
18 | Camera.CameraType = Enum.CameraType.Scriptable |
19 | until Camera.CameraType = = Enum.CameraType.Scriptable |
20 | Camera.CFrame = game.Workspace [ Player.UserId ] .CFrame |