Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

Why didn't this projectile shoot again?

Asked by 8 years ago
enabled = false
    LeftShoulder = me.Character.Torso["Left Shoulder"]
        Run = game:GetService("RunService")
            for i = 1, 12 do
                LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, -0.16)
                LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, -0, 0)
                Run.Stepped:wait(0.005)
            end
        game:GetService("Chat"):Chat(me.Character.Head, "Flash Bomb!")
        x = Instance.new("Part")
        x.BrickColor = BrickColor.new("New Yeller")
        x.Size = Vector3.new(75,9,5)
        x.TopSurface = "Smooth"
        x.BottomSurface = "Smooth"
        x.Shape = "Block"
        x.Name = me.Name
        x.CanCollide = false
        x.Transparency = 0.4
        fd = script.Firedamage:clone()
        fd.Parent = x
        ad = script.Mesh:clone()
        ad.Parent = x
        y = Instance.new("BodyVelocity")
        y.maxForce = Vector3.new(math.huge, math.huge, math.huge)
        y.velocity = me.Character.Torso.CFrame.lookVector*300
        x.Parent = Workspace
        y.Parent = x
      -- this is sparkles coloring to change the color you have to know your colors(Red, Green, Blue)
        x.CFrame = me.Character.Torso.CFrame*CFrame.new(0, 2, -15)
        fd.Disabled = false

x2 = x:clone()
        x2.BrickColor = BrickColor.new("Really black")
        x2.Size = x.Size * Vector3.new(1.15,1.15,1.15)
        x2.CanCollide = false
        x2.Position = x.Position
        x2.Parent = Workspace
        z2 = x2["Mesh"]
        x2["Firedamage"]:remove()
        fd2 = script.Firedamage2:clone()
        fd2.Parent = x2
        fd2.Disabled = false
        x2.Transparency = x.Transparency * 3
        w1 = Instance.new("Weld", x)
        w1.Part0 = x2
        w1.Part1 = x


--This below is how you make it shoot multiple bolts. change x, 1 to any number you want.
        game.Debris:AddItem(x, 1)
        wait(0.25)
        for i = 1, 12 do
            LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, 0)
            LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, 0.16)
            Run.Stepped:wait(0.01)
        end

      --Heres how long you want it to be before you use it again change wait(2) to anything u want

      wait(1)
      --Here is how i made it able to work again after the time has run out "enabled = true"
enabled = true

     end


enabled = true
function onS(mouse) 
mouse.Button1Down:connect(function() onButton1Down(mouse) end) 
end 
bin.Selected:connect(onS)

Well it worked once, after that it won't work again.

0
Atleast give us a hint on what's wrong like error codes. User#5978 25 — 8y
0
yes error code @dexSeldom SHIFTRK9 -2 — 8y
0
I think the error is around the x2 = x: clone SHIFTRK9 -2 — 8y
0
@SHIFTRK9 Well, by the looks of this, it looks like a Free Model. You're best option is to just search the library. TheHospitalDev 1134 — 8y
0
I know it's free model @SickAtHackers I took the structure of the script except for the infos for the part. SHIFTRK9 -2 — 8y

Answer this question