Problems transmiting data through remote events

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    Transfer a item through a bindable event
  2. What is the issue? Include screenshots / videos if possible!
    It just wont go through and says nil
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    Ive tried looking around but nothing of help
    After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
    Server script(this aint copy and pasted its typed i have no errors)
;Fireclient(player, ball)
``
Local script(again typed)
```lua
Function(ball)
Print(ball)
Ball.explosion:Play()

Note im going to bed so i wont reply

FYI, the whole script just doesn’t make sense and is just broken in general, rendering it illegible and unsolvable for other programmers to help.

i’m guessing you’re trying to pass an instance via a remote event, this can only work if the instance exists on both the server and the client otherwise the other end will receive nil

Im cloning a ball through server storage and sending it through a remote event(sorry for all the mistakes i made this at like 9 for me

1 Like

if it’s not important for the ball to exist on the server, what you could do to make this work is move the ball to ReplicatedStorage, then bind OnClientEvent to do whatever you were doing on the server (passing data if necessary)
if it must exist on both ends then clone it to somewhere the player can see and use WaitForChild() on the client

Its in replicated storage and im sending the local Clonedobject through the event

1 Like

the clone wouldn’t exist on the client so it receives nil, you should clone it on the client when it receives OnClientEvent

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