#this script is not working the way i want it to :(

1 messages · Page 1 of 1 (latest)

jaunty oracle
#

Now before yall saying, Yes i made the script. i asked ChatGPT for a SMALL amount of help, yes the code is messy

The issue im having is, after everytime you hit the wall, the Fragments / voxels break, and thats good! but... it also Deletes the entire model after like 5 seconds, How do i fix this so it repaires it to orignal shape instead of deleteing its entire self

#

It was to big to post on the full thing

gilded pumice
#

i don’t wanna open the file

#

can u post it in chunks

clever sluice
jaunty oracle
clever sluice
#

What's the VoxBreaker module

#

Cuz would assume its this Debris that is destroying everything

#

So if I had to guess is that the :CreateHitbox() method is incorrect possibly

jaunty oracle
jaunty oracle
#

Ill send a video showing what i mean

clever sluice
#

strange

gilded pumice
jaunty oracle
clever sluice
#

hopefully not

jaunty oracle
clever sluice
#

I mean that Debris

#

Its destroying whatever V is after 6 seconds

#

Which is just like u said lol

#

So feel like that would be where the issue is

jaunty oracle
#

yea

#

i dont understnad how to fix it, ive tried using chat gpt too but that just doesnt work either

#

the pvp aspect seems fine

#

its just the destruction is weird

clever sluice
#

I mean

#

I think it's doing what its supposed to technically

#

Because it's getting all the parts it touched and it touched the whole wall?

#

Or is the wall not one piece?

jaunty oracle
#

the wall is one peice

clever sluice
#

Right so code kinda is working fine lol

#

How are the smaller parts being made

#

Cuz currently when you use the hitbox on the untouched wall

#

Would be saying to destroy this whole wall now?

jaunty oracle
#

nah not really

clever sluice
#

Well how are the voxels being made

jaunty oracle
#

It basicly destroyes a hole in the way and spawns in small voxels

clever sluice
#

So you gotta make sure to exclude the parts that made the hole from the list

#

But only insert the loose voxel parts into list

jaunty oracle
#

ah

jaunty oracle
clever sluice
#

Would be in VoxBreaker

#

If I had to guess

#

Since that's what's doing all the work to make the voxels

jaunty oracle
#

yea

jaunty oracle
clever sluice
#

I guess post the VoxBreaker code

jaunty oracle
jaunty oracle
clever sluice
#

Bruh it 1200 lines long

jaunty oracle
#

yea....

clever sluice
#

I haven't looked because I don't think I want to

jaunty oracle
#

well i mean i fix the issue of it Respawning and shit

#

the problem now is it just spawns the debrie with it too...