Answers for "How to make a part that gives money when clicked on in roblos studio"

0

How to make a part that gives money when clicked on in roblos studio

--Make a Part Name it Anything You Want
--Put This Script INSIDE The Part
--Put a Click Detector in
--Officially Made By Rigby#9052 on Discord :D

script.Parent.ClickDetector.MouseClick:Connect(function(player)
	local PlayerPoints = player.leaderstats.Points --Chnage Points With Your Leaderstats Name
	PlayerPoints.Value = PlayerPoints.Value + 5 --Chnage 5 With The Points You Wannt Give 
	
	--Ignore This Below One Only Use If You got 2 leaderstats
	local PlayerExp = player.leaderstats.XP --Chnage Points With Your Leaderstats Name
	PlayerExp.Value = PlayerExp.Value + 5 --Chnage 5 With The Points You Wannt Give 
end) --Dm me On Discord if The Script Has Any Problems My Discord is Rigby#9052
Posted by: Guest on October-19-2020

Code answers related to "How to make a part that gives money when clicked on in roblos studio"

Browse Popular Code Answers by Language