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

How do you make a character customization?

Asked by
pr3cure -26
5 years ago

(This is very long and detailed) My character customization has hair, Mesh hair, i dont know how to make a hair code at all, nor face, 3D items like shoes and skirts, Uniform with a skirt and a bow ( for girls) and maybe armor for the boys or something, Packages for you character animation. All i know is that you will need a remote event, function, destroy() and i think the id of the hair, But however i have searched A ton of tutorials and they explain, but that have a different layout, mine is a scroll frame, (its kind of big to the left) and it has the different customizable frames with image button and text buttons, and the tutors have a way different layout, so when i script it doesnt work, I want to script it so that the player will do a certain act when the gui on the menu is clicked then they show up in this wooden white room (Wardrobe) with clothes like a walk in closet, then they customize and stuff, after they come out with the same act and have their outfit saved so if they leave and come back then its still there. I also need help with faces as well, it still wont work I also want to script a save-to-transform script basically what that is, its when you click a gui on the menu then the players body turns neon white then back to normal in a different outfit, I dont know at all how to do that. Thats all, i know its alot but i like to go in detail ust so i dont miss anything, i dont have a ny scripts cause, i deleted them. If you have any answers even if its short i just need a script that i can use i know lua and how to read it so just giving me a script to edit will be fine, thank you.

1 answer

Log in to vote
0
Answered by 5 years ago

Hello! I'm also using a customize option for my game. Now this may take a while to explain. I will tell you about the face changer scripts that I made. I will get back to you again about the hair. The armor for the boys or the skirts for the girls, that will be hard to make, so I will have to compose something for you for that. Now, lets start with the face changer. Keep in mind, this is my script, so you will need to change names to what your gui's are called. Now, first you need to add every remote event for each face in ReplicatedStorage. Next, lets name them, I named them like this "RemoteFaceTest1", "RemoteFaceTest2", ext. Ok, next add in a local script in each ImageButton or TextButton for each face. Finally add in a ServerScript, or just a normal script in Workspace for each face you want, whether you are doing 4 faces, 5 faces, it just depends how much faces you want for your gui that the player can change to. Ok! We can finally start scripting. Now, we will start with the Local Scripts, use a script like this in each Local Script:

local ReplicatedStorage = game:GetService("ReplicatedStorage")
script.Parent.MouseButton1Click:Connect(function()
    game.ReplicatedStorage.RemoteFaceTest1:FireServer("rbxassetid://PUT THE FACE ID HERE")
end)

Now, for the ServerScript:

local ReplicatedStorage = game:GetService("ReplicatedStorage")
game.ReplicatedStorage.RemoteFaceTest1.OnServerEvent:Connect(function(player, facechange)
     player.Character.Head.face.Texture = facechange
    end)

Now, give it a try, if it works, I will try to give you the answer for the hair changer, I'm gonna start working on it. Before I do anything, I'm going to make sure, are you at all using a custom character for the players? I hope this works. -Mrmonkeyman

0
Thanks! I am away right now, so I can't make you the one script for the hair changer. I'll try to answer as soon as possible, Thanks! ???? Mrmonkeyman120 65 — 5y
0
Okay, i have to wait till i can try the script but if it works you have helped my game and made a big relief in coding i will tell you if it works and try to tell people about your coding skills on my roblox page, thanks! pr3cure -26 — 5y
0
Thank you! No problem, Make sure to try out the script to make sure it works! ???? Mrmonkeyman120 65 — 5y
0
Im trying to understand why the script still does not work...should i rename the local script or the button? pr3cure -26 — 5y
View all comments (8 more)
0
Hmm, Let me see.. Are you sure you put a remote event in ReplicatedStorage and named it: RemoteFaceTest1? Next make sure that the Local script is directly inside of the button. Mrmonkeyman120 65 — 5y
0
Also make sure that the ServerScript is inside workspace?? Mrmonkeyman120 65 — 5y
0
okay im editing it right now, im gonna give it a second try, but do i name the buton and the local script what ever i want or does it need a certain name? In the local script in the button, where it says Remote face test 1 do i rename it to the button or the local script??? pr3cure -26 — 5y
0
Nope, All you need is the one RemoteEvent inside ReplicatedStorage named "RemoteFaceTest", and the local script inside of the button. And, the ServerScript inside of Workspace, that should be it.. Mrmonkeyman120 65 — 5y
0
Alright thanks! pr3cure -26 — 5y
0
I'll tell you if it works and maybe it will help the mesh hair and clothes???? Or if the other ones are a completely different script... pr3cure -26 — 5y
0
Okay, It just takes of the face of the player and thats it, I double checked everything... pr3cure -26 — 5y
0
Its because you are using a invalid link, you can only use a link like this, this link gives the player the "Err" face: rbxassetid://20418658 Mrmonkeyman120 65 — 5y
Ad

Answer this question