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

help the fire wont come and i dont know that is wrong?

Asked by 7 years ago
local humanoid = script.Parent:WaitForChild('Humanoid')
    local anim = Instance.new("Animation")
    anim.AnimationId = "https://www.roblox.com/item.aspx?id=776759525"
    local playAnim = humanoid:LoadAnimation(anim)
    Player = script.Parent.Parent

    local usrInpServ = game:GetService('UserInputService')
    if script.Parent.Parent.UpperTorso.Fire = nil then
        x = Instance.new("Part")
        x.BrickColor = BrickColor.new("Dark red")
        x.Size = Vector3.new(12, 12, 12)
        x.TopSurface = "Smooth"
        x.BottomSurface = "Smooth"
        x.Shape = "Ball"
        x.Name = Player.Name
        x.CanCollide = true
        x.Transparency = 0.8
        fd = script.Firedamage:clone()
        fd.Parent = x
        y = Instance.new("BodyVelocity")
        y.maxForce = Vector3.new(math.huge, math.huge, math.huge)
        y.velocity = Player.Character.UpperTorso.CFrame.lookVector*70
        x.Parent = Workspace
        y.Parent = x
        f = Instance.new("Fire", x)
        f.Size = 30
        f.Heat = 5
        x.CFrame = Player.Character.UpperTorso.CFrame*CFrame.new(0, 0, -12)
        fd.Disabled = false
        game.Debris:AddItem(x, 6)


    end 



    usrInpServ.InputBegan:connect(function(input, gameProcessedEvent)
        if input.UserInputType == Enum.UserInputType.Keyboard then -- input must be a keyboard
            if input.KeyCode == Enum.KeyCode.Z then -- check key press
                playAnim:Play() -- plays animation

            end
        end
    end)

this is a naruto move but it wont work

Answer this question