|
| 26 May 2014 06:02 PM |
I did it exactly like the video and no syntax errors, help?
Main Script:
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="Effect" fireball.BrickColor=BrickColor.new("Bright Blue") fireball.Shape="Ball" fireball.Size=Vector3.new(2,2,2) fireball.CanColide=false fireball.CFrame=head.CFrame fireball.Velocity=head.CFrame.lookVector*math.random(30,70) fireball.TopSurface="Smooth" fireball.BottomSurface="Smooth" local fire=Instance.new("Fire") fire.BrickColor=BrickColor.new("Bright Blue") fire.Parent=fireball local firescript=fireballscript:clone() firescript.Parent=fireball firescript.Disabled=false fireball.Parent=game.Workspace end
while true do wait(2) breathefire() breathefire() breathefire() breathefire() breathefire() end
Fireball Script:
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 =="effect" and debounce then debounce=false local humanoid=hit.Parent:FindFirstChild("Humanoid") if humanoid then humanoid:TakeDamage(20) end local fire=sp:FindFirstChild("Fire") if fire then fire.Enabled=false end sp.Anchored=true wait(2) sp:destroy() end end
sp.Touched:connect(burn)
|
|
|
| Report Abuse |
|
|
|
| 26 May 2014 06:06 PM |
Line 14, Char 10.
The CanColide property does not exist. Use CanCollide instead. |
|
|
| Report Abuse |
|
|
| |
|
|
| 26 May 2014 06:09 PM |
| Change it, but it still isn't working. |
|
|
| Report Abuse |
|
|
|
| 26 May 2014 06:10 PM |
What the output window gives you?
NEVER, I mean, NEVER, disable Output window when scripting. |
|
|
| Report Abuse |
|
|
|
| 26 May 2014 06:11 PM |
| That's why, I didn't have to output window open. :/ |
|
|
| Report Abuse |
|
|