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

Shouldn't this script put a proximity part in all the players except local player?

Asked by 3 years ago

I'm not sure why, but this script doesn't seem to work for me. It's a server script. Any help on what I'm doing wrong would be greatly appreciated.

for _, player in pairs(Players:GetPlayers()) do
            if player ~= Players.LocalPlayer then
                --code
                local newprox = Instance.new("ProximityPrompt")
                player.CharacterAdded:wait()
                newprox.Parent = player.Character:WaitForChild("HumanoidRootPart")
                --code end
            end
0
You can't get the LocalPlayer on the server MarkedTomato 810 — 3y

Answer this question