Hello Everyone! I am back after from my long uploads. From now on I will be posting weekly. This is the first time I have used my voice in my vids so I'm a bit nervous. I Hope you enjoy the vid! Also like and subscribe. 🚀 Also sorry if the mic is glitching because I had to fix it from time to time. The link for the scripts and for the plugin is in the description! 🙂
local rewardAmount = 10 game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) local humanoid = character:WaitForChild("Humanoid") humanoid.Died:Connect(function() local killer = humanoid:FindFirstChild("creator") if killer and killer.Value and killer.Value:IsA("Player") then local killerPlayer = killer.Value local leaderstats = killerPlayer:FindFirstChild("leaderstats") if leaderstats then local coins = leaderstats:FindFirstChild("Coins") if coins then coins.Value = coins.Value + rewardAmount end end end end) end) end) Let nie know if it works because maybe i failed somewhere! 😊 (Paste it in scriptservice)
Hello Everyone! I am back after from my long uploads. From now on I will be posting weekly. This is the first time I have used my voice in my vids so I'm a bit nervous. I Hope you enjoy the vid! Also like and subscribe. 🚀 Also sorry if the mic is glitching because I had to fix it from time to time.
The link for the scripts and for the plugin is in the description! 🙂
You're back!!
Yeah I am
can you also make a system that let you earn stuff would be cool something like a dummy when you kill him you earn cash
Alr I can do that
local rewardAmount = 10
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
local humanoid = character:WaitForChild("Humanoid")
humanoid.Died:Connect(function()
local killer = humanoid:FindFirstChild("creator")
if killer and killer.Value and killer.Value:IsA("Player") then
local killerPlayer = killer.Value
local leaderstats = killerPlayer:FindFirstChild("leaderstats")
if leaderstats then
local coins = leaderstats:FindFirstChild("Coins")
if coins then
coins.Value = coins.Value + rewardAmount
end
end
end
end)
end)
end)
Let nie know if it works because maybe i failed somewhere! 😊 (Paste it in scriptservice)