The script is pretty simple, it should just put a proximity prompt on the player. However, it doesn’t work.
My script is:
game.Players.PlayerAdded:Connect(function(player)
Instance.new("ProximityPrompt",player.Character)
end)
The script is pretty simple, it should just put a proximity prompt on the player. However, it doesn’t work.
My script is:
game.Players.PlayerAdded:Connect(function(player)
Instance.new("ProximityPrompt",player.Character)
end)
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
local Proximity = Instance.new("ProximityPrompt")
Proximity.Parent = char
end)
end)
Don’t use the parent argument of Instance.new
, it will slow down your scripts.