So i have an issue where i have 2 players in a server in my game, and theres a proximity prompt that spawns on each players torso. So when the first person joins the game and then the second, the first person who joined is able to activate the proximity prompt on the other player. Meanwhile the second person who joined cannot activate the proximity prompt on the first player
Cant find a solution to this
code
game.Players.PlayerAdded:Connect(function(player)
wait(1.5)
local clone = script.Parent.ScarePrompt:Clone()
local character = player.Character
clone.ObjectText = player.Name
if character:FindFirstChild("UpperTorso") then
clone.Parent = character:WaitForChild("UpperTorso")
else
clone.Parent = character:WaitForChild("Torso")
end
end)