Jump to content

Question?


manve1

Recommended Posts

Posted

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

Guest Guest4401
Posted
addEventHandler("onClientGUIClick",root, 
    function() 
        if guiGetText(source) == "Freeze" then 
            guiSetText(source,"Unfreeze") 
        elseif guiGetText(source) == "Unfreeze" then 
            guiSetText(source,"Freeze") 
        end 
    end 
) 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...