I was making a script that imitates the shift lock.Basically rotates the player on a angle.I was trying to do that but I got a error on the output while trying to multiply a angle with another angle so it will stay the same position.
Output:
Angles is not a valid memberPlayers.Player.PlayerGui.LocalScript', Line 6
Player = game.Players.LocalPlayer
Character = Player.Character
Mouse = Player:GetMouse()
Torso = Character:WaitForChild("Torso")
Mouse.Move:connect(function()
Torso.CFrame = CFrame.Angles(Torso.CFrame.Angles.x,Mouse.Hit.y,Torso.CFrame.Angles.z)
end)
Why did I get this error and how would I fix it?
