local Players = game:GetService(“Players”)
local Part = script.Parent.Parent.ProximityPrompt.ScreenGui
local Gui = Part:FindFirstChildOfClass(“ScreenGui”)
local Prompt = script.Parent.Parent.ProximityPrompt
local PlayerGui = Players.LocalPlayer.PlayerGui
local GuiClone = Gui:Clone()
GuiClone.Parent = PlayerGui
Proximity Prompts should be handled on the server, and GUI stuff should be handled on the client. Connect the two with a remote event.
Oh ok i didn’t know that I will try
Prompts can be handled via local scripts but this script is all over the place.
Also your local script is in workspace so won’t run at all - as per this page: LocalScript