Still have questions? Join our Discord server and get real time help.
2

# is there a script where when i kill something i get 10 coins?

RareBIue 133
2 months ago

Like I already have build my game but I need help on making where when I kill something it gives 10 coins.

0

first, you need to make a leaderboard, make a script in serverscriptservice type this in

local function onPlayerJoin(player)

local coins = Instance.new("IntValue")
coins.Name = "coins"
coins.Value = 0 -- Make this value the amount of money that you want the player to have at the beggining
end

-- Run 'onPlayerJoin()' when the 'PlayerAdded' event fires

if game.Workspace.WhateveryourmonsterNameis.Humanoid.Health == 0 then