generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: GUI

Previous Thread :: Next Thread 
loganv450505 is online. loganv450505
Joined: 11 Aug 2015
Total Posts: 196
03 Mar 2016 04:09 PM
ok 3 things are:
is this script right?Votes = Instance.new("Model", game.Workspace)
Votes.Name = "Votes";

function Vote()
for i,v in pairs(game.Players:GetPlayers()) do
game.Lighting.VOTER:Clone().Parent = v.PlayerGui;
end
end

if somehowthevotingtimeisready then--change this to whatever you do to check if its time to vote
Vote()
repeat wait() until #game.Workspace.Votes:GetChildren() == game.Players.NumPlayers
wins = {"","",""}--Put whatever you put in the strings HERE EXACTLY what the values are.
counts = {0,0,0}--however many indexes the table wins has
for i,v in pairs(game.Workspace.Votes:GetChildren()) do
for u, p in pairs(wins) do
if p == v.Value then
counts[u] = counts[u] + 1;
end
end
end
for j, k in pairs(counts)
if k == math.max(unpack(counts)); then
winind = math.max(unpack(counts));
WINNERMAP = wins[winind]; -- will choose the string map.
end
end
if WINNERMAP == "AMAPSNAME" then
chosenmap = game.Lighting.MAPTHATMATCHESITSNAME
end
if WINNERMAP == "AMAPSOTHERNAME" then
chosenmap = game.Lighting.MAPTHATMATCHESITSNAME
end
2 where do I put it?
3 what is a script for the wait time?
Report Abuse
loganv450505 is online. loganv450505
Joined: 11 Aug 2015
Total Posts: 196
03 Mar 2016 04:10 PM
Bump
Report Abuse
loganv450505 is online. loganv450505
Joined: 11 Aug 2015
Total Posts: 196
03 Mar 2016 04:11 PM
Anyone?
Report Abuse
Intrance is online. Intrance
Joined: 04 Dec 2008
Total Posts: 208
03 Mar 2016 04:17 PM
I'm gonna need a little more..
Report Abuse
loganv450505 is online. loganv450505
Joined: 11 Aug 2015
Total Posts: 196
03 Mar 2016 05:01 PM
what do u mean?
Report Abuse
loganv450505 is online. loganv450505
Joined: 11 Aug 2015
Total Posts: 196
03 Mar 2016 05:58 PM
Bump
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
03 Mar 2016 05:59 PM
ew


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image