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

How to find a player's team by them holding a tool?

Asked by 3 years ago

The tool spawns in workspace and gets picked up. I want to make it so whoever picks it up's team will be found, I've attempted it below.

local Blue = game.Teams.Blue
while true do
local p = game.Players:GetPlayerFromCharacter(script.Parent.Parent)
    if p.Team == Blue then
        print("Team Found")
        wait(5)
    end
end
0
Kinda weird question can you give more detail? cancle5 120 — 3y
0
Okay so the game has a ball and I want it so it will find the player's team that's holding the tool in their hand. NortonHDD 21 — 3y

Answer this question