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??

2 comments
What's the first script for Cause it just open proximity prompt
It is the original script opening a gui. Second script is the one I try modifying