menu
Roblox Forum Archive
Home
User Search
Forums
Donate
search
settings
Home
User Search
Forums
Donate
launch
Go to User Dashboard
Forums
Scripters
i need help with this
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right
i need help with this
zacharoy56
Join Date: 2014-10-18
Post Count: 130
#183508085
Saturday, February 13, 2016 3:45 PM GMT
Workspace.GameScript:174: bad argument #2 to 'random' (interval is empty) this is my error local sherrif = s[math.random(1,#s)]
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
wonderful72pike
Join Date: 2010-07-13
Post Count: 7009
#183508654
Saturday, February 13, 2016 3:53 PM GMT
That means #s is 0.
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
zacharoy56
Join Date: 2014-10-18
Post Count: 130
#183509410
Saturday, February 13, 2016 4:03 PM GMT
so what do i change it to?
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
cheesecake123456
Join Date: 2009-06-01
Post Count: 1529
#183509676
Saturday, February 13, 2016 4:07 PM GMT
It means something earlier in your code isn't working, as you have s(a table) that has no values. We can't tell you what to change without seeing where you define s, or where you change it beforehand.
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
zacharoy56
Join Date: 2014-10-18
Post Count: 130
#183510072
Saturday, February 13, 2016 4:12 PM GMT
k ill show you
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
zacharoy56
Join Date: 2014-10-18
Post Count: 130
#183510147
Saturday, February 13, 2016 4:13 PM GMT
this is it for i=1,#p do if i~=mdrr then s[#s+1] = p[i] end end local sherrif = s[math.random(1,#s)]
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
cheesecake123456
Join Date: 2009-06-01
Post Count: 1529
#183510274
Saturday, February 13, 2016 4:15 PM GMT
What is mdrr? And I assume p is game.Players:GetChildren()?
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
zacharoy56
Join Date: 2014-10-18
Post Count: 130
#183510539
Saturday, February 13, 2016 4:19 PM GMT
OHHHHHHH I GOT IT NOW THANKS GUYS YOUR THE BEST
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right