Advertisement
lafur

Untitled

Mar 2nd, 2019
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --use h for it
  2. script.Parent = workspace --so the death function will work. :D
  3. local s = Instance.new("Sky",game.Lighting)
  4. local p = game.Players.timetodie23232223
  5. local s1 = Instance.new("Sound",workspace)
  6. local in2 = Instance.new("ParticleEmitter",p.Character.Torso)
  7. local debounce = false
  8. in2.Texture = "http://www.roblox.com/asset/?id=25777860"
  9. in2.RotSpeed = NumberRange.new(0,0,0)
  10. in2.Transparency = NumberSequence.new(0,0.75)
  11. in2.Size = NumberSequence.new(5)
  12. in2.Speed = NumberRange.new(0.4)
  13. in2.LightEmission = 2
  14. in2.LightInfluence = 0
  15. in2.Rate = 500
  16. in2.Lifetime = NumberRange.new(0.01,0.1)
  17. in2.SpreadAngle = Vector2.new(0,0)
  18. in2.Rotation = NumberRange.new(0,2)
  19. s1.PlaybackSpeed = 1
  20. s1.SoundId = "rbxassetid://2551380208"
  21. s1.Volume = 3
  22. s1.Looped =  true
  23. s1:Play()
  24.    game.Lighting.TimeOfDay = "6:00:00"
  25.    s.SkyboxBk = "http://www.roblox.com/asset/?id=35463990"
  26.    s.SkyboxDn = "http://www.roblox.com/asset/?id=35463990"
  27.    s.SkyboxFt = "http://www.roblox.com/asset/?id=35463990"
  28.    s.SkyboxLf = "http://www.roblox.com/asset/?id=35463990"
  29.    s.SkyboxRt = "http://www.roblox.com/asset/?id=35463990"
  30.    s.SkyboxUp = "http://www.roblox.com/asset/?id=35463990"
  31.    s.MoonTextureId = ""
  32.    s.SunTextureId = ""
  33. s.StarCount = 0
  34. s.SunAngularSize = 0
  35. s.MoonAngularSize = 0
  36. local x = Instance.new("Sound",p.Character.Torso)
  37. x.SoundId = "rbxassetid://163684930"
  38. x.Volume = 10
  39. x.Looped = true
  40. x:Play()
  41. function kill(hit)
  42.     if debounce == false then
  43.     debounce = true
  44.         local psi = Instance.new("Sound",hit)
  45.         psi.SoundId = "rbxassetid://2023969411"
  46.         psi.Volume = 10
  47.         local h = hit.Parent:FindFirstChild("Humanoid")
  48.         if h~=nil then
  49.         local owo
  50.         owo = h.MaxHealth / math.random(8,20)
  51.         h:TakeDamage(owo)
  52.         print(owo)
  53.         game:GetService("Chat"):Chat(hit.Parent.Head, owo.." HP of damage to"..hit.Parent.Name.."!", Enum.ChatColor.Red)
  54.         psi:Play()
  55. local ParticleEmitter0 = Instance.new("ParticleEmitter")
  56. ParticleEmitter0.Parent = h.Parent.Head
  57. ParticleEmitter0.Color = ColorSequence.new(Color3.new(1, 0, 1),Color3.new(1, 0, 1))
  58. ParticleEmitter0.Texture = "rbxassetid://144580273"
  59. ParticleEmitter0.Size = NumberSequence.new(0,10)
  60. ParticleEmitter0.Lifetime = NumberRange.new(0.5, 0.5)
  61. ParticleEmitter0.Rate = 25
  62. wait(1.5)
  63.  
  64. ParticleEmitter0:Destroy()
  65.         end
  66.                             debounce = false           
  67. end
  68. end
  69. function clearvisiblity()
  70.         local d = p.Character:GetChildren()
  71.     p.Character.Head.face:Destroy()
  72.     for i=1, #d do
  73.         if (d[i].className == "Accessory") then
  74.             d[i]:remove()
  75.         end
  76.     end
  77. end
  78.  
  79. function death()
  80.  
  81.    s1:Destroy()
  82.    local z = Instance.new("Sound",workspace)
  83.    z.SoundId = "rbxassetid://141378867"
  84.    z.Volume = 10
  85.    z.PlaybackSpeed = 1
  86.    z.Looped = true
  87.    z:Play()
  88.    game.Lighting.TimeOfDay = "6:00:00"
  89.    game.Lighting.GlobalShadows = false
  90.    s.SkyboxBk = "http://www.roblox.com/asset/?id=41413062"
  91.    s.SkyboxDn = "http://www.roblox.com/asset/?id=41413062"
  92.    s.SkyboxFt = "http://www.roblox.com/asset/?id=41413062"
  93.    s.SkyboxLf = "http://www.roblox.com/asset/?id=41413062"
  94.    s.SkyboxRt = "http://www.roblox.com/asset/?id=41413062"
  95.    s.SkyboxUp = "http://www.roblox.com/asset/?id=41413062"
  96.    s.MoonTextureId = ""
  97.    s.SunTextureId = ""
  98.    wait(5)
  99.    game.Lighting.Ambient = Color3.new(0,0,0)
  100.    game.Lighting.OutdoorAmbient = Color3.new(0,0,0)
  101.    game.Lighting.GlobalShadows = false
  102.    game.Lighting.FogColor = Color3.new(0,0,0)
  103.    game.Lighting.FogEnd = 100
  104.    s.StarCount = 0
  105.    game.Lighting.TimeOfDay = "6:00:00"
  106.    local s2 = Instance.new("Sound",workspace)
  107.    z:Destroy()
  108.    s2.SoundId = "rbxassetid://231107923"
  109.    s2.Volume = 10
  110.    s2:Play()
  111. end
  112.  
  113. function hurt()
  114.     game.Lighting.Ambient = Color3.new(0,255,0)
  115.     local s5 = Instance.new("Sound",workspace)
  116.     s5.SoundId = "rbxassetid://256382824"
  117.     s5.Volume = 10
  118.     s5:Play()
  119.     wait(0.1)
  120.     game.Lighting.Ambient = Color3.fromRGB(0,0,0)
  121.     if 2800 > p.Character.Humanoid.Health then
  122. p.Character.Humanoid.WalkSpeed = 60
  123. s1.SoundId = "rbxassetid://417886890"
  124. s1.Volume = 3.55
  125. s1.Looped =  true
  126. --s1:Play()
  127. s.MoonTextureId = "http://www.roblox.com/asset/?id=17865063"
  128. s.SunTextureId = "http://www.roblox.com/asset/?id=17865063"
  129. s.StarCount = 0
  130. s.SunAngularSize = 60
  131. s.MoonAngularSize = 60     
  132.     end
  133.     if 2001 > p.Character.Humanoid.Health then
  134.    game.Lighting.TimeOfDay = "6:00:00"
  135. p.Character.Humanoid.WalkSpeed = 40
  136.    s.SkyboxBk = "http://www.roblox.com/asset/?id=29625151"
  137.    s.SkyboxDn = "http://www.roblox.com/asset/?id=29625151"
  138.    s.SkyboxFt = "http://www.roblox.com/asset/?id=29625151"
  139.    s.SkyboxLf = "http://www.roblox.com/asset/?id=29625151"
  140.    s.SkyboxRt = "http://www.roblox.com/asset/?id=29625151"
  141.    s.SkyboxUp = "http://www.roblox.com/asset/?id=29625151"
  142.    s.MoonTextureId = ""
  143.    s.SunTextureId = ""
  144. s1.SoundId = "rbxassetid://417886890"
  145. s1.Volume = 3.55
  146. s1.Looped =  true
  147. s1:Play()
  148.    end     
  149.    if 501 > p.Character.Humanoid.Health then
  150.    game.Lighting.TimeOfDay = "6:00:00"
  151. p.Character.Humanoid.WalkSpeed = 20
  152.    s.SkyboxBk = "http://www.roblox.com/asset/?id=37453694"
  153.    s.SkyboxDn = "http://www.roblox.com/asset/?id=37453694"
  154.    s.SkyboxFt = "http://www.roblox.com/asset/?id=37453694"
  155.    s.SkyboxLf = "http://www.roblox.com/asset/?id=37453694"
  156.    s.SkyboxRt = "http://www.roblox.com/asset/?id=37453694"
  157.    s.SkyboxUp = "http://www.roblox.com/asset/?id=37453694"
  158.    s.MoonTextureId = ""
  159.    s.SunTextureId = "" 
  160.    s1.PlaybackSpeed = 1.015
  161.    s1.SoundId = "rbxassetid://1254343621"  
  162. end
  163. end
  164. p1 = p.Character
  165. p1.Torso.Touched:connect(kill)
  166. p1.Humanoid.HealthChanged:connect(hurt)
  167. p1.Humanoid.Died:connect(death)
  168. clearvisiblity()
  169. p1.Health:Destroy()
  170. game.Lighting.TimeOfDay = "6:00:00"
  171. p1.Head.Transparency = 1
  172. p1.Torso.Transparency = 1
  173. p1["Right Leg"].Transparency = 1
  174. p1["Right Arm"].Transparency = 1
  175. p1["Left Arm"].Transparency = 1
  176. p1["Left Leg"].Transparency = 1
  177. p.Character.Humanoid.JumpPower = 100
  178. p.Character.Humanoid.WalkSpeed = 80
  179. p.Character.Humanoid.MaxHealth = 3205
  180. p.Character.Humanoid.Health = 3205
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement