[🎃] RIVALS
949 Views
27 Executions

api opensource for teamcheak or idk

RIVALS
igorgames
igorgamesPublished 10
8 months ago
Please login to perform these actions:

api opensource for teamcheak or idk is a RIVALS script for Roblox, uploaded to ScriptBlox on Mar 1, 2026.

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

i not know is working

View Raw
local function if_player_is_on_round_or_another(player)
	return player:GetAttribute("EnvironmentID") ~= nil
end

local function chid_to_id(chid)
	return string.byte(chid or string.char(0))
end

local function id_to_chid(id)
	return string.char(id or 0)
end

local function get_every_player_in_Environment(id)
	local output = {}
	for k, v in pairs(game:GetService("Players"):GetChildren()) do
		if v:IsA("Player") and if_player_is_on_round_or_another(v) and chid_to_id(v:GetAttribute("EnvironmentID")) == id then
			table.insert(output, {["chidteam"] = v:GetAttribute("TeamID"),["player"] = v})
		end
	end
	return output
end

local function get_every_player_in_Environment_but_without_thisteam(id,id2)
	local output = get_every_player_in_Environment(id)
	for k = #output, 1, -1 do
    	local v = output[k]
    	if chid_to_id(v["chidteam"]) == id2 then
    	    table.remove(output, k)
    	end
	end
	return output
end

local function get_every_player_in_Environment_but_only_enemy(id,id2)
	local output = get_every_player_in_Environment(id)
	for k = #output, 1, -1 do
    	local v = output[k]
    	if chid_to_id(v["chidteam"]) ~= id2 then
    	    table.remove(output, k)
    	end


Comments

2
Log in to join the conversation. Login
MenCofing's profile picture
MenCofing8 months ago

i can use for my next addon for rivals duels?

1
igorgames's profile picture
igorgamesUploader8 months ago

@MenCofing yea i guess

1

Tags

More RIVALS scripts

See all
[🎃] RIVALS
626.8k
11.3k
Bumped 2 years ago
Paid
[🎃] RIVALS
474.1k
5.1k
2 years ago
Key System
[🎃] RIVALS
17.8k
139.5k
Bumped 1 day ago
Key System
[🎃] RIVALS
570
1.0k
Approved 1 day ago