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

How do I fix proximity prompt not showing for other players?

Asked by 3 years ago
Edited 3 years ago

Im making a PickPocket system, but the proximity prompt only show for the "police" team and not the other teams. How can i fix this? It does however show that there is a proximity prompt on the explorer on the client side

TeamService = game:GetService("Teams")

TeamService.Police.PlayerAdded:Connect(function(Player)
    print(Player)
    Player.CharacterAdded:Connect(function(Player)

        local Proximity = Instance.new("ProximityPrompt")
        local Hum = Player:WaitForChild("HumanoidRootPart")
        Proximity.Parent = Hum
        Proximity.HoldDuration = 1
        Proximity.Triggered:Connect(function(Player)
        print(Player.Name)

        end)



    end)


end)

Answer this question