ProximityPrompt not triggering

Well i was making a game and for some reason proximityprompt is not triggering. i don’t know what i happening so please help!

(local script):

local Camera = workspace.CurrentCamera

local CameraPart = script.Parent.CameraPart
local ShopPart = script.Parent.ShopPart
local ProximityPrompt = ShopPart.ProximityPrompt

	ProximityPrompt.Enabled = false
	Camera.CameraType = Enum.CameraType.Scriptable
	Camera.CameraSubject = CameraPart

	for i = 0,1,.01 do
		Camera.CFrame = Camera.CFrame:Lerp(CameraPart.CFrame, i)

The solution is that proximity prompt don’t work with local script, you will need to get the event with a script and use a Remote Event to give the information to the local script you are using

1 Like

Use RemoteEvent, cause ProximityPrompt doesn’t work on LocalScript

ok it works now! thanks for the help!

u stoled my comment that i said;-;

nop, this was a pleasure to help you