Prompt on players to invite them

Hello i need a script where every players have a prompt and when im triggering it a gui appears for him

I tried making my own system but the prompt only appears for the local player for no reason :

-- local script in StarterCharacterScripts
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local remote = game.ReplicatedStorage.AttachPart
local ProximityPromptService = game:GetService("ProximityPromptService")



remote:FireServer()

--Server script in ServerScriptService

local remote = game.ReplicatedStorage.AttachPart
local Part = game.ReplicatedStorage.PartToAttach

remote.OnServerEvent:Connect(function(player)
	local clone = Part:Clone()
	Part:Clone()
	local character = player.Character
	clone.Parent = character
	local weld = Instance.new("WeldConstraint")
	weld.Parent = character
	weld.Part0 = clone
	weld.Part1 = character.HumanoidRootPart
	clone.Position = character.HumanoidRootPart.Position
	clone.Name = "PartWithPrompt"
	clone.Transparency = 0
	clone.CanCollide = false
	print("everything")
	local Prompt = Instance.new("ProximityPrompt", character:FindFirstChild("PartWithPrompt"))
	
end)
-- Local script in StarterCharacterScripts
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local remote = game.ReplicatedStorage.AttachPart
local ProximityPromptService = game:GetService("ProximityPromptService")

remote:FireServer()

-- Server script in ServerScriptService
local remote = game.ReplicatedStorage.AttachPart
local Part = game.ReplicatedStorage.PartToAttach

remote.OnServerEvent:Connect(function(player)
    local clone = Part:Clone()
    clone.Parent = player.Character
    local weld = Instance.new("WeldConstraint")
    weld.Parent = player.Character
    weld.Part0 = clone
    weld.Part1 = player.Character.HumanoidRootPart
    clone.Position = player.Character.HumanoidRootPart.Position
    clone.Name = "PartWithPrompt"
    clone.Transparency = 0
    clone.CanCollide = false
    
    local Prompt = Instance.new("ProximityPrompt", clone)
    -- Customize the prompt properties here if needed
    
    print("Prompt created for player:", player.Name)
end)