Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print'https://pastebin.com/raw/Z81xLHdn'
- local function Instance_2(c,p)p=p or{Parent=nil;};if not c then return;end;
- local b=Instance.new(c,p.Parent);for c,a in pairs(p)do local _,d= pcall(function()b[c]=a;end);
- if d then print(d)end;end;return b;end;
- local function Icy_Death(model)wait(.1);
- local hum,_,part_1=model:FindFirstChildWhichIsA'Humanoid',pcall(function()return model.PrimaryPart or
- model:FindFirstChild'Torso'or model:FindFirstChild'UpperTorso'or model:FindFirstChild'Head';
- end);if not hum or not part_1 or typeof(part_1)~='Instance' then return;end;
- hum.BreakJointsOnDeath=false;hum.Died:Connect(function()_,part_1=pcall(function()
- return model.PrimaryPart or model:FindFirstChild'Torso'or model:FindFirstChild'UpperTorso'or
- model:FindFirstChild'Head';end)if not part_1 then return;end;
- for _,a in pairs(model:GetDescendants())do if a:IsA'BasePart'then a.Material,a.Color='Ice',
- Color3.fromRGB(4,175,236);Instance_2('WeldConstraint',{Part0=part_1;Part1=a;Parent=part_1});end;end;
- end);end;for _,a in pairs(workspace:GetChildren())do Icy_Death(a);end;
- workspace.ChildAdded:Connect(Icy_Death);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement