Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can I have help with buttons?

Asked by 8 years ago

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

0
Please post your question in a code block. User#11440 120 — 8y
0
There :3 sammy52520 45 — 8y
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() User#11440 120 — 8y
0
I'm sure I was no help at all (: User#11440 120 — 8y

Answer this question