-- NinjoOnline --
local sword2level = 5
local sword3level = 10
local sword4level = 20
print("0")
while wait() do
for _, player in pairs(game.Players:GetPlayers()) do
if player then
print("1")
local shop = player:WaitForChild("Shop")
if shop then
print("2")
local stats = player:WaitForChild("leaderstats")
if stats then
print("3")
local level = stats:WaitForChild("Level")
if level then
print("4")
level.Changed:connect(function(playerLevel)
print("5")
if playerLevel >= sword2level then
print("6")
shop:WaitForChild("KnightsSword").Value = true
elseif playerLevel >= sword3level then
shop:WaitForChild("ShadowDancer").Value = true
elseif playerLevel >= sword4level then
shop:WaitForChild("OrcBlade").Value = true
end
end)
end
end
end
end
end
end
The script is located inside serverscriptstorage and is a serverscript. It prints 0, but thats it. Please help.

4 comments
it is in erverscriptstorage
There is no serverscriptstorage, just ServerScriptService and ServerStorage. I presume you mean ServerScriptService?
It should be in ServerScriptService, else (if it's in ServerStorage) the script wouldn't run.
oh yeah sorry, i meant it was in the serverscriptservice :P