#i get error :((

1 messages · Page 1 of 1 (latest)

safe magnet
#

i could let this slide since it works but i want my game free of errors, how to fix this?

proud imp
#

Hi

safe magnet
#

hi

proud imp
#

You wanna help ?

safe magnet
#

what

#

with what?

safe magnet
#

u asked me if i wanted to help

proud imp
#

Oh

safe magnet
#

but yea i need some help

proud imp
#

For what ?

safe magnet
#

the script fires and it works but somehow it gives me an error

proud imp
#

Ok give me your entire script and I'll give you the correct one

safe magnet
#

no

proud imp
#

Why lol N

#

?

safe magnet
#

i wanna learn why is it happening

proud imp
#

Oh ok

safe magnet
#

is it firing 2 times?

proud imp
#

I understood the error

safe magnet
#

what is it

proud imp
#

means that the function expects a Player object, but something else is being passed. Make sure you’re passing a valid Player instance, not a string or nil. Check your code where you call FireClient and confirm the argument is really a Player. If you want, send me your code and I can help you fix it!

#

Thank you...

safe magnet
#

ty

#

but yea its correct i think

proud imp
#

Do you understand my friends?

safe magnet
#

what?

errant zinc
#

and if player then

safe magnet
#

what does that do

errant zinc
#

make sure the player exists

#

it could NOT get it

safe magnet
#

interesting

#

ill try it

errant zinc
#

cuz get player from character returns player OR NIL

#

so

#

its prob erroring cuz nil passed

safe magnet
#

IT WORKS

#

i will internalize this knowledge