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

How to make a transformation change your face to decal?

Asked by 7 years ago

~~~~~~~~~~~~~~~~~ 1 local Tool = script.Parent --make sure this is a Tool object 2

3 Tool.Equipped:connect(function(Mouse) --Tool equipped function 4 Mouse.Button1Down:connect(function() --Button1Down is an Event for whenever the right mouse is clicked 5 local Player = game:GetService("Players").LocalPlayer.Character --Character is a part of LocalPlayer, it is the player in the server where the player has shirts and pants etc. 6 Player.Head.Face.Texture = 1296295817 --texture id, make sure Player.Head.Face.Texture is correct or the code will fail 7 end) 8 end)

thats the script someone gave me to get it to work but it wont i have checked the error log there are no errors (i meant output lol) the id is right because when i change a models face decal in the editor it appears

0
Vulkarin it is not working i dont know what is wrong Jellal27 0 — 7y

1 answer

Log in to vote
0
Answered by
Vulkarin 581 Moderation Voter
7 years ago

Reason why it didn't worked is because you need an actual link to the item Links looks like "rbxassetid://[id_here]"

For example

game.Players.LocalPlayer.Character.Head.face.Texture = "rbxassetid://1296295817"
0
its not working Jellal27 0 — 7y
0
tested in my studio and it worked fine? What is the error? Vulkarin 581 — 7y
0
there is no error thats the thing the face will not change on my character though i dont know if it is tht i am using a tool to do it Jellal27 0 — 7y
Ad

Answer this question