Hey! I made a script today but it didn’t work and gave out an error in output. Basically what I want to do is that when a tool is equipped the proximitypromt is enabled and when it is unequipped the proximitypromp is disabled
local ProximityPrompt = script.Parent
local CasetteModel = workspace.Cassette_Tape
local Tool = game.Players.LocalPlayer.Backpack.CassetteTape
local Value = script.Parent.Parent.Value
ProximityPrompt.Enabled = false
Value = false
Tool.Equipped:Connect(function(mouse)
Value = true
end)
Tool.Unequipped:Connect(function()
Value = false
end)
if Value == true then
ProximityPrompt.Enabled = true
elseif Value == false then
ProximityPrompt.Enabled = false
end