Here(this was made from scratch):
humanoidholder = Instance.new("Model")
bin = script.Parent
function onButton1Down(mouse)
player = game.Players.LocalPlayer
if player==nil then return end
if player.Character:findFirstChild("Humanoid")~=nil then
player.Character.Humanoid.Parent = humanoidholder
else
humanoidholder.Humanoid.Parent = player.Character
end
end
function onSelected(mouse)
player = game.Players.LocalPlayer
if player==nil then return end
humanoidholder.Parent = player
mouse.Button1Down:connect(function() onButton1Down(mouse) end)
end
bin.Selected:connect(onSelected) |