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
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Help

Previous Thread :: Next Thread 
Meowcatmaster is not online. Meowcatmaster
Joined: 20 Oct 2012
Total Posts: 769
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
Meowcatmaster is not online. Meowcatmaster
Joined: 20 Oct 2012
Total Posts: 769
20 Jun 2014 12:51 PM
--Bump--
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
20 Jun 2014 12:52 PM
such messy
wow
Report Abuse
Meowcatmaster is not online. Meowcatmaster
Joined: 20 Oct 2012
Total Posts: 769
20 Jun 2014 12:54 PM
It's a long script and kinda messy (Looks better in my head xD)
Report Abuse
Meowcatmaster is not online. Meowcatmaster
Joined: 20 Oct 2012
Total Posts: 769
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 is not online. 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
Meowcatmaster is not online. Meowcatmaster
Joined: 20 Oct 2012
Total Posts: 769
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
Meowcatmaster is not online. Meowcatmaster
Joined: 20 Oct 2012
Total Posts: 769
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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