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)