Remote events acting up

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!
    Send a ball through a remote event (server to local)
  2. What is the issue? Include screenshots / videos if possible!
    It returns nil
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    Ive looked through here and found nothing

My server script look like this

Clones ball
Gives ball propertys
Sends ball through remote event like this :fireclient(player, ball)

Local script looks like this

Function(ball)
Print(ball)

It returns nil

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

You can’t just give extremely vague pseudocode if you want assistance.
We need to actually see the code in order to help.

1 Like

I cant give my real code til like in 4hrs from now so…

Ill send it as soon as i can tho

You cannot send a ball through the client. However, you are allowed to send data using remote events and use those data to create the ball on the server side.

I’d suggest to make a folder where you clone the ball and use .ChildAdded from the local script to check if a new ball is added.

Would look something like this

local Folder = workspace:WaitForChild("Balls")

Folder.ChildAdded:Connect(function(ball)
      -- Do stuff
end)

This would probaly work but there is multiple sounds for ex. Explosion, sonic boom, fire, rolling, and ice so i need to send that specific sounf i do think of 1 thing but whats your oppinion on how to do this? I was thinking i could have a string value inside the ball and depending on the speed of the ball i could rename it “explosion” and then on the local side i check if its named “explosion” or another sound

Just to clarify yall im cloning the ball server side then sending it through a remote event to a local script to play the sound for the player

Quick note il get my script in here in an hour or 2 i havent been at a computer for like 20 hours

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