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: Scripting Help?

Previous Thread :: Next Thread 
StudioTT is not online. StudioTT
Joined: 11 Oct 2012
Total Posts: 7
06 Jul 2014 06:33 PM
Ok, so when the scripts run it runs fine. But when I try giving a message to two players it doesn't give a message to the second player.. it gives it to the first player that joined.. but not the second player for some reason.. I'm confused.

SCRIPT:



local BeepId = 138081500
local BattleMusicId = 138919954

while wait(5) do
for i,v in pairs(game.Players:GetChildren()) do
local Beep = Instance.new("Sound", v.PlayerGui)
local BattleMusic = Instance.new("Sound", v.PlayerGui)
Beep.Name = "Beep"
BattleMusic.Name = "BattleMusic"
Beep.Volume = 1
Beep.SoundId = "http://www.roblox.com/asset?id="..BeepId..""
BattleMusic.Volume = 1
BattleMusic.SoundId = "http://www.roblox.com/asset?id="..BattleMusicId..""
end
for i,v in pairs(game.Players:GetChildren()) do
local Beep = v.PlayerGui.Beep
local BattleMusic = v.PlayerGui.BattleMusic
local Noti = v.PlayerGui.Update.Frame.TextLabel
Beep:Play()
Noti.Text = "Oh, some survivors!"
wait(3)
Beep:Play()
Noti.Text = "I've been trapped in this prison for hours!"
wait(3)
Beep:Play()
Noti.Text = "Listen, I need your help to get me out of here.."
wait(3)
Beep:Play()
Noti.Text = "I will keep track of you through this device."
wait(3)
Beep:Play()
Noti.Text = "Please stay alive however possible!"
wait(3)
local Round1 = game.Lighting.Round1:GetChildren()
game.Workspace.ZombiesAlive.Value = #Round1
for i,v in pairs(game.Lighting.Round1:GetChildren()) do
v:Clone().Parent = game.Workspace
end
BattleMusic:Play()
repeat
print("waiting")
wait(1)

until game.Workspace.ZombiesAlive.Value == 0
Beep:Play()
Noti.Text = "Fought off that forever alone zombie?"
wait(3)
Beep:Play()
Noti.Text = "Sorry I didn't alert you got caught offguard watching the hallways"



end



end
Report Abuse
StudioTT is not online. StudioTT
Joined: 11 Oct 2012
Total Posts: 7
06 Jul 2014 06:34 PM
I tried making the script short as possible so people won't TL;DR :|
Report Abuse
StudioTT is not online. StudioTT
Joined: 11 Oct 2012
Total Posts: 7
06 Jul 2014 06:37 PM
Ugh, bump.
Report Abuse
StudioTT is not online. StudioTT
Joined: 11 Oct 2012
Total Posts: 7
06 Jul 2014 06:41 PM
BUMP
Report Abuse
nacker is online. nacker
Joined: 06 Oct 2009
Total Posts: 6034
06 Jul 2014 06:45 PM
you cant expect us to read all that without any clue where the error could be
Report Abuse
StudioTT is not online. StudioTT
Joined: 11 Oct 2012
Total Posts: 7
06 Jul 2014 06:48 PM
then screw it
idk what to do with my long scripts
Report Abuse
nobbers12345 is not online. nobbers12345
Joined: 06 Feb 2011
Total Posts: 4425
06 Jul 2014 07:19 PM
Give output lines, if there are any.

I hate the LGBT. Those laser guided battle tanks are just too damn powerful.
Report Abuse
DEVMAC101 is not online. DEVMAC101
Joined: 01 May 2013
Total Posts: 856
06 Jul 2014 07:35 PM
Idk... It could be the fact this has to be a local script located within a players Starter GUI, other than that IDK.
Report Abuse
StudioTT is not online. StudioTT
Joined: 11 Oct 2012
Total Posts: 7
06 Jul 2014 07:36 PM
there are no output lines
Report Abuse
StudioTT is not online. StudioTT
Joined: 11 Oct 2012
Total Posts: 7
06 Jul 2014 08:01 PM
@Dev, thanks your suggestion actually worked! Thanks so much!
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