I need some help with this "then" is erroring

Hey does anyone know how to fix this for some reason the “then” is error

refinal.MouseButton1Down:Connect(function()
	resetFrame.Visible = not resetFrame.Visible
	
	if game.Players.LocalPlayer.leaderstats.Level.Value == 1<= then
		game.Players.LocalPlayer.leaderstats.Level.Value = 1
	else
		print("Noob ur only level 1 lol")
	end
end)
1 Like

Your if statement is flawed. You put “<=” after 1, which doesn’t make much sense.

This statement below would check if the value is equal to 1:

if game.Players.LocalPlayer.leaderstats.Level.Value == 1 then

This statement below would check if the value is lower than or equal to 1:

if game.Players.LocalPlayer.leaderstats.Level.Value <= 1 then
1 Like

I’m trying to make it say if its more than the 1 then

In that case, you can do the opposite of the “<=” since it is checking if it is lower than or equal to.
You would use “>=”

if game.Players.LocalPlayer.leaderstats.Level.Value >= 1 then
1 Like