Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to make a click for cash script only give money to the player who is clicking it?

I've tried multiple tutorials and scripts on how to make a click for cash script, but none of them work anymore, and the scripts that work, except for one. However, the only working script gives everyone in the server the cash too. How do I make it so the player the clicks the block gets the money instead of everyone?

1 comment

0

There are many free models you could take, some slight adjustments can be done. You can get Zed's Tycoon model and extract the cash giver model. Then some adjustments will work fine,

1 answer

✓ Accepted answer

So as an example:

game.Workspace.YourPart.ClickDetector.MouseClick:Connect(function(playerWhoClicked)
															
playerWhoClicked.leaderstats.Cash.Value = playerWhoClicked.leaderstats.Cash.Value + 5

 													


end)

Hope this helps! If it does, please accept the answer! Thanks!

This discussion is preserved as it was. New answers, comments, and votes are closed.