ProximityPrompt not working

Proximity Prompt isn’t working… anybody know why?

The parent is a Union (don’t suppose this can be the problem)

LOCAL SCRIPT:

local proximityPromp = script.Parent.ProximityPrompt
    script.Parent.ProximityPrompt.ClickablePromp = true

    proximityPromp.Triggered:Connect(function(player)
        print("Worked!")
    end)

If the Union is in workspace, then it doesn’t work cause Localscripts do not work in workspace, and you miswrote ClickablePrompt, change it to a regular script with this code

local proximityPrompt = script.Parent.ProximityPrompt
proximityPrompt.ClickablePrompt = true

proximityPrompt.Triggered:Connect(function(player)
	print("Worked!")
end)

i tried server scripts as well

It is working now for some reason! Thanks!

Could it be the typo then? Cause you wrote ClickablePrompt as ClickablePromp

And anytime! If you have anymore issues don’t be afraid to make another post!

Could be, but doubtful… Thanks! (since i don’t think I changed it, i think i removed that line )