Advertisement
asdasdaaa11

very safe bloxy cola

Feb 17th, 2021 (edited)
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.72 KB | None | 0 0
  1. local explode = false
  2.  
  3.  
  4. local player = game.Workspace.x_w8
  5. local backpack = game:GetService("Players"):FindFirstChild(player.Name).Backpack
  6.  
  7. local Tool = Instance.new("Tool",backpack)
  8.  
  9. Tool.GripForward = Vector3.new(-0.976, 0, -0.217)
  10. Tool.GripPos = Vector3.new(0.03, 0, 0)
  11. Tool.GripRight = Vector3.new(0.217, 0, -0.976)
  12. Tool.GripUp = Vector3.new(0, 1, 0)
  13. if explode == true then
  14. Tool.Name = "Bloxy Cola?"
  15. else
  16. Tool.Name = "Bloxy Cola"
  17. end
  18. Tool.RequiresHandle = true
  19.  
  20. local handle = Instance.new("Part",Tool)
  21.  
  22. handle.Orientation = Vector3.new(0, -180, 0)
  23. handle.Size = Vector3.new(1, 1.2, 1)
  24. handle.Name = "Handle"
  25.  
  26. local open = Instance.new("Sound", handle)
  27. open.SoundId = "http://www.roblox.com/asset/?id=10721950"
  28. open.Volume = 3
  29.  
  30. local drink = Instance.new("Sound", handle)
  31. drink.SoundId = "http://www.roblox.com/asset/?id=10722059"
  32. drink.Volume = 3
  33.  
  34.  
  35. local boomed = Instance.new("Sound",workspace)
  36. boomed.SoundId = "rbxassetid://5519568804"
  37. boomed.Volume = 6
  38.  
  39. local mesh = Instance.new("FileMesh",handle)
  40.  
  41. mesh.MeshId = "http://www.roblox.com/asset/?id=10470609"
  42. mesh.Scale = Vector3.new(1.2,1.2,1.2)
  43. mesh.TextureId = "http://www.roblox.com/asset/?id=10470600"
  44. mesh.VertexColor = Vector3.new(1, 1, 1)
  45.  
  46. local size = 5
  47. local rate = 10
  48.  
  49. local boom = Instance.new("Part",game:GetService("ReplicatedStorage"))
  50.  
  51. boom.Color = Color3.fromRGB(255,100,0)
  52. boom.Shape = "Ball"
  53. boom.Size = Vector3.new(size,size,size)
  54. boom.Material = "Neon"
  55. boom.CanCollide = false
  56. boom.Anchored = true
  57.  
  58. enabled = true
  59. death = false
  60.  
  61. function onActivated()
  62.  
  63. if not enabled then
  64. return
  65. end
  66. enabled = false
  67.  
  68. Tool.GripForward = Vector3.new(0,-.759,-.651)
  69. Tool.GripPos = Vector3.new(1.5,-.5,.3)
  70. Tool.GripRight = Vector3.new(1,0,0)
  71. Tool.GripUp = Vector3.new(0,.651,-.759)
  72.  
  73. drink:Play()
  74.  
  75. wait(3)
  76. if explode == true then
  77. boom.Position = player.Torso.Position
  78. boom.Parent = game:GetService("Workspace")
  79. boomed:Play()
  80.  
  81. drink.Playing = false
  82.  
  83. player.Humanoid.Health = 0
  84.  
  85. for i=1,100 do
  86. rate /= 1.1
  87. size += rate
  88. boom.Size = Vector3.new(size,size,size)
  89. boom.Transparency += 0.01
  90. wait(0.01)
  91. end
  92. boom:Destroy()
  93. else
  94. wait(0.3)
  95. Tool.GripForward = Vector3.new(-0.976, 0, -0.217)
  96. Tool.GripPos = Vector3.new(0.03, 0, 0)
  97. Tool.GripRight = Vector3.new(0.217, 0, -0.976)
  98. Tool.GripUp = Vector3.new(0, 1, 0)
  99.  
  100. wait(1)
  101. enabled = true
  102. end
  103. end
  104.  
  105.  
  106. function onEquipped()
  107. open:Play()
  108. end
  109.  
  110. function dmg(hit)
  111. if hit.Parent ~= nil then
  112. local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  113. if hum ~= nil and hum.Health > 0 then
  114. hum.Health = 0
  115. end
  116. end
  117. end
  118.  
  119. Tool.Activated:connect(onActivated)
  120. Tool.Equipped:connect(onEquipped)
  121. boom.Touched:connect(dmg)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement