Advertisement
Just_scriptss

Touch football v4

Mar 5th, 2025 (edited)
565
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.53 KB | None | 0 0
  1. --[[
  2. This Script Version is V4 The lastest and last update.
  3. You can steal code,but put credits.
  4. i can return at any time
  5. used ui library in this script: https://github.com/bloodball/UI-Librarys/blob/main/wizard
  6. i need to study hard or i will be grounded by my mom xd
  7. This script is made by Onlyscripts in Youtube
  8. well have a good day i guess,bye
  9. ]]--
  10.  
  11. --[[Ui]]--
  12.  
  13. local Library = loadstring(Game:HttpGet("https://raw.githubusercontent.com/bloodball/-back-ups-for-libs/main/wizard"))()
  14.  
  15. --[[Window]]--
  16.  
  17. local TouchFootball = Library:NewWindow("Touch Football V4")
  18.  
  19. --[[Sections]]--
  20.  
  21. local sec = TouchFootball:NewSection("Scripts")
  22.  
  23. local sect = TouchFootball:NewSection("More Scripts")
  24.  
  25. local ser = TouchFootball:NewSection("Stats")
  26.  
  27. local set = TouchFootball:NewSection("Stats 2")
  28.  
  29. --[[Variables]]--
  30.  
  31. local player = game.Players.LocalPlayer
  32.  
  33. local character = player.Character
  34.  
  35. local soccerBallPath = game:GetService("Workspace"):WaitForChild("FootballField")
  36.  
  37. local soccerBall = soccerBallPath:FindFirstChild("SoccerBall")
  38.  
  39. --[[Scripts]]--
  40.  
  41. sec:CreateButton("Bring ball", function()
  42. soccerBall.Position = character.HumanoidRootPart.Position
  43. wait()
  44. local args = {
  45. [1] = Vector3.new(0),
  46. [2] = Vector3.new(0),
  47. [3] = Vector3.new(0),
  48. [4] = 0,
  49. [5] = "djhtelkds"
  50. }
  51.  
  52. game:GetService("ReplicatedStorage").KickBall:FireServer(unpack(args))
  53. end)
  54.  
  55. sec:CreateButton("Loop Bring Ball", function()
  56. while wait() do
  57. soccerBall.Position = character.HumanoidRootPart.Position
  58. wait()
  59. local args = {
  60. [1] = Vector3.new(0),
  61. [2] = Vector3.new(0),
  62. [3] = Vector3.new(0),
  63. [4] = 0,
  64. [5] = "djhtelkds"
  65. }
  66.  
  67. game:GetService("ReplicatedStorage").KickBall:FireServer(unpack(args))
  68. end
  69. end)
  70.  
  71. sec:CreateButton("Freeze Ball", function()
  72. while wait() do
  73. local args = {
  74. [1] = Vector3.new(0),
  75. [2] = Vector3.new(0),
  76. [3] = Vector3.new(0),
  77. [4] = 0,
  78. [5] = "djhtelkds"
  79. }
  80.  
  81. game:GetService("ReplicatedStorage").KickBall:FireServer(unpack(args))
  82.  
  83. end
  84. end)
  85.  
  86. sec:CreateButton("Freeze ball 2 (Can't be stopped)", function()
  87. while wait() do
  88. local args = {
  89. [1] = Vector3.new(0),
  90. [2] = Vector3.new(0),
  91. [3] = Vector3.new(0),
  92. [4] = 0,
  93. [5] = "djhtelkds"
  94. }
  95.  
  96. game:GetService("ReplicatedStorage").KickBall:FireServer(unpack(args))
  97. end
  98. end)
  99.  
  100. sec:CreateButton("Destroy ball", function()
  101. local args = {
  102. [1] = Vector3.new(560.5654296875, 600.843505859375, 1582.93701171875),
  103. [2] = Vector3.new(560.5654296875, 600.843505859375, 1582.93701171875),
  104. [3] = Vector3.new(560.5654296875, 600.843505859375, 1582.93701171875),
  105. [4] = 0,
  106. [5] = "djhtelkds"
  107. }
  108.  
  109. game:GetService("ReplicatedStorage").KickBall:FireServer(unpack(args))
  110.  
  111. end)
  112.  
  113. sect:CreateButton("Goal A team", function()
  114. -- KickBall event because for GoalEvent work
  115.  
  116. local args = {
  117. [1] = Vector3.new(0),
  118. [2] = Vector3.new(0),
  119. [3] = Vector3.new(0),
  120. [4] = 0,
  121. [5] = "djhtelkds"
  122. }
  123.  
  124. game:GetService("ReplicatedStorage").KickBall:FireServer(unpack(args))
  125.  
  126. wait()
  127. -- GoalEvent
  128.  
  129. local args = {
  130. [1] = "A"
  131. }
  132.  
  133. game:GetService("ReplicatedStorage").GoalEvent:FireServer(unpack(args))
  134.  
  135. end)
  136.  
  137. sect:CreateButton("Goal B team", function()
  138. -- KickBall event because for GoalEvent work
  139.  
  140. local args = {
  141. [1] = Vector3.new(0),
  142. [2] = Vector3.new(0),
  143. [3] = Vector3.new(0),
  144. [4] = 0,
  145. [5] = "djhtelkds"
  146. }
  147.  
  148. game:GetService("ReplicatedStorage").KickBall:FireServer(unpack(args))
  149.  
  150. wait()
  151. -- GoalEvent
  152.  
  153. local args = {
  154. [1] = "B"
  155. }
  156.  
  157. game:GetService("ReplicatedStorage").GoalEvent:FireServer(unpack(args))
  158.  
  159. end)
  160.  
  161. sect:CreateButton("Bring ball on dive", function()
  162. -- Credits too owner
  163.  
  164. -- Animation IDs for diving
  165. local diveAnimationIds = {
  166. "rbxassetid://16428780736",
  167. "rbxassetid://16428788224",
  168. "rbxassetid://16428773038",
  169. "rbxassetid://16428797277"
  170. }
  171.  
  172. -- Function to update the soccer ball reference
  173. local function updateSoccerBall()
  174. soccerBall = soccerBallPath:FindFirstChild("SoccerBall")
  175. if soccerBall then
  176. print("SoccerBall found:", soccerBall.Name)
  177. else
  178. warn("SoccerBall not found in the workspace!")
  179. end
  180. end
  181.  
  182. -- Teleport the soccer ball
  183. local function teleportSoccerBall()
  184. if character and soccerBall then
  185. local humanoidRootPart = character:FindFirstChild("HumanoidRootPart")
  186. if humanoidRootPart then
  187. local newPosition = humanoidRootPart.CFrame + (humanoidRootPart.CFrame.LookVector * 2)
  188.  
  189. -- Check if the ball can be teleported
  190. if soccerBall:IsA("BasePart") then
  191. soccerBall.CFrame = newPosition
  192. print("Ball teleported to position:", newPosition.Position)
  193. elseif soccerBall:IsA("Model") and soccerBall.PrimaryPart then
  194. soccerBall:SetPrimaryPartCFrame(newPosition)
  195. print("Model teleported to position:", newPosition.Position)
  196. else
  197. warn("SoccerBall is neither a BasePart nor a Model with a PrimaryPart!")
  198. end
  199. else
  200. warn("HumanoidRootPart is missing!")
  201. end
  202. else
  203. warn("Character or SoccerBall is not available!")
  204. end
  205. end
  206.  
  207. -- Monitor animations played by the humanoid's Animator
  208. local function detectDiveAnimations()
  209. local humanoid = character:WaitForChild("Humanoid")
  210. local animator = humanoid:FindFirstChildOfClass("Animator")
  211.  
  212. if animator then
  213. animator.AnimationPlayed:Connect(function(animationTrack)
  214. local animationId = animationTrack.Animation.AnimationId
  215. if table.find(diveAnimationIds, animationId) then
  216. print("Dive animation detected:", animationId)
  217. teleportSoccerBall()
  218. end
  219. end)
  220. else
  221. warn("Animator not found in humanoid!")
  222. end
  223. end
  224.  
  225. -- Ball tracking
  226. soccerBallPath.ChildAdded:Connect(function(child)
  227. if child.Name == "SoccerBall" then
  228. soccerBall = child
  229. print("New SoccerBall detected:", child.Name)
  230. end
  231. end)
  232.  
  233. -- Initial setup
  234. updateSoccerBall()
  235. detectDiveAnimations()
  236. end)
  237.  
  238. sect:CreateTextbox("bring ball to player", function(text)
  239. local targetPlayerName = text
  240. local oldpos = character.HumanoidRootPart.CFrame
  241.  
  242. local function teleportToPlayer()
  243. local targetPlayer = game:GetService("Players"):FindFirstChild(targetPlayerName)
  244. if targetPlayer then
  245. character.HumanoidRootPart.CFrame = targetPlayer.Character.HumanoidRootPart.CFrame
  246. wait()
  247. soccerBall.Position = character.HumanoidRootPart.Position
  248. wait(0.3)
  249. character.HumanoidRootPart.CFrame = oldpos
  250. else
  251. warn("Player not found")
  252. end
  253. end
  254.  
  255. teleportToPlayer()
  256. end)
  257.  
  258. ser:CreateTextbox("BPA (CLIENT-SIDED)", function(text)
  259. game:GetService("Players").LocalPlayer.leaderstats.BPA.Value = text
  260. end)
  261.  
  262. ser:CreateTextbox("Clan (CLIENT-SIDED)", function(text)
  263. game:GetService("Players").LocalPlayer.leaderstats.Clan.Value = text
  264. end)
  265.  
  266. ser:CreateTextbox("Goals (CLIENT-SIDED)", function(text)
  267. game:GetService("Players").LocalPlayer.leaderstats.Goals.Value = text
  268. end)
  269.  
  270. ser:CreateTextbox("Wins (CLIENT-SIDED)", function(text)
  271. game:GetService("Players").LocalPlayer.leaderstats.Wins.Value = text
  272. end)
  273.  
  274. set:CreateTextbox("Bucks (CLIENT-SIDED)", function(text)
  275. game:GetService("Players").LocalPlayer.hiddendata.Bucks.Value = text
  276. end)
  277.  
  278. set:CreateTextbox("Assists (CLIENT-SIDED)", function(text)
  279. game:GetService("Players").LocalPlayer.hiddendata.Assists.Value = text
  280. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement