|
| 10 Aug 2015 12:38 PM |
I'm trying to make a script that auto morphs you into another humanoid(the humanoid will be located in Lighting) When you join the game, the script replaces your main character with another humanoid. If you don't understand what I'm talking about, check ROBLOX Battle. |
|
|
| Report Abuse |
|
|
| |
|
robosz
|
  |
| Joined: 02 Oct 2013 |
| Total Posts: 2355 |
|
| |
|
|
| 10 Aug 2015 12:44 PM |
Wrong Subforum. You need Game Creation and Development.
just your average NASCAR oter |
|
|
| Report Abuse |
|
|
Slydexia
|
  |
| Joined: 10 Aug 2010 |
| Total Posts: 98517 |
|
|
| 10 Aug 2015 12:47 PM |
have the humanoid's body colors, shirt, hats, face, and package parts saved into a model make the script so it removes the existing ones, clones the ones in the model, and places them where they are needed unless that's the part you need help with |
|
|
| Report Abuse |
|
|
|
| 10 Aug 2015 12:50 PM |
bad part is i don't know how to script it |
|
|
| Report Abuse |
|
|
Slydexia
|
  |
| Joined: 10 Aug 2010 |
| Total Posts: 98517 |
|
|
| 10 Aug 2015 12:51 PM |
saw that coming ... ok ok let me see what i can do |
|
|
| Report Abuse |
|
|
Slydexia
|
  |
| Joined: 10 Aug 2010 |
| Total Posts: 98517 |
|
|
| 10 Aug 2015 12:53 PM |
| gonna right you a simple script real quick hold on |
|
|
| Report Abuse |
|
|
Slydexia
|
  |
| Joined: 10 Aug 2010 |
| Total Posts: 98517 |
|
|
| 10 Aug 2015 12:54 PM |
"right" based on this typo don't expect it to work right away lol |
|
|
| Report Abuse |
|
|
|
| 10 Aug 2015 01:04 PM |
even if it don't work thanks i will give credit when i get finished with the game but it's gonna be a long time before i finish my game |
|
|
| Report Abuse |
|
|
Slydexia
|
  |
| Joined: 10 Aug 2010 |
| Total Posts: 98517 |
|
|
| 10 Aug 2015 01:10 PM |
Model = game.Lighting.(Name of model here)
Accessories = {"Hat","CharacterMesh","BodyColors", "Shirt", "Pants"}
Char = script.Parent -- Make sure the script is put inside the character
Char.Torso.roblox:Destroy() Char.Head.face:Destroy() --Char.Head.Mesh:Destroy() --If Headless Head seems unfair to you, remove the dashes before the line above
stuff = Char:GetChildren() for z = 1,#Accessories do for a = 1,#stuff do if stuff[a].ClassName == Accessories[z] then stuff[a]:Destroy() end end end
moreStuff = Model:GetChildren() for z = 1,#Accessories do for c = 1,#moreStuff do if moreStuff[c].ClassName == Accessories[z] then moreStuff[c].Parent = Char end end end
if Model:FindFirstChild("face") ~= nil then Model.face.Parent = Char.Head end
_______________________________________________________
try that |
|
|
| Report Abuse |
|
|