Quantcast

How do you make something rotate after pressing a buttton?

I’m making a testing map and I am well, testing things and i want to see if something can rotate after pressing a button.

1 Like

Well in this case we have to do this question to THE GOD @Kriscross102RBLX.

This is a usless reply.

1 Like
local TweenService = game:GetService("TweenService")

Lib.btnFuncs[#] = function()
    TweenService:Create(Lib.Map.PartName, TweenInfo.new(3), {Orientation = Vector3.new(90,0,0)}):Play()
end

is the button number

This will rotate it 90 degrees on the x axis

1 Like

so do you add a script or value into the interactive or button?

1 Like

He added the script in the Instructions (In btnFuncs)

1 Like

what does that mean

1 Like

Its means you added the script in Instruction (not in interactive or button).

1 Like

so you dont put a script or value into the button or interactive?

1 Like

Yes, you got it!

1 Like

but where do you put it?

1 Like

inside the model i guess?

1 Like

Yes,

1 Like

I will send you a image just wait for it.

1 Like

okayay

1 Like

Anotação 2020-02-09 181923

1 Like