awzp

mir (not by me)

Jun 5th, 2018
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.59 KB | None | 0 0
  1. --Made by N3xul.
  2. local runDummyScript = function(f,scri)
  3. local oldenv = getfenv(f)
  4. local newenv = setmetatable({}, {
  5. __index = function(_, k)
  6. if k:lower() == 'script' then
  7. return scri
  8. else
  9. return oldenv[k]
  10. end
  11. end
  12. })
  13. setfenv(f, newenv)
  14. ypcall(function() f() end)
  15. end
  16. cors = {}
  17. mas = Instance.new("Model",game:GetService("Lighting"))
  18. mas.Name = "CompiledModel"
  19. o1 = Instance.new("Tool")
  20. o2 = Instance.new("Part")
  21. o3 = Instance.new("SpecialMesh")
  22. o4 = Instance.new("Sound")
  23. o6 = Instance.new("LocalScript")
  24. o7 = Instance.new("LocalScript")
  25. o8 = Instance.new("NumberValue")
  26. o9 = Instance.new("ObjectValue")
  27. o10 = Instance.new("Sound")
  28. o11 = Instance.new("Script")
  29. o12 = Instance.new("Animation")
  30. o1.Name = "MakeItRain"
  31. o1.Parent = mas
  32. o1.TextureId = "http://www.roblox.com/asset/?id=99816565"
  33. o1.GripPos = Vector3.new(0.699999928, 0, 0.49999997)
  34. o2.Name = "Handle"
  35. o2.Parent = o1
  36. o2.Position = Vector3.new(130.375, 0.600027025, -174.76001)
  37. o2.FormFactor = Enum.FormFactor.Custom
  38. o2.Size = Vector3.new(1.5500021, 1.20000005, 1.52000058)
  39. o2.CFrame = CFrame.new(130.375, 0.600027025, -174.76001, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  40. o2.Position = Vector3.new(130.375, 0.600027025, -174.76001)
  41. o3.Parent = o2
  42. o3.MeshId = "http://www.roblox.com/asset/?id=99801784"
  43. o3.Scale = Vector3.new(1.5, 1.5, 1.5)
  44. o3.TextureId = "http://www.roblox.com/asset/?id=99801879"
  45. o3.MeshType = Enum.MeshType.FileMesh
  46. o4.Name = "shakeSound"
  47. o4.Parent = o2
  48. o4.SoundId = "http://www.roblox.com/Asset?ID=99817538"
  49. o4.Volume = 1
  50. o6.Parent = o1
  51. table.insert(cors,coroutine.create(function()
  52. wait()
  53. runDummyScript(function()
  54. function waitforchild(parent,child)
  55. while not parent:FindFirstChild(child) do wait() print(parent.Name .. " Waiting for " .. child) end
  56. return parent[child]
  57. end
  58.  
  59. local Tool=script.Parent
  60. local Handle= waitforchild(Tool,'Handle')
  61.  
  62. local shakeSound = waitforchild(Handle,'shakeSound')
  63. local pickupScript = waitforchild(script, 'pickupScript')
  64.  
  65. local ShakeAni=waitforchild(Tool,'Shake')
  66. local ShakeAniTrack
  67.  
  68. local lastClick
  69.  
  70. local LocalPlayer
  71.  
  72. local MyHumanoid
  73.  
  74. local bVel= Instance.new('BodyVelocity')
  75. bVel.maxForce=Vector3.new(9999999,0,9999999)
  76. local thrustSpeed=20
  77.  
  78. local bRot= Instance.new('BodyAngularVelocity')
  79. bRot.maxTorque=Vector3.new(9999999,99999999,9999999)
  80. bRot.angularvelocity=Vector3.new(0,25,0)
  81.  
  82. local robuck= Instance.new('Part')
  83. local decal1 = Instance.new('Decal')
  84. decal1.Texture = 'http://www.roblox.com/asset/?id=16658163'
  85. decal1.Face = 'Bottom'
  86. decal1.Parent=robuck
  87. decal1=decal1:Clone()
  88. decal1.Face = 'Top'
  89. decal1.Parent= robuck
  90. robuck.FormFactor = 'Custom'
  91. robuck.Size = Vector3.new(1.27, 0.2, 0.56)
  92. robuck.BrickColor = BrickColor.new('Dark green')
  93. local pickupSound = Instance.new('Sound')
  94. pickupSound.Name = 'pickupSound'
  95. pickupSound.Volume = 1
  96. pickupSound.SoundId = 'http://www.roblox.com/Asset?ID=97688233'
  97. pickupSound.Parent = robuck
  98.  
  99. local players_ret= {}
  100. function getNearPlayers(mindist,pos)
  101. local parent_pos= pos
  102.  
  103. local i=1
  104. for _, player in pairs(game.Players:GetPlayers()) do
  105. print (player)
  106. tdist= (player.Character.Torso.CFrame.p-parent_pos).magnitude
  107.  
  108. if tdist<mindist then
  109. players_ret[i]=player
  110. i=i+1
  111. print (tdist)
  112. end
  113. end
  114. return players_ret
  115. end
  116.  
  117. function forcePickup(players,ltime)
  118. local startTime= time()
  119. local char
  120.  
  121. for _, player in pairs (players) do
  122. char=player.Character
  123. if char and player ~= LocalPlayer then
  124. local lscript = script:FindFirstChild("callScript"):Clone()
  125. lscript.Parent=char
  126. lscript:FindFirstChild("OriginPlayer").Value=LocalPlayer
  127. lscript.Disabled = false
  128. end
  129. end
  130. print("stopped laughing")
  131. end
  132.  
  133.  
  134. local CanSpawnCash=true
  135. function SpawnCash()
  136. CanSpawnCash=false
  137. --Tool.Grip=CFrame.new(0, 1.39999998, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  138. ShakeAniTrack:Play(.1,1,1)
  139. --wait(1)
  140. shakeSound:Play()
  141. local torso=waitforchild(Tool.Parent,'Torso')
  142. local direction=torso.CFrame.lookVector
  143. for i=0, 10, 1 do
  144. local tbuck = robuck:Clone()
  145. --local tbvel=bVel:Clone()
  146. --tbvel.velocity=(direction*5)+(Vector3.new(math.random()-.5,math.random()-.5,math.random()-.5)*thrustSpeed)
  147. --tbvel.Parent=tbuck
  148. local tscript = pickupScript:Clone()
  149. tscript.Parent=tbuck
  150. tscript.Disabled=false
  151. tbuck.CFrame=torso.CFrame+(direction*5)+Vector3.new((math.random()*30)-15,20,(math.random()*30)-15)
  152. tbuck.Parent=Tool
  153. game.Debris:AddItem(tbvel,1)
  154. game.Debris:AddItem(tbuck,10)
  155. wait(.5)
  156. end
  157. forcePickup(getNearPlayers(30,torso.CFrame.p),10)
  158. CanSpawnCash=true
  159. end
  160.  
  161. function OnClick()
  162. --if CanThrustAttack and CanSpawnBall then
  163. -- ThrustAttack()
  164. if CanSpawnCash then
  165. SpawnCash()
  166. end
  167.  
  168. end
  169.  
  170. function OnUnequip()
  171. if ShakeAniTrack then
  172. ShakeAniTrack:Stop()
  173. ShakeAniTrack.Parent=nil
  174. end
  175. end
  176.  
  177. Tool.Unequipped:connect(OnUnequip)
  178.  
  179. function OnEquip(mouse)
  180. MyHumanoid=waitforchild(Tool.Parent,'Humanoid')
  181. ShakeAniTrack=MyHumanoid:LoadAnimation(ShakeAni)
  182. mouse.Button1Down:connect(OnClick)
  183. LocalPlayer = game.Players:GetPlayerFromCharacter(Tool.Parent)
  184. end
  185.  
  186. Tool.Equipped:connect(OnEquip)
  187. end,o6)
  188. end))
  189. o7.Name = "callScript"
  190. o7.Parent = o6
  191. o7.Disabled = true
  192. table.insert(cors,coroutine.create(function()
  193. wait()
  194. runDummyScript(function()
  195. local player = script.Parent--script:FindFirstChild("target").Value--game.Players.LocalPlayer
  196. local character = player:FindFirstChild("Humanoid")
  197.  
  198. local laughAni= Instance.new("Animation")
  199. laughAni.AnimationId = "http://www.roblox.com/Asset?ID=99815141"
  200.  
  201. local startTime= time()
  202. local hum=script.Parent:FindFirstChild('Humanoid')
  203. local animTrack=hum:LoadAnimation(laughAni)
  204. local ltime=script:FindFirstChild("laughTime")
  205. while not ltime do
  206. ltime=script:FindFirstChild("laughTime")
  207. wait()
  208. end
  209.  
  210. local originPlayer=script:FindFirstChild("OriginPlayer")
  211. while not originPlayer do
  212. originPlayer=script:FindFirstChild("OriginPlayer")
  213. wait()
  214. end
  215.  
  216. local cheer=script:FindFirstChild("cheerSound")
  217. while not cheer do
  218. cheer=script:FindFirstChild("cheerSound")
  219. wait()
  220. end
  221.  
  222. cheer.Parent=player:FindFirstChild('Head')
  223. cheer:Play()
  224.  
  225. animTrack:Play()
  226. animTrack:AdjustSpeed(3)
  227. --local chat= Instance.new("Dialog")
  228. --chat.Parent=script.Parent
  229.  
  230.  
  231.  
  232. local onTouchConn = nil
  233.  
  234. function onTouch(part)
  235. local h = part.Parent:findFirstChild("Humanoid")
  236. if h and not h.Parent:FindFirstChild("callScript") then
  237. if onTouchConn then
  238. print('Disconnecting touch')
  239. onTouchConn:disconnect()
  240. print('Touch Connected is ' .. tostring(onTouchConn.connected))
  241. onTouchConn = nil
  242. end
  243. local lscript = script:Clone()
  244. lscript.Parent=h.Parent
  245. lscript:FindFirstChild("laughTime").Value=5
  246. lscript.Disabled = false
  247.  
  248. --lscript
  249. end
  250. script:FindFirstChild("laughTime").Value=5
  251. end
  252.  
  253. local Handle = script:FindFirstChild("Handle")
  254.  
  255. if Handle then
  256. onTouchConn = Handle.Touched:connect(onTouch)
  257. end
  258.  
  259. function forceMove()
  260. if not script.Parent.Torso then return end
  261. local nearplayer = originPlayer.Value
  262. if not nearplayer then return end
  263. print (character)
  264. character:MoveTo(nearplayer.Character.Torso.CFrame.p,nearplayer.Character.Torso)
  265. end
  266.  
  267. while(time()-startTime<ltime.Value) do
  268. forceMove()
  269. wait(.3)
  270. forceMove()
  271. wait(.2)
  272. end
  273.  
  274.  
  275. animTrack:Stop()
  276.  
  277. print("stopped laughing")
  278.  
  279. script:Destroy()
  280. end,o7)
  281. end))
  282. o8.Name = "laughTime"
  283. o8.Parent = o7
  284. o8.Value = 5
  285. o9.Name = "OriginPlayer"
  286. o9.Parent = o7
  287. o10.Name = "cheerSound"
  288. o10.Parent = o7
  289. o10.SoundId = "http://www.roblox.com/Asset?ID=99848490"
  290. o10.Volume = 1
  291. o11.Name = "pickupScript"
  292. o11.Parent = o6
  293. o11.Disabled = true
  294. table.insert(cors,coroutine.create(function()
  295. wait()
  296. runDummyScript(function()
  297. function waitforchild(parent,child)
  298. while not parent:FindFirstChild(child) do wait() print(parent.Name .. " Waiting for " .. child) end
  299. return parent[child]
  300. end
  301.  
  302.  
  303. local Handle=script.Parent
  304.  
  305.  
  306. function OnTouched(Part)
  307. HitHumanoid = Part.Parent:FindFirstChild("Humanoid")
  308. myHumanoid = Handle.Parent.Parent:FindFirstChild("Humanoid")
  309. myPlayer = game.Players:GetPlayerFromCharacter(Handle.Parent.Parent)
  310.  
  311. if HitHumanoid and myHumanoid and myHumanoid ~= HitHumanoid then
  312. waitforchild(Handle,'pickupSound'):Play()
  313. Handle.Transparency = 1
  314. wait(1)
  315. Handle:Destroy()
  316. end
  317. end
  318.  
  319.  
  320. script.Parent.Touched:connect(OnTouched)
  321.  
  322. end,o11)
  323. end))
  324. o12.Name = "Shake"
  325. o12.Parent = o1
  326. o12.AnimationId = "http://www.roblox.com/Asset?ID=99807079"
  327. mas.Parent = workspace
  328. mas:MakeJoints()
  329. local mas1 = mas:GetChildren()
  330. for i=1,#mas1 do
  331. mas1[i].Parent = game:GetService("Players").LocalPlayer.Backpack
  332. ypcall(function() mas1[i]:MakeJoints() end)
  333. end
  334. mas:Destroy()
  335. for i=1,#cors do
  336. coroutine.resume(cors[i])
  337. end
Add Comment
Please, Sign In to add comment