#Parameter from Remote Event keeps printing player name and not numerical value

1 messages · Page 1 of 1 (latest)

cunning heath
#

On a local script within StarterPlayerScripts, I have a script that gets the player's cursor and converts that to a 3D position. Meanwhile, in ServerScriptService, I have a script that clones a part, and should take the 3D position calculated within the StarterPlayerScript script and set the part's position to that 3D position. However, when trying to do this, I noticed the part would change locations once. In debugging (by printing) I realized that the parameter being sent through the Remove Event (mouse3DPosition) isn't being printed as 3 separate values, but instead one value, and that value being the player's name. The first image attached shows this (line 23 along with the console output).

#

I decided to print straight from the StartPlayerScript script, which printed what was intended. But for some reason, this changes when it goes through a Remote Event and is sent to the ServerStorageScript. Why?

pallid cloak
#

Add a second one, that will be the one you sent through

#

I mean like what you are putting in the parentheses, in your case it’s “mouse3Dlocation”

cunning heath
#

so... how do i actually get the mouse3Dposition from the remote event call? do i leave the first parameter blank??

#

it still prints just the player name

#

nevermind

#

after looking at a forum post

#

oh yup

#

im stupid, thanks