I am trying to make a Gui that lets the player choose a class that they will play with for the rest of the game, but when I start the game in solo and click the left button on the gui it tweens to the next class and then when i think it is done it goes on to the next class.
Here is the script that I have written:
function LeftToClass()
if LFrame:WaitForChild('CValue').Value == 'Paladin' then
if ChangingLeft == false then
if CV.Value == 'Huntsman' then
LeftToPaladin()
end
end
end
if LFrame:WaitForChild('CValue').Value == 'Rogue' then
if ChangingLeft == false then
LeftToRogue()
end
end
if LFrame:WaitForChild('CValue').Value == 'Huntsman' then
if ChangingLeft == false then
LeftToHuntsman()
end
end
if LFrame:WaitForChild('CValue').Value == 'Sorcerer' then
if ChangingLeft == false then
LeftToSorcerer()
end
end
end
LFrame.Button.MouseButton1Click:connect(LeftToClass())
The rest of the script to me is too big to put it one this question, but I will if anyone needs me to.
Any help is greatly appreciated.

1 comment
Thank you, I did not know that. At least I have learned something new!