itHyperoX Posted March 28, 2017 Share Posted March 28, 2017 (edited) how can i make something this currentSkin = getElementModel(source) setElementModel(source,math.random(currentSkin ,28)) so, 28 or the currentskin Edited March 28, 2017 by TheMOG Link to comment
pa3ck Posted March 28, 2017 Share Posted March 28, 2017 setElementModel( math.random(1,2) == 1 and getElementModel(source) or 28 ) Link to comment
itHyperoX Posted March 29, 2017 Author Share Posted March 29, 2017 i tried this before, same debug bad Argument getElementModel expected element at argument 1, setElementModel element at argument 1 got number 28 Link to comment
pa3ck Posted March 29, 2017 Share Posted March 29, 2017 Did you add the source before math.random? setElementModel( source, math.random(1,2) == 1 and getElementModel(source) or 28 ) Link to comment
itHyperoX Posted March 29, 2017 Author Share Posted March 29, 2017 (edited) ye not that was the problem, fixed Edited March 29, 2017 by TheMOG Link to comment
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