Run it
Copy the script and paste it into your executor.
player = .Players.LocalPlayer
UIS = :()
VIM = :()
running =
keeping =
selectedTeam =
startY =
HOME_GOAL_X = -
AWAY_GOAL_X = -
HOME_KEEP_X = HOME_GOAL_X +
AWAY_KEEP_X = AWAY_GOAL_X -
GOAL_Y_BOTTOM =
GOAL_Y_TOP =
()
char = player.Character player.CharacterAdded:()
char:()
(value, a, b)
min = .(a, b)
max = .(a, b)
.(value, min, max)
gui = .(, player:())
gui.Name =
noticeFrame = .(, gui)
noticeFrame.Size = .(, , , )
noticeFrame.Position = .(, -, , -)
noticeFrame.BackgroundColor3 = .(, , )
noticeFrame.BackgroundTransparency =
noticeFrame.BorderSizePixel =
noticeText = .(, noticeFrame)
noticeText.Size = .(, -, , -)
noticeText.Position = .(, , , )
noticeText.BackgroundTransparency =
noticeText.TextColor3 = .(,,)
noticeText.Font = .Font.Gotham
noticeText.TextSize =
noticeText.TextWrapped =
noticeText.TextXAlignment = .TextXAlignment.Left
noticeText.TextYAlignment = .TextYAlignment.Top
noticeText.Text =
noticeClose = .(, noticeFrame)
noticeClose.Size = .(, , , )
noticeClose.Position = .(, , , -)
noticeClose.BackgroundColor3 = .(,,)
noticeClose.Text =
noticeClose.TextColor3 = .(,,)
noticeClose.Font = .Font.GothamBold
noticeClose.TextSize =
noticeClose.MouseButton1Click:(()
noticeFrame.Visible =
)
frame = .(, gui)
frame.Size = .(, , , )
frame.Position = .(, -, , -)
frame.BackgroundTransparency =
label = .(, frame)
label.Size = .(, , , )
label.BackgroundTransparency =
label.Text =
label.TextColor3 = .(,,)
label.Font = .Font.GothamBold
label.TextSize =
redBtn = .(, frame)
redBtn.Size = .(, , , )
redBtn.Position = .(, , , )
redBtn.Text =
blueBtn = .(, frame)
blueBtn.Size = .(, , , )
blueBtn.Position = .(, , , )
blueBtn.Text =
redBtn.MouseButton1Click:(()
selectedTeam =
()
)
blueBtn.MouseButton1Click:(()
selectedTeam =
()
)
UIS.InputBegan:((input, gpe)
gpe
input.KeyCode == .KeyCode.V
frame.Visible = frame.Visible
input.KeyCode == .KeyCode.B
running = running
(, running)
running
hrp = ()
startY = hrp.Position.Y
startY =
input.KeyCode == .KeyCode.N
keeping = keeping
(, keeping)
)
.(()
.()
hrp = ()
ball = :() .Balls:()
ball
homeGoal = :()
awayGoal = :()
homeGoal awayGoal
keeping selectedTeam
myGoalX, myKeepX, myGoalZ, facingGoal
selectedTeam ==
myGoalX = HOME_GOAL_X
myKeepX = HOME_KEEP_X
myGoalZ = homeGoal.Position.Z
facingGoal = awayGoal
myGoalX = AWAY_GOAL_X
myKeepX = AWAY_KEEP_X
myGoalZ = awayGoal.Position.Z
facingGoal = homeGoal
clampedX = (ball.Position.X, myGoalX, myKeepX)
clampedZ = .(ball.Position.Z, myGoalZ - , myGoalZ + )
clampedY = .(ball.Position.Y, GOAL_Y_BOTTOM, GOAL_Y_TOP)
keepPos = .(clampedX, clampedY, clampedZ)
direction = (.(
facingGoal.Position.X,
keepPos.Y,
facingGoal.Position.Z
) - keepPos).Unit
hrp.CFrame = .(keepPos, keepPos + direction)
running selectedTeam
startY
targetGoal
selectedTeam ==
targetGoal = homeGoal
targetGoal = awayGoal
targetPos = .(ball.Position.X, startY, ball.Position.Z)
direction = (.(
targetGoal.Position.X,
startY,
targetGoal.Position.Z
) - targetPos).Unit
hrp.CFrame = .(targetPos, targetPos + direction)
VIM:(, .KeyCode.W, , )
.()
VIM:(, .KeyCode.W, , )
)*Simple autoscore by constantly facing the enemy goal and loop tping. *Simple autogoalkeep Finally fixed autogoalkeep, Enjoy! NO MOBILE SUPPORT, USE MOBILE KEYBOARD One of the only working soccer legends scripts atm.
โฝ Soccer Legends [BETA]