Basically When you touch a part it will give you Money
game.Players.PlayerAdded:connect(function(p) local stats = Instance.new("IntValue") stats.Name = "leaderstats" stats.Parent = p local money = Instance.new("IntValue") money.Name = "Strength" money.Value = 0 money.Parent = stats end
There is my script hope somebody can Help me with this
You got the leaderboard ready. Now create a brick and insert script inside it and type this:
script.Parent.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then local player = game.Players:GetPlayerFromCharacter(hit.Parent) player.leaderstats.Strength.Value += 5 -- You can change 5 to the amount you want to give. end end)
Hope it helps