Beams Loading incorrectly / slowly

Beams’ texture doesn’t appear to load correctly in my game, for a split second after being created. Not sure if there’s a way to force load them before hand?

Code :

local Assets = game:GetService(“ReplicatedStorage”):WaitForChild(“Assets”)
local BeamAtt = Assets.Beams.CollectionHolder.Attachment0:Clone()
local LazarBeamAtt = Assets.Beams.LazarHolder.Attachment1:Clone()

BeamAtt.Position = Vector3.new(0,0,0)
LazarBeamAtt.Position = Vector3.new(0,0,0)

BeamAtt.Beam.Attachment0 = BeamAtt
BeamAtt.Beam.Attachment1 = LazarBeamAtt

LazarBeamAtt.BeamLazar.Attachment0 = LazarBeamAtt
LazarBeamAtt.BeamLazar.Attachment1 = BeamAtt

BeamAtt.Parent = ItemToAttach
LazarBeamAtt.Parent = Plr.HumanoidRootPart


I believe the best thing you can try is using

ContentProvider:PreloadAsync(beam)

Or such. Don’t exactly remember if you had to pass the instance or the ID as an argument to the function and my internet is currently about half-a-byte per hour, so you’ll have to figure that out yourself. Just google the function.

1 Like

Will do thanks :D*

I’m wondering if there’s a particular reason as to why this would happen, as textures normally load perfectly fine on other instances.

Tried preloading and making sure its successfully preloaded with AssetFetchStatus
Adding dummy beam on & off screen
Still having the same issue as the OP’s video

And yeah PreloadAsync accepts Instances such as Decal, Sound, Beam, etc.

1 Like