0% found this document useful (0 votes)
94 views2 pages

Roblox Super Fling Script Guide

The document is a Lua script for a Roblox game that creates a GUI button called 'Super Fling' which toggles a fling feature on and off. When activated, it applies a strong velocity to a specific part in the game world, allowing it to be launched. The script also includes functionality to change the button's appearance and text based on the fling state.

Uploaded by

fayoza72012
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
94 views2 pages

Roblox Super Fling Script Guide

The document is a Lua script for a Roblox game that creates a GUI button called 'Super Fling' which toggles a fling feature on and off. When activated, it applies a strong velocity to a specific part in the game world, allowing it to be launched. The script also includes functionality to change the button's appearance and text based on the fling state.

Uploaded by

fayoza72012
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

local bodyvel_Name = "FlingVelocity"

local userinputs = game:GetService("UserInputService")


local w = game:GetService("Workspace")
local r = game:GetService("RunService")
local d = game:GetService("Debris")
local strength = 850
local fling = true

local ScreenGui = [Link]("ScreenGui")


local SuperFling = [Link]("TextButton")

[Link] = [Link]:WaitForChild("PlayerGui")
[Link] = [Link]

[Link] = "SuperFling"
[Link] = ScreenGui
SuperFling.BackgroundColor3 = [Link](18, 255, 6)
SuperFling.BorderColor3 = [Link](0, 0, 0)
[Link] = 2
[Link] = [Link](0.918388188, 0, 0.529877484, 0)
[Link] = [Link](0.0603257343, 0, 0.085752748, 0)
[Link] = [Link]
[Link] = "Super Fling: ON!"
SuperFling.TextColor3 = [Link](0, 0, 0)
[Link] = 7
SuperFling.TextStrokeColor3 = [Link](18, 255, 6)
[Link] = 0.000
[Link] = true

SuperFling.MouseButton1Up:Connect(function()
if fling then
fling = false
[Link] = "Super Fling: OFF!"
SuperFling.BackgroundColor3 = [Link](255, 0, 0)
SuperFling.TextStrokeColor3 = [Link](255, 0, 0)
else
fling = true
[Link] = "Super Fling: ON!"
SuperFling.BackgroundColor3 = [Link](18, 255, 6)
SuperFling.TextStrokeColor3 = [Link](18, 255, 6)
end
end)

[Link]:Connect(function(model)
if [Link] == "GrabParts" then
local part_to_impulse = model["GrabPart"]["WeldConstraint"].Part1

if part_to_impulse then
print("Part found!")

local inputObj
local velocityObj = [Link]("BodyVelocity", part_to_impulse)

model:GetPropertyChangedSignal("Parent"):Connect(function()
if not [Link] then
if fling then
print("Launched!")
[Link] = [Link]([Link], [Link],
[Link])
[Link] =
[Link] * strength
d:AddItem(velocityObj, 1)
else
[Link] = [Link](0,0,0)
d:AddItem(velocityObj, 1)
print("Cancel Launch!")
end
end
end)
end
end
end)

You might also like