tazerzx

Age of heroes X gui

Jun 27th, 2020
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. print('AGE OF HEROES version X loaded!')
  2. -- Instances:
  3.  
  4. local blur = Instance.new("BlurEffect", game:GetService('Lighting'))
  5. local ShadowUILib = Instance.new("ScreenGui")
  6. local BackGroundFrame = Instance.new("ImageLabel")
  7. local TitleFrame = Instance.new("ImageLabel")
  8. local Logo = Instance.new("ImageLabel")
  9. local Logotxt = Instance.new("TextLabel")
  10. local Credit = Instance.new("TextLabel")
  11. local Selections = Instance.new("Frame")
  12. local UIGridLayout = Instance.new("UIGridLayout")
  13.  
  14. --Properties:
  15.  
  16. ShadowUILib.Name = "ShadowUILib"
  17. ShadowUILib.Parent = game:GetService("CoreGui")
  18.  
  19. BackGroundFrame.Name = "BackGroundFrame"
  20. BackGroundFrame.Parent = ShadowUILib
  21. BackGroundFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  22. BackGroundFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  23. BackGroundFrame.BackgroundTransparency = 1.000
  24. BackGroundFrame.ClipsDescendants = true
  25. BackGroundFrame.Position = UDim2.new(0.490037352, 0, 0.563800216, 0)
  26. BackGroundFrame.Size = UDim2.new(0, 750, 0, 500)
  27. BackGroundFrame.Image = "rbxassetid://3570695787"
  28. BackGroundFrame.ImageColor3 = Color3.fromRGB(12, 12, 12)
  29. BackGroundFrame.ImageTransparency = 0.200
  30. BackGroundFrame.ScaleType = Enum.ScaleType.Slice
  31. BackGroundFrame.SliceCenter = Rect.new(100, 100, 100, 100)
  32. BackGroundFrame.SliceScale = 0.200
  33.  
  34. TitleFrame.Name = "TitleFrame"
  35. TitleFrame.Parent = BackGroundFrame
  36. TitleFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  37. TitleFrame.BackgroundTransparency = 1.000
  38. TitleFrame.ClipsDescendants = true
  39. TitleFrame.Size = UDim2.new(0, 250, 0, 500)
  40. TitleFrame.Image = "rbxassetid://3570695787"
  41. TitleFrame.ImageColor3 = Color3.fromRGB(51, 51, 51)
  42. TitleFrame.ImageTransparency = 0.200
  43. TitleFrame.ScaleType = Enum.ScaleType.Slice
  44. TitleFrame.SliceCenter = Rect.new(100, 100, 100, 100)
  45. TitleFrame.SliceScale = 0.200
  46.  
  47. Logo.Name = "Logo"
  48. Logo.Parent = TitleFrame
  49. Logo.AnchorPoint = Vector2.new(0.5, 0.5)
  50. Logo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  51. Logo.BackgroundTransparency = 1.000
  52. Logo.Position = UDim2.new(0.496000051, 0, 0.328999996, 0)
  53. Logo.Size = UDim2.new(0, 150, 0, 150)
  54. Logo.Image = "http://www.roblox.com/asset/?id=5230440166"
  55.  
  56. Logotxt.Name = "Logo txt"
  57. Logotxt.Parent = TitleFrame
  58. Logotxt.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  59. Logotxt.BackgroundTransparency = 1.000
  60. Logotxt.Position = UDim2.new(0, 0, 0.448000014, 0)
  61. Logotxt.Size = UDim2.new(0, 250, 0, 50)
  62. Logotxt.Font = Enum.Font.SciFi
  63. Logotxt.Text = "Age of Heroes X"
  64. Logotxt.TextColor3 = Color3.fromRGB(255, 255, 255)
  65. Logotxt.TextSize = 30.000
  66. Logotxt.TextStrokeColor3 = Color3.fromRGB(255, 255, 255)
  67. Logotxt.TextStrokeTransparency = 0.500
  68.  
  69. Credit.Name = "Credit"
  70. Credit.Parent = TitleFrame
  71. Credit.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  72. Credit.BackgroundTransparency = 1.000
  73. Credit.Position = UDim2.new(0.100000001, 0, 0.958000004, 0)
  74. Credit.Size = UDim2.new(0, 200, 0, 21)
  75. Credit.Font = Enum.Font.SciFi
  76. Credit.Text = "Created by: iHavoc101"
  77. Credit.TextColor3 = Color3.fromRGB(255, 255, 255)
  78. Credit.TextSize = 15.000
  79. Credit.TextStrokeColor3 = Color3.fromRGB(255, 255, 255)
  80. Credit.TextStrokeTransparency = 0.500
  81.  
  82. Selections.Name = "Selections"
  83. Selections.Parent = BackGroundFrame
  84. Selections.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  85. Selections.BackgroundTransparency = 1.000
  86. Selections.Position = UDim2.new(0.370000005, 0, 0.0500000007, 0)
  87. Selections.Size = UDim2.new(0, 450, 0, 450)
  88.  
  89. UIGridLayout.Parent = Selections
  90. UIGridLayout.FillDirection = Enum.FillDirection.Vertical
  91. UIGridLayout.SortOrder = Enum.SortOrder.LayoutOrder
  92. UIGridLayout.CellPadding = UDim2.new(0, 10, 0, 25)
  93. UIGridLayout.CellSize = UDim2.new(0, 175, 0, 40)
  94. UIGridLayout.FillDirectionMaxCells = 8
  95.  
  96. -- Scripts:
  97.  
  98. local function RGDUHI_fake_script() -- Logo.HoverEffect
  99. local script = Instance.new('LocalScript', Logo)
  100.  
  101. player = game.Players.LocalPlayer
  102. local icon = script.Parent
  103.  
  104. icon.MouseEnter:connect(function()
  105. icon:TweenSize(UDim2.new(0, 160, 0, 160),"Out","Quad",0.25,true)
  106. end)
  107.  
  108. icon.MouseLeave:connect(function()
  109. icon:TweenSize(UDim2.new(0, 150, 0, 150),"Out","Quad",0.25,true)
  110. end)
  111. end
  112. coroutine.wrap(RGDUHI_fake_script)()
  113. local function WLGH_fake_script() -- BackGroundFrame.Drag
  114. local script = Instance.new('LocalScript', BackGroundFrame)
  115.  
  116. local UserInputService = game:GetService("UserInputService")
  117.  
  118. local gui = script.Parent
  119.  
  120. local dragging
  121. local dragInput
  122. local dragStart
  123. local startPos
  124.  
  125. local function update(input)
  126. local delta = input.Position - dragStart
  127. gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  128. end
  129.  
  130. gui.InputBegan:Connect(function(input)
  131. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  132. dragging = true
  133. dragStart = input.Position
  134. startPos = gui.Position
  135.  
  136. input.Changed:Connect(function()
  137. if input.UserInputState == Enum.UserInputState.End then
  138. dragging = false
  139. end
  140. end)
  141. end
  142. end)
  143.  
  144. gui.InputChanged:Connect(function(input)
  145. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  146. dragInput = input
  147. end
  148. end)
  149.  
  150. UserInputService.InputChanged:Connect(function(input)
  151. if input == dragInput and dragging then
  152. update(input)
  153. end
  154. end)
  155. end
  156. coroutine.wrap(WLGH_fake_script)()
  157. local function EYUP_fake_script() -- BackGroundFrame.Toggle
  158. local script = Instance.new('LocalScript', BackGroundFrame)
  159.  
  160. local frame = script.Parent
  161. local title = frame:FindFirstChild('TitleFrame')
  162.  
  163.  
  164. function onKeyPress(inputObject, gameProcessedEvent)
  165. if gameProcessedEvent then
  166. return -- Stop running this function
  167. end
  168. if inputObject.KeyCode == Enum.KeyCode.G then
  169. ToggleUI()
  170. end
  171. end
  172. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  173.  
  174.  
  175.  
  176. function ToggleUI()
  177. if frame.Visible == true then
  178. frame:TweenSize(UDim2.new(0, 250,0, 500),"Out","Quad",0.5,true)
  179.  
  180. for i,v in pairs(frame.Selections:GetChildren()) do
  181. if v.Name ~= 'UIGridLayout' then
  182. v.Visible = false
  183. end
  184. end
  185. wait(0.75)
  186. blur.Size = 0
  187. frame.ImageTransparency = 1
  188.  
  189. title:TweenSize(UDim2.new(0, 250,0, 0),"Out","Quad",0.5,true)
  190. wait(0.5)
  191. frame.Visible = false
  192. else
  193. frame.Visible = true
  194. title:TweenSize(UDim2.new(0, 250,0, 500),"Out","Quad",0.5,true)
  195. wait(0.75)
  196. blur.Size = 10
  197. frame.ImageTransparency = 0
  198. frame:TweenSize(UDim2.new(0, 750,0, 500),"Out","Quad",0.5,true)
  199. wait(0.5)
  200. for i,v in pairs(frame.Selections:GetChildren()) do
  201. if v.Name ~= 'UIGridLayout' then
  202. v.Visible = true
  203. end
  204. end
  205. end
  206. end
  207. end
  208. coroutine.wrap(EYUP_fake_script)()
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217. function createbutton(text, clickfunction)
  218. local Button = Instance.new("TextButton")
  219. Button.Name = "Button"
  220. Button.AutoButtonColor = false
  221. Button.Parent = Selections
  222. Button.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  223. Button.BorderColor3 = Color3.fromRGB(64, 64, 64)
  224. Button.ClipsDescendants = true
  225. Button.Font = Enum.Font.SourceSansSemibold
  226. Button.Text = text
  227. Button.TextColor3 = Color3.fromRGB(255, 255, 255)
  228. Button.TextSize = 20.000
  229. Button.TextWrapped = true
  230.  
  231. local Circle_2 = Instance.new("ImageLabel")
  232. Circle_2.Name = "Circle"
  233. Circle_2.Parent = Button
  234. Circle_2.AnchorPoint = Vector2.new(0.5, 0.5)
  235. Circle_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  236. Circle_2.BackgroundTransparency = 1.000
  237. Circle_2.Position = UDim2.new(0.5, 0, 0.5, 0)
  238. Circle_2.Size = UDim2.new(0, 30, 0, 30)
  239. Circle_2.Image = "rbxassetid://3570695787"
  240. Circle_2.ImageTransparency = 1.000
  241. Circle_2.ScaleType = Enum.ScaleType.Slice
  242. Circle_2.SliceCenter = Rect.new(100, 100, 100, 100)
  243. Circle_2.SliceScale = 0.500
  244.  
  245.  
  246. local script = Instance.new('LocalScript', Button)
  247.  
  248. local tweenService = game:GetService("TweenService")
  249. local textButton = script.Parent
  250. local circle = textButton.Circle
  251.  
  252. script.Parent.MouseButton1Down:Connect(function(x,y)
  253. clickfunction()
  254. local pos = UDim2.new(0,x-textButton.AbsolutePosition.X,0,y-textButton.AbsolutePosition.Y-36)
  255. circle.Position = pos
  256. circle.Size = UDim2.new(0,1,0,0.1)
  257. circle.ImageTransparency = .5
  258.  
  259. local goal = {}
  260. goal.Size = UDim2.new(0,450,0,280)
  261. goal.ImageTransparency = 1
  262.  
  263. local tween = tweenService:Create(circle, TweenInfo.new(1.5,Enum.EasingStyle.Sine,Enum.EasingDirection.Out), goal)
  264. tween:Play()
  265.  
  266. wait(0.1)
  267. end)
  268.  
  269. return Button
  270.  
  271. end
  272.  
  273.  
  274. function createToggle(text, updatefunction)
  275. local toggle = Instance.new("Frame")
  276. local TextLabel = Instance.new("TextLabel")
  277. local ImageButton = Instance.new("ImageButton")
  278. local Circle = Instance.new("ImageLabel")
  279.  
  280. toggle.Name = "toggle"
  281. toggle.Parent = Selections
  282. toggle.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  283. toggle.BackgroundTransparency = 1.000
  284. toggle.BorderColor3 = Color3.fromRGB(64, 64, 64)
  285. toggle.Position = UDim2.new(0.348692417, 0, 0.409153938, 0)
  286. toggle.Size = UDim2.new(0, 125, 0, 25)
  287.  
  288. TextLabel.Parent = toggle
  289. TextLabel.Text = text
  290. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  291. TextLabel.BackgroundTransparency = 1.000
  292. TextLabel.BorderColor3 = Color3.fromRGB(64, 64, 64)
  293. TextLabel.Size = UDim2.new(0, 125, 0, 40)
  294. TextLabel.Font = Enum.Font.SourceSansSemibold
  295. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  296. TextLabel.TextSize = 25.000
  297.  
  298. ImageButton.Parent = toggle
  299. ImageButton.AnchorPoint = Vector2.new(0.5, 0.5)
  300. ImageButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  301. ImageButton.BackgroundTransparency = 1.000
  302. ImageButton.ClipsDescendants = true
  303. ImageButton.Position = UDim2.new(0.914285719, 0, 0.375, 5)
  304. ImageButton.Size = UDim2.new(0, 30, 0, 30)
  305. ImageButton.Image = "http://www.roblox.com/asset/?id=5228818459"
  306.  
  307. Circle.Name = "Circle"
  308. Circle.Parent = ImageButton
  309. Circle.AnchorPoint = Vector2.new(0.5, 0.5)
  310. Circle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  311. Circle.BackgroundTransparency = 1.000
  312. Circle.Position = UDim2.new(0.5, 0, 0.5, 0)
  313. Circle.Size = UDim2.new(0, 10, 0, 10)
  314. Circle.Image = "rbxassetid://3570695787"
  315. Circle.ImageTransparency = 1.000
  316. Circle.ScaleType = Enum.ScaleType.Slice
  317. Circle.SliceCenter = Rect.new(100, 100, 100, 100)
  318. Circle.SliceScale = 0.500
  319. --script
  320. local script = Instance.new('LocalScript', ImageButton)
  321.  
  322. local tweenService = game:GetService("TweenService")
  323. local textButton = script.Parent
  324. local circle = textButton.Circle
  325. local toggle = false
  326.  
  327.  
  328. local function toggleon(x,y)
  329. local pos = UDim2.new(0,x-textButton.AbsolutePosition.X,0,y-textButton.AbsolutePosition.Y-36)
  330. circle.Position = pos
  331. circle.Size = UDim2.new(0,1,0,0.1)
  332. circle.ImageTransparency = 1
  333. textButton.Image = "http://www.roblox.com/asset/?id=5228566966"
  334.  
  335. local goal = {}
  336. goal.Size = UDim2.new(0,40,0,40)
  337. goal.ImageTransparency = 0
  338.  
  339. local tween = tweenService:Create(circle, TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.Out), goal)
  340. tween:Play()
  341.  
  342. -- code
  343. wait(0.24)
  344. textButton.Image = "http://www.roblox.com/asset/?id=5228569533"
  345. circle.ImageTransparency = 1
  346. end
  347.  
  348.  
  349.  
  350. script.Parent.MouseButton1Down:Connect(function(x,y)
  351. if toggle == false then
  352. toggleon(x,y)
  353. toggle = true
  354. updatefunction(true)
  355. else
  356. textButton.Image = "http://www.roblox.com/asset/?id=5228818459"
  357. toggle = false
  358. updatefunction(false)
  359. end
  360. end)
  361.  
  362.  
  363.  
  364.  
  365. player = game.Players.LocalPlayer
  366. local icon = script.Parent
  367.  
  368. icon.MouseEnter:connect(function()
  369. icon:TweenSize(UDim2.new(0, 32, 0, 32),"Out","Quad",0.1,true)
  370. end)
  371.  
  372. icon.MouseLeave:connect(function()
  373. icon:TweenSize(UDim2.new(0, 30, 0, 30),"Out","Quad",0.1,true)
  374. end)
  375.  
  376. return ImageButton
  377. end
  378.  
  379.  
  380.  
  381. function createLabel(text)
  382. local TextLabel = Instance.new("TextLabel")
  383. TextLabel.Parent = Selections
  384. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  385. TextLabel.BackgroundTransparency = 1.000
  386. TextLabel.BorderColor3 = Color3.fromRGB(64, 64, 64)
  387. TextLabel.Text = text
  388. TextLabel.Size = UDim2.new(0, 200, 0, 50)
  389. TextLabel.Font = Enum.Font.SourceSansSemibold
  390. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  391. TextLabel.TextSize = 30.000
  392. end
  393.  
  394.  
  395. function createselection(contents, updatefunction)
  396. -- Instances:
  397. local Dropdown = Instance.new("TextLabel")
  398. local RightBtn = Instance.new("TextButton")
  399. local LeftBtn = Instance.new("TextButton")
  400. local Circle = Instance.new("ImageLabel")
  401.  
  402. --Properties:
  403.  
  404. Dropdown.Name = "Dropdown"
  405. Dropdown.Parent = Selections
  406. Dropdown.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  407. Dropdown.BorderColor3 = Color3.fromRGB(27, 42, 53)
  408. Dropdown.ClipsDescendants = true
  409. Dropdown.Size = UDim2.new(0, 200, 0, 50)
  410. Dropdown.Font = Enum.Font.SourceSansSemibold
  411. Dropdown.Text = "DROPDOWN"
  412. Dropdown.TextColor3 = Color3.fromRGB(255, 255, 255)
  413. Dropdown.TextSize = 20.000
  414.  
  415. RightBtn.Name = "RightBtn"
  416. RightBtn.Parent = Dropdown
  417. RightBtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  418. RightBtn.BackgroundTransparency = 1.000
  419. RightBtn.Position = UDim2.new(0.857142866, 0, 0.174999997, 0)
  420. RightBtn.Size = UDim2.new(0, 25, 0, 25)
  421. RightBtn.Font = Enum.Font.SourceSansSemibold
  422. RightBtn.Text = ">"
  423. RightBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
  424. RightBtn.TextSize = 25.000
  425.  
  426.  
  427.  
  428. LeftBtn.Name = "LeftBtn"
  429. LeftBtn.Parent = Dropdown
  430. LeftBtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  431. LeftBtn.BackgroundTransparency = 1.000
  432. LeftBtn.Position = UDim2.new(0, 0, 0.174999997, 0)
  433. LeftBtn.Size = UDim2.new(0, 25, 0, 25)
  434. LeftBtn.Font = Enum.Font.SourceSansSemibold
  435. LeftBtn.Text = "<"
  436. LeftBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
  437. LeftBtn.TextSize = 25.000
  438.  
  439.  
  440.  
  441. Circle.Name = "Circle"
  442. Circle.Parent = Dropdown
  443. Circle.AnchorPoint = Vector2.new(0.5, 0.5)
  444. Circle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  445. Circle.BackgroundTransparency = 1.000
  446. Circle.Position = UDim2.new(0.5, 0, 0.5, 0)
  447. Circle.Size = UDim2.new(0, 30, 0, 30)
  448. Circle.Image = "rbxassetid://3570695787"
  449. Circle.ImageTransparency = 1.000
  450. Circle.ScaleType = Enum.ScaleType.Slice
  451. Circle.SliceCenter = Rect.new(100, 100, 100, 100)
  452. Circle.SliceScale = 0.000
  453.  
  454.  
  455.  
  456. -- Scripts:
  457.  
  458.  
  459.  
  460. local function UYAPL_fake_script() -- Dropdown.LocalScript
  461.  
  462. local script = Instance.new('LocalScript', Dropdown)
  463.  
  464.  
  465.  
  466. local dropdown = script.Parent
  467.  
  468. local btnright = dropdown:WaitForChild('RightBtn')
  469.  
  470. local btnleft = dropdown:WaitForChild('LeftBtn')
  471.  
  472.  
  473.  
  474. local tweenService = game:GetService("TweenService")
  475.  
  476. local circle = dropdown.Circle
  477.  
  478.  
  479.  
  480.  
  481. local function tween(x,y)
  482.  
  483. local pos = UDim2.new(0,x-dropdown.AbsolutePosition.X,0,y-dropdown.AbsolutePosition.Y-36)
  484.  
  485. circle.Position = pos
  486.  
  487. circle.Size = UDim2.new(0,1,0,0.1)
  488.  
  489. circle.ImageTransparency = .5
  490.  
  491.  
  492.  
  493. local goal = {}
  494.  
  495. goal.Size = UDim2.new(0, 100, 0, 1000)
  496.  
  497. goal.ImageTransparency = 1
  498.  
  499.  
  500.  
  501. local tween = tweenService:Create(circle, TweenInfo.new(1.5,Enum.EasingStyle.Sine,Enum.EasingDirection.Out), goal)
  502.  
  503. tween:Play()
  504.  
  505. end
  506.  
  507.  
  508.  
  509.  
  510.  
  511. local number = 1
  512.  
  513. dropdown.Text = contents[number]
  514.  
  515.  
  516.  
  517.  
  518.  
  519. btnright.MouseButton1Down:Connect(function(x,y)
  520.  
  521. tween(x,y)
  522.  
  523. number = number + 1
  524.  
  525. if number > #contents then
  526.  
  527. number = 1
  528.  
  529. end
  530.  
  531. dropdown.Text = contents[number]
  532.  
  533. updatefunction(dropdown.Text)
  534.  
  535. end)
  536.  
  537.  
  538.  
  539.  
  540.  
  541.  
  542.  
  543. btnleft.MouseButton1Down:Connect(function(x,y)
  544.  
  545. tween(x,y)
  546.  
  547. number = number - 1
  548.  
  549. if number < 1 then
  550.  
  551. number = #contents
  552.  
  553. end
  554.  
  555. dropdown.Text = contents[number]
  556.  
  557. updatefunction(dropdown.Text)
  558.  
  559. end)
  560.  
  561. end
  562.  
  563. coroutine.wrap(UYAPL_fake_script)()
  564.  
  565. return Dropdown
  566. end
Add Comment
Please, Sign In to add comment