Jump to content

setElementModel


itHyperoX

Recommended Posts

Posted (edited)

how can i make something this

currentSkin = getElementModel(source)

setElementModel(source,math.random(currentSkin ,28))

 

so, 28 or the currentskin

Edited by TheMOG
Posted

Did you add the source before math.random? 

setElementModel( source, math.random(1,2) == 1 and getElementModel(source) or 28 )

 

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...