do in that button, if player click, the game check the player EXP
i mean like
Button = Script.Parent
local Player = game.Players.LocalPlayer
Button.MouseButton1Click:Connect(function()
if (Locate the player EXP here) >= (Number) then
print(Player.Name..)
end
end)
local Player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function()
local EXP = Player.Stats.EXP
If EXP.Value >= 100 then
print("Works")
Else
print("Can't")
end
end)
It Doesn’t Work, This Is How The Player Is Organized.
local Player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function()
local XP = Player:WaitForChild("Stats").EXP
if XP.Value >= 100 then
print("Works")
Else
print("Can't")
end
end)