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

Face changing script seems to not be working?

Asked by 5 years ago
if game.Workspace.Episode7.Parent == workspace then
    while true do
        wait(2)
        script.Parent.FakeHead.face.Texture = "rbxassetid://15637705"
        wait(0.1)
        script.Parent.FakeHead.face.Texture = "rbxassetid://277939506"
        wait()
    end
end

When I test, nothing happens..

0
Are there any errors? gitrog 326 — 5y
0
whats the point of that if statement anyway lol Vulkarin 581 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

The reason why this wont work is because it needs to refresh first, If it's a player then do

script.Parent.FakeHead.face.texture = ID
script.Parent:LoadCharacter()

or if it's a NPC try

script.Parent.FakeHead.face.Texture = ID
script.Parent.FakeHead.Parent = SOMEWHERE -- Anywhere lol
SOMEWHERE.FakeHead.Parent = script.Parent

Thanks, jamiethegreatQ777

Ad

Answer this question