Player Stuttering when Morphed

I have a code in my game that morphs the player into a 2x2x2 cube. Although the morphing does in fact work, I tried jumping around in my cube morph and found that it was really stuttery and sometimes teleported me back when jumping. The normal character does not do this.
This is my function, in which is called from the server in Player.CharacterAdded (i got this from a youtube video, they didnt seem to have any problems though)

local function Morph(Player)
	local Character = Player.Character
	local HRP = Character:FindFirstChild('HumanoidRootPart')
	local MorphCharacter = ReplicatedStorage.Game.Cube:Clone()
	MorphCharacter.HumanoidRootPart.CFrame = HRP.CFrame
	Player.Character = MorphCharacter
	Character:Destroy()
	MorphCharacter.HumanoidRootPart.Anchored = false
	MorphCharacter.Parent = workspace
end	

(roblox has weird error cant load video, but you can try yourself, just build like a small obby and you see)

also, by 2x2x2 cube cannot jump in a 3 stud high gap, although it makes a jumping sfx.

PLEASE HELP


this is the thing i tested it on, seems to have problems (the horizontal part on the left was the one that i couldnt jump when i was under it, its a 3 stud gap)

I can’t test it out and see for myself but kinda sounds like it could be because of the mass

didn’t work. I tried changing it to massless and adjusting the density, but to no prevail

nvm, i think it was the script, i recoded it and it works now.

1 Like

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