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

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

Asked by
fardxD 9
4 years ago
Edited 4 years ago

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
0
what is the value "owner" sergeant_ranger 184 — 4y
0
It's the character using the script, I'm planning on using this in VoidSB. fardxD 9 — 4y

2 answers

Log in to vote
0
Answered by 4 years ago

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

0
Okay, but isn't the character's face visible by default? fardxD 9 — 4y
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. 0neDeletedUser 42 — 4y
Ad
Log in to vote
0
Answered by
fardxD 9
4 years ago

I fixed it, just had to use Imji.

Answer this question