Hey Im having some issues trying to get this slash vfx to sync ingame, i put this as a scripting error because I think it has something to do with the welding part but in short…
I want the slash part of this vfx to always be in the correct rotation but it randomly changes sometimes its the complete opposite, i have always had this issue with slashes and i would love to know what im doing wrong or the right way to do it, ill show my current script and how it looks in game compared to how to vfx looks out of game if you know what i mean
function VFXModule.HeavySlash(c)
local vfxpart = ReplicatedStorage.Assets.Items.Weapons["Cutlass"].VFX.CutlassSkill:Clone()
vfxpart.Parent = c
local weldBall = Instance.new("Weld")
weldBall.Name = "weldBall"
weldBall.Part0 = c.HumanoidRootPart
weldBall.Part1 = vfxpart
weldBall.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))
weldBall.Parent = c.HumanoidRootPart
for i, v in pairs(vfxpart.Slash:GetChildren()) do
if v:IsA("ParticleEmitter") then
local emitCount = v:GetAttribute("EmitCount")
if emitCount and typeof(emitCount) == "number" then
v:Emit(emitCount)
end
end
end
for i, v in pairs(vfxpart.Extra:GetChildren()) do
if v:IsA("ParticleEmitter") then
local emitCount = v:GetAttribute("EmitCount")
if emitCount and typeof(emitCount) == "number" then
v:Emit(emitCount)
end
end
end
end
This is what it currently looks like in game when emited
This is what it SHOULD look like in game
As you can see the in game one isnt synced its pretty random and the roblox studio one is always perfect, as i said i think its the welding/scripting im doing wrong here so would love to know any ways to fix this thank you!