Sorry but I don’t know in what category put this topic…
In a game, I’ve made a custom character to change the player character by a ant, so, the first time I tested I added a humanoid (R6) Instance and renamed some parts to Torso, Head and HumanoidRootPart
I know, in my model some things are missing but it’s less important than the rest…
There is a weld from Head to Torso, Torso is the brown Joint closer to the head and GraphMisc is anything like eyes, foot and legs…
But then when I change the Player’s Character to PlayerAntModel, he die
I don’t have anymore the script which change the Player’s character because I wasn’t able to create topics on the DevForum and, so, it frustrated me
So I changed to a better way that work now but abnormally (It can walk but stops walking and rewalk… )
Now I have a model like this:
The model looks like the old. Now I can have the script that does the work, the script used now delete anything useless (in the player’s character) then copy the PlayerAntModel (which is now in the ServerStorage) to the Player’s Character then it remplace the rest parts to the PlayerAntModel parts and move the PlayerAntModel’s rest parts to the Player’s character…
Also it is using the HumanoidRootPart as a foot Else it won’t work idk y
local function BecAnt(Humanoid,NewPos)
if Humanoid then
NewEvent:FireClient(game.Players[Humanoid.Parent.Name],1,true)
local PlrObj = Humanoid.Parent
local T = PlrObj:GetChildren()
local Keep = {"Head","Torso","Humanoid","HumanoidRootPart"}
local i=0
local j=0
for i=1,#T do
for j=1,#Keep do
if Keep[j] == T[i].Name then
break
elseif j == #Keep then
T[i]:Destroy()
end
end
end
Humanoid:ClearAllChildren()
local AntM = game.ServerStorage.PlayerAntModel:Clone()
AntM.Parent = PlrObj
AntM.GraphMisc.Parent = PlrObj
AntM.Abdomen.Parent = PlrObj
AntM.Join.Parent = PlrObj
AntM.Center.Parent = PlrObj
PlrObj.PrimaryPart = PlrObj.HumanoidRootPart
PlrObj.Head:Destroy()
AntM.Head.Parent = PlrObj
PlrObj.Torso:Destroy()
AntM.Torso.Parent = PlrObj
PlrObj.HumanoidRootPart:ClearAllChildren()
PlrObj.HumanoidRootPart.Position = (PlrObj.Center.Position - Vector3.new(0,1.495,0))
PlrObj.HumanoidRootPart.Orientation = PlrObj.Center.Orientation
PlrObj.HumanoidRootPart.CanCollide = true
PlrObj.HumanoidRootPart.Size = Vector3.new(6,1.5,3.75)
local Weld = Instance.new("WeldConstraint",PlrObj)
Weld.Parent = PlrObj.HumanoidRootPart
Weld.Part0 = Weld.Parent
Weld.Part1 = PlrObj.Center
PlrObj.HumanoidRootPart.CFrame = NewPos
end
end
I undrestand that you can be lost in my explanations but it’s important to understand.
SO. It WORKS but I’ve some problem while walking, and uh, sorry, I can’t upload .wmv videos but you can see by yourself in Becants
You must go to one of the color plates and you will be a ant, select one of the buttons that will appears (it doesn’t matter which) click [OK] then try to keep walking [W], you will see the issue… And sorry for the fact that I can’t upload a video…
So… My goal is to get the ant keeping walking without stoping.
I don’t know if I must do a Script or change the design or else…