Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you make somewone a civilian or a beast picked randomly?

Asked by 10 years ago

Like Stop it slender.

1 answer

Log in to vote
0
Answered by
Hybric 271 Moderation Voter
10 years ago

Use a Table

Here is an example of a table, once you understand it you can do it

local i = {Workspace.Part, Workspace.SmoothBlockModel} -- Gets to things from workspace. Use commas to separate. the "{" and "}" is mandatory for a beginning of a table.
local g = math.random(1, #i) -- Basically you have to use math.random(1, #i). the "#" has to be there. the g is for the "local i" Fragment.  you can change "i" to anyname, but when you put the 2nd equal you must change "math.random(1, #i)" to "math.random(1, #PUT WHAT YOU CHANGED I TO HERE_Dont_remove_the_#)
i[g]:remove() -- Use the [ ] to table it. the g is in the bars because the 2nd equal goes second. the 1st equal goes first. 

Still don't understand? ROBLOX PM Hybric for more Help.

Ad

Answer this question