Hello! I am DizzyTwisted, i have a HUGE project Demo im working on and im having a problem with the main mechanic.
Its a reverse ability. where objects that are destroyed will be put back together at the press of a button.
For instance a chair, the chair is unanchored and the parts are not together, the player would click on a part of the chair, and it would be highlighted (because it has a value that allows it to be reversed) and if they hold E or something, the parts would move to form a chair (Anchored). if they release E the parts will fall back down (Un-anchored.)
now a chair is just an example, the objects would range from a bridge made of rocks to a key broken into pieces.
But as of today. i have been up all night trying to find a solution and i haven’t been able to alone, i’ve tried A.I. but its of no help. So, im coming to the community for help. Let me show you what i have and hopefully someone could help me.
This is a Function module with my camera script and a script that i tried to make that was supposed to gather all of the things in workspace with a “Reversable” Tag and check if its in a group, if it is, then create a dictionary in which it has the name and position of all of the items with the “Reversable” Tag, and then maybe in the future i can call back on it, and get the original position of it and tween it back? but it didn’t work as you can maybe tell.
Next is the script connecting to that, which is a script in StarterPlayerScripts, and its a lot.
This part isn’t a problem, essentially what this is doing is checking what the mouse clicked on, seeing if it has the tag “Selected” and if it does, and its not already selected then it’ll highlight it and put its name in a table, but the player can only select 2 objects at once, if they try to select more it won’t work. They can deselect it by simply rightclicking and the highlight will go away, and remove it from the table.
The second part of the script is the problem.
I was trying to make it so that the original position of the part will be inside of a string value inside of the part and i can just call it whenever i needed to tween it back to normal, however, it didn’t work. so now im at a loss.
What i am asking for is not entire scripts from you guys, but nudges in the right direction, and by nudges i mean actual tips not riddles hidden in hieroglyphs.
I have tried to hire people but they never answered, so ill pay anybody all that i have right now (Which is $10) if they can make this system for me, if you desire more, i am able to get more but it will take time but as of now, its all i have : / .
Thank you for reading, Have a nice day!