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

How do I make someones decal change then change back? [closed]

Asked by 6 years ago

I want to make a person blink like every ten seconds they will blink.

Closed as Not Constructive by PyccknnXakep, Void_Frost, and Goulstem

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
1
Answered by 6 years ago
Edited 6 years ago

So I'm guessing you want to change the face, so here is something that might work. Put this as a localscript in starterplayerscripts(I think).

wait(.1) -- lets player spawn in

local playerName = game.Players.LocalPlayer.Name -- used to get player from workspace
local playerFace = game.Workspace.playerName.face -- gets the face of the player
local blinkFace = "PUT FACE URL TEXTURE/DECAL HERE" -- the blinking face
local normalFace = playerFace.Texture -- the face the person spawned with but if you want to set a face you can replace playerFace.Texture with "url of face here" with the quotation marks

while true do -- loops the blink infinitly
    playerFace.Texture = blinkFace -- makes person blink
    wait(.1) -- blinks for 1 second
    playerFace.Texture = normalFace -- goes back to normal face or unblink
    wait(10) -- waits 10 seconds before blinking again
end -- end of the loop

This script will change someones face for .1 of a second every 5 seconds. You can change that up there. If you like my answer please remember to thumbs up :D.

Ad