VoxBreaker | An OOP Voxel Destruction module

What are you trying to do, weld a hitbox to a player?

yes I am, but I don’t know why it is giving me that error, as not a member is usually a result of a part or instance not being a child of something. (Srry for yap i need to hit 30 words)

you can just do this

I added the new part because i was testing to see if it had something to do with the hrp itself, ive litterally done that bro and it gave me the same error, but I’ll retest it to make sure i wasnt doing anyth ing wrong

EDIT: Did the exact same code as u and still got Part is not a valid member of Part "Workspace.Noodlesandwhich0706.HumanoidRootPart" Client - VoxBreaker:1340

it worked for me, maybe try copy and pasting the code .
I didnt reference a part in my script so im not sure why you got that error,

local player = game.Players.LocalPlayer
local char = player.Character
local hrp = char:WaitForChild(“HumanoidRootPart”)
local voxelLab = require(game.ReplicatedStorage:WaitForChild(“VoxBreaker”))

local hitbox = voxelLab.CreateMoveableHitbox(5, nil, Vector3.new(15, 15, 15), hrp.CFrame, Enum.PartType.Ball)
hitbox:WeldTo(hrp)
hitbox:Start()

bro I don’t know what type of sorcery u did but it worked even thouhg my code was identical :sob: thanks so much bro much love

Edit: the reason it wasnt working for 2 days was BECAUSE I PUT A PERIOD INSTEAD OF A COLON… Bro i did voxBreaker >>>.<<<<< weldTo() instead of voxBreaker>>>>:<<<<weldTo bruhhhh I love roblox :123:

One last edit: Thanks again bro, but do u know any way I can replicate the damage to the server? Since the voxels are created client side, i can’t really replicate the damage serverside because the server doesnt think that the voxels exsist, and while I put it on the server, it is still very laggy on the sderver

It would be better to create the hitbox server side then fire the voxels to a local script also when you fire it to the client make sure you fire all clients so all players can see debris

I created the hitbox server side but it made it a lot more laggy + the hitbox wasn’t keeping up with the player so i made the hitbox client side , destroyed the voxels, and cloned the voxels on the server to then delete them so it would be global damage if you know what i mean

This been dead :cry: no new updates or chatting

3 Likes

:sob: so i realized why it wont smash the thing becuase it hasnt divided properly so i modified my self and it works, im sure it was 50% working and sometimes not that you think of.

if i was mistaken then i may be apologizing

edited the image to crop