I’m trying to make a blood splatter on the floor whenever a player is shot using the ACS 2.0.1 pack. I want parts(which will have a decal of the blood spatter) move onto the client-side.
I tried using fireallclients but it didn’t work as every client created a blood splatter.
Server
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local Remotes = ReplicatedStorage.Remotes
local BloodFX = ReplicatedStorage.BloodFX:GetChildren()
Remotes.ToServer.OnServerEvent:Connect(function(player,signal,target)
if signal == "Check" then
for i,p in Players:GetPlayers() do
if p == target then
local tCharacter = target.Character
local tRoot = tCharacter.HumanoidRootPart
local RNS = math.random(2,5)
local RNP = math.random(2,5)
local Size = Vector3.new(RNS,1,RNS)
local Position = tRoot.Position + Vector3.new(RNP,0,RNP)
local ChosenBlood = BloodFX[math.random(1,#BloodFX)].Value
Remotes.ToClient:FireClient(target,"Blood")
Remotes.ToClient:FireAllClients("BloodyFloor",Size,Position,ChosenBlood)
end
end
end
end)
Then on the client, I create a part and decal with the variables listed on the server but it still fires to every player.
Any ideas?