manve1 Posted November 18, 2012 Posted November 18, 2012 How could i make that when i click on a button, the writing on it changes? For Example: I click on a button called "Freeze", then it becomes as "Unfreeze", when i click on it again it becomes "Freeze" .. i think you got the idea
manve1 Posted November 18, 2012 Author Posted November 18, 2012 I know functions, but i don't get how to make them i even went through other scripts to find it out, still no luck
Guest Guest4401 Posted November 18, 2012 Posted November 18, 2012 addEventHandler("onClientGUIClick",root, function() if guiGetText(source) == "Freeze" then guiSetText(source,"Unfreeze") elseif guiGetText(source) == "Unfreeze" then guiSetText(source,"Freeze") end end )
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now