I want the rotation of a particle to match the rotation of the part it is parented to.
I couldn’t find anything on the dev hub pertaining to my issue, so I tried scripting my own solution (making the rotation parameter equal to the orientation variables etc…), but nothing seems to work.
--This is a simpler version of one of the solutions I tried, because most of the others are spaghetti code and barely readable or deleted
function particleToPartOrientation()
local children = script.Parent:GetChildren()
local main = script.Parent
local orientX = main.Orientation.X
for _, v in ipairs(children) do
if v:IsA("ParticleEmitter") then
v.Rotation = NumberRange.new(orientX,orientX)
end
end
end
while task.wait() do
particleToPartOrientation()
end
Another thing, the emitters use velocity perpendicular, as I found this works best/ is closest to my desired outcome.