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
|
  |
| Joined: 17 Oct 2012 |
| Total Posts: 3998 |
|
| |
|
|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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 |
|
|