game.Players.PlayerAdded:connect(function(plr)
local stats = Instance.new('IntValue', plr)
stats.Name = 'leaderstats'
local experience = Instance.new('IntValue', stats)
experience.Name = 'Experience'
experience.Value = 0
local Level = Instance.new('IntValue', stats)
Level.Name = 'Level'
Level.Value = 0
experience.Changed:connect(function()
Level.Value = math.floor(experience.Value / 100)
end)
end)
game.Workspace.BookshelfFront.Touched:connect()
experience.Value = experience.Value + 1
end
Im trying to make it so when you walk into the BookshelfFront is gives you experience but it doesn't |