I've made an adminish gui which allows the player to clone themselves, however, everything clones but the hats fall through the clone and disappear instead of just staying on their heads.. Any ideas?
local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()
script.Parent.Parent.Parent.MouseButton1Click:connect(function()
local message = script.Parent.Parent.Parent.Parent.Cmd.Text
function findPlayer(name)
for _, player in ipairs(game.Players:GetPlayers()) do
if player.Name:lower() == name:lower() then
return player
end
end
end
if message:sub(1, 6) == "clone/" then
if message:sub(7) == "me" then
L = game.Players.LocalPlayer
S = Instance.new("StringValue")
S.Value = ("Clone")
S.Parent = L.Character.Torso
B = L.Character
B.Archivable = true
B:Clone().Parent = workspace
L.Character.Torso.Value:Remove()
end
end
end)
game.Players.PlayerAdded:connect(function(player)
end)
