SpamDuk3

Roblox Universal Script [Money Bag]

Dec 10th, 2022
1,338
2
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.80 KB | Gaming | 3 1
  1. --money money money money
  2. function sandbox(var,func)
  3. local env = getfenv(func)
  4. local newenv = setmetatable({},{
  5. __index = function(self,k)
  6. if k=="script" then
  7. return var
  8. else
  9. return env[k]
  10. end
  11. end,
  12. })
  13. setfenv(func,newenv)
  14. return func
  15. end
  16. cors = {}
  17. mas = Instance.new("Model",game:GetService("Lighting"))
  18. Tool0 = Instance.new("Tool")
  19. Part1 = Instance.new("Part")
  20. SpecialMesh2 = Instance.new("SpecialMesh")
  21. Sound3 = Instance.new("Sound")
  22. Sound4 = Instance.new("Sound")
  23. Sound5 = Instance.new("Sound")
  24. Script6 = Instance.new("Script")
  25. Tool0.Name = "Moneybag"
  26. Tool0.Parent = mas
  27. Tool0.TextureId = "http://www.roblox.com/asset/?id=16659163"
  28. Tool0.Grip = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  29. Tool0.GripForward = Vector3.new(1, -0, -0)
  30. Tool0.GripPos = Vector3.new(0, 0.5, 0)
  31. Tool0.GripRight = Vector3.new(0, 0, 1)
  32. Part1.Name = "Handle"
  33. Part1.Parent = Tool0
  34. Part1.CFrame = CFrame.new(-25.303894, 0.400000066, -1.19561768, -0.999999046, -5.09965332e-08, 5.69780241e-08, 5.09965332e-08, 1, 3.9571205e-08, 5.69780241e-08, -3.9571205e-08, -1.00000024)
  35. Part1.Orientation = Vector3.new(0, 180, 0)
  36. Part1.Position = Vector3.new(-25.30389404296875, 0.40000006556510925, -1.19561767578125)
  37. Part1.Rotation = Vector3.new(-180, 0, 180)
  38. Part1.Color = Color3.new(0.803922, 0.803922, 0.803922)
  39. Part1.Size = Vector3.new(1, 0.800000011920929, 1)
  40. Part1.BottomSurface = Enum.SurfaceType.Smooth
  41. Part1.BrickColor = BrickColor.new("Mid gray")
  42. Part1.Locked = true
  43. Part1.TopSurface = Enum.SurfaceType.Smooth
  44. Part1.brickColor = BrickColor.new("Mid gray")
  45. SpecialMesh2.Parent = Part1
  46. SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=16657069"
  47. SpecialMesh2.Scale = Vector3.new(0.5, 0.6000000238418579, 0.5)
  48. SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=16657057"
  49. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  50. Sound3.Name = "MoneySound2"
  51. Sound3.Parent = Part1
  52. Sound3.SoundId = "http://www.roblox.com/asset/?id=16720502"
  53. Sound3.Volume = 1
  54. Sound4.Name = "MoneySound3"
  55. Sound4.Parent = Part1
  56. Sound4.SoundId = "http://www.roblox.com/asset/?id=16720508"
  57. Sound4.Volume = 1
  58. Sound5.Name = "MoneySound1"
  59. Sound5.Parent = Part1
  60. Sound5.SoundId = "http://www.roblox.com/asset/?id=16720281"
  61. Sound5.Volume = 1
  62. Script6.Name = "MoneyBagScript"
  63. Script6.Parent = Tool0
  64. table.insert(cors,sandbox(Script6,function()
  65. local Tool = script.Parent;
  66. debris = game:GetService("Debris")
  67.  
  68. enabled = true
  69.  
  70. local sounds = {Tool.Handle.MoneySound1, Tool.Handle.MoneySound2, Tool.Handle.MoneySound3}
  71. local buck = nil
  72.  
  73.  
  74. buck = Instance.new("Part")
  75. buck.formFactor = 2
  76. buck.Size = Vector3.new(2,.4,1)
  77. buck.BrickColor = BrickColor.new(28)
  78. buck.TopSurface = 0
  79. buck.BottomSurface = 0
  80. buck.Elasticity = .01
  81.  
  82. local d = Instance.new("Decal")
  83. d.Face = 4
  84. d.Texture = "http://www.roblox.com/asset/?id=16658163"
  85. d.Parent = buck
  86.  
  87. local d2 = d:Clone()
  88. d2.Face = 1
  89. d2.Parent = buck
  90.  
  91. function isTurbo(character)
  92. return character:FindFirstChild("Monopoly") ~= nil
  93. end
  94. function MakeABuck(pos)
  95. local limit = 5
  96. if (isTurbo(Tool.Parent) == true) then
  97. limit = 15 -- LOL!
  98. end
  99. for i=1,limit do
  100. local b = buck:Clone()
  101. local v = Vector3.new(math.random() - .5, math.random() - .5, math.random() - .5).unit
  102. b.CFrame = CFrame.new(pos + (v * 2) + Vector3.new(0,4,0), v)
  103. b.Parent = game.Workspace
  104. debris:AddItem(b, 5)
  105. end
  106. end
  107. function onActivated()
  108. if not enabled then
  109. return
  110. end
  111. enabled = true
  112. local char = Tool.Parent
  113. sounds[math.random(3)]:Play()
  114. MakeABuck(Tool.Handle.Position)
  115. enabled = true
  116. end
  117. script.Parent.Activated:connect(onActivated)
  118.  
  119.  
  120. end))
  121. for i,v in pairs(mas:GetChildren()) do
  122. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  123. pcall(function() v:MakeJoints() end)
  124. end
  125. mas:Destroy()
  126. for i,v in pairs(cors) do
  127. spawn(function()
  128. pcall(v)
  129. end)
  130. end
  131.  
Tags: Roblox Script
Advertisement
Add Comment
Please, Sign In to add comment