Run it
Copy the script and paste it into your executor.
screenGui = .()
screenGui.Parent = .Players.LocalPlayer:()
mainFrame = .()
mainFrame.Size = .(, , , )
mainFrame.Position = .(, -, , -)
mainFrame.BackgroundColor3 = .(, , )
mainFrame.BorderSizePixel =
mainFrame.Parent = screenGui
titleBar = .()
titleBar.Size = .(, , , )
titleBar.BackgroundColor3 = .(, , )
titleBar.BorderSizePixel =
titleBar.Parent = mainFrame
titleLabel = .()
titleLabel.Size = .(, -, , )
titleLabel.Position = .(, , , )
titleLabel.BackgroundTransparency =
titleLabel.Text =
titleLabel.TextColor3 = .(, , )
titleLabel.TextXAlignment = .TextXAlignment.Left
titleLabel.Font = .Font.SourceSans
titleLabel.TextSize =
titleLabel.Parent = titleBar
closeButton = .()
closeButton.Size = .(, , , )
closeButton.Position = .(, -, , )
closeButton.BackgroundTransparency =
closeButton.Text =
closeButton.TextColor3 = .(, , )
closeButton.Font = .Font.SourceSans
closeButton.TextSize =
closeButton.Parent = titleBar
closeButton.MouseButton1Click:(()
screenGui:()
)
sideMenu = .()
sideMenu.Size = .(, , , -)
sideMenu.Position = .(, , , )
sideMenu.BackgroundColor3 = .(, , )
sideMenu.BorderSizePixel =
sideMenu.Parent = mainFrame
contentFrame = .()
contentFrame.Size = .(, -, , -)
contentFrame.Position = .(, , , )
contentFrame.BackgroundColor3 = .(, , )
contentFrame.BorderSizePixel =
contentFrame.Parent = mainFrame
scrollingFrame = .()
scrollingFrame.Size = .(, , , )
scrollingFrame.CanvasSize = .(, , , )
scrollingFrame.ScrollBarThickness =
scrollingFrame.BackgroundTransparency =
scrollingFrame.Parent = contentFrame
greySquare = .()
greySquare.Size = .(, , , )
greySquare.Position = .(, -, , -)
greySquare.BackgroundColor3 = .(, , )
greySquare.BorderSizePixel =
greySquare.Parent = mainFrame
whiteCircle = .()
whiteCircle.Size = .(, , , )
whiteCircle.Position = .(, , , )
whiteCircle.BackgroundColor3 = .(, , )
whiteCircle.BorderSizePixel =
whiteCircle.Parent = greySquare
isActive =
()
isActive = isActive
newPos = isActive .(, -, , ) .(, , , )
newColor = isActive .(, , ) .(, , )
whiteCircle:(newPos, .EasingDirection.InOut, .EasingStyle.Quad, , )
greySquare.BackgroundColor3 = newColor
isActive
()
()
whiteCircle.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1
()
)
RunService = :()
player = .Players.LocalPlayer
character = player.Character player.CharacterAdded:()
humanoid = character:()
rootPart = character:()
connection
()
connection = RunService.Stepped:(()
isActive
directions = {
.(, , ),
.(-, , ),
.(, , ),
.(, , -),
.(, , ),
.(, -, )
}
maxBlocks =
maxDirection =
_, direction (directions)
raycastParams = RaycastParams.()
raycastParams.FilterDescendantsInstances = {character}
raycastParams.FilterType = .RaycastFilterType.Blacklist
raycastResult = :(rootPart.Position, rootPart.Position + direction * , raycastParams)
raycastResult
numBlocks = #raycastResult.Instance:()
numBlocks > maxBlocks
maxBlocks = numBlocks
maxDirection = direction
maxDirection
humanoid:(maxDirection * )
)
()
connection
connection:()