Whenever I try either:
The proximity prompt ends up not showing up for ANYONE
or the proximity prompt stays visible for everyone
local tool = script.Parent.Parent.Parent
local plr = tool.Parent.Parent
local localplr = Players.LocalPlayer
local prox = script.Parent
local function OnEquip()
if plr == localplr then
prox:Destroy()
end
end
tool.Equipped:Connect(OnEquip)```
It looks like you’re using a localscript for this right?
Using Players.LocalPlayer would return the client.
local tool = script.Parent -- place the local script in the tool!
local plr = game.Players.LocalPlayer
local prox = workspace.--set this to be where the prox is located from workspace
local function OnEquip()
prox.Enabled = false
end
local function OnUnequip()
prox.Enabled = true
end
tool.Equipped:Connect(OnEquip)
tool.Unequipped:Connect(OnUnequip)