basically im tryna make a muzzle flash system right? and it's supposed to be like a sprite, but can be rotated instead of always facing the player, so after extensive testing with decals i decided to use a surfacegui + imagelabel solution since light interaction can be disabled with those, and it works perfectly fine when testing in studio, but when creating it with a script the image just doesn't show up :/
newTask = task.spawn(function()
local rot = basicLib.mathUtils.vector3ToRad(rotation)
local newPart = script.tracerPart:Clone()
local twninfo = TweenInfo.new(fadetime)
newPart.Transparency = .8
newPart.CFrame = CFrame.new(origin)*CFrame.Angles(rot.X,rot.Y,rot.Z)
newPart.Size = Vector3.new(size,size,.001)
newPart.back.SizingMode = Enum.SurfaceGuiSizingMode.FixedSize
newPart.back.CanvasSize = Vector2.new(100,100)
newPart.Parent = workspace
end)
and this is the part it's cloning