print("point")

function onPlayerEntered(newPlayer)
	local stats = Instance.new("IntValue")
	stats.Name = "leaderstats"


	
	local points = Instance.new("IntValue") 
	
	points.Name = "Points"				   --Change To what ever you want to
	points.Value = 0					   --Points (Or what ever you made on "") Value - the amout of points you start with

	points.Parent = stats
	
	stats.Parent = newPlayer
end

game.Players.ChildAdded:connect(onPlayerEntered)


I made the leaderstat like this plz help me. add plr {leaderstat(name)} (amount to add)

2 comments

0

By Kohl's Admin, do you mean Scripth's or Kohl's V2? Also, if you're using Scripth's Admin, there's an example command refence to help players somewhat understand how the admins & commands work.

0

To note, both Admins scripts have a leaderstats editor in them: the command is "change plyr exp," unless Scripth changed the name or removed it; all in all, you don't need to create a custom command for this: it should exist w/in the admin itself.