Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

trying to get a texture beam to animate but it just appears as a textureless white beam, any help?

Asked by 4 years ago

Right now im trying to make an animated monster that uses beams. the script im trying to make infinite loops the same 5 textures to make it look animated, but ingame, it just appears as a textureless beam. Any help? I'm new to scripting so its likely that im doing something wrong here

local decal = script.Parent.Head.Beam

while true do

    decal.Texture = ("http://www.roblox.com/asset/?id=4725749717")
    wait(0.1)
    decal.Texture = ("http://www.roblox.com/asset/?id=4725749942")
    wait(0.1)
    decal.Texture = ("http://www.roblox.com/asset/?id=4725750148")
    wait(0.1)
    decal.Texture = ("http://www.roblox.com/asset/?id=4725750427")
    wait(0.1)
    decal.Texture = ("http://www.roblox.com/asset/?id=4725750583")
    wait(0.1)

end

(also sorry if posting the decal links break the rules or something, its just a part of the script)

0
Perhaps an iterator loop (https://developer.roblox.com/en-us/articles/Table then look for iterating) with a table, which was then in a while loop would be better than just typing every decal out. farrizbb 465 — 4y
0
I think it is blank because it is not having time to load the assets sinse you just spawned them. There are lots of ways to let them preloaded so you can position it when you want. You can let the decals stored in a variable, or in a table like farrizbb said. Necro_las 412 — 4y

Answer this question