Attempt To Index nil with position error on BATIM axe

That is what is supposed to happen?..

oh wait it says target.PARENT.Name. so i had to print target.Parent.Name

ok its BreakablePlank. so its right.

also did i say this is a local script inside a tool

Do this then (before the if target.Parent.Name == "BreakablePlank"...

for i, v in ipairs(target.Parent:GetDescendants()) do
 print(v.Name, v.Parent)
end

That shouldn’t be a problem.

30303030303

i think i should put it after. because if i left click it prints everything in workspace.

No, I mean, click on the plank and give the output.

ok it only gives left plank and right plank

Well. You probably forgot to anchor PositionPart and it just falls off the map.

am i that dumb???

[][][][][][][][]

So did it work, or not?

3030303030

it did… im so stupid. maybe because i just woke up

or because i added the position part yesterday when i was practically passing out because i was tired

anyways thank you. im super dumb

Well, we all make mistakes. Don’t blame this on yourself.

thanks. ok i can finally make the best bendy fangame on roblox

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.