Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

This wont work, also how to do this?

I was making so when you join you get your own dragon. First I made so it will shoot fire, I have the main script and the fire script. BTW this script is from the tutorial from stickmasterluke. Also, I wanted to know if anyone knows how to make so when you join the game, everyone gets their own dragon that only they can ride? The fire wont hurt you when it hits you. I don't know why. Heres the main script first:

01
--Made by BreBreGaming
02
 
03
 
04
 
05
local sp=script.Parent
06
 
07
 
08
local head=sp:WaitForChild("Head")
09
local fireballscript=sp:WaitForChild("FireballScript")
10
 
11
 
12
function breathefire()
13
    local fireball=Instance.new("Part")
14
    fireball.Transparency=1
15
    fireball.Name="FireEffect"
16
    fireball.BrickColor=BrickColor.new("Bright orange")
17
    fireball.Shape="Ball"
18
    fireball.Size=Vector3.new(1,1,1)
19
    fireball.CanCollide=false
20
    fireball.CFrame=head.CFrame
21
    fireball.Velocity=head.CFrame.lookVector*50
22
    fireball.TopSurface=("Smooth")
23
    fireball.BottomSurface=("Smooth")
24
 
25
    local fire=Instance.new("Fire")
26
 
27
    local firescript=fireballscript:clone()
28
    firescript.Parent=fireball
29
    firescript.Disabled=false
30
 
31
    fireball.Parent=game.Workspace
32
end
33
 
34
 
35
while true do
36
    wait(3)
37
    breathefire()
38
end

And heres the fire ball script (the second script):

01
--Made by BreBreGaming
02
 
03
 
04
local sp=script.Parent
05
 
06
 
07
local debounce=true
08
 
09
function burn(hit)
10
    if hit and hit.Parent and hit.Parent.Name~="Toothless" and hit.Name~="Handle" and hit.Name~="FireEffect" then
11
        debounce=false
12
        local humanoid=hit.Parent:FindFirstChild("Humanoid")
13
        if humanoid then
14
            humanoid:TakeDamage(99)
15
        end
16
        local fire=sp:FindFirstChild("Fire")
17
        if fire then
18
            fire.Enable
19
        end
20
        sp=Anchored=true
21
        wait(3)
22
        sp:destroy()
23
    end
24
end
25
 
26
 
27
sp.Touched:connect(burn)


1 answer

Well, for one, you've got a bunch of listed numbers in the scripts, and two, that script was by StickMasterLuke. :l

1 comment

0

What do you think I said? I said i got it from stickmasterluke, and the numbers aren't there in the actual script. I just wanted to test stickmasterlukes thing, but it wouldnt hurt you!

This discussion is preserved as it was. New answers, comments, and votes are closed.