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

How would I be able to only let a Team open and view proximity prompt??

Asked by 2 years ago

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

0
What's the first script for Cause it just open proximity prompt blue_bunny0fficl 98 — 2y
0
It is the original script opening a gui. Second script is the one I try modifying theking66hayday 841 — 2y

Answer this question