Advertisement
InTesting

Death Effect: Ice Death

Nov 27th, 2019
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.10 KB | None | 0 0
  1. print'https://pastebin.com/raw/Z81xLHdn'
  2. local function Instance_2(c,p)p=p or{Parent=nil;};if not c then return;end;
  3. local b=Instance.new(c,p.Parent);for c,a in pairs(p)do local _,d= pcall(function()b[c]=a;end);
  4. if d then print(d)end;end;return b;end;
  5. local function Icy_Death(model)wait(.1);
  6. local hum,_,part_1=model:FindFirstChildWhichIsA'Humanoid',pcall(function()return model.PrimaryPart or
  7. model:FindFirstChild'Torso'or model:FindFirstChild'UpperTorso'or model:FindFirstChild'Head';
  8. end);if not hum or not part_1 or typeof(part_1)~='Instance' then return;end;
  9. hum.BreakJointsOnDeath=false;hum.Died:Connect(function()_,part_1=pcall(function()
  10. return model.PrimaryPart or model:FindFirstChild'Torso'or model:FindFirstChild'UpperTorso'or
  11. model:FindFirstChild'Head';end)if not part_1 then return;end;
  12. for _,a in pairs(model:GetDescendants())do if a:IsA'BasePart'then a.Material,a.Color='Ice',
  13. Color3.fromRGB(4,175,236);Instance_2('WeldConstraint',{Part0=part_1;Part1=a;Parent=part_1});end;end;
  14. end);end;for _,a in pairs(workspace:GetChildren())do Icy_Death(a);end;
  15. workspace.ChildAdded:Connect(Icy_Death);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement