Advertisement
KenshiOfficial

Touch football script

Jul 11th, 2023
3,294
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.95 KB | None | 1 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 StadiumOptions = Instance.new("Folder")
  9. local Blue = Instance.new("TextButton")
  10. local Red = Instance.new("TextButton")
  11. local GoalOptions = Instance.new("Folder")
  12. local B = Instance.new("TextButton")
  13. local A = Instance.new("TextButton")
  14. local Labels = Instance.new("Folder")
  15. local TextLabel = Instance.new("TextLabel")
  16. local TextLabel_2 = Instance.new("TextLabel")
  17. local TextLabel_3 = Instance.new("TextLabel")
  18. local TextLabel_4 = Instance.new("TextLabel")
  19. local TextLabel_5 = Instance.new("TextLabel")
  20.  
  21. --Properties:
  22.  
  23. ScreenGui.Parent = game.CoreGui
  24.  
  25. Frame.Name = "Frame"
  26. Frame.Parent = ScreenGui
  27. Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  28. Frame.BackgroundTransparency = 1.000
  29. Frame.Position = UDim2.new(0.377516448, 0, 0.365013778, 0)
  30. Frame.Size = UDim2.new(0, 279, 0, 156)
  31. Frame.Image = "rbxassetid://3570695787"
  32. Frame.ImageColor3 = Color3.fromRGB(61, 61, 61)
  33. Frame.ScaleType = Enum.ScaleType.Slice
  34. Frame.SliceCenter = Rect.new(100, 100, 100, 100)
  35. Frame.SliceScale = 0.050
  36. Frame.Active = true
  37. Frame.Draggable = true
  38.  
  39. StadiumOptions.Name = "StadiumOptions"
  40. StadiumOptions.Parent = Frame
  41.  
  42. Blue.Name = "Blue"
  43. Blue.Parent = StadiumOptions
  44. Blue.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  45. Blue.BackgroundTransparency = 1.000
  46. Blue.BorderColor3 = Color3.fromRGB(0, 0, 0)
  47. Blue.BorderSizePixel = 0
  48. Blue.Position = UDim2.new(0.204301089, 0, 0.31410256, 0)
  49. Blue.Size = UDim2.new(0, 83, 0, 37)
  50. Blue.Font = Enum.Font.Unknown
  51. Blue.Text = "Blue"
  52. Blue.TextColor3 = Color3.fromRGB(255, 255, 255)
  53. Blue.TextSize = 25.000
  54.  
  55. Red.Name = "Red"
  56. Red.Parent = StadiumOptions
  57. Red.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  58. Red.BackgroundTransparency = 1.000
  59. Red.BorderColor3 = Color3.fromRGB(0, 0, 0)
  60. Red.BorderSizePixel = 0
  61. Red.Position = UDim2.new(0.501792133, 0, 0.31410256, 0)
  62. Red.Size = UDim2.new(0, 83, 0, 37)
  63. Red.Font = Enum.Font.Unknown
  64. Red.Text = "Red"
  65. Red.TextColor3 = Color3.fromRGB(255, 255, 255)
  66. Red.TextSize = 25.000
  67.  
  68. GoalOptions.Name = "GoalOptions"
  69. GoalOptions.Parent = Frame
  70.  
  71. B.Name = "B"
  72. B.Parent = GoalOptions
  73. B.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  74. B.BackgroundTransparency = 1.000
  75. B.BorderColor3 = Color3.fromRGB(0, 0, 0)
  76. B.BorderSizePixel = 0
  77. B.Position = UDim2.new(0.501792133, 0, 0.698717952, 0)
  78. B.Size = UDim2.new(0, 83, 0, 37)
  79. B.Font = Enum.Font.Unknown
  80. B.Text = "B"
  81. B.TextColor3 = Color3.fromRGB(255, 255, 255)
  82. B.TextSize = 25.000
  83.  
  84. A.Name = "A"
  85. A.Parent = GoalOptions
  86. A.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  87. A.BackgroundTransparency = 1.000
  88. A.BorderColor3 = Color3.fromRGB(0, 0, 0)
  89. A.BorderSizePixel = 0
  90. A.Position = UDim2.new(0.204301089, 0, 0.698717952, 0)
  91. A.Size = UDim2.new(0, 83, 0, 37)
  92. A.Font = Enum.Font.Unknown
  93. A.Text = "A"
  94. A.TextColor3 = Color3.fromRGB(255, 255, 255)
  95. A.TextSize = 25.000
  96.  
  97. Labels.Name = "Labels"
  98. Labels.Parent = Frame
  99.  
  100. TextLabel.Parent = Labels
  101. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  102. TextLabel.BackgroundTransparency = 1.000
  103. TextLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
  104. TextLabel.BorderSizePixel = 0
  105. TextLabel.Position = UDim2.new(0, 0, 0.378205121, 0)
  106. TextLabel.Size = UDim2.new(0, 279, 0, 17)
  107. TextLabel.Font = Enum.Font.Unknown
  108. TextLabel.Text = "or"
  109. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  110. TextLabel.TextSize = 20.000
  111. TextLabel.TextWrapped = true
  112.  
  113. TextLabel_2.Parent = Labels
  114. TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  115. TextLabel_2.BackgroundTransparency = 1.000
  116. TextLabel_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
  117. TextLabel_2.BorderSizePixel = 0
  118. TextLabel_2.Position = UDim2.new(0, 0, 0.166666672, 0)
  119. TextLabel_2.Size = UDim2.new(0, 279, 0, 33)
  120. TextLabel_2.Font = Enum.Font.Unknown
  121. TextLabel_2.Text = "Stadium"
  122. TextLabel_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  123. TextLabel_2.TextScaled = true
  124. TextLabel_2.TextSize = 14.000
  125. TextLabel_2.TextWrapped = true
  126.  
  127. TextLabel_3.Parent = Labels
  128. TextLabel_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  129. TextLabel_3.BackgroundTransparency = 1.000
  130. TextLabel_3.BorderColor3 = Color3.fromRGB(0, 0, 0)
  131. TextLabel_3.BorderSizePixel = 0
  132. TextLabel_3.Size = UDim2.new(0, 279, 0, 33)
  133. TextLabel_3.Font = Enum.Font.Unknown
  134. TextLabel_3.Text = "Touch Football League Auto Goal"
  135. TextLabel_3.TextColor3 = Color3.fromRGB(255, 255, 255)
  136. TextLabel_3.TextScaled = true
  137. TextLabel_3.TextSize = 14.000
  138. TextLabel_3.TextWrapped = true
  139.  
  140. TextLabel_4.Parent = Labels
  141. TextLabel_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  142. TextLabel_4.BackgroundTransparency = 1.000
  143. TextLabel_4.BorderColor3 = Color3.fromRGB(0, 0, 0)
  144. TextLabel_4.BorderSizePixel = 0
  145. TextLabel_4.Position = UDim2.new(0, 0, 0.551282048, 0)
  146. TextLabel_4.Size = UDim2.new(0, 279, 0, 33)
  147. TextLabel_4.Font = Enum.Font.Unknown
  148. TextLabel_4.Text = "Goal"
  149. TextLabel_4.TextColor3 = Color3.fromRGB(255, 255, 255)
  150. TextLabel_4.TextScaled = true
  151. TextLabel_4.TextSize = 14.000
  152. TextLabel_4.TextWrapped = true
  153.  
  154. TextLabel_5.Parent = Labels
  155. TextLabel_5.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  156. TextLabel_5.BackgroundTransparency = 1.000
  157. TextLabel_5.BorderColor3 = Color3.fromRGB(0, 0, 0)
  158. TextLabel_5.BorderSizePixel = 0
  159. TextLabel_5.Position = UDim2.new(0, 0, 0.762820482, 0)
  160. TextLabel_5.Size = UDim2.new(0, 279, 0, 17)
  161. TextLabel_5.Font = Enum.Font.Unknown
  162. TextLabel_5.Text = "or"
  163. TextLabel_5.TextColor3 = Color3.fromRGB(255, 255, 255)
  164. TextLabel_5.TextSize = 20.000
  165. TextLabel_5.TextWrapped = true
  166.  
  167. -- Scripts:
  168.  
  169. local function LSSLDYM_fake_script() -- StadiumOptions.LocalScript
  170. local script = Instance.new('LocalScript', StadiumOptions)
  171.  
  172. local blue = script.Parent.Blue
  173. local red = script.Parent.Red
  174.  
  175. local blueEnabled = false
  176. local redEnabled = false
  177.  
  178. local enabledColor = Color3.fromRGB(85, 255, 127)
  179. local disabledColor = Color3.fromRGB(255, 255, 255)
  180.  
  181. blue.MouseButton1Click:Connect(function()
  182. if blueEnabled == false then
  183. blueEnabled = true
  184. blue.TextColor3 = enabledColor
  185. _G.Blue = true
  186. if redEnabled == true then
  187. red.TextColor3 = disabledColor
  188. _G.Red = false
  189. end
  190. elseif blueEnabled == true then
  191. blueEnabled = false
  192. blue.TextColor3 = disabledColor
  193. _G.Blue = false
  194. end
  195. end)
  196.  
  197. red.MouseButton1Click:Connect(function()
  198. if redEnabled == false then
  199. redEnabled = true
  200. red.TextColor3 = enabledColor
  201. _G.Red = true
  202. if blueEnabled == true then
  203. blue.TextColor3 = disabledColor
  204. _G.Blue = false
  205. end
  206. elseif redEnabled == true then
  207. redEnabled = false
  208. red.TextColor3 = disabledColor
  209. _G.Red = false
  210. end
  211. end)
  212. end
  213. coroutine.wrap(LSSLDYM_fake_script)()
  214. local function TIWJKR_fake_script() -- GoalOptions.LocalScript
  215. local script = Instance.new('LocalScript', GoalOptions)
  216.  
  217. local a = script.Parent.A
  218. local b = script.Parent.B
  219.  
  220. local aEnabled = false
  221. local bEnabled = false
  222.  
  223. local enabledColor = Color3.fromRGB(85, 255, 127)
  224. local disabledColor = Color3.fromRGB(255, 255, 255)
  225.  
  226. a.MouseButton1Click:Connect(function()
  227. if aEnabled == false then
  228. aEnabled = true
  229. a.TextColor3 = enabledColor
  230. _G.GoalA = true
  231.  
  232. if bEnabled == true then
  233. b.TextColor3 = disabledColor
  234. _G.GoalB = false
  235. end
  236. elseif aEnabled == true then
  237. aEnabled = false
  238. a.TextColor3 = disabledColor
  239. _G.GoalA = false
  240. end
  241. end)
  242.  
  243. b.MouseButton1Click:Connect(function()
  244. if bEnabled == false then
  245. bEnabled = true
  246. b.TextColor3 = enabledColor
  247. _G.GoalB = true
  248. if aEnabled == true then
  249. a.TextColor3 = disabledColor
  250. _G.GoalA = false
  251. end
  252. elseif bEnabled == true then
  253. bEnabled = false
  254. b.TextColor3 = disabledColor
  255. _G.GoalB = false
  256. end
  257. end)
  258. end
  259. coroutine.wrap(TIWJKR_fake_script)()
  260. local function KSMAQW_fake_script() -- Frame.MainGoalHandler
  261. local script = Instance.new('LocalScript', Frame)
  262.  
  263. _G.autoGoal = true
  264. local stadiumReceived = false
  265. local goalReceived = false
  266.  
  267. while _G.autoGoal == true do
  268. wait(0.5)
  269. if _G.Blue == true or _G.Red == true then
  270. if _G.Blue == true then
  271. stadiumReceived = true
  272. if _G.GoalA == true or _G.GoalB == true then
  273. goalReceived = true
  274. if stadiumReceived and goalReceived then
  275. if _G.GoalA == true then
  276. -- goala blue stadium --
  277. print("GoalA, blue stadium")
  278. local A_1 = "TheYoungAndy"
  279. local A_2 = 4187345923
  280. local A_3 = ""
  281. local A_4 = Vector3.new(-288.440185546875, 5.447574615478516, 93.74337005615234)
  282. local A_5 = Vector3.new(-72.08842468261719, 36, -0.9241513013839722)
  283. local A_6 = Vector3.new(0, -5.556628704071045, 0)
  284. local A_7 = 3.2560417652130127
  285. local A_8 = "786374527635"
  286. local Event = game:GetService("ReplicatedStorage").KickBall
  287. Event:FireServer(A_1, A_2, A_3, A_4, A_5, A_6, A_7, A_8)
  288. elseif _G.GoalB == true then
  289. print("GoalB, blue stadium")
  290. local A_1 = "TheYoungAndy"
  291. local A_2 = 4187345923
  292. local A_3 = ""
  293. local A_4 = Vector3.new(-193.77943420410156, 5.468080043792725, 100.71504211425781)
  294. local A_5 = Vector3.new(50.65003967285156, 36, -5.659729480743408)
  295. local A_6 = Vector3.new(0, -0.07489427179098129, 0)
  296. local A_7 = 3.7604734897613525
  297. local A_8 = "786374527635"
  298. local Event = game:GetService("ReplicatedStorage").KickBall
  299. Event:FireServer(A_1, A_2, A_3, A_4, A_5, A_6, A_7, A_8)
  300. end
  301. end
  302. end
  303. elseif _G.Red == true then
  304. stadiumReceived = true
  305. if _G.GoalA == true or _G.GoalB == true then
  306. goalReceived = true
  307. if stadiumReceived and goalReceived then
  308. if _G.GoalA == true then
  309. print("GoalA, red stadium")
  310. local A_1 = "TheYoungAndy"
  311. local A_2 = 4187345923
  312. local A_3 = ""
  313. local A_4 = Vector3.new(-629.7413330078125, 5.467523574829102, 94.8000717163086)
  314. local A_5 = Vector3.new(74.03887939453125, 36, -9.641132354736328)
  315. local A_6 = Vector3.new(0, 2.4433796405792236, 0)
  316. local A_7 = 3.744602680206299
  317. local A_8 = "786374527635"
  318. local Event = game:GetService("ReplicatedStorage").KickBall2
  319. Event:FireServer(A_1, A_2, A_3, A_4, A_5, A_6, A_7, A_8)
  320. elseif _G.GoalB == true then
  321. print("GoalB, red stadium")
  322. local A_1 = "TheYoungAndy"
  323. local A_2 = 4187345923
  324. local A_3 = ""
  325. local A_4 = Vector3.new(-805.6398315429688, 5.451866626739502, 99.44542694091797)
  326. local A_5 = Vector3.new(-64.72207641601562, 36, -11.261650085449219)
  327. local A_6 = Vector3.new(0, -3.4662411212921143, 0)
  328. local A_7 = 3.885878324508667
  329. local A_8 = "786374527635"
  330. local Event = game:GetService("ReplicatedStorage").KickBall2
  331. Event:FireServer(A_1, A_2, A_3, A_4, A_5, A_6, A_7, A_8)
  332. end
  333. end
  334. elseif _G.GoalA == false and _G.GoalB == false then
  335. -- No Goal --
  336. end
  337. elseif _G.Blue == false and _G.Red == false then
  338. -- No stadium --
  339. end
  340. end
  341. end
  342. end
  343. coroutine.wrap(KSMAQW_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement