Its like trying to change the char to a models char can anyone help?
Some things you could do:
There is a function called ClearCharacterAppearance()
. You know, it clears the character's shirts, pants, hats, even packages.
1 | game:GetService( "Players" ).LocalPlayer:ClearCharacterAppearance() |
01 | local plyr = game:GetService( "Players" ).LocalPlayer |
02 |
03 | function add() |
04 | local s,p,h,t = Instance.new( "Shirt" , plyr.Character),Instance.new( "Pants" , plyr.Character),Instance.new( "Hat" , plyr.Character),Instance.new( "ShirtGraphic" , plyr.Character) |
05 | s.Texture = "AssetHere" |
06 | p.Texture = "AssetHere" |
07 | --Edit hat |
08 | t.Texture = "AssetHere" |
09 | --s is shirt, p is pants, t is t-shirt |
10 | end |
Hope it helps!
Let's try something simple. We'll give them a specific shirt.
First thing, we need to get a shirt and place it inside a part (the same part your morph block is) and name it 'shirt'. Put a script inside the same part:
01 | local shirt = script.Parent.shirt |
02 | function touch(hit) |
03 | if game.Players:findFirstChild(hit.Parent.Name) then |
04 | stuff = hit.Parent:GetChildren() |
05 | for i = 1 , #stuff do |
06 | if stuff [ i ] .ClassName = = "Shirt" then --remove existing shirts |
07 | stuff [ i ] :Destroy() |
08 | end |
09 | shirt:Clone().Parent = hit.Parent |
10 | end |
11 | end |
This script isn't tested, but I hope it works.
-ds