Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

ProximityPrompt firing, but not executing any code?

Asked by 2 years ago

For some reason, the triggered function fires, but refuses to do any of the things it's supposed to. Note that when I put a breakpoint on the print it successfully breaks, but oddly enough when I remove it it straight up doesn't print anything or trigger the remote event.

local sign = script.Parent
local prox = sign.SignPart.ProximityPrompt
local signevent = game.ReplicatedStorage.SignEvent
prox.Triggered:Connect(function(player)
    print("Interacted!")
    signevent:FireClient(player,prox)
end)

Also weird detail: It completely works unless I use a teleporter script I wrote prior. I have a feeling it is a bug with roblox or I am just completely missing something obvious.

0
Any errors? AProgrammR 398 — 2y
0
This is executed on a server-sided script, right? Can you show us the client-sided script, if possible? NotThatFamouss 605 — 2y
0
And where is the client-sided script located? NotThatFamouss 605 — 2y

Answer this question