A bug with my face changing script that leave the face blank. Can it be Fixed?
Asked by
6 years ago Edited 6 years ago
So I have a script that does this
Local Script (TextBox)
1 | face.FocusLost:connect( function (enterpressed) |
3 | if face.Text ~ = "" and face.Text ~ = " " then |
4 | event:FireServer(char:FindFirstChild( "Head" ), "ChangeFace" , "rbxassetID://" ..face.Text) |
ServerScript
1 | game.ReplicatedStorage.ClothingGUI.OnServerEvent:connect( function (dp,p,et,ID) |
2 | if et = = "ChangeFace" then |
4 | p.face.Texture = p.face.Texture |
The script doesn't change the ID of the face because it is the wrong type of asset, it is expecting a decal, and is getting a RBX asset. The question I have is how can you change the formatting type, since when I run this script and put in a face, it simply leaves my face blank since it is the wrong format.