#teleporting the morph cloned cframe to the player cframe is not working
12 messages · Page 1 of 1 (latest)
what did I just listen too
i mostly used this https://www.youtube.com/watch?v=3t_NiKm0Oto&ab_channel=BuzzyGames
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!
⬇️ ...
@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)
when i use this it create a part with my name, but the part is still in the original part and its not morphing me
i changed my script and set the head of the clone anchored to false and now instead of spawning me in the original part, this happen :
its kinda laggy but basically when i click to morph, it tp me at the back of the part