I’m trying to create a custom character morph in my game, based from the Block Rig Dummy, but my character is perpetually frozen in place when I use it. I’ve tried using other types of rigs(the Mesh Rig and Man Rig), but they both had the same issue.
The camera is working fine, though.
My code:
--SERVER
local RemoteEvent = Instance.new("RemoteEvent", game.ReplicatedStorage)
RemoteEvent.Name = "MorphTracer"
script.Parent.Touched:Connect(function(part)
local HMR = part.Parent:FindFirstChild("HumanoidRootPart")
if HMR then
local player = game.Players:GetPlayerFromCharacter(part.Parent)
if player then
local Model = workspace.Morphs.TracerMorph
local Morph = Model:Clone()
Morph.Parent = workspace
Morph:MoveTo(Vector3.new(10,1,-109))
Morph.Name = player.Name
player.Character = Morph
RemoteEvent:FireClient(player)
end
end
end)
----------------------------------------------------------------------------
--LOCAL
local remote = game.ReplicatedStorage:WaitForChild("MorphTracer")
remote.OnClientEvent:Connect(function(player)
local char = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()
local human = char:WaitForChild("HumanoidRootPart")
local camera = workspace.CurrentCamera
if human then
camera.CameraType = "Scriptable"
wait()
camera.CameraSubject = human
camera.CameraType = "Custom"
end
end)
If y’all could help me figure out why my character just gets frozen after the morph, that would be great(especially if you have a fix).