Passing mouse position to server via Remote Event isnt working

i really dont know why this isnt working, when I try to pass the vector the server just receive my player instance

LocalScript:
image
ServerScript:
image
Output:

is there any way to pass the vector value from the client to the server?

1 Like

OnServerEvent always has the player who fired it as the first parameter. Simply change

OnServerEvent:Connect(function(mp)

To

OnServerEvent:Connect(function(plr, mp)

You dont have to use “plr” if you dont want to, its just how the system works.
(its also why its printing your username instead of a position)

2 Likes

omg bro, im so dumb, i forgot that XDDDDDD, Thanks you very much my friend

1 Like

No problem! Glad i could help!

1 Like

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