Advertisement
xTh3_Hunter

[FE] Epik Gui Roblox (v1)

Jan 8th, 2020
643
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.47 KB | None | 0 0
  1. local EpikGui = Instance.new("ScreenGui")
  2. local MainFRAME = Instance.new("Frame")
  3. local TitleFRAME = Instance.new("Frame")
  4. local TitleLABEL = Instance.new("TextLabel")
  5. local Unbang = Instance.new("TextButton")
  6. local Unhat = Instance.new("TextButton")
  7. local GoTo = Instance.new("TextButton")
  8. local WalkTo = Instance.new("TextButton")
  9. local Bang = Instance.new("TextButton")
  10. local Hat = Instance.new("TextButton")
  11. local Player = Instance.new("TextBox")
  12. local Close = Instance.new("TextButton")
  13. local Open = Instance.new("Frame")
  14. local OpenBUTTON = Instance.new("TextButton")
  15. EpikGui.Name = "EpikGui"
  16. EpikGui.Parent = game:GetService("CoreGui")
  17. MainFRAME.Name = "MainFRAME"
  18. MainFRAME.Parent = EpikGui
  19. MainFRAME.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  20. MainFRAME.BorderColor3 = Color3.fromRGB(0, 0, 0)
  21. MainFRAME.BorderSizePixel = 2
  22. MainFRAME.Position = UDim2.new(.399849594, 0, .386363655, 0)
  23. MainFRAME.Size = UDim2.new(0, 200, 0, 150)
  24. MainFRAME.Visible = false
  25. MainFRAME.Active = true
  26. MainFRAME.Draggable = true
  27. TitleFRAME.Name = "TitleFRAME"
  28. TitleFRAME.Parent = MainFRAME
  29. TitleFRAME.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  30. TitleFRAME.BorderColor3 = Color3.fromRGB(0, 0, 0)
  31. TitleFRAME.BorderSizePixel = 2
  32. TitleFRAME.Size = UDim2.new(0, 200, 0, 25)
  33. TitleLABEL.Name = "TitleLABEL"
  34. TitleLABEL.Parent = TitleFRAME
  35. TitleLABEL.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  36. TitleLABEL.BorderColor3 = Color3.fromRGB(0, 0, 0)
  37. TitleLABEL.BorderSizePixel = 2
  38. TitleLABEL.Size = UDim2.new(0, 200, 0, 25)
  39. TitleLABEL.Font = Enum.Font.Cartoon
  40. TitleLABEL.Text = "Epik Gui"
  41. TitleLABEL.TextColor3 = Color3.fromRGB(0, 0, 0)
  42. TitleLABEL.TextScaled = true
  43. TitleLABEL.TextSize = 14
  44. TitleLABEL.TextWrapped = true
  45. Unbang.Name = "Unbang"
  46. Unbang.Parent = MainFRAME
  47. Unbang.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  48. Unbang.BorderColor3 = Color3.fromRGB(0, 0, 0)
  49. Unbang.Position = UDim2.new(.0850001499, 0, .74666667, 0)
  50. Unbang.Size = UDim2.new(0, 50, 0, 25)
  51. Unbang.Font = Enum.Font.Cartoon
  52. Unbang.Text = "Unbang"
  53. Unbang.TextColor3 = Color3.fromRGB(0, 0, 0)
  54. Unbang.TextSize = 15
  55. Unbang.TextWrapped = true
  56. Unhat.Name = "Unhat"
  57. Unhat.Parent = MainFRAME
  58. Unhat.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  59. Unhat.BorderColor3 = Color3.fromRGB(0, 0, 0)
  60. Unhat.Position = UDim2.new(.375000149, 0, .74666667, 0)
  61. Unhat.Size = UDim2.new(0, 50, 0, 25)
  62. Unhat.Font = Enum.Font.Cartoon
  63. Unhat.Text = "Unhat"
  64. Unhat.TextColor3 = Color3.fromRGB(0, 0, 0)
  65. Unhat.TextSize = 15
  66. Unhat.TextWrapped = true
  67. GoTo.Name = "GoTo"
  68. GoTo.Parent = MainFRAME
  69. GoTo.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  70. GoTo.BorderColor3 = Color3.fromRGB(0, 0, 0)
  71. GoTo.Position = UDim2.new(.660000145, 0, .74666667, 0)
  72. GoTo.Size = UDim2.new(0, 50, 0, 25)
  73. GoTo.Font = Enum.Font.Cartoon
  74. GoTo.Text = "Go to"
  75. GoTo.TextColor3 = Color3.fromRGB(0, 0, 0)
  76. GoTo.TextSize = 15
  77. GoTo.TextWrapped = true
  78. WalkTo.Name = "WalkTo"
  79. WalkTo.Parent = MainFRAME
  80. WalkTo.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  81. WalkTo.BorderColor3 = Color3.fromRGB(0, 0, 0)
  82. WalkTo.Position = UDim2.new(.660000145, 0, .540000021, 0)
  83. WalkTo.Size = UDim2.new(0, 50, 0, 25)
  84. WalkTo.Font = Enum.Font.Cartoon
  85. WalkTo.Text = "Walk To"
  86. WalkTo.TextColor3 = Color3.fromRGB(0, 0, 0)
  87. WalkTo.TextSize = 15
  88. WalkTo.TextWrapped = true
  89. Bang.Name = "Bang"
  90. Bang.Parent = MainFRAME
  91. Bang.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  92. Bang.BorderColor3 = Color3.fromRGB(0, 0, 0)
  93. Bang.Position = UDim2.new(.0850001499, 0, .540000021, 0)
  94. Bang.Size = UDim2.new(0, 50, 0, 25)
  95. Bang.Font = Enum.Font.Cartoon
  96. Bang.Text = "Bang"
  97. Bang.TextColor3 = Color3.fromRGB(0, 0, 0)
  98. Bang.TextSize = 15
  99. Bang.TextWrapped = true
  100. Hat.Name = "Hat"
  101. Hat.Parent = MainFRAME
  102. Hat.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  103. Hat.BorderColor3 = Color3.fromRGB(0, 0, 0)
  104. Hat.Position = UDim2.new(.375000149, 0, .540000021, 0)
  105. Hat.Size = UDim2.new(0, 50, 0, 25)
  106. Hat.Font = Enum.Font.Cartoon
  107. Hat.Text = "Hat"
  108. Hat.TextColor3 = Color3.fromRGB(0, 0, 0)
  109. Hat.TextSize = 15
  110. Hat.TextWrapped = true
  111. Player.Name = "Player"
  112. Player.Parent = MainFRAME
  113. Player.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  114. Player.BorderColor3 = Color3.fromRGB(0, 0, 0)
  115. Player.Position = UDim2.new(.0800001547, 0, .273333341, 0)
  116. Player.Size = UDim2.new(0, 165, 0, 25)
  117. Player.Font = Enum.Font.Cartoon
  118. Player.PlaceholderColor3 = Color3.fromRGB(0, 0, 0)
  119. Player.PlaceholderText = "Player"
  120. Player.Text = ""
  121. Player.TextColor3 = Color3.fromRGB(0, 0, 0)
  122. Player.TextSize = 16
  123. Player.TextWrapped = true
  124. Close.Name = "Close"
  125. Close.Parent = MainFRAME
  126. Close.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  127. Close.BorderColor3 = Color3.fromRGB(0, 0, 0)
  128. Close.BorderSizePixel = 2
  129. Close.Position = UDim2.new(.875000179, 0, 0, 0)
  130. Close.Size = UDim2.new(0, 25, 0, 25)
  131. Close.Font = Enum.Font.Cartoon
  132. Close.Text = "X"
  133. Close.TextColor3 = Color3.fromRGB(0, 0, 0)
  134. Close.TextSize = 14
  135. Open.Name = "Open"
  136. Open.Parent = EpikGui
  137. Open.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  138. Open.BorderColor3 = Color3.fromRGB(0, 0, 0)
  139. Open.BorderSizePixel = 2
  140. Open.Position = UDim2.new(0, 1, .5, 0)
  141. Open.Size = UDim2.new(0, 50, 0, 25)
  142. Open.Visible = true
  143. Open.Active = true
  144. Open.Draggable = true
  145. OpenBUTTON.Name = "OpenBUTTON"
  146. OpenBUTTON.Parent = Open
  147. OpenBUTTON.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  148. OpenBUTTON.BorderColor3 = Color3.fromRGB(0, 0, 0)
  149. OpenBUTTON.Size = UDim2.new(0, 50, 0, 25)
  150. OpenBUTTON.Font = Enum.Font.Cartoon
  151. OpenBUTTON.Text = "Open"
  152. OpenBUTTON.TextColor3 = Color3.fromRGB(0, 0, 0)
  153. OpenBUTTON.TextSize = 16
  154. ME = game:GetService("Players").LocalPlayer
  155. function FindPlayer(loser)
  156.     local plrs = {}
  157.     for i, v in pairs(game:GetService("Players"):GetPlayers()) do
  158.         if v.Name:lower():sub(1, #loser) == loser:lower() then
  159.             table.insert(plrs, v)
  160.         end
  161.     end
  162.     return plrs
  163. end
  164. game:GetService("RunService").Stepped:Connect(function()
  165.     if banging then
  166.         ME.Character.HumanoidRootPart.CFrame = n.Character.HumanoidRootPart.CFrame + n.Character.HumanoidRootPart.CFrame.lookVector * -1.03
  167.     end
  168.     if hating then
  169.         ME.Character.HumanoidRootPart.CFrame = n.Character.HumanoidRootPart.CFrame + Vector3.new(0, 5, 0)
  170.     end
  171. end)
  172. Bang.MouseButton1Click:Connect(function()
  173.     if ME.Character.Humanoid.RigType == Enum.HumanoidRigType.R15 then
  174.         game:GetService("StarterGui"):SetCore("SendNotification", {
  175.             Title = "ERROR",
  176.             Text = "This will only work for R6."
  177.         })
  178.     else
  179.         for i, v in pairs(FindPlayer(Player.Text)) do
  180.             banging = true
  181.             bangAnimation = Instance.new("Animation")
  182.             bangAnimation.AnimationId = "rbxassetid://148840371"
  183.             bangTrack = ME.Character.Humanoid:LoadAnimation(bangAnimation)
  184.             bangTrack:Play()
  185.             bangTrack:AdjustSpeed(5)
  186.             if v.Character.Humanoid then
  187.                 workspace.CurrentCamera.CameraSubject = v.Character.Humanoid
  188.             else
  189.                 workspace.CurrentCamera.CameraSubject = v.Character.Head
  190.             end
  191.             n = v
  192.         end
  193.     end
  194. end)
  195. Unbang.MouseButton1Click:Connect(function()
  196.     banging = false
  197.     bangTrack:Stop()
  198.     if ME.Character.Humanoid then
  199.         workspace.CurrentCamera.CameraSubject = ME.Character.Humanoid
  200.     else
  201.         workspace.CurrentCamera.CameraSubject = ME.Character.Head
  202.     end
  203. end)
  204. Hat.MouseButton1Click:Connect(function()
  205.     for i, v in pairs(FindPlayer(Player.Text)) do
  206.         hating = true
  207.         n = v
  208.         if v.Character.Humanoid then
  209.             workspace.CurrentCamera.CameraSubject = v.Character.Humanoid
  210.         else
  211.             workspace.CurrentCamera.CameraSubject = v.Character.Head
  212.         end
  213.     end
  214. end)
  215. Unhat.MouseButton1Click:Connect(function()
  216.     hating = false
  217.     if ME.Character.Humanoid then
  218.         workspace.CurrentCamera.CameraSubject = ME.Character.Humanoid
  219.     else
  220.         workspace.CurrentCamera.CameraSubject = ME.Character.Head
  221.     end
  222. end)
  223. GoTo.MouseButton1Click:Connect(function()
  224.     for i, v in pairs(FindPlayer(Player.Text)) do
  225.         ME.Character.HumanoidRootPart.CFrame = v.Character.HumanoidRootPart.CFrame
  226.     end
  227. end)
  228. WalkTo.MouseButton1Click:Connect(function()
  229.     for i, v in pairs(FindPlayer(Player.Text)) do
  230.         ME.Character.Humanoid:MoveTo(v.Character.HumanoidRootPart.Position)
  231.     end
  232. end)
  233. Close.MouseButton1Click:Connect(function()
  234.     EpikGui.MainFRAME.Visible = false
  235.     EpikGui.Open.Visible = true
  236. end)
  237. OpenBUTTON.MouseButton1Click:Connect(function()
  238.     EpikGui.MainFRAME.Visible = true
  239.     EpikGui.Open.Visible = false
  240. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement