I want to make it so my melees are basically aimed, like third person, look up and down depending on the camera and when it swings it should make sparks on the ground like “Blood Engine”
Like Criminality and its descendants.
If someone is there, please help!
Hello! I want to help you but I’m kind of confused on what you are inquiring about, can you elaborate further?
Aimable melees that follow camers lookvector and spark effects when hitting ground
if you already have hitbox detection then you can just offset it by camera.CFrame.LookVector, and the camera (on the client side) can be referenced with workspace.CurrentCamera
you can make a raycast that starts at the character root position and goes in the direction of the camera lookvector to detect if it hits the ground, then play sparks there if the raycast hits
local RAY_ORIGIN = rootPart.Position
local RAY_DIRECTION = rootPart.Position + camera.CFrame.LookVector * DISTANCE
local cast = workspace:Raycast(RAY_ORIGIN, RAY_DIRECTION)
if cast then
-- then play sparks
end
I use magnitude rn, i want it to basically when player swings and it hits objects in the way of the tool it does sparks on the ground, camera should help
Tool handle has 15 casts supposed, and when object close it emits