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

How would I be able to reward money on death?

I'm building a game with my friends and I'm trying to get a script that rewards money when you die.

I have tried one of those Money on Death free models but it doesn't work as it thinks that if I kill a zombie it will give me 5 cash (which I want the humanoid on death to give 10 cash). and not a death of a non-existent zombie.

1 comment

0

use a Humanoid.Died event and the collection service 

1 answer

Judging by how you said you have no idea how to reassign variables, I'm going to assume you have no idea how to script, and because this is not a request site, we can't tell you how to script it.

However, what I can do is point you towards these sources that will teach you how to techniques you can use to figure out how to solve your problem:

https://developer.roblox.com/videos/Intro-to-Scripting-Create-Scripts

https://www.lua.org/manual/5.3/manual.html

If this helps you, then mark it as the correct answer.

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