Run it
Copy the script and paste it into your executor.
player = .Players.LocalPlayer
character = player.Character player.CharacterAdded:()
humanoidRootPart = character:()
humanoid = character:()
playerGui = player:()
screenGui = .()
screenGui.Parent = playerGui
frame = .()
frame.Size = .(, , , )
frame.Position = .(, -, , -)
frame.BackgroundColor3 = .(, , )
frame.Parent = screenGui
sliderLabel = .()
sliderLabel.Size = .(, , , )
sliderLabel.Position = .(, , , )
sliderLabel.Text =
sliderLabel.TextColor3 = .(, , )
sliderLabel.BackgroundTransparency =
sliderLabel.Parent = frame
slider = .()
slider.Size = .(, -, , )
slider.Position = .(, , , )
slider.Text =
slider.TextColor3 = .(, , )
slider.BackgroundColor3 = .(, , )
slider.ClearTextOnFocus =
slider.Parent = frame
flingButton = .()
flingButton.Size = .(, -, , )
flingButton.Position = .(, , , )
flingButton.Text =
flingButton.TextColor3 = .(, , )
flingButton.BackgroundColor3 = .(, , )
flingButton.Parent = frame
gradient = .()
gradient.Parent = flingButton
gradient.Color = ColorSequence.({
ColorSequenceKeypoint.(, .(, , )),
ColorSequenceKeypoint.(, .(, , ))
})
flingButton.MouseEnter:(()
gradient.Color = ColorSequence.({
ColorSequenceKeypoint.(, .(, , )),
ColorSequenceKeypoint.(, .(, , ))
})
)
flingButton.MouseLeave:(()
gradient.Color = ColorSequence.({
ColorSequenceKeypoint.(, .(, , )),
ColorSequenceKeypoint.(, .(, , ))
})
)
randomFlingButton = .()
randomFlingButton.Size = .(, -, , )
randomFlingButton.Position = .(, , , )
randomFlingButton.Text =
randomFlingButton.TextColor3 = .(, , )
randomFlingButton.BackgroundColor3 = .(, , )
randomFlingButton.Parent = frame
pressFLabel = .()
pressFLabel.Size = .(, , , )
pressFLabel.Position = .(, , , )
pressFLabel.Text =
pressFLabel.TextColor3 = .(, , )
pressFLabel.BackgroundTransparency =
pressFLabel.TextScaled =
pressFLabel.Parent = frame
widthSliderLabel = .()
widthSliderLabel.Size = .(, , , )
widthSliderLabel.Position = .(, , , )
widthSliderLabel.Text =
widthSliderLabel.TextColor3 = .(, , )
widthSliderLabel.BackgroundTransparency =
widthSliderLabel.Parent = frame
widthSlider = .()
widthSlider.Size = .(, -, , )
widthSlider.Position = .(, , , )
widthSlider.Text =
widthSlider.TextColor3 = .(, , )
widthSlider.BackgroundColor3 = .(, , )
widthSlider.ClearTextOnFocus =
widthSlider.Parent = frame
heightSliderLabel = .()
heightSliderLabel.Size = .(, , , )
heightSliderLabel.Position = .(, , , )
heightSliderLabel.Text =
heightSliderLabel.TextColor3 = .(, , )
heightSliderLabel.BackgroundTransparency =
heightSliderLabel.Parent = frame
heightSlider = .()
heightSlider.Size = .(, -, , )
heightSlider.Position = .(, , , )
heightSlider.Text =
heightSlider.TextColor3 = .(, , )
heightSlider.BackgroundColor3 = .(, , )
heightSlider.ClearTextOnFocus =
heightSlider.Parent = frame
()
width = (widthSlider.Text)
height = (heightSlider.Text)
frame.Size = .(, width, , height)
widthSlider.FocusLost:(adjustUISize)
heightSlider.FocusLost:(adjustUISize)
dragging =
dragInput, dragStart, startPos
frame.InputBegan:((input, gameProcessed)
gameProcessed
input.UserInputType == .UserInputType.MouseButton1
dragging =
dragStart = input.Position
startPos = frame.Position
)
frame.InputEnded:((input)
input.UserInputType == .UserInputType.MouseButton1
dragging =
)
frame.InputChanged:((input)
dragging
delta = input.Position - dragStart
frame.Position = .(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
)
(flingPower)
humanoid.Sit =
humanoid.PlatformStand =
()
randomX = .(-flingPower, flingPower)
randomY = .(, flingPower)
randomZ = .(-flingPower, flingPower)
bodyVelocity = .()
bodyVelocity.MaxForce = .(, , )
bodyVelocity.Velocity = .(randomX, randomY, randomZ)
bodyVelocity.Parent = humanoidRootPart
spinSpeedX = .(, )
spinSpeedY = .(, )
runService = :()
spinConnection
startTime = ()
spinConnection = runService.Heartbeat:(()
humanoidRootPart.CFrame = humanoidRootPart.CFrame * .(.(spinSpeedX), .(spinSpeedY), )
() - startTime >=
spinConnection:()
)
()
bodyVelocity:()
humanoid.Sit =
humanoid.PlatformStand =
:().InputBegan:((input, gameProcessed)
gameProcessed
input.UserInputType == .UserInputType.Keyboard input.KeyCode == .KeyCode.F
flingPower = (slider.Text)
(flingPower)
)
flingButton.MouseButton1Click:(()
flingPower = (slider.Text)
(flingPower)
)
randomFlingButton.MouseButton1Click:(()
randomFlingPower = .(, )
(randomFlingPower)
)
Chnage UI size F to fling mobile friendly