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

1 comment

0

You can't get the LocalPlayer on the server