So I am wanting a button to control when it can rotate a drum I am totally stumped but if it is ok I would love the help.

Here is both scripts-

local button = script.Parent, false
button.MouseButon1Down:connect (function()
	if state == false then
		
	end
end)


That one was for the button

This one is for the Drum-
 local part = workspace.Drum
while wait(.01) do
part.CFrame = part.CFrame * CFrame.Angles(math.rad(9), math.pi, math.rad(180))
end

Please help, Thank you

4 comments

0

Please post your question in a code block.

0

There :3

0

If you're not using a Gui and a part with a click detector then you would change line 2 of your first code block to button.ClickDetector.MouseClick:connect(function()

0

I'm sure I was no help at all (: