-- [[ Rscripts Risk Notice ]] -- This script is not verified by rscripts.net. Deal with caution. -- -- Stay safe: -- • Never log in on unofficial Roblox sites or lookalike domains. -- • Real Roblox links use roblox.com (check the .com ending). -- • Treat fake Roblox login / "claim reward" pages as phishing. -- [[ End Rscripts Risk Notice ]] --[[ SOCCER ARENA - full build + GUI + working Auto Shoot / Auto Block ]] local Players = game:GetService("Players") local RunService = game:GetService("RunService") local Workspace = game:GetService("Workspace") -- ============ CONFIG ============ local ARENA_SIZE = 120 local GOAL_WIDTH = 30 local GOAL_HEIGHT = 16 local SHOOT_RANGE = 45 -- how close a player must be to auto-shoot local SHOOT_COOLDOWN = 0.8 local BLOCK_RADIUS = 14 -- how far auto-block will lunge local BLOCK_COOLDOWN = 0.5 -- ============ BUILD ARENA ============ local function makePart(name, size, cframe, color, parent) local p = Instance.new("Part") p.Name = name p.Size = size p.CFrame = cframe p.Anchored = true p.Material = Enum.Material.SmoothPlastic p.Color = color p.Parent = parent or Workspace return p end local arena = Instance.new("Folder") arena.Name = "SoccerArena" arena.Parent = Workspace -- pitch makePart("Pitch", Vector3.new(ARENA_SIZE, 1, ARENA_SIZE * 0.7), CFrame.new(0, 0, 0), Color3.fromRGB(40, 140, 50), arena) -- center line makePart("CenterLine", Vector3.new(ARENA_SIZE, 0.2, 0.4), CFrame.new(0, 0.6, 0), Color3.fromRGB(230, 230, 230), arena) -- goals local function buildGoal(zPos, color) local goal = Instance.new("Folder") goal.Name = zPos < 0 and "GoalA" or "GoalB" goal.Parent = arena local postSize = Vector3.new(1, GOAL_HEIGHT, 1) local half = GOAL_WIDTH / 2 makePart("PostL", postSize, CFrame.new(-half, GOAL_HEIGHT/2, zPos), color, goal) makePart("PostR", postSize, CFrame.new( half, GOAL_HEIGHT/2, zPos), color, goal) makePart("Crossbar", Vector3.new(GOAL_WIDTH, 1, 1), CFrame.new(0, GOAL_HEIGHT, zPos), color, goal) -- net (non-collide thin wall) local net = makePart("Net", Vector3.new(GOAL_WIDTH, GOAL_HEIGHT, 1), CFrame.new(0, GOAL_HEIGHT/2, zPos + (zPos < 0 and -1 or 1)), color, goal) net.Transparency = 0.6 net.CanCollide = false return goal end local goalA = buildGoal(-ARENA_SIZE * 0.33, Color3.fromRGB(200, 40, 40)) local goalB = buildGoal( ARENA_SIZE * 0.33, Color3.fromRGB(40, 80, 200)) -- ball local ball = Instance.new("Part") ball.Name = "Ball" ball.Shape = Enum.PartType.Ball ball.Size = Vector3.new(4, 4, 4) ball.Color = Color3.fromRGB(255, 255, 255) ball.Material = Enum.Material.SmoothPlastic ball.Position = Vector3.new(0, 3, 0) ball.CanCollide = true ball.Parent = arena local ballBody = Instance.new("BodyVelocity") ballBody.MaxForce = Vector3.new(math.huge, math.huge, math.huge) ballBody.Velocity = Vector3.zero ballBody.P = 2000 ballBody.Parent = ball -- ============ STATE ============ local playerState = {} -- [player] = {autoShoot=bool, autoBlock=bool, lastShoot=0, lastBlock=0} local function stateOf(plr) if not playerState[plr] then playerState[plr] = { autoShoot = false, autoBlock = false, lastShoot = 0, lastBlock = 0 } end return playerState[plr] end -- ============ GUI ============ local function buildGui(plr) local gui = Instance.new("ScreenGui") gui.Name = "SoccerGUI" gui.ResetOnSpawn = false gui.Parent = plr:WaitForChild("PlayerGui") local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 260, 0, 150) frame.Position = UDim2.new(0, 20, 0.5, -75) frame.BackgroundColor3 = Color3.fromRGB(20, 20, 25) frame.BackgroundTransparency = 0.15 frame.BorderSizePixel = 0 frame.Parent = gui Instance.new("UICorner", frame).CornerRadius = UDim.new(0, 10) local stroke = Instance.new("UIStroke", frame) stroke.Color = Color3.fromRGB(90, 220, 120) stroke.Thickness = 2 local title = Instance.new("TextLabel") title.Size = UDim2.new(1, 0, 0, 36) title.BackgroundTransparency = 1 title.Text = "SOCCER CONTROLS" title.Font = Enum.Font.GothamBold title.TextSize = 18 title.TextColor3 = Color3.fromRGB(255, 255, 255) title.Parent = frame local function toggleButton(text, y) local btn = Instance.new("TextButton") btn.Size = UDim2.new(1, -24, 0, 42) btn.Position = UDim2.new(0, 12, 0, y) btn.BackgroundColor3 = Color3.fromRGB(45, 45, 55) btn.Text = text .. " [ OFF ]" btn.Font = Enum.Font.GothamBold btn.TextSize = 15 btn.TextColor3 = Color3.fromRGB(200, 200, 200) btn.AutoButtonColor = false btn.Parent = frame Instance.new("UICorner", btn).CornerRadius = UDim.new(0, 8) return btn end local shootBtn = toggleButton("AUTO SHOOT", 48) local blockBtn = toggleButton("AUTO BLOCK", 98) local function refresh(btn, on, label) if on then btn.Text = label .. " [ ON ]" btn.BackgroundColor3 = Color3.fromRGB(60, 160, 90) btn.TextColor3 = Color3.fromRGB(255, 255, 255) else btn.Text = label .. " [ OFF ]" btn.BackgroundColor3 = Color3.fromRGB(45, 45, 55) btn.TextColor3 = Color3.fromRGB(200, 200, 200) end end shootBtn.MouseButton1Click:Connect(function() local s = stateOf(plr) s.autoShoot = not s.autoShoot refresh(shootBtn, s.autoShoot, "AUTO SHOOT") end) blockBtn.MouseButton1Click:Connect(function() local s = stateOf(plr) s.autoBlock = not s.autoBlock refresh(blockBtn, s.autoBlock, "AUTO BLOCK") end) plr.CharacterAdded:Connect(function() gui.Parent = plr:WaitForChild("PlayerGui") end) end Players.PlayerAdded:Connect(function(plr) stateOf(plr) buildGui(plr) plr.CharacterAdded:Connect(function(c) c:WaitForChild("HumanoidRootPart") end) end) Players.PlayerRemoving:Connect(function(plr) playerState[plr] = nil end) -- ============ AUTO SHOOT / BLOCK LOGIC ============ local now = os.clock RunService.Heartbeat:Connect(function() local ballPos = ball.Position local t = now() for _, plr in ipairs(Players:GetPlayers()) do local s = playerState[plr] if s then local char = plr.Character local hrp = char and char:FindFirstChild("HumanoidRootPart") if hrp then local myPos = hrp.Position local dist = (myPos - ballPos).Magnitude -- AUTO SHOOT: kick ball toward nearest enemy goal if close enough if s.autoShoot and dist <= SHOOT_RANGE and (t - s.lastShoot) >= SHOOT_COOLDOWN then -- pick target goal (opposite side of my spawn) local target = myPos.Z > 0 and goalA or goalB local goalPos = target:FindFirstChild("PostL").Position goalPos = (target:FindFirstChild("PostL").Position + target:FindFirstChild("PostR").Position) / 2 local dir = (goalPos - ballPos) local power = math.clamp(dir.Magnitude, 20, 80) dir = dir.Unit ballBody.Velocity = dir * power s.lastShoot = t end -- AUTO BLOCK: if ball moving toward my goal and near me, lunge to intercept if s.autoBlock and dist <= BLOCK_RADIUS and (t - s.lastBlock) >= BLOCK_COOLDOWN then local ballVel = ballBody.Velocity if ballVel.Magnitude > 5 then -- predict where ball will be shortly local predict = ballPos + ballVel * 0.25 -- teleport-lite: nudge player toward intercept local toIntercept = predict - myPos if toIntercept.Magnitude > 1 then local step = toIntercept.Unit * math.min(toIntercept.Magnitude, 8) hrp.CFrame = hrp.CFrame + step end -- deflect ball away from goal local awayFromMyGoal = (ballPos - myPos).Unit ballBody.Velocity = awayFromMyGoal * 60 s.lastBlock = t end end end end end end)