im a little new to scripting but why doesn't this fire?
localscript
local proxy = script.Parent.ProximityPrompt
local event = game:GetService("ServerStorage"):WaitForChild("HasCrowbar")
if event.OnClientEvent then
proxy.Enabled = true
end
event.OnClientEvent:Connect(oneventFired)
here's the other side of the code
script
local promt = script.Parent
local original = game:GetService("ReplicatedStorage"):WaitForChild("Crowbar")
local event = game:GetService("ServerStorage"):WaitForChild("HasCrowbar")
local spots = script.Parent.Parent.Parent
promt.TriggerEnded:Connect(function(player)
local new = original:Clone()
new.Parent = player.Backpack
print("player has crowbar")
event:FireClient(player)
wait(0.2)
spots:Destroy()
end)

3 comments
the code did not work unfortunately, I've edited my post to show the other side
Are you trying to disable the proximity prompt?
im trying to enable it