Whenever I try to send an object through a remote event (to the client), the object returns as nil

Whenever I try to send an object that was cloned in the server to the client via a remote event, it returns as nil.

Client:

Server:
image

Output:

2 Likes

The following topic may interest you:

The quick answer if you’re lazy to read it is the following:

--your code
task.wait(1) --assuming the average client has 1k ping for some reason
rs.promptevent:FireClient(p1, proximityprompt, p1)
print(proximityprompt.Name)
--rest of your code
3 Likes

Why not just clone the proximity prompt with a script inside already detecting when another player has pressed it, hiding it for the owner of the player, and start doing the rest of whatever you wanted from there

1 Like

Because from what I’ve heard, the triggered event is clientside, and localscripts can’t be run from the workspace. (Please correct me if thats wrong)

My bad, your solution was correct.

1 Like

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