|
| 20 Jun 2014 12:42 PM |
a=game.Workspace.Tally1.Value b=game.Workspace.Tally2.Value c=game.Workspace.Tally3.Value d=game.Workspace.Tally4.Value e=game.Workspace.Tally5.Value f=game.Workspace.Tally6.Value g=game.Workspace.Tally7.Value h=game.Workspace.Tally8.Value i=game.Workspace.Tally9.Value j=game.Workspace.Tally10.Value k=game.Workspace.Tally11.Value
repeat wait()until game.StarterGui.ScreenGui.Frame.a.Text or game.StarterGui.ScreenGui.Frame.b.Text or game.StarterGui.ScreenGui.Frame.c.Text or game.StarterGui.ScreenGui.Frame.d.Text or game.StarterGui.ScreenGui.Frame.e.Text or game.StarterGui.ScreenGui.Frame.f.Text or game.StarterGui.ScreenGui.Frame.g.Text or game.StarterGui.ScreenGui.Frame.h.Text or game.StarterGui.ScreenGui.Frame.i.Text or game.StarterGui.ScreenGui.Frame.j.Text or game.StarterGui.ScreenGui.Frame.k.Text == "Voted" if a > b then local sound=Instance.new("Sound") sound.Parent = game.Workspace sound.SoundId = "http://www.roblox.com/asset/?id=155416960" sound:Play() print("It worked!") wait(120) sound:Destroy() end if a < b then local sound2=Instance.new("Sound") sound2.Parent=game.Workspace sound2.SoundId="http://www.roblox.com/asset/?id=145980501" sound2:Play() print("Hm...") wait(120) sound2:Destroy() wait() end (How do I make it so it checks if all players have voted before the song is played or even make it play the song xD?) |
|
|
| Report Abuse |
|
|
| |
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
| |
|
|
| 20 Jun 2014 12:54 PM |
| It's a long script and kinda messy (Looks better in my head xD) |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2014 01:22 PM |
--HELP??-- if yes > no then roblox.Forum.Help.NewPost.Text = "OMG THANK YOU SO MUCH!" if yes < no then roblox.Forum.Help.NewPost.Text = "Jeez. Thanks guys... " end end |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 20 Jun 2014 01:24 PM |
I can't help if I cannot probably read/understand it.
http://wiki.roblox.com/index.php?title=Writing_Clean_Code |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2014 01:26 PM |
Lol found out one thing I did wrong :P I put game.Players.LocalPlayer.ScreenGui.Frame.a--Countering the subname for tally1 so let me fix it up so it looks easier to read xD |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2014 01:30 PM |
ab=game.Workspace.Tally1.Value bc=game.Workspace.Tally2.Value cd=game.Workspace.Tally3.Value de=game.Workspace.Tally4.Value ef=game.Workspace.Tally5.Value fg=game.Workspace.Tally6.Value gh=game.Workspace.Tally7.Value hi=game.Workspace.Tally8.Value ij=game.Workspace.Tally9.Value jk=game.Workspace.Tally10.Value kl=game.Workspace.Tally11.Value
repeat wait()until game.StarterGui.ScreenGui.Frame.a.Text or game.StarterGui.ScreenGui.Frame.b.Text or game.StarterGui.ScreenGui.Frame.c.Text or game.StarterGui.ScreenGui.Frame.d.Text or game.StarterGui.ScreenGui.Frame.e.Text or game.StarterGui.ScreenGui.Frame.f.Text or game.StarterGui.ScreenGui.Frame.g.Text or game.StarterGui.ScreenGui.Frame.h.Text or game.StarterGui.ScreenGui.Frame.i.Text or game.StarterGui.ScreenGui.Frame.j.Text or game.StarterGui.ScreenGui.Frame.k.Text == "Voted" --This part looks really messed up because it's on line 13 and goes for a while sorry. for it looking so messy.
if a > b then local sound=Instance.new("Sound") sound.Parent = game.Workspace sound.SoundId = "http://www.roblox.com/asset/?id=155416960" sound:Play() print("It worked!") wait(120) sound:Destroy() end if a < b then local sound2=Instance.new("Sound") sound2.Parent=game.Workspace sound2.SoundId="http://www.roblox.com/asset/?id=145980501" sound2:Play() print("Hm...") wait(120) sound2:Destroy() end |
|
|
| Report Abuse |
|
|