Advertisement
tiaomafy

bloxy cola that gives sparkles

Feb 23rd, 2021 (edited)
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.82 KB | None | 0 0
  1. local Tool = script.Parent;
  2.  
  3. enabled = true
  4.  
  5.  
  6.  
  7.  
  8. function onActivated()
  9.     if not enabled  then
  10.         return
  11.     end
  12.  
  13.     enabled = false
  14.     Tool.GripForward = Vector3.new(0,-.759,-.651)
  15.     Tool.GripPos = Vector3.new(1.5,-.5,.3)
  16.     Tool.GripRight = Vector3.new(1,0,0)
  17.     Tool.GripUp = Vector3.new(0,.651,-.759)
  18.  
  19.  
  20.     Tool.Handle.DrinkSound:Play()
  21.  
  22.     wait(3)
  23.  
  24.     local h = Tool.Parent:FindFirstChild("Humanoid")
  25.     if (h ~= nil) then
  26.         if (h.MaxHealth > h.Health + 5) then
  27.             h.Health = h.Health + 5
  28.             local sparkles = Instance.new("Sparkles")
  29.             sparkles.Parent = Tool.Parent:WaitForChild("Head")
  30.             wait(2)
  31.             Tool.GripForward = Vector3.new(-.976,0,-0.217)
  32.             Tool.GripPos = Vector3.new(0.03,0,0)
  33.             Tool.GripRight = Vector3.new(.217,0,-.976)
  34.             Tool.GripUp = Vector3.new(0,1,0)
  35.  
  36.             enabled = true
  37.             wait(10)
  38.             sparkles:Destroy()
  39.         else
  40.             h.Health = h.MaxHealth
  41.             local sparkles = Instance.new("Sparkles")
  42.             sparkles.Parent = Tool.Parent:WaitForChild("Head")
  43.             wait(2)
  44.             Tool.GripForward = Vector3.new(-.976,0,-0.217)
  45.             Tool.GripPos = Vector3.new(0.03,0,0)
  46.             Tool.GripRight = Vector3.new(.217,0,-.976)
  47.             Tool.GripUp = Vector3.new(0,1,0)
  48.  
  49.             enabled = true
  50.             wait(10)
  51.             sparkles:Destroy()
  52.         end
  53.     end
  54.  
  55.  
  56.  
  57.  
  58.     Tool.GripForward = Vector3.new(-.976,0,-0.217)
  59.     Tool.GripPos = Vector3.new(0.03,0,0)
  60.     Tool.GripRight = Vector3.new(.217,0,-.976)
  61.     Tool.GripUp = Vector3.new(0,1,0)
  62.  
  63.     enabled = true
  64.  
  65. end
  66.  
  67. function onEquipped()
  68.     Tool.Handle.OpenSound:play()
  69. end
  70.  
  71. script.Parent.Activated:connect(onActivated)
  72. script.Parent.Equipped:connect(onEquipped)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement