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
 

Script Breaking After One Use

Previous Thread :: Next Thread 
Jazzyforcefield is not online. Jazzyforcefield
Joined: 12 Jan 2010
Total Posts: 18838
18 Dec 2013 10:24 PM
game.Players.PlayerAdded:connect(function(p)
p.Chatted:connect(function(msg)
if game.Workspace.Pirate.IsPlaying == false then
msg = msg:lower()
if (msg == "yar") then
game.Workspace.Pirate:play()
game.Lighting.FogEnd = 100
wait(1)
game.Lighting.Ambient = Color3.new(255,0,0)
wait(13)
game.Lighting.Ambient = Color3.new(0,0,0)
game.Lighting.FogEnd = 100000
end
end
end)

end)


Help me fix it please.


~If you do that, I'll take out my stick and poke you
Report Abuse
XtremeTemper is not online. XtremeTemper
Joined: 02 Mar 2012
Total Posts: 1774
18 Dec 2013 10:29 PM
Try this(Idk if it will work?):

game.Players.PlayerAdded:connect(function(p)
p.Chatted:connect(function(msg)
if game.Workspace.Pirate.IsPlaying == false then
msg = msg:lower()
if (msg == "yar") then
game.Workspace.Pirate:play()
game.Lighting.FogEnd = 100
wait(1)
game.Lighting.Ambient = Color3.new(255,0,0)
wait(13)
game.Workspace.Pirate:stop()
game.Lighting.Ambient = Color3.new(0,0,0)
game.Lighting.FogEnd = 100000
end
end
end)

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