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

i have effects for an attack script but they dont pop up?

Asked by
Roguzy 2
4 years ago

lualuaEnabled = true Combo = 1 game.StarterPack.s.Function.OnServerEvent:connect(function(Player, Action, V1) local c = Player.Character if Enabled == false then return end if Action == "Combat" then Enabled = false if Combo == 1 then

        local Track = Instance.new("Animation")
        Track.AnimationId = "rbxassetid://4804402067"
        local Anim = c.Humanoid:LoadAnimation(Track)
        Anim:Play()

        c.Humanoid.WalkSpeed = 8

        local FX = game.Workspace.FX.Neneffect:Clone()
        FX.CFrame = c.RightHand.CFrame*CFrame.new(0,0,.1)
      local Weld = Instance.new('WeldConstraint',FX)
        Weld.Part0 = FX
        Weld.Part1 = c.RightHand

    wait(0.75)
      FX:Destroy()
    c.Humanoid.WalkSpeed = 16
    local Region = Region3.new(V1-Vector3.new(2,2,2),V1+Vector3.new(2,2,2))
    local RTable = workspace:FindPartsInRegion3(Region, nil, 20)
    for i,v in pairs(RTable) do
        if v.Parent:findFirstChild("Humanoid") and v.Parent:FindFirstChild("Deb") == nil and v.Parent ~=c then
            local Deb = Instance.new("BoolValue", v.Parent)
            Deb.Name = "Deb"
            game.Debris:AddItem(Deb,0.2)
                v.Parent.Humanoid:TakeDamage(8)
                 local BV = Instance.new("BodyVelocity", v)
                BV.MaxForce = Vector3.new(25000,100000000,25000)
                BV.Velocity = c.HumanoidRootPart.CFrame.lookVector*28
                game.Debris:AddItem(BV,0.9)





           end
       end
    end
    wait(0.2)
    Enabled = true

end

end) for some reason the FX doesn't appear in game at all and nothing is showing in the out put the whole script works besides the FX like i can do the whole attack but the FX refuses to appear

Answer this question