local rf = game:GetService("ReplicatedFirst")
local rs = game:GetService("ReplicatedStorage")
local UIS = game:GetService("UserInputService")
local plr = game:GetService("Players").LocalPlayer
local character = script.Parent
local humanoid = character:FindFirstChild("Humanoid")
local walkAnim = script:WaitForChild("Walk")
local walkAnimTrack = humanoid.Animator:LoadAnimation(walkAnim)
humanoid:GetPropertyChangedSignal("MoveDirection"):Connect(function()
if humanoid.MoveDirection == Vector3.new(0, 0, 0) then
if walkAnimTrack.IsPlaying then
walkAnimTrack:Stop()
end
else
if not walkAnimTrack.IsPlaying then
walkAnimTrack:Play()
end
end
end)
How I deploy with my custom character:
local rs = game:GetService("ReplicatedStorage")
local rf = game:GetService("ReplicatedFirst")
local e = rs.Events.Deploy.PhantomMecha
e.OnServerEvent:Connect(function(plr)
local char = plr.Character
local rankFromDB = plr.FromDB.Rank
local newCharacter = rf.PhantomMecha.Character:Clone()
newCharacter.Name = plr.Name
plr.Character = newCharacter
char:Destroy()
char = plr.Character
newCharacter.Parent = workspace
char:MoveTo(workspace.PositionCharacter.Position)
local newAnimate = rf.PhantomMecha.Animate:Clone()
newAnimate.Parent = char
newAnimate.Enabled = true
end)
I’d like you to test something, I think it’ll fix the issue. Highlight all the contents inside the model, group it together in a new group.
Here’s a video:
Actually, since you are not starting with the character when loading into the game, you just need to add the contents of the current model you have into a new one.
Yesterday I spent more than an hour going through custom character issues. I’ve also been dealing with these issues for more than a year now. I’ll do my best to explain below, but it would be easier if you could send me a Roblox Studio file with the custom character and the relevant contents/assets.
From the following screenshot, I see the ‘HipHeight’ property of the ‘Humanoid’ is set to 0. This could be issue number 1:
The solution to this issue is to set the ‘HipHeight’ property to a greater number, ‘5’ for example.
Possible issue number 2 is a current issue that I don’t know the entire situation for. It involves physics and how the ‘Scale’ property works for 'Model’s. I see that your ‘Scale’ on the model is very low, 0.055 to be exact: