Hi I have been trying to allow a team to be able to open proximity prompt/view it And each time it doesn't work. Script
script.Parent.ProximityPrompt.Triggered:Connect(function(plr) plr.PlayerGui.ScreenGui.Enabled = true end)
Attempts of scripts:
script.Parent.ProximityPrompt.Triggered:Connect(function(plr) if plr.Team == YellowTeam then script.Parent.ProximityPrompt.Enabled = true if not YellowTeam then script.Parent.ProximityPrompt.Enabled = false plr.PlayerGui.ScreenGui.Enabled = true end)
How would I be able to only let YellowTeam open and view proximity prompt??