local function AddToNoobs()
if script.Parent.Parent.Parent.Parent.Parent.Noob.Noobs.Value <= 25 then
game.StarterGui.ScreenGui.TextLabel.Visible = true
wait(5)
game.StarterGui.ScreenGui.TextLabel.Visible = false
else
script.Parent.Parent.Parent.Parent.Parent.Noob.Noobs.Value = script.Parent.Parent.Parent.Parent.Parent.Noob.Noobs.Value + 1
end
end
script.Parent.MouseButton1Click:Connect(AddToNoobs)
As I said, no errors appear, the main part that I believe is not working is the statement to make the TextLabel visible, as everything else in the script works. My script can't be local due to the fact that I need to edit the leaderstats.

2 comments
You cant change a player's gui with the StarterGui, assuming this is a local script, use the hierarchy like you did for the noobs value to get the textlabel instead
First i'd go ahead and make a variable for the value instead of typing that long thing every time