So, I use a prompt handler but I donât think it will fix your problem as its for debugging. If you were able to fire the event in a baseplate project something must be interfering with a event or something. I donât know(without knowing lots of the scripts) if I can fix the problem from here, so good luck!
No worries(I actually started yesterday believe it or not) I suggest reading this post for more info on prompt handlers but yea.
PromptManager code
local ProximityPromptService = game:GetService("ProximityPromptService")
-- Detect when prompt is triggered
local function onPromptTriggered(promptObject, player)
print(player.Name.." Triggered a propmt event")
end
-- Detect when prompt hold begins
local function onPromptHoldBegan(promptObject, player)
print(player.Name.." Started a propmt event")
end
-- Detect when prompt hold ends
local function onPromptHoldEnded(promptObject, player)
print(player.Name.." Ended a prompt event")
end
-- Connect prompt events to handling functions
ProximityPromptService.PromptTriggered:Connect(onPromptTriggered)
ProximityPromptService.PromptButtonHoldBegan:Connect(onPromptHoldBegan)
ProximityPromptService.PromptButtonHoldEnded:Connect(onPromptHoldEnded)
He has working code, but the code doesnât seem to function in the certain place(to my knowledge). I think something has to be blocking the triggered event cause it works on a baseplate but not the certain place.