Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print('AGE OF HEROES version X loaded!')
- -- Instances:
- local blur = Instance.new("BlurEffect", game:GetService('Lighting'))
- local ShadowUILib = Instance.new("ScreenGui")
- local BackGroundFrame = Instance.new("ImageLabel")
- local TitleFrame = Instance.new("ImageLabel")
- local Logo = Instance.new("ImageLabel")
- local Logotxt = Instance.new("TextLabel")
- local Credit = Instance.new("TextLabel")
- local Selections = Instance.new("Frame")
- local UIGridLayout = Instance.new("UIGridLayout")
- --Properties:
- ShadowUILib.Name = "ShadowUILib"
- ShadowUILib.Parent = game:GetService("CoreGui")
- BackGroundFrame.Name = "BackGroundFrame"
- BackGroundFrame.Parent = ShadowUILib
- BackGroundFrame.AnchorPoint = Vector2.new(0.5, 0.5)
- BackGroundFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- BackGroundFrame.BackgroundTransparency = 1.000
- BackGroundFrame.ClipsDescendants = true
- BackGroundFrame.Position = UDim2.new(0.490037352, 0, 0.563800216, 0)
- BackGroundFrame.Size = UDim2.new(0, 750, 0, 500)
- BackGroundFrame.Image = "rbxassetid://3570695787"
- BackGroundFrame.ImageColor3 = Color3.fromRGB(12, 12, 12)
- BackGroundFrame.ImageTransparency = 0.200
- BackGroundFrame.ScaleType = Enum.ScaleType.Slice
- BackGroundFrame.SliceCenter = Rect.new(100, 100, 100, 100)
- BackGroundFrame.SliceScale = 0.200
- TitleFrame.Name = "TitleFrame"
- TitleFrame.Parent = BackGroundFrame
- TitleFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TitleFrame.BackgroundTransparency = 1.000
- TitleFrame.ClipsDescendants = true
- TitleFrame.Size = UDim2.new(0, 250, 0, 500)
- TitleFrame.Image = "rbxassetid://3570695787"
- TitleFrame.ImageColor3 = Color3.fromRGB(51, 51, 51)
- TitleFrame.ImageTransparency = 0.200
- TitleFrame.ScaleType = Enum.ScaleType.Slice
- TitleFrame.SliceCenter = Rect.new(100, 100, 100, 100)
- TitleFrame.SliceScale = 0.200
- Logo.Name = "Logo"
- Logo.Parent = TitleFrame
- Logo.AnchorPoint = Vector2.new(0.5, 0.5)
- Logo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Logo.BackgroundTransparency = 1.000
- Logo.Position = UDim2.new(0.496000051, 0, 0.328999996, 0)
- Logo.Size = UDim2.new(0, 150, 0, 150)
- Logo.Image = "http://www.roblox.com/asset/?id=5230440166"
- Logotxt.Name = "Logo txt"
- Logotxt.Parent = TitleFrame
- Logotxt.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Logotxt.BackgroundTransparency = 1.000
- Logotxt.Position = UDim2.new(0, 0, 0.448000014, 0)
- Logotxt.Size = UDim2.new(0, 250, 0, 50)
- Logotxt.Font = Enum.Font.SciFi
- Logotxt.Text = "Age of Heroes X"
- Logotxt.TextColor3 = Color3.fromRGB(255, 255, 255)
- Logotxt.TextSize = 30.000
- Logotxt.TextStrokeColor3 = Color3.fromRGB(255, 255, 255)
- Logotxt.TextStrokeTransparency = 0.500
- Credit.Name = "Credit"
- Credit.Parent = TitleFrame
- Credit.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Credit.BackgroundTransparency = 1.000
- Credit.Position = UDim2.new(0.100000001, 0, 0.958000004, 0)
- Credit.Size = UDim2.new(0, 200, 0, 21)
- Credit.Font = Enum.Font.SciFi
- Credit.Text = "Created by: iHavoc101"
- Credit.TextColor3 = Color3.fromRGB(255, 255, 255)
- Credit.TextSize = 15.000
- Credit.TextStrokeColor3 = Color3.fromRGB(255, 255, 255)
- Credit.TextStrokeTransparency = 0.500
- Selections.Name = "Selections"
- Selections.Parent = BackGroundFrame
- Selections.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Selections.BackgroundTransparency = 1.000
- Selections.Position = UDim2.new(0.370000005, 0, 0.0500000007, 0)
- Selections.Size = UDim2.new(0, 450, 0, 450)
- UIGridLayout.Parent = Selections
- UIGridLayout.FillDirection = Enum.FillDirection.Vertical
- UIGridLayout.SortOrder = Enum.SortOrder.LayoutOrder
- UIGridLayout.CellPadding = UDim2.new(0, 10, 0, 25)
- UIGridLayout.CellSize = UDim2.new(0, 175, 0, 40)
- UIGridLayout.FillDirectionMaxCells = 8
- -- Scripts:
- local function RGDUHI_fake_script() -- Logo.HoverEffect
- local script = Instance.new('LocalScript', Logo)
- player = game.Players.LocalPlayer
- local icon = script.Parent
- icon.MouseEnter:connect(function()
- icon:TweenSize(UDim2.new(0, 160, 0, 160),"Out","Quad",0.25,true)
- end)
- icon.MouseLeave:connect(function()
- icon:TweenSize(UDim2.new(0, 150, 0, 150),"Out","Quad",0.25,true)
- end)
- end
- coroutine.wrap(RGDUHI_fake_script)()
- local function WLGH_fake_script() -- BackGroundFrame.Drag
- local script = Instance.new('LocalScript', BackGroundFrame)
- local UserInputService = game:GetService("UserInputService")
- local gui = script.Parent
- local dragging
- local dragInput
- local dragStart
- local startPos
- local function update(input)
- local delta = input.Position - dragStart
- gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
- end
- gui.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- dragging = true
- dragStart = input.Position
- startPos = gui.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- end)
- gui.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
- dragInput = input
- end
- end)
- UserInputService.InputChanged:Connect(function(input)
- if input == dragInput and dragging then
- update(input)
- end
- end)
- end
- coroutine.wrap(WLGH_fake_script)()
- local function EYUP_fake_script() -- BackGroundFrame.Toggle
- local script = Instance.new('LocalScript', BackGroundFrame)
- local frame = script.Parent
- local title = frame:FindFirstChild('TitleFrame')
- function onKeyPress(inputObject, gameProcessedEvent)
- if gameProcessedEvent then
- return -- Stop running this function
- end
- if inputObject.KeyCode == Enum.KeyCode.G then
- ToggleUI()
- end
- end
- game:GetService("UserInputService").InputBegan:connect(onKeyPress)
- function ToggleUI()
- if frame.Visible == true then
- frame:TweenSize(UDim2.new(0, 250,0, 500),"Out","Quad",0.5,true)
- for i,v in pairs(frame.Selections:GetChildren()) do
- if v.Name ~= 'UIGridLayout' then
- v.Visible = false
- end
- end
- wait(0.75)
- blur.Size = 0
- frame.ImageTransparency = 1
- title:TweenSize(UDim2.new(0, 250,0, 0),"Out","Quad",0.5,true)
- wait(0.5)
- frame.Visible = false
- else
- frame.Visible = true
- title:TweenSize(UDim2.new(0, 250,0, 500),"Out","Quad",0.5,true)
- wait(0.75)
- blur.Size = 10
- frame.ImageTransparency = 0
- frame:TweenSize(UDim2.new(0, 750,0, 500),"Out","Quad",0.5,true)
- wait(0.5)
- for i,v in pairs(frame.Selections:GetChildren()) do
- if v.Name ~= 'UIGridLayout' then
- v.Visible = true
- end
- end
- end
- end
- end
- coroutine.wrap(EYUP_fake_script)()
- function createbutton(text, clickfunction)
- local Button = Instance.new("TextButton")
- Button.Name = "Button"
- Button.AutoButtonColor = false
- Button.Parent = Selections
- Button.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Button.BorderColor3 = Color3.fromRGB(64, 64, 64)
- Button.ClipsDescendants = true
- Button.Font = Enum.Font.SourceSansSemibold
- Button.Text = text
- Button.TextColor3 = Color3.fromRGB(255, 255, 255)
- Button.TextSize = 20.000
- Button.TextWrapped = true
- local Circle_2 = Instance.new("ImageLabel")
- Circle_2.Name = "Circle"
- Circle_2.Parent = Button
- Circle_2.AnchorPoint = Vector2.new(0.5, 0.5)
- Circle_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Circle_2.BackgroundTransparency = 1.000
- Circle_2.Position = UDim2.new(0.5, 0, 0.5, 0)
- Circle_2.Size = UDim2.new(0, 30, 0, 30)
- Circle_2.Image = "rbxassetid://3570695787"
- Circle_2.ImageTransparency = 1.000
- Circle_2.ScaleType = Enum.ScaleType.Slice
- Circle_2.SliceCenter = Rect.new(100, 100, 100, 100)
- Circle_2.SliceScale = 0.500
- local script = Instance.new('LocalScript', Button)
- local tweenService = game:GetService("TweenService")
- local textButton = script.Parent
- local circle = textButton.Circle
- script.Parent.MouseButton1Down:Connect(function(x,y)
- clickfunction()
- local pos = UDim2.new(0,x-textButton.AbsolutePosition.X,0,y-textButton.AbsolutePosition.Y-36)
- circle.Position = pos
- circle.Size = UDim2.new(0,1,0,0.1)
- circle.ImageTransparency = .5
- local goal = {}
- goal.Size = UDim2.new(0,450,0,280)
- goal.ImageTransparency = 1
- local tween = tweenService:Create(circle, TweenInfo.new(1.5,Enum.EasingStyle.Sine,Enum.EasingDirection.Out), goal)
- tween:Play()
- wait(0.1)
- end)
- return Button
- end
- function createToggle(text, updatefunction)
- local toggle = Instance.new("Frame")
- local TextLabel = Instance.new("TextLabel")
- local ImageButton = Instance.new("ImageButton")
- local Circle = Instance.new("ImageLabel")
- toggle.Name = "toggle"
- toggle.Parent = Selections
- toggle.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- toggle.BackgroundTransparency = 1.000
- toggle.BorderColor3 = Color3.fromRGB(64, 64, 64)
- toggle.Position = UDim2.new(0.348692417, 0, 0.409153938, 0)
- toggle.Size = UDim2.new(0, 125, 0, 25)
- TextLabel.Parent = toggle
- TextLabel.Text = text
- TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.BackgroundTransparency = 1.000
- TextLabel.BorderColor3 = Color3.fromRGB(64, 64, 64)
- TextLabel.Size = UDim2.new(0, 125, 0, 40)
- TextLabel.Font = Enum.Font.SourceSansSemibold
- TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.TextSize = 25.000
- ImageButton.Parent = toggle
- ImageButton.AnchorPoint = Vector2.new(0.5, 0.5)
- ImageButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ImageButton.BackgroundTransparency = 1.000
- ImageButton.ClipsDescendants = true
- ImageButton.Position = UDim2.new(0.914285719, 0, 0.375, 5)
- ImageButton.Size = UDim2.new(0, 30, 0, 30)
- ImageButton.Image = "http://www.roblox.com/asset/?id=5228818459"
- Circle.Name = "Circle"
- Circle.Parent = ImageButton
- Circle.AnchorPoint = Vector2.new(0.5, 0.5)
- Circle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Circle.BackgroundTransparency = 1.000
- Circle.Position = UDim2.new(0.5, 0, 0.5, 0)
- Circle.Size = UDim2.new(0, 10, 0, 10)
- Circle.Image = "rbxassetid://3570695787"
- Circle.ImageTransparency = 1.000
- Circle.ScaleType = Enum.ScaleType.Slice
- Circle.SliceCenter = Rect.new(100, 100, 100, 100)
- Circle.SliceScale = 0.500
- --script
- local script = Instance.new('LocalScript', ImageButton)
- local tweenService = game:GetService("TweenService")
- local textButton = script.Parent
- local circle = textButton.Circle
- local toggle = false
- local function toggleon(x,y)
- local pos = UDim2.new(0,x-textButton.AbsolutePosition.X,0,y-textButton.AbsolutePosition.Y-36)
- circle.Position = pos
- circle.Size = UDim2.new(0,1,0,0.1)
- circle.ImageTransparency = 1
- textButton.Image = "http://www.roblox.com/asset/?id=5228566966"
- local goal = {}
- goal.Size = UDim2.new(0,40,0,40)
- goal.ImageTransparency = 0
- local tween = tweenService:Create(circle, TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.Out), goal)
- tween:Play()
- -- code
- wait(0.24)
- textButton.Image = "http://www.roblox.com/asset/?id=5228569533"
- circle.ImageTransparency = 1
- end
- script.Parent.MouseButton1Down:Connect(function(x,y)
- if toggle == false then
- toggleon(x,y)
- toggle = true
- updatefunction(true)
- else
- textButton.Image = "http://www.roblox.com/asset/?id=5228818459"
- toggle = false
- updatefunction(false)
- end
- end)
- player = game.Players.LocalPlayer
- local icon = script.Parent
- icon.MouseEnter:connect(function()
- icon:TweenSize(UDim2.new(0, 32, 0, 32),"Out","Quad",0.1,true)
- end)
- icon.MouseLeave:connect(function()
- icon:TweenSize(UDim2.new(0, 30, 0, 30),"Out","Quad",0.1,true)
- end)
- return ImageButton
- end
- function createLabel(text)
- local TextLabel = Instance.new("TextLabel")
- TextLabel.Parent = Selections
- TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.BackgroundTransparency = 1.000
- TextLabel.BorderColor3 = Color3.fromRGB(64, 64, 64)
- TextLabel.Text = text
- TextLabel.Size = UDim2.new(0, 200, 0, 50)
- TextLabel.Font = Enum.Font.SourceSansSemibold
- TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.TextSize = 30.000
- end
- function createselection(contents, updatefunction)
- -- Instances:
- local Dropdown = Instance.new("TextLabel")
- local RightBtn = Instance.new("TextButton")
- local LeftBtn = Instance.new("TextButton")
- local Circle = Instance.new("ImageLabel")
- --Properties:
- Dropdown.Name = "Dropdown"
- Dropdown.Parent = Selections
- Dropdown.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Dropdown.BorderColor3 = Color3.fromRGB(27, 42, 53)
- Dropdown.ClipsDescendants = true
- Dropdown.Size = UDim2.new(0, 200, 0, 50)
- Dropdown.Font = Enum.Font.SourceSansSemibold
- Dropdown.Text = "DROPDOWN"
- Dropdown.TextColor3 = Color3.fromRGB(255, 255, 255)
- Dropdown.TextSize = 20.000
- RightBtn.Name = "RightBtn"
- RightBtn.Parent = Dropdown
- RightBtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- RightBtn.BackgroundTransparency = 1.000
- RightBtn.Position = UDim2.new(0.857142866, 0, 0.174999997, 0)
- RightBtn.Size = UDim2.new(0, 25, 0, 25)
- RightBtn.Font = Enum.Font.SourceSansSemibold
- RightBtn.Text = ">"
- RightBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
- RightBtn.TextSize = 25.000
- LeftBtn.Name = "LeftBtn"
- LeftBtn.Parent = Dropdown
- LeftBtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- LeftBtn.BackgroundTransparency = 1.000
- LeftBtn.Position = UDim2.new(0, 0, 0.174999997, 0)
- LeftBtn.Size = UDim2.new(0, 25, 0, 25)
- LeftBtn.Font = Enum.Font.SourceSansSemibold
- LeftBtn.Text = "<"
- LeftBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
- LeftBtn.TextSize = 25.000
- Circle.Name = "Circle"
- Circle.Parent = Dropdown
- Circle.AnchorPoint = Vector2.new(0.5, 0.5)
- Circle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Circle.BackgroundTransparency = 1.000
- Circle.Position = UDim2.new(0.5, 0, 0.5, 0)
- Circle.Size = UDim2.new(0, 30, 0, 30)
- Circle.Image = "rbxassetid://3570695787"
- Circle.ImageTransparency = 1.000
- Circle.ScaleType = Enum.ScaleType.Slice
- Circle.SliceCenter = Rect.new(100, 100, 100, 100)
- Circle.SliceScale = 0.000
- -- Scripts:
- local function UYAPL_fake_script() -- Dropdown.LocalScript
- local script = Instance.new('LocalScript', Dropdown)
- local dropdown = script.Parent
- local btnright = dropdown:WaitForChild('RightBtn')
- local btnleft = dropdown:WaitForChild('LeftBtn')
- local tweenService = game:GetService("TweenService")
- local circle = dropdown.Circle
- local function tween(x,y)
- local pos = UDim2.new(0,x-dropdown.AbsolutePosition.X,0,y-dropdown.AbsolutePosition.Y-36)
- circle.Position = pos
- circle.Size = UDim2.new(0,1,0,0.1)
- circle.ImageTransparency = .5
- local goal = {}
- goal.Size = UDim2.new(0, 100, 0, 1000)
- goal.ImageTransparency = 1
- local tween = tweenService:Create(circle, TweenInfo.new(1.5,Enum.EasingStyle.Sine,Enum.EasingDirection.Out), goal)
- tween:Play()
- end
- local number = 1
- dropdown.Text = contents[number]
- btnright.MouseButton1Down:Connect(function(x,y)
- tween(x,y)
- number = number + 1
- if number > #contents then
- number = 1
- end
- dropdown.Text = contents[number]
- updatefunction(dropdown.Text)
- end)
- btnleft.MouseButton1Down:Connect(function(x,y)
- tween(x,y)
- number = number - 1
- if number < 1 then
- number = #contents
- end
- dropdown.Text = contents[number]
- updatefunction(dropdown.Text)
- end)
- end
- coroutine.wrap(UYAPL_fake_script)()
- return Dropdown
- end
Add Comment
Please, Sign In to add comment