The script is about a textLabel that shows the level of the local player without it ("it" is the Level) being an IntValue on the Leaderboard.
local textLabel = script.Parent
local Level = ("Level").Name
local XP = ("XP").Name
local Humanoid = script.Parent.Parent.Parent.Parent.Parent.Human
Level.Value = 0
XP.Value = 0
function KillForXP()
XP.Value = XP.Value + 100
wait(0.1)
script:remove()
end
Humanoid.Died:connect(KillForXP)
function XPforLevel
Level.Value = Level.Value + 1 -- here the first Level is red underlined :(, help?
if Level.Value + 1 then
XP.Value = 0
end
wait(0.1)
script:remove
end
XP.Value = 1000:connect(XPforLevel)
textLabel.Text = Level.Value -- the textLabel ( Parent )

13 comments
I think it is very clear...
This has a lot of basic syntax errors. Take a look at http://wiki.roblox.com/index.php?title=Intro_to_Scripting
local Level = ("Level").Name This is your problem.
what should it be?
I did the same thing to the local XP = ("XP").Name and there is no error
Level needs to = where ever the players level is this is from one of my scripts to give you an idea. local Playa = game.Players.LocalPlayer local stuff = Playa:WaitForChild("Stuff") local level = stuff:WaitForChild("Level")
no sense at all...
Okay well I gave you the answer you might need to go to wiki.roblox.com and go learn the basics of scripting before trying to do something when you don't understand the basics of scripting.
Playa? Stuff? I don't know the basic of scripting after all?
Where is the players level value located?
The issues that I notice is lines 2-3: You're trying to get a name from string values. ("Level".Name) To fix this, just define the objects. (For example, if a wanted to get my kill stats,
local Kills = LocalPlayer.leaderstats.Kills)The thing is that I don't want to add leaderstats
You can get rid of the red underline in line 17 by simply adding (), function XPforLevel() and the underline will be gone.