#Error that I can't find out how to resolve

1 messages · Page 1 of 1 (latest)

sterile widget
#

Can anyone tell me why im getting this error?

#

this is just meant to be a preview system for placing a tool

pale charm
#

where do you define previewmine the first time?

sterile widget
#

its in the screenshot

pale charm
#

no time before that?

#

it has no 'local' so im assuming it's defined earlier as nil or something

sterile widget
pale charm
#

does the code actually work when you equip it, or does that error still happen?

#

cause it'll be erroring initially since previewmine doesn't exist yet until you equip the tool, since it's only defined then

#

add a check for if the tool is equipped in the mouse.Move event

sterile widget
pale charm
#

that's a separate issue i believe

#

you'll have to share the code segment for when the tool is activated

#

since it isnt in the code you sent

sterile widget
#

alright one sec 😓

sterile widget
pale charm
#

sorry i gotta dash, will be back later but someone may respond

pale charm
sterile widget
#

oh alright

small beaconBOT
#

studio** You are now Level 1! **studio

pale charm
#

you already have a variable for it