Advertisement
pitrioptixiop

Roblox | Begone thot gun

Aug 30th, 2018
1,561
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.42 KB | None | 0 0
  1.  
  2. --This script may not work because of 'Mouse is no longer active' as Studio tests have different results than InRealGame tests. Shame on you Roblox.
  3. --To fix that I will be remaking this script entirely as a require().
  4.  
  5. wait(2)
  6. explosiondebounce = false
  7. function explosion(pos,color,grow)
  8.     if explosiondebounce == false then
  9.         explosiondebounce = true
  10.         exp = Instance.new("Part")
  11.         exp.Shape = Enum.PartType.Ball
  12.         exp.Size = Vector3.new(1,1,1)
  13.         exp.Material = Enum.Material.Neon
  14.         exp.BrickColor = color
  15.         exp.Anchored = true
  16.         exp.CanCollide = false
  17.         exp.CFrame = CFrame.new(pos.X,pos.Y,pos.Z)
  18.         exp.Parent = workspace
  19.         for i=1, 10 do
  20.             wait(0.1)
  21.             exp.Size = exp.Size + Vector3.new(grow,grow,grow)
  22.             exp.Transparency = exp.Transparency + 0.1
  23.         end
  24.         exp:Destroy()
  25.         explosiondebounce = false
  26.     end
  27. end
  28. lp = owner
  29. char = lp.Character
  30. head = char.Head
  31. hum = char:FindFirstChildOfClass("Humanoid")
  32. hum.PlatformStand = true
  33. ra = char:FindFirstChild("Right Arm")
  34. wait(1)
  35. for i=1, 10 do
  36. wait(0.25)
  37. part = Instance.new("Part",workspace)
  38. part.Anchored = true
  39. part.Size = Vector3.new(2,2,2)
  40. part.CFrame = ra.CFrame + Vector3.new(math.random(-1,1),0,math.random(-1,1))
  41. part.BrickColor = BrickColor.new("Really red")
  42. part.Material = Enum.Material.Neon
  43. part.CanCollide = false
  44. part.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(math.random(5,10),math.random(5,10),math.random(5,10))
  45. game.Debris:AddItem(part,1)
  46. end
  47. gun = Instance.new("Tool")
  48. gun.Name = "Anti Thot gun"
  49. gun.GripPos = Vector3.new(0,0,1)
  50. handle = Instance.new("Part",gun)
  51. handle.Size = Vector3.new(0.675, 1.213, 2.123)
  52. handle.Name = "Handle"
  53. handle.BrickColor = BrickColor.Black()
  54. handle.Material = Enum.Material.Neon
  55. mesh = Instance.new("FileMesh",handle)
  56. mesh.MeshId = "rbxassetid://435705367"
  57. mesh.Scale = Vector3.new(0.675/10, 1.213/10, 2.123/10)
  58. fire = Instance.new("Sound",handle)
  59. fire.Volume = 0.5
  60. fire.SoundId = "rbxassetid://1095911222"
  61. fire.TimePosition = 2.2
  62. begone = Instance.new("Sound",head)
  63. begone.Volume = 1
  64. begone.SoundId = "rbxassetid://1095911222"
  65. begone:Play()
  66. repeat
  67. wait(0.01)
  68. until begone.IsLoaded and begone.IsPlaying
  69. for i=1, 8 do
  70. wait(0.25)
  71. part = Instance.new("Part",workspace)
  72. part.Anchored = true
  73. part.Size = Vector3.new(2,2,2)
  74. part.CFrame = ra.CFrame + Vector3.new(math.random(-1,1),0,math.random(-1,1))
  75. part.BrickColor = BrickColor.new("Really red")
  76. part.Material = Enum.Material.Neon
  77. part.CanCollide = false
  78. part.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(math.random(5,10),math.random(5,10),math.random(5,10))
  79. game.Debris:AddItem(part,1)
  80. end
  81. gun.Parent = char
  82. hum.PlatformStand = false
  83. explosion(ra.Position,BrickColor.new("Really red"),2.5)
  84. mouse = nil
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102. gun.Unequipped:connect(function()
  103. print("goodbye then")
  104. explosion(handle.Position,BrickColor.new("Really red"),1)
  105. end)
  106. gun.Equipped:connect(function(tmouse)
  107. mouse = tmouse
  108. print("time to banish some thots")
  109. explosion(handle.Position,BrickColor.new("Really red"),1)
  110. end)
  111. gun.Activated:connect(function()
  112. fire.TimePosition = 2.2
  113. fire:Play()
  114. local ray = Ray.new(handle.CFrame.p, (mouse.Hit.p - handle.CFrame.p).unit * 300)
  115.         local part, position = workspace:FindPartOnRay(ray, lp.Character, false, true)
  116.  
  117.         local beam = Instance.new("Part", workspace)
  118.         beam.BrickColor = handle.BrickColor
  119.         beam.FormFactor = "Custom"
  120.         beam.Material = "Neon"
  121.         beam.Transparency = 0
  122.         beam.Anchored = true
  123.         beam.Locked = true
  124.         beam.CanCollide = false
  125.  
  126.         local distance = (handle.CFrame.p - position).magnitude
  127.         beam.Size = Vector3.new(0.3, 0.3, distance)
  128.         beam.CFrame = CFrame.new(handle.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  129.  
  130.         game:GetService("Debris"):AddItem(beam, 0.1)
  131.  
  132.         if part then
  133.             local humanoid = part.Parent:FindFirstChild("Humanoid")
  134.  
  135.             if not humanoid then
  136.                 humanoid = part.Parent.Parent:FindFirstChild("Humanoid")
  137.             end
  138.  
  139.             if humanoid then
  140.                 victimchar = humanoid.Parent
  141.                 gc = victimchar:GetChildren()
  142.                 for a=1, 10 do
  143.                     wait(0.1)
  144.                     for i=1, #gc do
  145.                         if gc[i].ClassName == "Part" or gc[i].ClassName == "Union" or gc[i].ClassName == "MeshPart" then
  146.                             gc[i].Anchored = true
  147.                             gc[i].Transparency = gc[i].Transparency + 0.1
  148.                             if gc[i]:FindFirstChildOfClass("Decal") then
  149.                                 gc[i]:FindFirstChildOfClass("Decal").Transparency = gc[i]:FindFirstChildOfClass("Decal").Transparency + 0.1
  150.                             end
  151.                         end
  152.                         if gc[i].ClassName == "Hat" or gc[i].ClassName == "Accessory" then
  153.                             gc[i]:FindFirstChildOfClass("Part").Transparency = gc[i]:FindFirstChildOfClass("Part").Transparency + 0.1
  154.                         end
  155.                     end
  156.                 end
  157.                 for i=1, #gc do
  158.                     if gc[i].ClassName == "Part" or gc[i].ClassName == "Union" or gc[i].ClassName == "MeshPart" then
  159.                         gc[i]:BreakJoints()
  160.                     end
  161.                 end
  162.             end
  163.         end
  164. end)
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190. wait(0.1)
  191. gun.Parent = nil
  192. wait(0.1)
  193. gun.Parent = char
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233. hum.Died:connect(function()
  234. de = Instance.new("Explosion")
  235. de.BlastPressure = 9999999
  236. de.BlastRadius = 9999999
  237. de.Position = head.Position
  238. de.Parent = workspace
  239. m = Instance.new("Message",workspace)
  240. m.Text = "PRAISE "..string.upper(char.Name).." "..tostring(math.random(1,100000)).." TIMES A DAY!\nBEGONE, THOT!"
  241. game.Debris:AddItem(m,5)
  242. end)
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260. while true do
  261. wait(0.01)
  262. handle.BrickColor = BrickColor.Random()
  263. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement