Proximity prompt not working

Its not printing triggered.
The code is in a local script located in starter player scripts

local proxmity = game.Workspace:WaitForChild("ProxPart").ProximityPrompt
local function start()
	print("triggered")
end
proxmity.Triggered:Connect(start)
1 Like

Prompt.Triggered doesn’t work in LocalScripts. You’ll need to use a server Script.

Edit: If a server script won’t work for your use case, you can use ProximityPromptService.PromptTriggered on the client.

but what I want is for there to be a GUI, since my actual script has
local player = game.Players.LocalPlayer
local playerGui = player.PlayerGui
then how do I incorporate these when the player activates prompt?

nvm i just made it into 2 separate ones

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.