Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --does it work?
- 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")
- TextButton2 = Instance.new("TextButton")
- IntValue3 = Instance.new("IntValue")
- LocalScript4 = Instance.new("LocalScript")
- TextButton5 = Instance.new("TextButton")
- IntValue6 = Instance.new("IntValue")
- TextButton7 = Instance.new("TextButton")
- IntValue8 = Instance.new("IntValue")
- TextButton9 = Instance.new("TextButton")
- IntValue10 = Instance.new("IntValue")
- TextButton11 = Instance.new("TextButton")
- IntValue12 = Instance.new("IntValue")
- TextButton13 = Instance.new("TextButton")
- IntValue14 = Instance.new("IntValue")
- Frame15 = Instance.new("Frame")
- TextButton16 = Instance.new("TextButton")
- Script17 = Instance.new("Script")
- ScreenGui0.Name = "Gui"
- ScreenGui0.Parent = mas
- Frame1.Name = "Animations"
- Frame1.Parent = ScreenGui0
- Frame1.Size = UDim2.new(0, 150, 0, 200)
- Frame1.Style = Enum.FrameStyle.DropShadow
- Frame1.Position = UDim2.new(0, -150, 0, 215)
- Frame1.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame1.ZIndex = 9
- TextButton2.Name = "Button1"
- TextButton2.Parent = Frame1
- TextButton2.Transparency = 1
- TextButton2.Size = UDim2.new(1, 0, 0, 20)
- TextButton2.Text = "Dungy"
- TextButton2.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton2.BackgroundTransparency = 1
- TextButton2.ZIndex = 10
- TextButton2.Font = Enum.Font.SourceSans
- TextButton2.FontSize = Enum.FontSize.Size24
- TextButton2.TextColor3 = Color3.new(1, 1, 1)
- TextButton2.TextStrokeColor3 = Color3.new(1, 1, 1)
- TextButton2.TextStrokeTransparency = 0.80000001192093
- IntValue3.Name = "AnimID"
- IntValue3.Parent = TextButton2
- IntValue3.Value = 27789359
- LocalScript4.Name = "AnimScript"
- LocalScript4.Parent = Frame1
- table.insert(cors,sandbox(LocalScript4,function()
- wait(1)
- local frame=script.Parent
- local user=game.Players.LocalPlayer
- repeat wait() until user.Character local char=user.Character
- local humanoid=char:WaitForChild("Humanoid")
- local anim
- function playanim(id)
- if char~=nil and humanoid~=nil then
- local id="rbxassetid://"..tostring(id)
- local oldanim=char:FindFirstChild("LocalAnimation")
- if anim~=nil then
- anim:Stop()
- end
- if oldanim~=nil then
- if oldanim.AnimationId==id then
- oldanim:Destroy()
- return
- end
- oldanim:Destroy()
- end
- local animation=Instance.new("Animation",char)
- animation.Name="LocalAnimation"
- animation.AnimationId=id
- anim=humanoid:LoadAnimation(animation)
- anim:Play()
- end
- end
- local b1=frame.Button1
- b1.MouseButton1Down:connect(function() playanim(b1.AnimID.Value) end)
- local b2=frame.Button2
- b2.MouseButton1Down:connect(function() playanim(b2.AnimID.Value) end)
- local b3=frame.Button3
- b3.MouseButton1Down:connect(function() playanim(b3.AnimID.Value) end)
- local b4=frame.Button4
- b4.MouseButton1Down:connect(function() playanim(b4.AnimID.Value) end)
- local b5=frame.Button5
- b5.MouseButton1Down:connect(function() playanim(b5.AnimID.Value) end)
- local b6=frame.Button6
- b6.MouseButton1Down:connect(function() playanim(b6.AnimID.Value) end)
- end))
- TextButton5.Name = "Button2"
- TextButton5.Parent = Frame1
- TextButton5.Transparency = 1
- TextButton5.Size = UDim2.new(1, 0, 0, 20)
- TextButton5.Text = "Yoga Dance"
- TextButton5.Position = UDim2.new(0, 0, 0, 20)
- TextButton5.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton5.BackgroundTransparency = 1
- TextButton5.ZIndex = 10
- TextButton5.Font = Enum.Font.SourceSans
- TextButton5.FontSize = Enum.FontSize.Size24
- TextButton5.TextColor3 = Color3.new(1, 1, 1)
- TextButton5.TextStrokeColor3 = Color3.new(1, 1, 1)
- TextButton5.TextStrokeTransparency = 0.80000001192093
- IntValue6.Name = "AnimID"
- IntValue6.Parent = TextButton5
- IntValue6.Value = 52155728
- TextButton7.Name = "Button3"
- TextButton7.Parent = Frame1
- TextButton7.Transparency = 1
- TextButton7.Size = UDim2.new(1, 0, 0, 20)
- TextButton7.Text = "Pointer"
- TextButton7.Position = UDim2.new(0, 0, 0, 40)
- TextButton7.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton7.BackgroundTransparency = 1
- TextButton7.ZIndex = 10
- TextButton7.Font = Enum.Font.SourceSans
- TextButton7.FontSize = Enum.FontSize.Size24
- TextButton7.TextColor3 = Color3.new(1, 1, 1)
- TextButton7.TextStrokeColor3 = Color3.new(1, 1, 1)
- TextButton7.TextStrokeTransparency = 0.80000001192093
- IntValue8.Name = "AnimID"
- IntValue8.Parent = TextButton7
- IntValue8.Value = 248263260
- TextButton9.Name = "Button4"
- TextButton9.Parent = Frame1
- TextButton9.Transparency = 1
- TextButton9.Size = UDim2.new(1, 0, 0, 20)
- TextButton9.Text = "Boogie"
- TextButton9.Position = UDim2.new(0, 0, 0, 60)
- TextButton9.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton9.BackgroundTransparency = 1
- TextButton9.ZIndex = 10
- TextButton9.Font = Enum.Font.SourceSans
- TextButton9.FontSize = Enum.FontSize.Size24
- TextButton9.TextColor3 = Color3.new(1, 1, 1)
- TextButton9.TextStrokeColor3 = Color3.new(1, 1, 1)
- TextButton9.TextStrokeTransparency = 0.80000001192093
- IntValue10.Name = "AnimID"
- IntValue10.Parent = TextButton9
- IntValue10.Value = 45834924
- TextButton11.Name = "Button5"
- TextButton11.Parent = Frame1
- TextButton11.Transparency = 1
- TextButton11.Size = UDim2.new(1, 0, 0, 20)
- TextButton11.Text = "Party Time "
- TextButton11.Position = UDim2.new(0, 0, 0, 80)
- TextButton11.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton11.BackgroundTransparency = 1
- TextButton11.ZIndex = 10
- TextButton11.Font = Enum.Font.SourceSans
- TextButton11.FontSize = Enum.FontSize.Size24
- TextButton11.TextColor3 = Color3.new(1, 1, 1)
- TextButton11.TextStrokeColor3 = Color3.new(1, 1, 1)
- TextButton11.TextStrokeTransparency = 0.80000001192093
- IntValue12.Name = "AnimID"
- IntValue12.Parent = TextButton11
- IntValue12.Value = 33796059
- TextButton13.Name = "Button6"
- TextButton13.Parent = Frame1
- TextButton13.Transparency = 1
- TextButton13.Size = UDim2.new(1, 0, 0, 20)
- TextButton13.Text = "Fast Dance"
- TextButton13.Position = UDim2.new(0, 0, 0, 100)
- TextButton13.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton13.BackgroundTransparency = 1
- TextButton13.ZIndex = 10
- TextButton13.Font = Enum.Font.SourceSans
- TextButton13.FontSize = Enum.FontSize.Size24
- TextButton13.TextColor3 = Color3.new(1, 1, 1)
- TextButton13.TextStrokeColor3 = Color3.new(1, 1, 1)
- TextButton13.TextStrokeTransparency = 0.80000001192093
- IntValue14.Name = "AnimID"
- IntValue14.Parent = TextButton13
- IntValue14.Value = 28488254
- Frame15.Name = "Open/Close"
- Frame15.Parent = ScreenGui0
- Frame15.Size = UDim2.new(0, 130, 0, 50)
- Frame15.Style = Enum.FrameStyle.DropShadow
- Frame15.Position = UDim2.new(0, -10, 0, 175)
- Frame15.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame15.ZIndex = 9
- TextButton16.Name = "Button"
- TextButton16.Parent = Frame15
- TextButton16.Size = UDim2.new(1, 0, 1, 0)
- TextButton16.Style = Enum.ButtonStyle.RobloxRoundDefaultButton
- TextButton16.Text = "Animation"
- TextButton16.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton16.ZIndex = 10
- TextButton16.Font = Enum.Font.SourceSans
- TextButton16.FontSize = Enum.FontSize.Size24
- TextButton16.TextColor3 = Color3.new(1, 1, 1)
- TextButton16.TextStrokeColor3 = Color3.new(1, 1, 1)
- TextButton16.TextStrokeTransparency = 0.80000001192093
- TextButton16.TextWrapped = true
- Script17.Parent = TextButton16
- table.insert(cors,sandbox(Script17,function()
- wait()
- local button=script.Parent
- local animframe=button.Parent.Parent.Animations
- local on=false
- function action()
- if on then
- animframe:TweenPosition(UDim2.new(0,-150,0,215),"In","Quad",.5,true)
- on=false
- else
- animframe:TweenPosition(UDim2.new(0,-10,0,215),"Out","Quad",.5,true)
- on=true
- end
- end
- button.MouseButton1Down:connect(action)
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- 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
Advertisement