Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

My blinking face script won't work, can someone provide me with a possible fix? [SOLVED BY SELF]

So yeah, the title explains it all. There are no errors in the output, the decal just turns transparent. Is there any way to possibly fix this?

Code:

char = owner.Character

while true do
wait()
char.Head.face.Texture = 'http://www.roblox.com/asset/?id=5459977771'
wait(0.1)
char.Head.face.Texture = 'http://www.roblox.com/asset/?id=5459978526'
wait(0.1)
char.Head.face.Texture = 'http://www.roblox.com/asset/?id=5459979229'
wait(0.1)
char.Head.face.Texture = 'http://www.roblox.com/asset/?id=5459979885'
wait(0.1)
char.Head.face.Texture = 'http://www.roblox.com/asset/?id=5459980498'
wait(0.1)
char.Head.face.Texture = 'http://www.roblox.com/asset/?id=5459986107'
wait(0.1)
char.Head.face.Texture = 'http://www.roblox.com/asset/?id=5459986829'
end

2 comments

0

what is the value "owner"

0

It's the character using the script, I'm planning on using this in VoidSB.

2 answers

Just use a Different Method!

ROBLOX will be ROBLOX, which means that it will be wonky. So when changing decals, and updating them to a new asset, you usually have to go one below or one above with the numbers. However, do not do this at all costs. This method is ineffective as it will return other images constantly, only on rare occasion will it return the desired image.

A better solution would be to load in the textures on the character's face, as a child of the script, or somewhere else where the texture will be there. Once it is loaded in, and parented of the character's face, manipulate the textures with a property, (usually 'enabled', 'visible', or 'transparency') and once one of them is visible, make the others invisible. Then, you can make another visible and the rest invisible. I will say you will accumulate a lot of code, loops may help, but this is the general idea of what to do.

Hope this helps, leave a comment if you run into anything, and happy coding! :D

2 comments

0

Okay, but isn't the character's face visible by default?

0

I don't mean the character's FACE, I mean to just load some decals on the face, for example, just put some decals in a script and when a player joins the game then add the decals to the face. Next, you can just change the visibility of the decals so that only one is visible.

This discussion is preserved as it was. New answers, comments, and votes are closed.