Rugball

Run Settings
LanguageLua
Language Version
Run Command
local trajectory = loadstring(game:HttpGet("https://raw.githubusercontent.com/6ce/Scripts/main/Trajectory.lua"))() local plr = game:GetService("Players").LocalPlayer local uis = game:GetService("UserInputService") local rps = game:GetService("ReplicatedStorage") local remotes = rps:WaitForChild("RemoteEvents") local field = workspace.Field local goals = field.Goals local awayGoal = goals["Red Goal"].Backline2 local homeGoal = goals["Blue Goal"].Backline2 local t = 1 local function getCharacter() return plr.Character end local function getRootPart() local character = getCharacter() if character then return character:WaitForChild("HumanoidRootPart") end end local function getGoal() local team = plr.Team local side = team:GetAttribute("Side") if side == "Home" then return awayGoal else return homeGoal end end local function getRemote() for _, remote in next, remotes:GetChildren() do if string.match(remote.Name, tostring(plr.UserId)) then return remote end end end local function getHit() local rootPart = getRootPart() if not rootPart then return end local goal = getGoal() local x0 = rootPart.CFrame * Vector3.new(0, 2, -2) local g = Vector3.new(0, -workspace.Gravity, 0); local v0 = (goal.Position - x0 - 0.5*g*t*t)/t; local hit = v0 * t + x0 + 0.5*g *t^2 return (rootPart.Position - hit).Unit end local function shoot() local hit = getHit() local remote = getRemote() if not hit then return print("no hit") end if not remote then return print("no remote") end remote:FireServer("Throw", hit, 100) end shoot()
Editor Settings
Theme
Key bindings
Full width
Lines