Here's a script that I made a while back..
local sp=script.Parent
local head=sp:WaitForChild("Head")
local fireballscript=sp:WaitForChild("FireballScript")
function breathefire()
local fireball=Instance.new("Part")
fireball.Transparency=1
fireball.Name="FireEffect"
fireball.BrickColor=BrickColor.new("Bright orange")
fireball.Shape="Ball"
fireball.Size=Vector3.new(1,1,1)
fireball.CanCollide=false
fireball.CFrame=head.CFrame
fireball.Velocity=head.CFrame.lookVector*50
fireball.TopSurface=("Smooth")
fireball.BottomSurface=("Smooth")
local fire=Instance.new("Fire")
local firescript=fireballscript:clone()
firescript.Parent=fireball
firescript.Disabled=false
fireball.Parent=game.Workspace
end
while true do
wait(3)
breathefire()
end
Name that script "DragonMainScript"..
Then, insert this script under the name "FireballScript"..
local sp=script.Parent
local debounce=true
function burn(hit)
if hit and hit.Parent and hit.Parent.Name~="Toothless" and hit.Name~="Handle" and hit.Name~="FireEffect" then
debounce=false
local humanoid=hit.Parent:FindFirstChild("Humanoid")
if humanoid then
humanoid:TakeDamage(99)
end
local fire=sp:FindFirstChild("Fire")
if fire then
fire.Enable
end
sp=Anchored=true
wait(3)
sp:destroy()
end
end
sp.Touched:connect(burn)
3 comments
Sorry, I don't know how to make it look like a script :/
Highlight it, then click the "Lua" button
Thanks, i never knew how to do that XD