I'm trying to rotate a part in a model 90", how would I go about doing this?
I'm trying to use this script right now, but it's not working:
function onClicked()
game.Workspace.SeatFC_.BedFC.SeatFC__.Orientation = 90, 0, 0
What am I doing wrong?
I'm trying to rotate a part in a model 90", how would I go about doing this?
I'm trying to use this script right now, but it's not working:
function onClicked()
game.Workspace.SeatFC_.BedFC.SeatFC__.Orientation = 90, 0, 0
What am I doing wrong?
You need to call the function so you would do this
script.Parent.MouseButton1Click:connect(function)
game.Workspace.SeatFC_.BedFC.SeatFC__.Orientation = 90, 0, 0
end
If this helped you, dont forget to accept it as the answer.
You need a CFrame value. Like this.
workspace.Part.CFrame = CFrame.Angles(90, 0, 0)
Sorry I can't explain much because I'm on a phone.
Responding to you and Kenny, adding the MouseButton1Click made my button no longer work, and the vector3 didn't fix anything. Are there any other issues..?
Maybe try my edit.
Do you have discord, so we can troubleshoot this over dm?
no
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
I forgot to add the end to the end when I typed it in on the forum.
This is my full script: function onClicked() game.Workspace.SeatFC_.BedFC.Union1.Transparency = 0 game.Workspace.SeatFC_.BedFC.Union2.Transparency = 0 game.Workspace.SeatFC_.BedFC.Union3.Transparency = 0 game.Workspace.SeatFC_.BedFC.Union4.Transparency = 0 game.Workspace.SeatFC_.BedFC.SeatFC__.Configuration["Arms Angle"].Value = -90 game.Workspace.SeatFC_.BedFC.SeatFC__.Configuration["Head
Yeah, dont juse do functionOnClicked(), do script.Parent.MouseButton1Click:connect(function)