Hello. I've been trying to connect a Proximity Prompt triggered script to a local script with FireClient:(), and whenever I trigger the Proximity Prompt it will print that it fired the client, but the local script when I added the OnClientEvent function, it didn't do or print anything at all. Am I just being dumb, or is there something wrong?
Here's my script:
local Door = script.Parent
local Prompt = Door.Open
local K1Door = game.ReplicatedStorage.Events.K1Door
Prompt.Triggered:Connect(function(player)
K1Door:FireClient(player)
print("fired")
end)
This is my local script:
local K1Door = game.ReplicatedStorage.Events.K1Door
K1Door.OnClientEvent:Connect(function(player)
print("event")
end)
