Blood system being weird

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

Clip: https://gyazo.com/1848e2b480e9bbbb8ff09c7be8857687

2 Likes

Isn’t that blood style too violent for Roblox?

No it’s not,Roblox allows this.

1 Like

send the script will ya?

I create parts at my torso then use body velocity, the question I’m asking mainly about compensating for movement doesn’t need context.

please send the script that dosent help

			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.
1 Like

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.

1 Like

because your not checking if the humanoid is taking damage

@HolySwordExcaliber

This is happening because you are doing it on the server, and local characters are not instantly updating for everyone.

You just have to make your system client-side.

2 Likes

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 have no clue what you mean by this, this doesn’t have anything to do with the issue.

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.

1 Like