#Dropping system
1 messages · Page 1 of 1 (latest)
Also not related, but I copied the roblox Animate script and changed the animations, except it can only be seen by the player, meaning that everyone else you see will not play the anim lol
what
could you be a bit clearer
Ok well
this is called premature optimization. don't try to optimize things you don't have working yet. dropping items does not need to be optimized, it's practically impossible to make it run so poorly that it makes your game lag, short of calling game:getdescendants.
im saving that image
although that's not really optimization but more like generalization
I got something that can pick up parts with a specific attribute on leftclick, and it will turn that part into a tool. I can also drop the part by moving the part in the tool to the location of the mouse target and in the original parent it was in, a folder in the workspace. I used attributes in the tool to retain the parent and name.
and trying to make clean code
wait so you already implemented it and are trying to optimize it?
** You are now Level 1! **
you really shouldn't worry about optimizing small things like this
ok are you trying to make clean code or trying to make it not lag
i don't understand
Difference?
one is readable one runs fast
Well who's gonna read it in-game :P
they don't necessarily correlate
who's going to notice if your game isn't actually lagging?
you, or a member of your team might try to read it 2 weeks later and struggle
Fair enough :p
but what about anims?
it should show for everyone
animations played on a player character from the player's client are replicated to the server
oh