can someone help me? Power.Value = Power.Value not working D:
This script is in PlayerCharacterScripts
local Player = game:GetService("Players").LocalPlayer
local Character = Player.Character
local Humanoid = Character:WaitForChild("Humanoid")
Humanoid.Jumping:Connect(function()
local Power = Player:WaitForChild("leaderstats"):WaitForChild("Power")
Humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping, false)
Power.Value = Power.Value +0.25
wait(3)
Humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping, true)
end)

3 comments
what is the error
there isnt any error on output
This wont work! Local player cant change values. You can use a RemoteEvent, though!