Here's the script:
wait()
Player = script.Parent.Parent.Parent.Parent.Parent.Parent.Parent
Strength = Player.Data.Strength
AP = Player.Data.AP
Input = script.Parent.Parent.Input.Value
Enabled = true
script.Parent.MouseButton1Click:connect(function()
if Player.Data.AP.Value >= Input.Value and Enabled == true then
Enabled = false
script.Click:Play()
wait()
AP.Value = AP.Value - Input.Value
Strength.Value = Strength.Value + Input.Value
wait(0.45)
Enabled = true
end
end)
P.S it's a local script inside a button inside a frame inside a gui inside a starter gui

10 comments
Did you know you can use LocalPlayer instead of script.Parent.Parent.Parent.Parent.Parent.Parent.Parent?
lol
sometimes i forget
https://forum.scriptinghelpers.org/topic/489/lmao-only-devs-will-understand check this out
._.
How could you forget when you have to write Parent over ten quintillion times?
lol
LMAOO
Hmm, looking at the script, you look like you're trying to replicate LoL, but after a while you will get copyrighted... lol
not my game a friend asked me to work with him