game.Workspace.Baseplate.Rotation.X = 1
somehow this doesn't work
12:19:23.542 - X cannot be assigned to
game.Workspace.Baseplate.Rotation.X = 1
somehow this doesn't work
12:19:23.542 - X cannot be assigned to
The X, Y and Z values are read only, you can't directly set those values. The way you can get around this is doing the following:
local Part = workspace.Baseplate
--Set rotation
Part.Rotation = Vector3.new(
1,
Part.Rotation.Y,
Part.Rotation.Z
)
--Keep Y and Z
Part.Rotation = Vector3.new(
1,
0,
0
)
--Or for increasing / subtracting etc.
Part.Rotation = Vector3.new(
Part.Rotation.X + 1,
Part.Rotation.Y - 1,
Part.Rotation.Z * 2
)
thanks for the direct answer unlike @FiredDusk
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
You don't need the "X". Just do "workspace.Baseplate.Rotation = 1"