Universal Script 📌
3.0k Views
1.8k Executions

Blood Particle on Hit

Universal Script 📌
AzScripter
AzScripter1M views
11 months ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Features: - Customized Script - ejects blood particles if the player takes damage Tags: blood, damage, bleed, particles, vfx, gore, combat, blood splatter, hit effect, script, realistic blood, health, on hit, visual effects, pvp, fps, horror, fighting, action, simple blood, damage fx

View Raw
local Players=game:GetService("Players")
local RunService=game:GetService("RunService")
local TweenService=game:GetService("TweenService")
local Workspace=game:GetService("Workspace")
local player=Players.LocalPlayer

local BLOOD_TEXTURE_PARTICLE="rbxassetid://102626391021863"
local BLOOD_DECAL_TEXTURE="rbxassetid://11890766147"
local BASE_RATE=80
local DAMAGE_MULTIPLIER=0.04
local MIN_ADD=0.4
local MAX_ADD=4.0
local MAX_TOTAL_DURATION=10.0
local RATE_MULTIPLIER=150
local BURST_MULTIPLIER=3.2
local PUDDLE_CHANCE=0.7
local PUDDLE_COUNT=2
local PUDDLE_SIZE_MIN=1.5
local PUDDLE_SIZE_MAX=4.0
local PUDDLE_LIFETIME=45

local function createBloodPuddle(position)
	local puddleSize=math.random(PUDDLE_SIZE_MIN*10,PUDDLE_SIZE_MAX*10)/10
	local rayOrigin=position+Vector3.new(0,5,0)
	local rayDirection=Vector3.new(0,-50,0)
	local raycastParams=RaycastParams.new()
	raycastParams.FilterType=Enum.RaycastFilterType.Blacklist
	raycastParams.FilterDescendantsInstances={player.Character}
	local raycastResult=Workspace:Raycast(rayOrigin,rayDirection,raycastParams)
	if not raycastResult then return end
	local hitPosition=raycastResult.Position
	local hitNormal=raycastResult.Normal
	local puddlePart=Instance.new("Part")
	puddlePart.Name="BloodPuddle"
	puddlePart.Size=Vector3.new(puddleSize,0.01,puddleSize)
	puddlePart.Material=Enum.Material.SmoothPlastic
	puddlePart.Transparency=1
	puddlePart.CanCollide=false
	puddlePart.Anchored=true
	puddlePart.CanQuery=false


Comments

4
Log in to join the conversation. Login
nacuatristramjr's profile picture
nacuatristramjr5 months ago

How do I execute

1
bigstinky67's profile picture
bigstinky6711 months ago

ik this is random but could you make a metal sonic script if you don't have the time it's ok

1
zxcv's profile picture
zxcv11 months ago

seems good

1
m4ar's profile picture
m4ar11 months ago

Cool

1

Tags

More universal scripts

See all
Universal Script 📌
3.8k
184.5k
Bumped 3 hours ago
Script hub
339
31
4 hours ago
Universal Script 📌
28.6k
663.4k
Bumped 6 hours ago
Script hub
13.7k
2.7k
Bumped 8 hours ago
Key System
Paid
Script hub
263.6k
88.1k
Bumped 8 hours ago
Key System
Universal Script 📌
2.9k
9.5k
Bumped 9 hours ago
Universal Script 📌
611
38
Approved 9 hours ago
Universal Script 📌
645
36
Approved 9 hours ago