#sending cframe positions through remote events

1 messages · Page 1 of 1 (latest)

sterile willow
#

man ive been at this for months across multiple different projects just please how do i do it😭

runic jacinth
#

pass in the cframes as parameters?

sterile willow
#

?

runic jacinth
#

remote:FireServer( parameters )

#

just pass it in as parameters

sterile willow
#

probably should show the code.

script.Parent.tommyServer.fire:FireServer(cam.CFrame.Position,cam.CFrame.LookVector)
runic jacinth
#

position is not a member of cframe

#

remove the position from the first parameter

sterile willow
#

and replace it with what?

runic jacinth
#

just cam.CFrame

sterile willow
#

ooooooooooohhhh

#

holup

runic jacinth
#

bruh

sterile willow
#

not sure how, but now its sending the player.

runic jacinth
#

can you show the whole code?

sterile willow
#

OH SHIT I JUST REALIZED

#

i forgot that onserverevent events' first parameter is the player

runic jacinth
#

bruh

untold spruce
#

Bruh

#

Ain't no way

runic jacinth
#

🥀

sterile willow
#

sorry gang

untold spruce
#

🥀🥀🥀🥀

#

All good

#

At least it works now