Run it
Copy the script and paste it into your executor.
ScreenGui = .()
ScreenGui.Name =
ScreenGui.Parent = .CoreGui
ScreenGui.ZIndexBehavior = .ZIndexBehavior.Sibling
MainFrame = .()
MainFrame.Name =
MainFrame.Size = .(, , , )
MainFrame.BackgroundColor3 = .(, , )
MainFrame.BorderSizePixel =
MainFrame.BorderColor3 = .(, , )
MainFrame.Position = .(, -MainFrame.Size.X.Offset - , , -MainFrame.Size.Y.Offset / )
MainFrame.Parent = ScreenGui
TitleBar = .()
TitleBar.Name =
TitleBar.Size = .(, , , )
TitleBar.BackgroundColor3 = .(, , )
TitleBar.BorderSizePixel =
TitleBar.Parent = MainFrame
TitleLabel = .()
TitleLabel.Name =
TitleLabel.Size = .(, -, , )
TitleLabel.Position = .(, , , )
TitleLabel.BackgroundTransparency =
TitleLabel.TextColor3 = .(, , )
TitleLabel.Font = .Font.SourceSansBold
TitleLabel.TextSize =
TitleLabel.Text =
TitleLabel.TextXAlignment = .TextXAlignment.Center
TitleLabel.Parent = TitleBar
CloseButton = .()
CloseButton.Name =
CloseButton.Size = .(, , , )
CloseButton.Position = .(, -, , )
CloseButton.BackgroundColor3 = .(, , )
CloseButton.TextColor3 = .(, , )
CloseButton.Font = .Font.SourceSansBold
CloseButton.TextSize =
CloseButton.Text =
CloseButton.Parent = TitleBar
CloseButton.MouseButton1Click:(()
.positionCheckConnection
.positionCheckConnection:()
.positionCheckConnection =
.antiFlingActive rootPart
(()
rootPart:(player)
)
ScreenGui:()
()
)
ContentFrame = .()
ContentFrame.Name =
ContentFrame.Size = .(, , , -)
ContentFrame.Position = .(, , , )
ContentFrame.BackgroundTransparency =
ContentFrame.Parent = MainFrame
ListLayout = .()
ListLayout.Parent = ContentFrame
ListLayout.FillDirection = .FillDirection.Vertical
ListLayout.HorizontalAlignment = .HorizontalAlignment.Center
ListLayout.Padding = .(, )
ListLayout.SortOrder = .SortOrder.LayoutOrder
(parentFrame, name, defaultValue, callback)
ToggleFrame = .()
ToggleFrame.Size = .(, , , )
ToggleFrame.BackgroundTransparency =
ToggleFrame.Parent = parentFrame
Label = .()
Label.Size = .(, -, , )
Label.Position = .(, , , )
Label.BackgroundTransparency =
Label.TextColor3 = .(, , )
Label.Font = .Font.SourceSans
Label.TextSize =
Label.TextXAlignment = .TextXAlignment.Left
Label.Text = name
Label.Parent = ToggleFrame
ToggleButton = .()
ToggleButton.Size = .(, , , )
ToggleButton.Position = .(, -, , -)
ToggleButton.BackgroundColor3 = defaultValue .(, , ) .(, , )
ToggleButton.TextColor3 = .(, , )
ToggleButton.Font = .Font.SourceSansBold
ToggleButton.TextSize =
ToggleButton.Text = defaultValue
ToggleButton.Parent = ToggleFrame
currentValue = defaultValue
ToggleButton.MouseButton1Click:(()
currentValue = currentValue
ToggleButton.BackgroundColor3 = currentValue .(, , ) .(, , )
ToggleButton.Text = currentValue
callback
(currentValue)
)
{ SetValue = (value) currentValue = value; ToggleButton.BackgroundColor3 = value .(, , ) .(, , ); ToggleButton.Text = value }
.antiFlingActive =
.lastPosition = .(, , )
.positionCheckConnection =
player = .Players.LocalPlayer
character = player.Character player.CharacterAdded:()
rootPart = character character:()
rootPart
player.CharacterAdded:((newChar)
character = newChar
rootPart = character:()
rootPart
rootPart = character:()
)
character rootPart
rootPart = character:()
.checkPositionAndTeleport = ()
.antiFlingActive rootPart rootPart.Parent rootPart.Parent:() rootPart.Parent:()
currentPosition = rootPart.Position
distance = (currentPosition - .lastPosition).Magnitude
flingThreshold =
minMovementForTeleport =
distance > flingThreshold (currentPosition - .lastPosition).Magnitude > minMovementForTeleport
success, err = (()
rootPart.CFrame = .(.lastPosition)
()
)
success
()
( .. (err ))
.lastPosition = currentPosition
AntiFlingToggle = (ContentFrame, , , (state)
.antiFlingActive = state
.antiFlingActive
player = .Players.LocalPlayer
character = player.Character player.CharacterAdded:()
rootPart = character character:()
rootPart
rootPart = character:()
character character.Parent rootPart
success, err = (()
rootPart:()
)
success
()
( .. (err ))
.lastPosition = rootPart.Position
.positionCheckConnection
.positionCheckConnection = :().Heartbeat:(.checkPositionAndTeleport)
()
()
.antiFlingActive =
AntiFlingToggle:()
rootPart
success, err = (()
rootPart:(player)
)
success
( .. (err ))
.positionCheckConnection
.positionCheckConnection:()
.positionCheckConnection =
()
()
)
()
Anti fling

Universal