generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: My Toothless scripts wont work

Previous Thread :: Next Thread 
Dysfunctionable is not online. Dysfunctionable
Joined: 28 Jul 2011
Total Posts: 2806
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
lucas200206 is not online. lucas200206
Joined: 06 Dec 2009
Total Posts: 899
26 May 2014 06:06 PM
Line 14, Char 10.

The CanColide property does not exist. Use CanCollide instead.
Report Abuse
Dysfunctionable is not online. Dysfunctionable
Joined: 28 Jul 2011
Total Posts: 2806
26 May 2014 06:07 PM
Thanks.
Report Abuse
Dysfunctionable is not online. Dysfunctionable
Joined: 28 Jul 2011
Total Posts: 2806
26 May 2014 06:09 PM
Change it, but it still isn't working.
Report Abuse
lucas200206 is not online. lucas200206
Joined: 06 Dec 2009
Total Posts: 899
26 May 2014 06:10 PM
What the output window gives you?

NEVER, I mean, NEVER, disable Output window when scripting.
Report Abuse
Dysfunctionable is not online. Dysfunctionable
Joined: 28 Jul 2011
Total Posts: 2806
26 May 2014 06:11 PM
That's why, I didn't have to output window open. :/
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image