Advertisement
Nutgear

[ROBLOX] [Lua] Nuke with settings

Mar 4th, 2018
1,344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.13 KB | None | 0 0
  1. --Hello dear viewer of this script!
  2. --I am Nutgear, the creator of this script, i do not recommend copying this.
  3. --But you must copy and paste the raw code to a coding/text application (Notepad++ or basically Notepad).
  4. --Now, you can replace the BombPosition value (default is workspace.xXRedPawnerXx.Head.Position) to whatever you want.
  5. --example 1: Vector3.new(200,0,150)
  6. --example 2: workspace.NOOBYOUHATE.Torso.Position
  7.  
  8. --We are not done yet! You can change the size value (default is 100) to whatever number you want.
  9. --For example: 1024
  10.  
  11. --If you are finished, if you are in a script builder, copy and paste the edited code to the command box or chat the code like this:
  12. --c/(Roblox-Lua code)
  13.  
  14. --If you are in a explode that executes a code, i recommend to copy and paste the edited code to the script box and press the execute ---button.
  15.  
  16. BombPosition = game.Players.LocalPlayer.Character.Head.Position --Vector3.new(0,0,0)
  17. NukeColor = BrickColor.Yellow()
  18. Size = 50 --Max radius is 682
  19.  
  20. debounce = true
  21. function bomb()
  22.     if debounce then
  23.         debounce = false
  24.         local s = Instance.new("Part",workspace)
  25.         s.CanCollide = false
  26.         script.Name = "NuclearBomb"
  27.         local s1 = Instance.new("Sound",s)
  28.         s1.Volume = 5
  29.         s1.SoundId = "rbxassetid://12221984"
  30.         s1:Play()
  31.         script.Parent = s
  32.         s.Name = "Fireball"
  33.         script.Parent = s
  34.         s.Position = BombPosition
  35.         s.Shape = "Ball"
  36.         s.Locked = true
  37.         s.BrickColor = NukeColor
  38.         s.TopSurface = "Smooth"
  39.         s.BottomSurface = "Smooth"
  40.         s.Transparency = 0.3
  41.         s.Touched:connect(function(hit)
  42.         if not hit.Anchored then
  43.         hit.BrickColor = BrickColor.new("Black")
  44.         hit.Velocity = hit.Velocity + Vector3.new(math.random(-15,15),12.285,math.random(-15,15))
  45.         end
  46.         if not hit.Locked then
  47.         hit.Anchored = false
  48.         end
  49.         local h = hit.Parent:FindFirstChild("Humanoid")
  50.         if h~=nil then
  51.         h.Sit = true
  52.         h:TakeDamage(1.753)
  53.         else
  54.         hit:BreakJoints()
  55.         end
  56.         end)
  57.         local pos = s.CFrame
  58.         for i = 2,Size do
  59.             s.Size = Vector3.new(i*3,i*0,i*3)
  60.             s.CFrame = pos
  61.             s.Velocity = Vector3.new(0,0,0)
  62.             wait()     
  63.         end
  64.         s:Remove()
  65.     end
  66.     end
  67.  
  68. bomb()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement