Advertisement
Wubzer

Suicide Vest

Sep 9th, 2017
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.97 KB | None | 0 0
  1. --// Suicide Bomb
  2. --// WXBZ was here kek.
  3.  
  4. --// Vars
  5. local plrs = game:GetService"Players";
  6. local plr = plrs.LocalPlayer;
  7. local char = plr.Character;
  8. local sacrificing = false;
  9. char:FindFirstChild("Humanoid").WalkSpeed = 64;
  10.  
  11. --// Instances
  12. local sake = Instance.new"Sound";
  13. sake.SoundId = "rbxassetid://410576259";
  14. sake.Volume = 3;
  15. sake.Parent = char.HumanoidRootPart;
  16. sake:Play();
  17. local akbar = Instance.new"Sound";
  18. akbar.SoundId = "rbxassetid://197054133";
  19. akbar.Volume = 15;
  20. akbar.Parent = char.HumanoidRootPart;
  21. local v = Instance.new"Part";
  22. v.BrickColor = BrickColor.new"Black";
  23. v.CFrame = char.HumanoidRootPart.CFrame;
  24. v.Size = Vector3.new(1.73, 1.52, 1.67);
  25. v.Anchored = true;
  26. v.CanCollide = false;
  27. v.Parent = char;
  28. local vm = Instance.new"SpecialMesh";
  29. vm.MeshId = "http://www.roblox.com/asset/?id=306149909";
  30. vm.Scale = Vector3.new(1.02, 1, 1);
  31. vm.Parent = v;
  32. local iweld = Instance.new"Weld";
  33. iweld.Part0 = char.HumanoidRootPart;
  34. iweld.Part1 = v;
  35. iweld.C0 = char.HumanoidRootPart.CFrame:inverse();
  36. iweld.C1 = v.CFrame:inverse();
  37. iweld.Parent = char;
  38. v.Anchored = false;
  39.  
  40. --// Functions
  41. local function pointofnoreturn(hookobj)
  42.     sacrificing = true;
  43.     local function attach()
  44.         while (true) do
  45.             char.HumanoidRootPart.CFrame = hookobj.CFrame * CFrame.new(0, 0, 1);
  46.             for _, i in pairs(hookobj.Parent:GetChildren()) do if (i:IsA("ForceField")) then i:Destroy(); end; end;
  47.             wait();
  48.         end;
  49.     end;
  50.     spawn(attach)
  51.     akbar:Play();
  52.     wait(3);
  53.     local ex = Instance.new"Explosion";
  54.     ex.Position = hookobj.Position;
  55.     ex.Parent = hookobj;
  56. end;
  57.  
  58. --// Events
  59. char.HumanoidRootPart.Touched:Connect(function(h)
  60.     if (not h.Parent or h == nil or sacrificing) then return; end;
  61.     if (plrs:FindFirstChild(h.Parent.Name) and h.Parent ~= char) then
  62.         pointofnoreturn(h.Parent.HumanoidRootPart);
  63.     elseif (h.Parent.Parent and plrs:FindFirstChild(h.Parent.Parent.Name) and h.Parent.Parent ~= char) then
  64.         pointofnoreturn(h.Parent.Parent.HumanoidRootPart);
  65.     end
  66. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement