Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do you rotate a part, is my script incorrect in some way?

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?

2 answers

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.

3 comments

0

I forgot to add the end to the end when I typed it in on the forum.

0

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

0

Yeah, dont juse do functionOnClicked(), do script.Parent.MouseButton1Click:connect(function)

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.

4 comments

0

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..?

0

Maybe try my edit.

0

Do you have discord, so we can troubleshoot this over dm?

0

no

This discussion is preserved as it was. New answers, comments, and votes are closed.