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

How would I make a script that would choose someone to be something?

Asked by 9 years ago

I know scripting fairly well I just can't how I would make a script that would choose some random to be a Betrayer. I just need a script that chooses just one person to be a Betrayer and then makes a message on only their screen.

I know its something likes this

current = math.random(1,#players) position = Positions[math.random(1,#Positions)] if players[current] and players[current].Character then players[current].Character:MoveTo(position) end end end

1 answer

Log in to vote
1
Answered by
Defcon0 10
9 years ago

current = math.random(1,#players) position = Positions[math.random(1,#Positions)].if players[current] and players[current].Character then players[current].Character:MoveTo(position) end end end

I Believe this is the Fixed Version. Please Remember to always use Lua, the period right after (1,#Positions)]. Is what you missed, And also make sure you have their Body Parts match the specific Block Formation you want

0
Thx u hahaman5 5 — 9y
Ad

Answer this question