Advertisement
Guest User

Touch Football Auto Goal 2.0

a guest
Dec 28th, 2022
7,513
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.41 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local Frame = Instance.new("ImageLabel")
  8. local TextLabel = Instance.new("TextLabel")
  9. local GoalB = Instance.new("TextButton")
  10. local GoalA = Instance.new("TextButton")
  11.  
  12. --Properties:
  13.  
  14. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  15.  
  16. Frame.Name = "Frame"
  17. Frame.Parent = ScreenGui
  18. Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  19. Frame.BackgroundTransparency = 1.000
  20. Frame.Position = UDim2.new(0.0732689202, 0, 0.422600627, 0)
  21. Frame.Size = UDim2.new(0, 238, 0, 106)
  22. Frame.Image = "rbxassetid://3570695787"
  23. Frame.ImageColor3 = Color3.fromRGB(48, 48, 48)
  24. Frame.ScaleType = Enum.ScaleType.Slice
  25. Frame.SliceCenter = Rect.new(100, 100, 100, 100)
  26. Frame.SliceScale = 0.120
  27. Frame.Active = true
  28. Frame.Draggable = true
  29.  
  30. TextLabel.Parent = Frame
  31. TextLabel.BackgroundColor3 = Color3.fromRGB(26, 26, 26)
  32. TextLabel.BorderSizePixel = 0
  33. TextLabel.Size = UDim2.new(0, 238, 0, 28)
  34. TextLabel.Font = Enum.Font.Unknown
  35. TextLabel.Text = "Auto Goal"
  36. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  37. TextLabel.TextScaled = true
  38. TextLabel.TextSize = 14.000
  39. TextLabel.TextWrapped = true
  40. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  41.  
  42. GoalB.Name = "GoalB"
  43. GoalB.Parent = Frame
  44. GoalB.BackgroundColor3 = Color3.fromRGB(24, 24, 24)
  45. GoalB.BorderColor3 = Color3.fromRGB(255, 255, 255)
  46. GoalB.BorderSizePixel = 0
  47. GoalB.Position = UDim2.new(0.0462184884, 0, 0.616651714, 0)
  48. GoalB.Size = UDim2.new(0, 216, 0, 19)
  49. GoalB.Font = Enum.Font.Cartoon
  50. GoalB.Text = "GoalB"
  51. GoalB.TextColor3 = Color3.fromRGB(255, 255, 255)
  52. GoalB.TextScaled = true
  53. GoalB.TextSize = 14.000
  54. GoalB.TextWrapped = true
  55.  
  56. GoalA.Name = "GoalA"
  57. GoalA.Parent = Frame
  58. GoalA.BackgroundColor3 = Color3.fromRGB(24, 24, 24)
  59. GoalA.BorderColor3 = Color3.fromRGB(255, 255, 255)
  60. GoalA.BorderSizePixel = 0
  61. GoalA.Position = UDim2.new(0.0462184884, 0, 0.375561565, 0)
  62. GoalA.Size = UDim2.new(0, 216, 0, 19)
  63. GoalA.Font = Enum.Font.Cartoon
  64. GoalA.Text = "GoalA"
  65. GoalA.TextColor3 = Color3.fromRGB(255, 255, 255)
  66. GoalA.TextScaled = true
  67. GoalA.TextSize = 14.000
  68. GoalA.TextWrapped = true
  69.  
  70. -- Scripts:
  71.  
  72. local function LNISRL_fake_script() -- GoalB.LocalScript
  73. local script = Instance.new('LocalScript', GoalB)
  74.  
  75. script.Parent.MouseButton1Click:Connect(function()
  76. if script.Parent.BorderSizePixel ~= 0 then
  77. script.Parent.BorderSizePixel = 0
  78. getgenv().GoalB = false
  79. print("GoalB Disabled")
  80. else
  81. if script.Parent.BorderSizePixel ~= 1 then
  82. script.Parent.BorderSizePixel = 1
  83. local GoalA = script.Parent.Parent.GoalA
  84. GoalA.BorderSizePixel = 0
  85. getgenv().GoalA = false
  86. getgenv().GoalB = true
  87.  
  88. print("GoalB Enabled!")
  89.  
  90. while wait() do
  91. if getgenv().GoalB == true then
  92. local field = game.Workspace.FootballField
  93.  
  94. local ball = field:WaitForChild("SoccerBall")
  95.  
  96. local hum = game.Players.LocalPlayer.Character.HumanoidRootPart
  97.  
  98. local magnitude = (ball.Position-hum.Position).magnitude
  99.  
  100. if magnitude <= 35 then
  101. local A_1 = "C_0PA"
  102. local A_2 = 472132237
  103. local A_3 = ""
  104. local A_4 = Vector3.new(-154.07484436035156, 5.474004745483398, 102.59715270996094)
  105. local A_5 = Vector3.new(75.42424011230469, 36, -26.726070404052734)
  106. local A_6 = Vector3.new(0, -0.9215728640556335, 0)
  107. local Event = game:GetService("ReplicatedStorage").KickBall
  108. Event:FireServer(A_1, A_2, A_3, A_4, A_5, A_6)
  109. end
  110. end
  111. end
  112. end
  113. end
  114. end)
  115. end
  116. coroutine.wrap(LNISRL_fake_script)()
  117. local function RTPC_fake_script() -- GoalA.LocalScript
  118. local script = Instance.new('LocalScript', GoalA)
  119.  
  120. script.Parent.MouseButton1Click:Connect(function()
  121. if script.Parent.BorderSizePixel ~= 0 then
  122. script.Parent.BorderSizePixel = 0
  123. getgenv().GoalA = false
  124. print("GoalA Disabled")
  125. else
  126. if script.Parent.BorderSizePixel ~= 1 then
  127. script.Parent.BorderSizePixel = 1
  128. local GoalB = script.Parent.Parent.GoalB
  129. GoalB.BorderSizePixel = 0
  130. getgenv().GoalA = true
  131. getgenv().GoalB = false
  132.  
  133. print("GoalA Enabled!")
  134.  
  135. while wait() do
  136. if getgenv().GoalA == true then
  137. local field = game.Workspace.FootballField
  138.  
  139. local ball = field:WaitForChild("SoccerBall")
  140.  
  141. local hum = game.Players.LocalPlayer.Character.HumanoidRootPart
  142.  
  143. local magnitude = (ball.Position-hum.Position).magnitude
  144.  
  145. if magnitude <= 35 then
  146. local A_1 = "C_0PA"
  147. local A_2 = 472132237
  148. local A_3 = ""
  149. local A_4 = Vector3.new(-281.58966064453125, 5.465750694274902, 92.93141174316406)
  150. local A_5 = Vector3.new(-79.95317077636719, 36, 2.7396087646484375)
  151. local A_6 = Vector3.new(0, -3.7485220432281494, 0)
  152. local Event = game:GetService("ReplicatedStorage").KickBall
  153. Event:FireServer(A_1, A_2, A_3, A_4, A_5, A_6)
  154. end
  155. end
  156. end
  157. end
  158. end
  159. end)
  160. end
  161. coroutine.wrap(RTPC_fake_script)()
  162. local function TKHR_fake_script() -- Frame.LocalScript
  163. local script = Instance.new('LocalScript', Frame)
  164.  
  165. local GoalA = game.Workspace.FootballField.Pitch.GoalA
  166.  
  167. local GoalB = game.Workspace.FootballField.Pitch.GoalB
  168.  
  169. local Goal1 = script.Parent.GoalA
  170.  
  171. local Goal2 = script.Parent.GoalB
  172.  
  173. while wait() do
  174. Goal1.Text = GoalA.Top.BrickColor.Name
  175.  
  176. Goal2.Text = GoalB.Top.BrickColor.Name
  177. end
  178. end
  179. coroutine.wrap(TKHR_fake_script)()
  180.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement