Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make so that only one team gets Money when killing other players?

Asked by 3 years ago

how do i make a script so that only one team gets Money when killing other players?

i mean so that if other players gets cash on kill this wont work bc its only one team that should get the cash on kill

please help me!

1 answer

Log in to vote
0
Answered by
Despayr 505 Moderation Voter
3 years ago
Edited 3 years ago

Assuming you already have the code that awards the money when a Player has vanquished another, you can add a check.

local Teams = game:GetService("Teams")
if player.Team == Teams.YourTeamHere then
    --award the player
end
Ad

Answer this question