I’m making a morph type thing using welds.
However, for some reason it teleports me to the morph ONLY when its cloned.
function onTouched(hit)
if hit.Parent:FindFirstChild("Race") then return end
local marker = Instance.new("StringValue")
marker.Parent = hit.Parent
marker.Name = "Race"
marker.Value = "Cyborg"
local cyborg = workspace.Cyborg:Clone()
cyborg.HumanoidRootPart.Weld.Part1 = hit.Parent.Torso
cyborg.Parent = hit.Parent
local e = game.ReplicatedStorage.Cyborg.Keybinds:Clone()
e.Parent = hit.Parent
end
script.Parent.Touched:connect(onTouched)