Hello! I’ve been trying to make a morph system in an attempt to workaround another issue but I believe this new method would work instead, which it did. However, every time the player would morph, they wouldn’t be able to jump.
See this video.
As you see, I morph onto one of my morphs, but for some reason, when I try and press the space bar, nothing happens. But then I manually make myself jump by pressing the “Jump” property on the Humanoid to true, again, that doesn’t change when I press space bar.
I can move completely fine in the morph and then again I just can’t jump which is the main issue here.
I did try and look for other threads, which there were, but I couldn’t find an actual answer to why mine wouldn’t work.
Here is my morph module code, if anyone wants to analyze it:
local module = {}
local Morphs = game.ServerStorage:WaitForChild("MorphStorage")
module.Morph = function(plr,category,name)
local playerCharacter = plr.Character
local character = Morphs:FindFirstChild(category):FindFirstChild(name)
if character ~= nil then
local newchr = character:Clone()
local originalCF = playerCharacter:GetPrimaryPartCFrame()
playerCharacter:FindFirstChildOfClass("Humanoid"):SetStateEnabled(Enum.HumanoidStateType.Dead,false)
playerCharacter:ClearAllChildren()
for _, i in pairs(newchr:GetChildren()) do
i.Parent = playerCharacter
if i:IsA("BasePart") then
i:SetNetworkOwner(plr)
end
end
playerCharacter:MakeJoints()
playerCharacter.PrimaryPart = playerCharacter:WaitForChild("HumanoidRootPart")
playerCharacter:SetPrimaryPartCFrame(originalCF)
end
end
return module
If anyone can help me with this issue, thank you!
Update: I fixed the issue, kind of, I can jump but the problem is that the animate script looks weird. Like it’s not being influenced by any velocity or whatever.
I still need help with this.
Update 2: It was the weight fix. I disabled the weight fix and it works fine now…