#why is my script erroring an instance?

1 messages · Page 1 of 1 (latest)

oblique geyser
analog flint
#

Stop sending scripts trough files ;-;

dull moat
#

wtf

#

im not sure if i understand the first line

#

you get all the players, then divide that number by 2 ??

#

@analog flint u understand this ??

oblique geyser
#

uhh

analog flint
#

Cant read it

oblique geyser
#

i dont even understand it myself

analog flint
#

Mobile

oblique geyser
#

but im trying to like

#

get half of the players

dull moat
#

ok

#

thats all ?

oblique geyser
#

yes

dull moat
#

well

#

first u gotta get the players

#

to do that u must do exactly what u did before

#

game.Players:GetPlayers()

analog flint
#

Can you ss the script

oblique geyser
#

ik

dull moat
#

but

dull moat
#

would be 10 times easier

oblique geyser
dull moat
#

whole script ?

analog flint
#

Ah

#

I see

oblique geyser
#

just that

#

i just want the game detect half of the players.

analog flint
#

Chosen is not a player, its a number

#

Try game.players:getplayers()[numplr]

#

At chosen

dull moat
#

i love you bro

analog flint
dull moat
analog flint
dull moat
#

oh

#

yea

#

OHH

analog flint
dull moat
#

thats why ur on mobiel

analog flint
#

Hmh

dull moat
#

everything makes sense

oblique geyser
analog flint
#

With the new one?

#

Ooh yh

#

Cuz if theres 1 player then 1 / 2 = 0.5

#

Try math.round()

oblique geyser
analog flint
#

Numplr

#

So

#

Keep the line just wrap it around the brackets

oblique geyser
analog flint
#

Yes

#

Perfect

atomic plinth
#

if plr amount == 1 then return end

#

also works