Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ChairFunc()
- test = 0
- local x = math.random(1,256) //Generates the X variable
- local y = math.random(1,256) //Generates the Y variable
- local z = math.random(1.256) //Generates the Z variable
- local chairposition = Vector( x, y, z ) //Should generate a vector based on the random variables
- Msg(chairposition)
- //Chair Entity Spawning can go here
- test = test+1
- repeat //This repeat function is just for a test to repeat this function to make sure it selects random numbers every time.
- ChairFunc()
- until test = 5
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement