#variable not transfering with remote event?

1 messages · Page 1 of 1 (latest)

undone mortar
#

im trying to send a variable with the path for a cloned object. is this not possible? because whenever i try to use it in the local script i comes with an error saying im trying to index nil

#

thise error comes from line 15 in the local script

spiral panther
#

your supposed to have player

#

as the first parameter

#

in .onclientevent

#

though you dont have to when doing fireallclients

undone mortar
#

tried that didnt work

#

but its okay cause i got the script working now

spiral panther
#

sweet

undone mortar
#

im pretty sure you cant send paths through remote events anyways

spiral panther
#

o im pret sure ur passing

#

plr in fire client

undone mortar
#

wdym

spiral panther
#

try removing that

undone mortar
#

ok

spiral panther
#

you pass player as a parameter

#

in fire client

#

so it thinks player

#

is the item

undone mortar
#

no i checked the value in the local script its actually sending nil

#

im sending the name of the part now and just getting it inside the player

spiral panther
#

why cant you just

#

do carryitems.itemthathasprompasachild

#

then whenever u want that prompt you reference it