#teleporting the morph cloned cframe to the player cframe is not working

12 messages · Page 1 of 1 (latest)

wispy timber
#

not really

orchid light
#

what did I just listen too

wispy timber
#

Hiya developers! Watch this video to learn how to step by step morph into actual parts for your game using Roblox Studio!

If you have any questions or would like to join a community of developers, come join our discord down below!

If you have any questions or would like to join a community of developers, come join our discord down below!

⬇️ ...

▶ Play video
fair kraken
#

@wispy timber maybe

#

humanoidroot

#

wasnt

#

spawned

#

yet

#
PlayerCloneEvent.OnServerEvent:Connect(function(player, adornee)
    if player and adornee then
        local highlightedPart = adornee
        local char = highlightedPart.Parent

        local clone = char:Clone()
        clone.Name = player.Name
        clone.Parent = game.Workspace

        player.CharacterAdded:Wait()
        player.Character = clone

        local humRP = clone:FindFirstChild("HumanoidRootPart")
        local playerRP = player.Character:WaitForChild("HumanoidRootPart")

        if humRP and playerRP then
            humRP.CFrame = playerRP.CFrame
            humRP.Anchored = false
        end
    end
end)
wispy timber
wispy timber
#

its kinda laggy but basically when i click to morph, it tp me at the back of the part