local UIS = game:GetService(“UserInputService”)
local holding = false
local chakraevent = game.ReplicatedStorage:WaitForChild(“GiveAura”)
local Player = game.Players.LocalPlayer
repeat wait() until Player.Character
Character = Player.Character
local Track1
UIS.InputBegan:Connect(function(Input,isTyping)
if Input.KeyCode == Enum.KeyCode.C then
print(“Charging”)
holding = true
Character.HumanoidRootPart.Anchored = true
Track1 = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Holding)
Track1:Play()
--------Effect
local effect = game.ReplicatedStorage.AuraList.AuraList1.Tier1:WaitForChild("ChakraEffect"):Clone()
local weld = Instance.new("Weld")
weld.Parent = Character.HumanoidRootPart
weld.Part0 = Character.HumanoidRootPart
effect.CanCollide = false
effect.Anchored = false
effect.Parent = Character.HumanoidRootPart
weld.Part1 = Character.HumanoidRootPart.ChakraEffect
while holding == true and Player.ChargeStats.Charge.Value < 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368 + 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368 do
wait(0.1)
print("Health Increase")
chakraevent:FireServer()
end
end
end)
UIS.InputEnded:Connect(function(Input,isTyping)
if Input.KeyCode == Enum.KeyCode.C then
holding = false
Character.HumanoidRootPart.Anchored = false
Track1:Stop()
--------Effect
if Character.HumanoidRootPart:FindFirstChild("ChakraEffect") then
Character.HumanoidRootPart.ChakraEffect:Destroy()
Character.HumanoidRootPart.Weld:Destroy()
end
end
end)