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

Rotation gui not rotating on function?

Asked by 6 years ago

script.Parent.TextButton.MouseButton1Down:connect(function() script.Parent.Load.Rotation = (+24) end

You'd think this would be the way to rotate it. Can someone fix this?

1 answer

Log in to vote
1
Answered by
INOOBE_YT 387 Moderation Voter
6 years ago

Roblox needs you to give it a value to work with. So to fix this, just add a value to add onto.

script.Parent.TextButton.MouseButton1Down:connect(function()
    script.Parent.Load.Rotation = script.Parent.Load.Rotation+24
end
Ad

Answer this question