Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- ScreenGui0 = Instance.new("ScreenGui")
- Frame1 = Instance.new("Frame")
- ImageButton2 = Instance.new("ImageButton")
- LocalScript3 = Instance.new("LocalScript")
- Sound4 = Instance.new("Sound")
- TextButton5 = Instance.new("TextButton")
- TextButton6 = Instance.new("TextButton")
- ScreenGui0.Name = "DabGui(Place In StarterGui)"
- ScreenGui0.Parent = mas
- Frame1.Parent = ScreenGui0
- Frame1.Size = UDim2.new(0, 100, 0, 100)
- Frame1.Position = UDim2.new(0, 5, 0.5, 0)
- Frame1.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageButton2.Parent = Frame1
- ImageButton2.Size = UDim2.new(0, 100, 0, 100)
- ImageButton2.BackgroundColor3 = Color3.new(0, 0.666667, 1)
- ImageButton2.BorderColor3 = Color3.new(1, 1, 1)
- ImageButton2.BorderSizePixel = 5
- ImageButton2.ZIndex = 2
- ImageButton2.Image = "http://www.roblox.com/asset/?id=416636476"
- LocalScript3.Parent = ImageButton2
- table.insert(cors,sandbox(LocalScript3,function()
- --[[
- Created by GodOfDonuts on the boring evening of
- 5/26/2016 9:56PM
- --]]
- local plr = game.Players.LocalPlayer
- local chr = plr.Character
- local sounds = {"519967074","519967074","519967074"}
- local mps = game:GetService("MarketplaceService")
- script.Parent.MouseButton1Down:connect(function()
- local chr = game.Players.LocalPlayer.Character
- script.Parent.Sound.SoundId = "rbxassetid://"..sounds[math.random(1,#sounds)]
- script.Parent.Sound:Play()
- spawn(ShakeCam)
- spawn(ZoomCam)
- stopAnimations()
- chr.Animate.Disabled = true
- 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)
- 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)
- 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)
- end)
- script.Parent.MouseButton1Up:connect(function()
- local chr = game.Players.LocalPlayer.Character
- chr.Animate.Disabled = false
- script.Parent.Sound:Stop()
- chr.Torso["Left Shoulder"].C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- chr.Torso["Right Shoulder"].C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- chr.Torso["Neck"].C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- game.Workspace.CurrentCamera.FieldOfView = 70
- if not mps:PlayerOwnsAsset(plr, 420720232) or not mps:PlayerOwnsAsset(plr, 420735858) then
- if math.random(1,5)==1 and not mps:PlayerOwnsAsset(plr, 420720232) then
- plsimpoor()
- elseif math.random(1,5)==1 and not mps:PlayerOwnsAsset(plr, 420735858) then
- plstake()
- end
- end
- end)
- function stopAnimations()
- for _,v in pairs(game.Players.LocalPlayer.Character.Humanoid:GetPlayingAnimationTracks()) do
- v:Stop()
- end
- end
- function ZoomCam()
- local cam = game.Workspace.CurrentCamera
- cam.FieldOfView = 70
- for i = 1,2 do
- cam.FieldOfView = cam.FieldOfView-10
- wait()
- end
- cam.FieldOfView = 50
- for i=1,20 do
- cam.FieldOfView = cam.FieldOfView+1
- wait()
- end
- cam.FieldOfView = 70
- end
- function ShakeCam()
- local cam = game.Workspace.CurrentCamera
- for i = 1,5 do
- local cam_rot = cam.CoordinateFrame - cam.CoordinateFrame.p
- local cam_scroll = (cam.CoordinateFrame.p - cam.Focus.p).magnitude
- local ncf = CFrame.new(cam.Focus.p)*cam_rot*CFrame.fromEulerAnglesXYZ(math.random(-5, 5)/40, math.random(-5, 5)/40, 0)
- cam.CoordinateFrame = ncf*CFrame.new(0, 0, cam_scroll)
- wait()
- end
- end
- function plsimpoor()
- script.Parent.Parent.GodOf:TweenPosition(UDim2.new(0,110,.5,-25), "Out", "Sine", 1)
- script.Parent.Parent.GodOf.MouseButton1Click:connect(function()
- mps:PromptPurchase(plr, 420720232)
- end)
- script.Parent.MouseButton1Down:connect(function()
- script.Parent.Parent.GodOf:TweenPosition(UDim2.new(0,-200,.5,-25), "Out", "Sine", 1)
- end)
- end
- function plstake()
- script.Parent.Parent.Donuts:TweenPosition(UDim2.new(0,110,.5,-25), "Out", "Sine", 1)
- script.Parent.Parent.Donuts.MouseButton1Click:connect(function()
- mps:PromptPurchase(plr, 420735858)
- end)
- script.Parent.MouseButton1Down:connect(function()
- script.Parent.Parent.Donuts:TweenPosition(UDim2.new(0,-200,.5,-25), "Out", "Sine", 1)
- end)
- end
- end))
- Sound4.Parent = ImageButton2
- Sound4.Volume = 10
- TextButton5.Name = "GodOf"
- TextButton5.Parent = Frame1
- TextButton5.Transparency = 1
- TextButton5.Size = UDim2.new(0, 200, 0, 50)
- TextButton5.Text = "Click to Donate! It keeps us going"
- TextButton5.Position = UDim2.new(0, -200, 0.5, -25)
- TextButton5.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton5.BackgroundTransparency = 1
- TextButton5.Font = Enum.Font.SourceSansLight
- TextButton5.FontSize = Enum.FontSize.Size14
- TextButton5.TextColor3 = Color3.new(1, 1, 1)
- TextButton5.TextScaled = true
- TextButton5.TextWrapped = true
- TextButton5.TextXAlignment = Enum.TextXAlignment.Left
- TextButton6.Name = "Donuts"
- TextButton6.Parent = Frame1
- TextButton6.Transparency = 1
- TextButton6.Size = UDim2.new(0, 200, 0, 50)
- TextButton6.Text = "Click to take one for yourself!"
- TextButton6.Position = UDim2.new(0, -200, 0.5, -25)
- TextButton6.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton6.BackgroundTransparency = 1
- TextButton6.Font = Enum.Font.SourceSansLight
- TextButton6.FontSize = Enum.FontSize.Size14
- TextButton6.TextColor3 = Color3.new(1, 1, 1)
- TextButton6.TextScaled = true
- TextButton6.TextWrapped = true
- TextButton6.TextXAlignment = Enum.TextXAlignment.Left
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Players").LocalPlayer.PlayerGui
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment