Advertisement
Dark_EccentricYT

Untitled

Jul 16th, 2020
24,905
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.09 KB | None | 0 0
  1. --[[
  2. Important: Those are the hats you need to own and wear in order for this script to work
  3. https://www.roblox.com/catalog/4735272012/Trash-Can
  4. https://www.roblox.com/catalog/4735336570/Trash-Can-Lid
  5. https://www.roblox.com/catalog/4876469013/Destructive-Aura
  6. ]]--
  7. local plr = game.Players.LocalPlayer;
  8. local chr = plr.Character;
  9. local hum = chr.Humanoid;
  10. local hat1 = chr['Trash Can'];
  11. local hat2 = chr['Trash Can Lid'];
  12. local hat3 = chr['MeshPartAccessory'];
  13. hat3.Name = 'Evil';
  14. local flingmode = true;
  15. if flingmode then print('Fling mode started.') hat3.Handle.CFrame = CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0) hat3.Parent = workspace end;
  16. local b1 = hat1.Handle;
  17. local b2 = hat2.Handle;
  18. local b3 = hat3.Handle;
  19. local soulcount = 0;
  20. print('Fling: ' .. tostring(flingmode));
  21. --[[Network]]
  22. local NetworkAccess = coroutine.create(function()
  23. while true do game:GetService("RunService").RenderStepped:Wait()
  24. game:GetService("Players").LocalPlayer.ReplicationFocus = workspace
  25. game:GetService("Players").LocalPlayer.MaximumSimulationRadius = math.pow(math.huge,math.huge)
  26. sethiddenproperty(game:GetService("Players").LocalPlayer,"SimulationRadius",math.huge*math.huge) end end)
  27. coroutine.resume(NetworkAccess)
  28.  
  29. function msg(str)
  30. game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer('[Trash Can] ' .. str, "All");
  31. end
  32.  
  33. local soultime = true;
  34. function collectsoul(r)
  35. if soultime then
  36. soulcount = soulcount + 1;
  37. msg(r .. ' died and their soul has been collected. Total souls: ' .. soulcount);
  38. soultime = false;
  39. spawn(function() wait(3) soultime = true end);
  40. end
  41. end
  42.  
  43. b1.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0);
  44. b1.CanCollide = false;
  45. b1:BreakJoints();
  46. for _, k in pairs(hat1:GetChildren()) do
  47. if not k:IsA'SpecialMesh' and not k:IsA'Part' then
  48. k:Destroy();
  49. end
  50. end
  51. local still1 = Instance.new('BodyAngularVelocity', b1);
  52. still1.MaxTorque = Vector3.new(math.huge, math.huge, math.huge);
  53. still1.AngularVelocity = Vector3.new(0, -3, 0);
  54. local align1 = Instance.new('AlignPosition', b1);
  55. align1.MaxForce = 1000000;
  56. align1.MaxVelocity = math.huge;
  57. align1.RigidityEnabled = false;
  58. align1.ApplyAtCenterOfMass = true;
  59. align1.Responsiveness = 200;
  60. local a01 = Instance.new('Attachment', b1);
  61. local a11 = Instance.new('Attachment', chr.HumanoidRootPart);
  62. align1.Attachment0 = a01;
  63. align1.Attachment1 = a11;
  64.  
  65. b2.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0);
  66. b2.CanCollide = false;
  67. b2:BreakJoints();
  68. for _, k in pairs(hat2:GetChildren()) do
  69. if not k:IsA'SpecialMesh' and not k:IsA'Part' then
  70. k:Destroy();
  71. end
  72. end
  73. local still2 = Instance.new('BodyAngularVelocity', b2);
  74. still2.MaxTorque = Vector3.new(math.huge, math.huge, math.huge);
  75. still2.AngularVelocity = Vector3.new(0, 3, 0);
  76. local align2 = Instance.new('AlignPosition', b2);
  77. align2.MaxForce = 1000000;
  78. align2.MaxVelocity = math.huge;
  79. align2.RigidityEnabled = false;
  80. align2.ApplyAtCenterOfMass = true;
  81. align2.Responsiveness = 200;
  82. local a02 = Instance.new('Attachment', b2);
  83. local a12 = Instance.new('Attachment', chr.HumanoidRootPart);
  84. align2.Attachment0 = a02;
  85. align2.Attachment1 = a12;
  86.  
  87. b3.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0);
  88. b3.CanCollide = false;
  89. b3:BreakJoints();
  90. for _, k in pairs(hat3:GetChildren()) do
  91. if not k:IsA'SpecialMesh' and not k:IsA'Part' then
  92. k:Destroy();
  93. end
  94. end
  95. local still3 = Instance.new('BodyAngularVelocity', b3);
  96. still3.MaxTorque = Vector3.new(math.huge, math.huge, math.huge);
  97. still3.AngularVelocity = Vector3.new(0, 0, 0);
  98. local align3 = Instance.new('AlignPosition', b3);
  99. align3.MaxForce = 1000000;
  100. align3.MaxVelocity = math.huge;
  101. align3.RigidityEnabled = false;
  102. align3.ApplyAtCenterOfMass = true;
  103. align3.Responsiveness = 200;
  104. local a03 = Instance.new('Attachment', b3);
  105. local a13 = Instance.new('Attachment', chr.HumanoidRootPart);
  106. align3.Attachment0 = a03;
  107. align3.Attachment1 = a13;
  108.  
  109. local opent = false;
  110. local opent2 = false;
  111. local opent3 = false;
  112. local locx = 0;
  113. local locz = 0;
  114. spawn(function()
  115. plr:GetMouse().KeyDown:Connect(function(k)
  116. if k == 'c' then
  117. opent = true;
  118. end
  119. if k == 'x' then
  120. locx = math.random(-4, 8) locz = math.random(-3, 3);
  121. opent2 = true;
  122. end
  123. if k == 'f' then
  124. opent3 = true;
  125. end
  126. end)
  127. end)
  128. spawn(function()
  129. plr:GetMouse().KeyUp:Connect(function(k)
  130. if k == 'c' then
  131. opent = false;
  132. end
  133. if k == 'x' then
  134. opent2 = false;
  135. end
  136. if k == 'f' then
  137. opent3 = false;
  138. end
  139. end)
  140. end)
  141. local ist = false;
  142. local ist2 = false;
  143. spawn(function()
  144. b3.Touched:Connect(function(c)
  145. if c.Parent ~= chr and c.Parent:FindFirstChildOfClass'Humanoid' and not ist2 then
  146. print'touch'
  147. spawn(function() ist2 = true wait(1.5) ist2 = false end);
  148. pcall(function()spawn(function()
  149. local pler = game.Players[c.Parent.Name];
  150. pler.Character.Humanoid.Died:Connect(function()
  151. collectsoul(pler.Name);
  152. game:disconnectscript();
  153. end)
  154. end)end);
  155. ist = true;
  156. wait(0.1);
  157. ist = false;
  158. end
  159. end)
  160. end)
  161. local rotx = 0;
  162. local smooth = 0.07;
  163. local rotz = math.pi / 2;
  164. game.RunService.RenderStepped:Connect(function()
  165. rotx = rotx + 2 / 100;
  166. rotz = rotz + 2 / 100;
  167. b1.CanCollide = false;
  168. b2.CanCollide = false;
  169. b3.CanCollide = false;
  170. a13.Position = Vector3.new(3.2, -3, 0);
  171. if flingmode then still3.AngularVelocity = Vector3.new(0, 100000, 0) else still3.AngularVelocity = Vector3.new(0, 3, 0) end;
  172. if opent == false then
  173. a11.Position = a11.Position:Lerp(Vector3.new(3.2, -1.5, 0), smooth);
  174. a12.Position = a12.Position:Lerp(Vector3.new(3.2, 0.2, 0), smooth);
  175. a13.Position = Vector3.new(3.2, -100, 0);
  176. else
  177. a11.Position = a11.Position:Lerp(Vector3.new(0, -1.5, -4), smooth);
  178. a13.Position = Vector3.new(0, 1.3, -4);
  179. if ist then
  180. a12.Position = a12.Position:Lerp(Vector3.new(0, 6.8, -4), smooth);
  181. wait(0.5);
  182. a12.Position = a12.Position:Lerp(Vector3.new(0, 0.2, -4), smooth);
  183. else
  184. a12.Position = a12.Position:Lerp(Vector3.new(0, 2.4, -4), smooth);
  185. end
  186. end
  187. if opent2 == true then
  188. a12.Position = a12.Position:Lerp(Vector3.new(locx, 1.6, locz), smooth);
  189. end
  190. if opent3 == true then
  191. a11.Position = a11.Position:Lerp(Vector3.new(10.2, -1.5, 0), smooth);
  192. a12.Position = a12.Position:Lerp(Vector3.new(10.2, 0.2, 0), smooth);
  193. a13.Position = Vector3.new(math.sin(rotx) * 5, 0, math.sin(rotz) * 5);
  194. end
  195. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement