okban

Untitled

Feb 21st, 2018
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.07 KB | None | 0 0
  1. --Converted with ttyyuu12345's model to script plugin v4
  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. ScreenGui0 = Instance.new("ScreenGui")
  19. Frame1 = Instance.new("Frame")
  20. ImageButton2 = Instance.new("ImageButton")
  21. LocalScript3 = Instance.new("LocalScript")
  22. Sound4 = Instance.new("Sound")
  23. TextButton5 = Instance.new("TextButton")
  24. TextButton6 = Instance.new("TextButton")
  25. ScreenGui0.Name = "DabGui(Place In StarterGui)"
  26. ScreenGui0.Parent = mas
  27. Frame1.Parent = ScreenGui0
  28. Frame1.Size = UDim2.new(0, 100, 0, 100)
  29. Frame1.Position = UDim2.new(0, 5, 0.5, 0)
  30. Frame1.BackgroundColor3 = Color3.new(1, 1, 1)
  31. ImageButton2.Parent = Frame1
  32. ImageButton2.Size = UDim2.new(0, 100, 0, 100)
  33. ImageButton2.BackgroundColor3 = Color3.new(0, 0.666667, 1)
  34. ImageButton2.BorderColor3 = Color3.new(1, 1, 1)
  35. ImageButton2.BorderSizePixel = 5
  36. ImageButton2.ZIndex = 2
  37. ImageButton2.Image = "http://www.roblox.com/asset/?id=416636476"
  38. LocalScript3.Parent = ImageButton2
  39. table.insert(cors,sandbox(LocalScript3,function()
  40. --[[
  41.  
  42. Created by GodOfDonuts on the boring evening of
  43. 5/26/2016 9:56PM
  44.  
  45. --]]
  46.  
  47. local plr = game.Players.LocalPlayer
  48. local chr = plr.Character
  49. local sounds = {"519967074","519967074","519967074"}
  50. local mps = game:GetService("MarketplaceService")
  51.  
  52. script.Parent.MouseButton1Down:connect(function()
  53. local chr = game.Players.LocalPlayer.Character
  54. script.Parent.Sound.SoundId = "rbxassetid://"..sounds[math.random(1,#sounds)]
  55. script.Parent.Sound:Play()
  56. spawn(ShakeCam)
  57. spawn(ZoomCam)
  58. stopAnimations()
  59. chr.Animate.Disabled = true
  60. chr.Torso["Left Shoulder"].C1 = CFrame.new(0, 0.699999988, 0, 0.939692616, 0, -0.342020124, -0.330366075, -0.258819044, -0.907673359, -0.0885213241, 0.965925813, -0.243210346)
  61. chr.Torso["Right Shoulder"].C1 = CFrame.new(-0.600000024, 0.5, -0.200000003, 0.664462984, 0.241844743, 0.707106769, -0.664462984, -0.241844788, 0.707106769, 0.342020154, -0.939692616, -3.09086197e-008)
  62. chr.Torso["Neck"].C1 = CFrame.new(0, -0.600000024, 0, -0.866025388, 0.5, 0, -0.171010137, -0.29619807, 0.939692616, 0.469846278, 0.813797653, 0.342020124)
  63. end)
  64.  
  65. script.Parent.MouseButton1Up:connect(function()
  66. local chr = game.Players.LocalPlayer.Character
  67. chr.Animate.Disabled = false
  68. script.Parent.Sound:Stop()
  69. chr.Torso["Left Shoulder"].C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  70. chr.Torso["Right Shoulder"].C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  71. chr.Torso["Neck"].C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  72. game.Workspace.CurrentCamera.FieldOfView = 70
  73. if not mps:PlayerOwnsAsset(plr, 420720232) or not mps:PlayerOwnsAsset(plr, 420735858) then
  74. if math.random(1,5)==1 and not mps:PlayerOwnsAsset(plr, 420720232) then
  75. plsimpoor()
  76. elseif math.random(1,5)==1 and not mps:PlayerOwnsAsset(plr, 420735858) then
  77. plstake()
  78. end
  79. end
  80. end)
  81.  
  82. function stopAnimations()
  83. for _,v in pairs(game.Players.LocalPlayer.Character.Humanoid:GetPlayingAnimationTracks()) do
  84. v:Stop()
  85. end
  86. end
  87.  
  88. function ZoomCam()
  89. local cam = game.Workspace.CurrentCamera
  90. cam.FieldOfView = 70
  91. for i = 1,2 do
  92. cam.FieldOfView = cam.FieldOfView-10
  93. wait()
  94. end
  95. cam.FieldOfView = 50
  96. for i=1,20 do
  97. cam.FieldOfView = cam.FieldOfView+1
  98. wait()
  99. end
  100. cam.FieldOfView = 70
  101. end
  102.  
  103. function ShakeCam()
  104. local cam = game.Workspace.CurrentCamera
  105. for i = 1,5 do
  106. local cam_rot = cam.CoordinateFrame - cam.CoordinateFrame.p
  107. local cam_scroll = (cam.CoordinateFrame.p - cam.Focus.p).magnitude
  108. local ncf = CFrame.new(cam.Focus.p)*cam_rot*CFrame.fromEulerAnglesXYZ(math.random(-5, 5)/40, math.random(-5, 5)/40, 0)
  109. cam.CoordinateFrame = ncf*CFrame.new(0, 0, cam_scroll)
  110. wait()
  111. end
  112. end
  113.  
  114. function plsimpoor()
  115. script.Parent.Parent.GodOf:TweenPosition(UDim2.new(0,110,.5,-25), "Out", "Sine", 1)
  116. script.Parent.Parent.GodOf.MouseButton1Click:connect(function()
  117. mps:PromptPurchase(plr, 420720232)
  118. end)
  119. script.Parent.MouseButton1Down:connect(function()
  120. script.Parent.Parent.GodOf:TweenPosition(UDim2.new(0,-200,.5,-25), "Out", "Sine", 1)
  121. end)
  122. end
  123.  
  124. function plstake()
  125. script.Parent.Parent.Donuts:TweenPosition(UDim2.new(0,110,.5,-25), "Out", "Sine", 1)
  126. script.Parent.Parent.Donuts.MouseButton1Click:connect(function()
  127. mps:PromptPurchase(plr, 420735858)
  128. end)
  129. script.Parent.MouseButton1Down:connect(function()
  130. script.Parent.Parent.Donuts:TweenPosition(UDim2.new(0,-200,.5,-25), "Out", "Sine", 1)
  131. end)
  132. end
  133. end))
  134. Sound4.Parent = ImageButton2
  135. Sound4.Volume = 10
  136. TextButton5.Name = "GodOf"
  137. TextButton5.Parent = Frame1
  138. TextButton5.Transparency = 1
  139. TextButton5.Size = UDim2.new(0, 200, 0, 50)
  140. TextButton5.Text = "Click to Donate! It keeps us going"
  141. TextButton5.Position = UDim2.new(0, -200, 0.5, -25)
  142. TextButton5.BackgroundColor3 = Color3.new(1, 1, 1)
  143. TextButton5.BackgroundTransparency = 1
  144. TextButton5.Font = Enum.Font.SourceSansLight
  145. TextButton5.FontSize = Enum.FontSize.Size14
  146. TextButton5.TextColor3 = Color3.new(1, 1, 1)
  147. TextButton5.TextScaled = true
  148. TextButton5.TextWrapped = true
  149. TextButton5.TextXAlignment = Enum.TextXAlignment.Left
  150. TextButton6.Name = "Donuts"
  151. TextButton6.Parent = Frame1
  152. TextButton6.Transparency = 1
  153. TextButton6.Size = UDim2.new(0, 200, 0, 50)
  154. TextButton6.Text = "Click to take one for yourself!"
  155. TextButton6.Position = UDim2.new(0, -200, 0.5, -25)
  156. TextButton6.BackgroundColor3 = Color3.new(1, 1, 1)
  157. TextButton6.BackgroundTransparency = 1
  158. TextButton6.Font = Enum.Font.SourceSansLight
  159. TextButton6.FontSize = Enum.FontSize.Size14
  160. TextButton6.TextColor3 = Color3.new(1, 1, 1)
  161. TextButton6.TextScaled = true
  162. TextButton6.TextWrapped = true
  163. TextButton6.TextXAlignment = Enum.TextXAlignment.Left
  164. for i,v in pairs(mas:GetChildren()) do
  165. v.Parent = game:GetService("Players").LocalPlayer.PlayerGui
  166. pcall(function() v:MakeJoints() end)
  167. end
  168. mas:Destroy()
  169. for i,v in pairs(cors) do
  170. spawn(function()
  171. pcall(v)
  172. end)
  173. end
Advertisement
Add Comment
Please, Sign In to add comment