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

I need help with my attack that i have made, can u help me ?

Asked by 3 years ago
elseif Value == "FlamePillarHolding" then -- If the attack is a held flame pillar

        character.Humanoid.WalkSpeed = 0
        character.Humanoid.JumpPower = 0 -- Have to make the player unable to move

        local a = Instance.new("Animation", character) -- Creating an animation
        a.Name = "FlamePillarHolding"
        a.AnimationId = "rbxassetid://6879113454" -- Giving it the animation id
        local al = character:WaitForChild("Humanoid"):LoadAnimation(a) -- Creating the animation loader
        al:Play() -- Making our animation play

        local holdingValue = Instance.new("IntValue", character)
        holdingValue.Name = "holdingValue"
        holdingValue.Value = 1

        while character:FindFirstChild("holdingValue") do
            wait()
            if character:FindFirstChild("holdingValue").Value > 30 then
                break
            else
                character:FindFirstChild("holdingValue").Value = character:FindFirstChild("holdingValue").Value + 0.5
            end
        end

its the sample of my code since it like 300 lines long and wont fit in the question the problem is the holding value but idk what to do its meant to increase in size up to 30

0
maybe adding to the value while the leftclick is being held down. Zeta_Dev 34 — 3y

Answer this question