What are you trying to achieve? I am trying to acheive to make a game where you have to repair houses and stuff.
I still haven’t decided a name so for now in this forum I will call it Repair INC. I was going to make part in the game were you ave to fix a house and repair the breaker. I wasn’t sure how exactly you would pair a light to a box.
I’ve tried to look it up but haven’t found anything super useful yet.
Any ideas?
you want to make the destruction and repair system? i dont really have any idea how to code it but here is my option:
for destruction system, you may could make something like a wall that has multiple welded parts (shortly, model) and when some destruct physic (e.g explosion) applies on a model - it will destroy all of the welds that is located in parts. there were post about it so here.
for repair system, i actually have no idea how to release it in the game but you could store old CFrame of a part before destruction in a table. so, code will detect whenever part is changing position and if it will not match old CFrame that is in a table then you can position an CFrame of a destructed part to it’s old CFrame position.
If you wanna be super simple just make a proximity prompt that says “fix breaker” and that’ll do lol
in that case, proximity prompt will not have any functionality because there is no script to handle events of proximity prompt
I’ll try all of these ideas thx! I’ll mark the one that works as the solution. U til I do anyone can come up with anyone solutiojs
I tried yours, it works! Thank You!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.