Okay, so i've made a fireball script for a dragon. When test it, on output it says did you forget a colon? The first argument of WaitForChild must be an Object. And here's the script:
sp = script.Parent
head = script.Parent.WaitForChild("Head")
function fire()
f = Instance.new("Part")
f.Name = "fireball"
f.Shape = "Ball"
f.BrickColor = BrickColor.new("Bright blue")
f.TopSurface = "Smooth"
f.BottomSurface = "Smooth"
f.Size = Vector3.new(3,3,3)
f.CanCollide = false
f.CFrame = head.CFrame
f.Velocity = head.CFrame.lookVector*math.random(60,100)
g = Instance.new("Fire", fireball)
g.Heat = 5
g.Color = Color3.new(255,0,0)
g.SecondaryColor = Color3.new(85,85,85)
fireball.Parent = game.Workspace
end
while true do
wait()
fire()
end

5 comments
Oh, i'm so stupid to even not recognize that! I'd never made a mistake like that before lol!
is there any other problems?
I caught two more things
I dont get the color part. range of R,G and B are [0,1]? Not [0,255]?
Use 0.5, not 127