I’m trying to create a custom beam atm and everything is working besides changing the beams texture, I’ve tried making a stationary beam that isnt spawned in on an instance and that beam works with this texture. But when I call to change it in a script nothing happens and the beam stays as the default beam and just changes color.
beam script
local beam = Instance.new("Beam")
beam.Name = "EnergyBeam"
local atch1 = Instance.new("Attachment")
atch1.Parent = hit
atch1.WorldPosition = rayHitPos
beam.Attachment0 = caster.UserData[1]
beam.Attachment1 = atch1
beam.Color = ColorSequence.new({
ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)),
ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 255, 255))
}
)
beam.CurveSize0 = math.random(0,10)
beam.CurveSize1 = math.random(0,10)
beam.Texture = "http://www.roblox.com/asset/?id=1244883807"
print(beam.Texture)
beam.TextureMode = Enum.TextureMode.Wrap
beam.FaceCamera = true
beam.Parent = workspace
beam.Enabled = true
Debris:AddItem(beam, 0.5)
How it should look:
How it actually appears: