Advertisement
Trioxide

Breathe Fire - StickMasterLuke alternative

May 28th, 2014
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.90 KB | None | 0 0
  1. -- r/ROBLOX
  2. -- u/Quadratum
  3. -- Might not work.
  4.  
  5. local sp = script.Parent
  6. local head = sp:FindFirstChild("Head")
  7.  
  8. breatheFire = function()
  9.     local fireball = Instance.new("Part",game:GetService("Workspace"))
  10.     fireball.Name = "Effect"
  11.     fireball.Transparency = 1
  12.     fireball.FormFactor = "Custom"
  13.     fireball.Size = Vector3.new(2,2,2)
  14.     fireball.CFrame = Head.CFrame
  15.     fireball.Velocity = head.CFrame.lookVector * 50
  16.     local fire = Instance.new("Fire",fireball)
  17.  
  18.     local connection = fireball.Touched:connect(function(hit)
  19.         if hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name ~= "Toothless" and hit.Name ~= "Handle" and hit.Name ~= "Effect" then
  20.             hit.Parent.Humanoid:TakeDamage(23)
  21.             fire.Enabled = false
  22.             fireball.Anchored = true
  23.             game:GetService("Debris"):AddItem(fireball,3)
  24.         end
  25.         connection:disconnect()
  26.     end)
  27. end
  28.  
  29. while true do
  30.     wait(2)
  31.     breathefire()
  32. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement