#Why is it still picking up the item?
1 messages · Page 1 of 1 (latest)
because you arent stopping more tools from coming
i dont see anything dealing with the actual item pickup in the code you show, maybe it's coming from somewhere else.
also that while loop is horrible, every time you press e on anything, you spawn a new copy of that loop.
also i suspect you aren't overriding the default tool behavior where walking into a tool will pick it up, so it's almost guaranteed you have different code at play here
It's literally there💀
How would I do it then?
I dont have a different code
The tools don't get picked up by walking into them
@left locust
Under the elseif
all that does is set a numbervalue. it doesn't deal with tool equipping.
i recommend learning the basics: https://create.roblox.com/docs/en-us/tutorials/fundamentals/coding-1/coding-fundamentals
Did you watch the video? It's not a normal tools equip like it gets added into your inventory... it floats infront of the camera, the tween under elseif does that, watch the video in my post
I already know more then basics bro
the code you showed does not deal with the floating infront of the camera.
debugging is basics ;p
The tween puts the object in front of the camera
It does, it's the only script I have for the items
is that what that is doing? jeez, that's rough
Huh?
logic is basics ;p
instead of being disrespectful could you actually help me out?
i did, this is the problem
when you change that variable it'll get picked up in that loop where you compare every tool in workspace.tools against it, so when you change it, it's like equipping the new tool
the incorrect indentation in your code and the giant red boxes is really throwing me off
so yea anyway no disrespect intended but if that's how you feel then good luck sir 
sorry
really easy fix
i found a fix to it, ty for trying to help@left locust
