#Error that I can't find out how to resolve
1 messages · Page 1 of 1 (latest)
where do you define previewmine the first time?
line 19
its in the screenshot
no time before that?
it has no 'local' so im assuming it's defined earlier as nil or something
nope
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
https://streamable.com/q7z3c1 the code works it think but its also supposed to fire a remote event when i click that places the actual mine at the preview location
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
alright one sec 😓
sorry but how should i do this?
sorry i gotta dash, will be back later but someone may respond
just an if statement!
oh alright
** You are now Level 1! **
you already have a variable for it