RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Create a script inside a screen gui and make the frame only show for a certain team"
-- local script inside a ScreenGui local Players = game:GetService("Players") local Teams = game:GetService("Teams") local Frame = script.Parent.Frame local targetTeam = "Red Team" -- Change this to the desired team name local function updateVisibility() local player = Players.LocalPlayer local team = player.Team if team and team.Name == targetTeam then Frame.Visible = true else Frame.Visible = false end end Players.LocalPlayer:GetPropertyChangedSignal("Team"):Connect(updateVisibility) updateVisibility()