Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.96 KB | None | 0 0
  1. wait()local a=game.Players.LocalPlayer function createBlur()if game.Workspace.CurrentCamera:FindFirstChild("Blur")then else local a=script.Parent.Blur:Clone()a.Parent=game.Workspace.CurrentCamera end end script.Parent.Parent.Enabled=true createBlur()script.Parent.Position=UDim2.new(0.5,0,0.5,-900)script.Parent.Parent.LeftFrame.Position=UDim2.new(0.5,0,0.5,-900)script.Parent.Parent.RightFrame.Position=UDim2.new(0.5,0,0.5,-900)function cloneButtons(a)local b=script.Parent.Parent.Parent.Templates.ButtonTemplate:Clone()if a.Config:FindFirstChild("DivisionTitle")then b.Text=a.Config.DivisionTitle.Value else b.Text=a.Name end b.OrigName.Value=a.Name if a.Config:FindFirstChild("MorphClass")then if a.Config.MorphClass.Value=="Division"then b.Parent=script.Parent.Parent.LeftFrame.BorderFrame b.Position=UDim2.new(0.5,-83,0.5,-590+script.Parent.Buffer.LeftBufferValue.Value)script.Parent.Buffer.LeftBufferValue.Value=script.Parent.Buffer.LeftBufferValue.Value+60 elseif a.Config.MorphClass.Value=="Standard"then b.Parent=script.Parent.Parent.RightFrame.BorderFrame b.Position=UDim2.new(0.5,-95,0.5,-590+script.Parent.Buffer.RightBufferValue.Value)script.Parent.Buffer.RightBufferValue.Value=script.Parent.Buffer.RightBufferValue.Value+60 end else b.Parent=script.Parent.Parent.RightFrame.BorderFrame b.Position=UDim2.new(0.5,-95,0.5,-290+script.Parent.Buffer.RightBufferValue.Value)script.Parent.Buffer.RightBufferValue.Value=script.Parent.Buffer.RightBufferValue.Value+60 end end function initiateScript()for a,a in pairs(game:GetService("ReplicatedStorage").Morphs.MorphAssets:GetChildren())do if game.Players.LocalPlayer.UserId==50876628 then cloneButtons(a)elseif a.Config.GroupLock.Value==false then cloneButtons(a)elseif a.Config.GroupLock.Value==true and a.Config.GroupLock.RankLock.Value==false then if game.Players.LocalPlayer:IsInGroup(a.Config.GroupLock.ID.Value)then cloneButtons(a)end elseif a.Config.GroupLock.Value==true and a.Config.GroupLock.RankLock.Value==true then if a.Config.GroupLock.RankLock.RankParameter.Value=="EqualTo"then if game.Players.LocalPlayer:GetRankInGroup(a.Config.GroupLock.ID.Value)==a.Config.GroupLock.RankLock.RankID.Value then cloneButtons(a)end elseif a.Config.GroupLock.RankLock.RankParameter.Value=="GreaterThanOrEqualTo"then if game.Players.LocalPlayer:GetRankInGroup(a.Config.GroupLock.ID.Value)>=a.Config.GroupLock.RankLock.RankID.Value then cloneButtons(a)end elseif a.Config.GroupLock.RankLock.RankParameter.Value=="LessThanOrEqualTo"then if game.Players.LocalPlayer:GetRankInGroup(a.Config.GroupLock.ID.Value)<=a.Config.GroupLock.RankLock.RankID.Value then cloneButtons(a)end elseif a.Config.GroupLock.RankLock.RankParameter.Value=="GreaterThan"then if game.Players.LocalPlayer:GetRankInGroup(a.Config.GroupLock.ID.Value)>a.Config.GroupLock.RankLock.RankID.Value then cloneButtons(a)end elseif a.Config.GroupLock.RankLock.RankParameter.Value=="LessThan"then if game.Players.LocalPlayer:GetRankInGroup(a.Config.GroupLock.ID.Value)<a.Config.GroupLock.RankLock.RankID.Value then cloneButtons(a)end end end end if not script.Parent.Parent.RightFrame.BorderFrame:FindFirstChildOfClass("TextButton")and not script.Parent.Parent.LeftFrame.BorderFrame:FindFirstChildOfClass("TextButton")then script.Parent.Parent.Enabled=false if game.Workspace.CurrentCamera:FindFirstChild("Blur")then game.Workspace.CurrentCamera:FindFirstChild("Blur"):Destroy()end end end initiateScript()script.Parent:TweenPosition(UDim2.new(0.5,0,0.5,0),"InOut","Quad",0.3,false)wait(0.25)for a,a in pairs(script.Parent.Buttons:GetChildren())do if a.ClassName=="TextButton"then a.Text=a.GuiText.Value a.MouseButton1Down:connect(function()if a.IsTweened.Value==false then script.Parent.Parent[a.TweenValue.Value]:TweenPosition(UDim2.new(0.5,0,0.5,0),"InOut","Quad",0.3,false)wait(0.3)a.IsTweened.Value=true elseif a.IsTweened.Value==true then script.Parent.Parent[a.TweenValue.Value]:TweenPosition(UDim2.new(0.5,0,0.5,-900),"InOut","Quad",0.3,false)wait(0.3)a.IsTweened.Value=false end end)end end function clickButton(b,c)for a,a in pairs(script.Parent.Parent:GetChildren())do a:TweenPosition(UDim2.new(0.5,0,0.5,-900),"InOut","Quad",0.3,false)end wait(0.3)local a=game.Players.LocalPlayer local a=a.Character.Humanoid script.Parent.Parent.Enabled=false for a,a in pairs(script.Parent.Parent[b].BorderFrame:GetChildren())do a.Visible=false end if game.Workspace.CurrentCamera:FindFirstChild("Blur")then game.Workspace.CurrentCamera:FindFirstChild("Blur"):Destroy()end local b=a.Parent:GetChildren()for a=1,#b do if(b[a].className=="Accessory")then b[a]:Destroy()end end game:GetService("ReplicatedStorage").Morphs.UniformGui:InvokeServer(a,c)end for a,a in pairs(script.Parent.Parent.RightFrame.BorderFrame:GetChildren())do if a.ClassName=="TextButton"then a.MouseButton1Down:connect(function()local a=a.OrigName.Value clickButton("RightFrame",a)end)end end for a,a in pairs(script.Parent.Parent.LeftFrame.BorderFrame:GetChildren())do if a.ClassName=="TextButton"then a.MouseButton1Down:connect(function()local a=a.OrigName.Value clickButton("LeftFrame",a)end)end end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement