Can not move : Custom character R15

Hello,

why I can not move with my custom character ? Like in the animation : https://gyazo.com/368b08d39e1f0fe90851c27deaeb92c2


image

Animate localscript in the character:

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)

image

1 Like

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.

I’ve already tried in another place to see if it comes from the scripts but I can not move when I am playing with my character in StarterCharacter

1 Like

The scripts, from what I’m seeing, look fine.

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:

Setting the ‘Scale’ property to 1, I believe, would fix the issue of sliding movement I saw in the video: (I’ve converted the video into MP4 below.)

The solution to this issue is to ‘copy’ and ‘paste’ what is under the model you have currently in your game to a new ‘model’.


What ??? I did not understand what you suggest.

I am not sure what specific part of my reply you are having trouble understanding.

Do you know how to make an ‘rbxl’ file like the one below?
testing custom character importing aa.rbxl (176.3 KB)

I fixed, I added 11.2 in HipHeight in the humanoid, thank you :).

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.