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

0

Did you know you can use LocalPlayer instead of script.Parent.Parent.Parent.Parent.Parent.Parent.Parent?

0

lol

0

sometimes i forget

0

._.

0

How could you forget when you have to write Parent over ten quintillion times?

0

lol

0

LMAOO

0

Hmm, looking at the script, you look like you're trying to replicate LoL, but after a while you will get copyrighted... lol

0

not my game a friend asked me to work with him