Made a blood system based off what I’ve seen in some older games and it was really easy I just don’t know how to move it with your player (compensate for movement).
There is also the issue that it doesn’t always hit but I think that has something to do with the raycast yielding or it being that server physics are only going at 30 fps, Idk but I’m raycasting down and out the lookvector of the blood parts but the main issue is above.
Note: I’m using body velocity to move parts that are spawn at my torso and then raycasting out of them
local velocity = math.random(5, 35)
local bodyVelocity = server.functions.general.BodyVelocity(blood, blood.CFrame.LookVector * velocity, .1)
coroutine.wrap(function()
local result, result2, ignoreList = nil, nil, {self.char, blood, bloodTable}
repeat
result, result2 = server.functions.general.Raycast(blood.Position, blood.CFrame.LookVector * 2, ignoreList), server.functions.general.Raycast(blood.Position, Vector3.new(0, -2, 0), ignoreList)
task.wait()
until result
if result or result2 then
result = result and result or result2```
This is the bit doing the physics, everything else is effects and has zero effect on the issue, I've tested it.
If you were that curious to just know how to make the blood script you could have either asked or looked it up, acting like your going to answer in order to try and get a full script to use for yourself is a stupid move.
I ended up making it client-side earlier, didn’t really think about it but yeah it’s still off just not as much as on the server and it’s close enough so I’m not gonna tweak it further and since I’m not predicting where to raycast the raycasts miss sometimes and the parts go through the floor. Thanks though.
I mean a very popular game that some Roblox Youtubers play and is sometimes on the Front Page cald Zo has a blood system like this. its more “graphic” though.
Yeah Roblox allows this but I think it depends on what mod reviews it, gore with a off button that isn’t “too” graphic is usually 100% fine but I’ve seen games with little gore get taken down for it and games like mortem exist with zo etc.