So basically you become a non-character model. But all the parts weld into each other, why and how do i stop this?
local deb = false
script.Parent.Touched:connect(function(hit)
if deb == false then
deb = true
if hit.Parent:FindFirstChild("Humanoid") then
for i, prt in pairs(hit.Parent:GetChildren()) do -- Hats
if prt:IsA("Hat") then
prt.Handle.Transparency = 1
elseif prt:IsA("Part") then
prt.Transparency = 1
end
local cactus = script.Parent.Parent.Cactus:Clone()
cactus.Parent = hit.Parent
cactus:SetPrimaryPartCFrame(hit.Parent.Torso.CFrame)
for i, piece in pairs(cactus:GetChildren()) do
local weld = Instance.new("Weld",piece)
weld.Part0 = piece
weld.Part1 = hit.Parent.Torso
piece.Anchored = false
end
end
end
end
deb = false
end)
