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, doesn't work, no output

Previous Thread :: Next Thread 
777MrEpic is not online. 777MrEpic
Joined: 17 Oct 2012
Total Posts: 3998
25 May 2013 07:23 PM
local pros = {"777MrEpic"}
for i = 1,#pros do
local pros2 = game.Players:FindFirstChild(pros[i])
if pros2 then
pros2.Character.Humanoid.MaxHealth = math.huge
wait()
pros2.Character.Humanoid.Health = math.huge
wait()
a=Instance.new("PointLight")
a.Parent = pros2.Character.Torso
a.Enabled = true
a.Range = 12
a.Brightness = 2
a.Color = Color3.new(255,255,255)
wait()
b=Instance.new("Fire")
b.Parent = pros2.Character.Torso
b.Enabled = true
pros2.Character.Humanoid.WalkSpeed = 35
sound = Instance.new("Sound")
sound.SoundId = "rbxasset://sounds/HalloweenThunder.wav"
sound.Volume = 1
sound.PlayOnRemove = true
ff=Instance.new("ForceField")
ff.Parent = pros2.Character
ok=Instance.new("Explosion", pros2.Character.Torso)
wait(.1)
ok:Destroy()
ff:Destroy()
game.Lighting.TimeOfDay = "00:00:00"
wait()
game.Lighting.FogEnd = 100
wait(.5)
sound:Destroy()
end
end

-- Sometimes the explosion does not load and the sound never loads, help?
Report Abuse
777MrEpic is not online. 777MrEpic
Joined: 17 Oct 2012
Total Posts: 3998
25 May 2013 07:25 PM
Titlefix
Report Abuse
dog456pop248 is not online. dog456pop248
Joined: 24 Aug 2008
Total Posts: 3977
25 May 2013 07:27 PM
"Suggestion:
Don't ask others to debug your broken code without giving a hint what sort of problem you are having. Posting a few hundred lines of code, saying "it doesn't work", will get you ignored."
Report Abuse
777MrEpic is not online. 777MrEpic
Joined: 17 Oct 2012
Total Posts: 3998
25 May 2013 07:28 PM
Read what I said in --
That was a hint
This is not even 40 Lines
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
25 May 2013 07:30 PM
Parent the sound to workspace when you create it.
Report Abuse
777MrEpic is not online. 777MrEpic
Joined: 17 Oct 2012
Total Posts: 3998
25 May 2013 07:31 PM
Oh man - I found out checking properties at a different time is better.
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