this local script is meant to hide a proximity prompt for other teams and should be shown on one team only, works in studio but when i actually play in the real published game, it just shows for everyone
while wait(.001) do
local plr = game:GetService("Players").LocalPlayer
if plr.Team == game.Teams["Combine"] then
workspace.APARTMENTDOORS1.Door.Breach.ProximityPrompt.Enabled = true
else
workspace.APARTMENTDOORS1.Door.Breach.ProximityPrompt.Enabled = false
end
end
Yeah, even if your solution was already found this code does not need to be looped.
Much better to use a change function then looping this code.
Glad you found your solution though, and we are just trying to help you improve your code!