You can write your topic however you want, but you need to answer these questions:
- What do you want to achieve? Keep it simple and clear!
i want my particles to emit correctly
- What is the issue? Include screenshots / videos if possible!
the particles dont emit correctly.
i want them to emit like this (2:30):
but instead they just abruptly appear, stay there for 3 seconds and then just removes aprubtly
- What solutions have you tried so far? Did you look for solutions on the Developer Hub?
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
here is my effects module:
local module = {}
--||Services||--
local Debris = game:GetService("Debris")
--
function module.EmitEffect(effect,cframe,destroyTime)
local effect = effect:Clone()
effect.Parent = workspace.VFX
effect.CFrame = cframe
for i, v in pairs(effect:GetDescendants()) do
if v:IsA("ParticleEmitter") then
v:Emit(v:GetAttribute("EmitCount"))
end
end
Debris:AddItem(effect,destroyTime)
end
return module
here is my local script:
--||Services||--
local RS = game:GetService("ReplicatedStorage")
--||Folders||--
local Events = RS.Events
local Modules = RS.Modules
--||Modules||--
local CombatEffectsModule = require(Modules.Combat.EffectsModule)
-----------------------------------------------------------------------------------------
Events.VFX.OnClientEvent:Connect(function(action,...)
if action == "CombatEffects" then
local effect,cframe,destroyTime = ...
CombatEffectsModule.EmitEffect(effect,cframe,destroyTime)
end
end)
here is my hitservice script.
line 38 is where i emit it
local module = {}
--||Services||--
local RS = game:GetService("ReplicatedStorage")
local SS = game:GetService("ServerStorage")
local StarterPlayer = game:GetService("StarterPlayer")
local SoundService = game:GetService("SoundService")
--||Folders||--
local WeaponsSounds = SoundService.SFX.Weapons
local RSModules = RS.Modules
local SSModules = SS.Modules
local Events = RS.Events
--||Events||--
local CombatEvent = Events.Combat
local VFX_Event = Events.VFX
--||Modules||--
local SoundsModule = require(RSModules.Combat.SoundsModule)
local ServerCombatModule = require(SSModules.CombatModule)
function module.Normal_HitboxHit(plr,char,weapon,Hitbox)
Hitbox.OnHit:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= char then
local eChar = hit.Parent
local eHum = eChar:FindFirstChild("Humanoid")
local eHRP = eChar.HumanoidRootPart
if eHum.Health > 0 then
eHum:TakeDamage(12)
VFX_Event:FireAllClients("CombatEffects", RS.Effects.Combat.Blood, hit.CFrame, 3)
ServerCombatModule.stopAnims(eHum)
end
end
end)
end
return module
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.