I am trying to make it so that when the player joins the game, their camera's CFrame is set to a part in the workspace. And the player's walkspeed and jumppower is 0.
Here is what I did (normal script in serverscriptservice) :
local WorkspaceCamera = game.Workspace.StartCamera -- This is the part whom the camera should be attached to.
local Camera = workspace.CurrentCamera
game.Players.PlayerAdded:Connect(function(Player)
print("Player Added!")
Player.TeamColor = BrickColor.new("CGA brown")
Camera.CameraType = Enum.CameraType.Scriptable
Camera.CFrame = WorkspaceCamera.CFrame
end)
The player's team changes properly. But not the walkspeed nor the jumppower nor the camera.
Why?
Thanks for any help.

2 comments
Error codes?
No errors. It shows player added from the print. But no errors.