local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local Player = Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild("Humanoid")
local Root = Character:WaitForChild("HumanoidRootPart")
local OriginalWalkSpeed = Humanoid.WalkSpeed
local SpeedValue = 32
local FlightSpeed = 60
local SpeedEnabled = false
local XRayEnabled = false
local AntiFlingEnabled = false
local FlightEnabled = false
local NoClipEnabled = false
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "BBasicGUI"
ScreenGui.ResetOnSpawn = false
ScreenGui.Parent = Player:WaitForChild("PlayerGui")
local function New(class, properties)
local object = Instance.new(class)
for property, value in pairs(properties) do
object[property] = value
end
return object
end
local function Corner(object, radius)
New("UICorner", {
Parent = object,
CornerRadius = UDim.new(0, radius)
})
end
local Main = New("Frame", {
Parent = ScreenGui,
Size = UDim2.new(0,240,0,330),
Position = UDim2.new(0.5,-120,0.5,-165),
BackgroundColor3 = Color3.fromRGB(25,25,30),
BorderSizePixel = 0
})
Corner(Main,10)
New("TextLabel", {
Parent = Main,
Size = UDim2.new(1,-45,0,35),
Position = UDim2.new(0,10,0,0),
BackgroundTransparency = 1,
Text = "B-BASIC",
TextColor3 = Color3.new(1,1,1),
TextSize = 18,
Font = Enum.Font.GothamBold,
TextXAlignment = Enum.TextXAlignment.Left
})
local Minimize = New("TextButton", {
Parent = Main,
Size = UDim2.new(0,28,0,28),
Position = UDim2.new(1,-34,0,4),
BackgroundColor3 = Color3.fromRGB(45,45,52),
Text = "-",
TextColor3 = Color3.new(1,1,1),
TextSize = 18,
Font = Enum.Font.GothamBold
})
Corner(Minimize,7)
local Container = New("ScrollingFrame", {
Parent = Main,
Size = UDim2.new(1,-20,1,-95),
Position = UDim2.new(0,10,0,42),
BackgroundTransparency = 1,
BorderSizePixel = 0,
ScrollBarThickness = 4,
CanvasSize = UDim2.new(0,0,0,0),
AutomaticCanvasSize = Enum.AutomaticSize.Y,
ScrollingDirection = Enum.ScrollingDirection.Y
})
New("UIListLayout", {
Parent = Container,
Padding = UDim.new(0,4),
HorizontalAlignment = Enum.HorizontalAlignment.Center
})
local function AbilityButton(text)
local button = New("TextButton", {
Parent = Container,
Size = UDim2.new(1,-4,0,40),
BackgroundColor3 = Color3.fromRGB(40,40,48),
Text = text,
TextColor3 = Color3.new(1,1,1),
TextSize = 14,
Font = Enum.Font.GothamBold
})
Corner(button,7)
return button
end
local SpeedButton = AbilityButton("SPEED")
local XRayButton = AbilityButton("X-RAY")
local AntiFlingButton = AbilityButton("ANTI FLING")
local FlightButton = AbilityButton("FLIGHT")
local NoClipButton = AbilityButton("NO-CLIP")
local TeleportButton = AbilityButton("TELEPORT")
local ScriptA = New("Frame", {
Parent = ScreenGui,
Size = UDim2.new(0,225,0,175),
Position = UDim2.new(0.5,130,0.5,-87),
BackgroundColor3 = Color3.fromRGB(30,30,36),
BorderSizePixel = 0,
Visible = false
})
Corner(ScriptA,10)
local ScriptATitle = New("TextLabel", {
Parent = ScriptA,
Size = UDim2.new(1,-45,0,35),
Position = UDim2.new(0,10,0,0),
BackgroundTransparency = 1,
Text = "SCRIPT-A",
TextColor3 = Color3.new(1,1,1),
TextSize = 16,
Font = Enum.Font.GothamBold,
TextXAlignment = Enum.TextXAlignment.Left
})
local ScriptAMinus = New("TextButton", {
Parent = ScriptA,
Size = UDim2.new(0,28,0,28),
Position = UDim2.new(1,-34,0,4),
BackgroundColor3 = Color3.fromRGB(45,45,52),
Text = "−",
TextColor3 = Color3.new(1,1,1),
TextSize = 18,
Font = Enum.Font.GothamBold
})
Corner(ScriptAMinus,7)
local Toggle = New("TextButton", {
Parent = ScriptA,
Size = UDim2.new(1,-20,0,35),
Position = UDim2.new(0,10,0,42),
BackgroundColor3 = Color3.fromRGB(50,50,58),
Text = "OFF",
TextColor3 = Color3.new(1,1,1),
TextSize = 15,
Font = Enum.Font.GothamBold
})
Corner(Toggle,7)
local ValueLabel = New("TextLabel", {
Parent = ScriptA,
Size = UDim2.new(1,-20,0,25),
Position = UDim2.new(0,10,0,82),
BackgroundTransparency = 1,
Text = "",
TextColor3 = Color3.new(1,1,1),
TextSize = 14,
Font = Enum.Font.Gotham
})
local Minus = New("TextButton", {
Parent = ScriptA,
Size = UDim2.new(0,45,0,32),
Position = UDim2.new(0,28,0,120),
BackgroundColor3 = Color3.fromRGB(50,50,58),
Text = "-",
TextColor3 = Color3.new(1,1,1),
TextSize = 19,
Font = Enum.Font.GothamBold
})
Corner(Minus,7)
local Plus = New("TextButton", {
Parent = ScriptA,
Size = UDim2.new(0,45,0,32),
Position = UDim2.new(1,-73,0,120),
BackgroundColor3 = Color3.fromRGB(50,50,58),
Text = "+",
TextColor3 = Color3.new(1,1,1),
TextSize = 19,
Font = Enum.Font.GothamBold
})
Corner(Plus,7)
local ScriptADragging = false
local ScriptADragStart
local ScriptAStartPosition
ScriptA.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1
or input.UserInputType == Enum.UserInputType.Touch then
ScriptADragging = true
ScriptADragStart = input.Position
ScriptAStartPosition = ScriptA.Position
end
end)
ScriptA.InputEnded:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1
or input.UserInputType == Enum.UserInputType.Touch then
ScriptADragging = false
end
end)
UserInputService.InputChanged:Connect(function(input)
if ScriptADragging and (
input.UserInputType == Enum.UserInputType.MouseMovement
or input.UserInputType == Enum.UserInputType.Touch
) then
local Delta = input.Position - ScriptADragStart
ScriptA.Position = UDim2.new(
ScriptAStartPosition.X.Scale,
ScriptAStartPosition.X.Offset + Delta.X,
ScriptAStartPosition.Y.Scale,
ScriptAStartPosition.Y.Offset + Delta.Y
)
end
end)
local CurrentAbility
local function UpdateScriptA()
local enabled = false
if CurrentAbility == "Speed" then
ScriptATitle.Text = "SCRIPT-A • SPEED"
ValueLabel.Text = "Speed: "..SpeedValue
enabled = SpeedEnabled
elseif CurrentAbility == "XRay" then
ScriptATitle.Text = "SCRIPT-A • X-RAY"
ValueLabel.Text = "Highlights Players"
enabled = XRayEnabled
elseif CurrentAbility == "AntiFling" then
ScriptATitle.Text = "SCRIPT-A • ANTI FLING"
ValueLabel.Text = "Protects against fling"
enabled = AntiFlingEnabled
elseif CurrentAbility == "Flight" then
ScriptATitle.Text = "SCRIPT-A • FLIGHT"
ValueLabel.Text = "Flight Speed: "..FlightSpeed
enabled = FlightEnabled
elseif CurrentAbility == "NoClip" then
ScriptATitle.Text = "SCRIPT-A • NO-CLIP"
ValueLabel.Text = "Pass through walls"
enabled = NoClipEnabled
end
Toggle.Text = enabled and "ON" or "OFF"
Minus.Visible =
CurrentAbility == "Speed"
or CurrentAbility == "Flight"
Plus.Visible =
CurrentAbility == "Speed"
or CurrentAbility == "Flight"
end
local function OpenScriptA(ability)
CurrentAbility = ability
ScriptA.Visible = true
UpdateScriptA()
end
ScriptAMinus.MouseButton1Click:Connect(function()
ScriptA.Visible = false
CurrentAbility = nil
end)
local function ApplySpeed()
if Humanoid then
Humanoid.WalkSpeed =
SpeedEnabled and SpeedValue or OriginalWalkSpeed
end
end
local Highlights = {}
local function RemoveHighlight(player)
if Highlights[player] then
Highlights[player]:Destroy()
Highlights[player] = nil
end
end
local function AddHighlight(player)
if player == Player or not player.Character then
return
end
RemoveHighlight(player)
local highlight = Instance.new("Highlight")
highlight.Name = "BBasicXRay"
highlight.Adornee = player.Character
highlight.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
highlight.FillTransparency = 0.65
highlight.OutlineTransparency = 0
highlight.Parent = ScreenGui
Highlights[player] = highlight
end
local function SetXRay(state)
XRayEnabled = state
if state then
for _, player in ipairs(Players:GetPlayers()) do
AddHighlight(player)
end
else
for player, highlight in pairs(Highlights) do
if highlight then
highlight:Destroy()
end
Highlights[player] = nil
end
end
end
Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function()
task.wait(0.5)
if XRayEnabled then
AddHighlight(player)
end
end)
end)
Players.PlayerRemoving:Connect(function(player)
RemoveHighlight(player)
end)
local AntiFlingConnection
local function ShowAntiFlingMessage()
local Message = New("TextLabel", {
Parent = ScreenGui,
Size = UDim2.new(0,250,0,40),
Position = UDim2.new(0.5,-125,0,55),
BackgroundColor3 = Color3.fromRGB(35,35,42),
Text = "You are now Unflingable",
TextColor3 = Color3.new(1,1,1),
TextSize = 15,
Font = Enum.Font.GothamBold
})
Corner(Message,8)
task.delay(3,function()
if Message and Message.Parent then
Message:Destroy()
end
end)
end
local function SetAntiFling(state)
AntiFlingEnabled = state
if AntiFlingConnection then
AntiFlingConnection:Disconnect()
AntiFlingConnection = nil
end
if state then
ShowAntiFlingMessage()
AntiFlingConnection =
RunService.Heartbeat:Connect(function()
if Root and Root.Parent then
Root.AssemblyAngularVelocity =
Vector3.zero
if Root.AssemblyLinearVelocity.Magnitude > 100 then
Root.AssemblyLinearVelocity =
Vector3.zero
end
end
end)
end
end
local NoClipConnection
local NoClipTransparency = {}
local function SetNoClip(state)
NoClipEnabled = state
if NoClipConnection then
NoClipConnection:Disconnect()
NoClipConnection = nil
end
if not state then
for part, transparency in pairs(NoClipTransparency) do
if part and part.Parent then
part.LocalTransparencyModifier = transparency
end
end
NoClipTransparency = {}
if Character then
for _, part in ipairs(Character:GetDescendants()) do
if part:IsA("BasePart") then
part.CanCollide = true
end
end
end
return
end
NoClipConnection =
RunService.Stepped:Connect(function()
if not Character or not Root then
return
end
for _, part in ipairs(Character:GetDescendants()) do
if part:IsA("BasePart") then
part.CanCollide = false
end
end
local OverlapParams = OverlapParams.new()
OverlapParams.FilterType =
Enum.RaycastFilterType.Exclude
OverlapParams.FilterDescendantsInstances =
{Character}
local NearbyParts =
workspace:GetPartBoundsInBox(
Root.CFrame,
Vector3.new(5,6,5),
OverlapParams
)
for _, part in ipairs(NearbyParts) do
if part:IsA("BasePart")
and part.CanCollide
and not part:IsDescendantOf(Character) then
if NoClipTransparency[part] == nil then
NoClipTransparency[part] =
part.LocalTransparencyModifier
end
part.LocalTransparencyModifier = 0.65
end
end
end)
end
local FlightConnection
local FlightVelocity
local FlightControls
local FlightInput = {
Up = false,
Down = false,
Left = false,
Right = false,
Forward = false,
Backward = false
}
local function StopFlight()
if FlightConnection then
FlightConnection:Disconnect()
FlightConnection = nil
end
if FlightVelocity then
FlightVelocity:Destroy()
FlightVelocity = nil
end
if Humanoid then
Humanoid.PlatformStand = false
Humanoid.AutoRotate = true
end
for key in pairs(FlightInput) do
FlightInput[key] = false
end
if FlightControls then
FlightControls:Destroy()
FlightControls = nil
end
end
local function CreateFlightControls()
FlightControls = New("Frame", {
Parent = ScreenGui,
Size = UDim2.new(0,270,0,195),
Position = UDim2.new(1,-285,1,-220),
BackgroundTransparency = 1
})
local function MakeControl(text,position,key)
local button = New("TextButton", {
Parent = FlightControls,
Size = UDim2.new(0,72,0,38),
Position = position,
BackgroundColor3 = Color3.fromRGB(40,40,48),
Text = text,
TextColor3 = Color3.new(1,1,1),
TextSize = 13,
Font = Enum.Font.GothamBold
})
Corner(button,8)
button.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1
or input.UserInputType == Enum.UserInputType.Touch then
FlightInput[key] = true
end
end)
button.InputEnded:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1
or input.UserInputType == Enum.UserInputType.Touch then
FlightInput[key] = false
end
end)
end
MakeControl("UP",UDim2.new(0,99,0,0),"Up")
MakeControl("FORWARD",UDim2.new(0,99,0,47),"Forward")
MakeControl("BACKWARD",UDim2.new(0,99,0,94),"Backward")
MakeControl("DOWN",UDim2.new(0,99,0,141),"Down")
MakeControl("← LEFT",UDim2.new(0,12,0,94),"Left")
MakeControl("RIGHT →",UDim2.new(0,186,0,94),"Right")
end
local function StartFlight()
StopFlight()
Humanoid.PlatformStand = true
Humanoid.AutoRotate = false
FlightVelocity = Instance.new("BodyVelocity")
FlightVelocity.MaxForce =
Vector3.new(math.huge,math.huge,math.huge)
FlightVelocity.Velocity = Vector3.zero
FlightVelocity.Parent = Root
CreateFlightControls()
FlightConnection =
RunService.RenderStepped:Connect(function()
if not FlightEnabled or not Root.Parent then
StopFlight()
return
end
local Camera = workspace.CurrentCamera
local direction = Vector3.zero
if FlightInput.Up then
direction += Vector3.new(0,1,0)
end
if FlightInput.Down then
direction -= Vector3.new(0,1,0)
end
if FlightInput.Left then
direction -= Camera.CFrame.RightVector
end
if FlightInput.Right then
direction += Camera.CFrame.RightVector
end
if FlightInput.Forward then
direction += Camera.CFrame.LookVector
end
if FlightInput.Backward then
direction -= Camera.CFrame.LookVector
end
if direction.Magnitude > 0 then
direction =
direction.Unit * FlightSpeed
end
FlightVelocity.Velocity = direction
end)
end
local TeleportGui = New("Frame", {
Parent = ScreenGui,
Size = UDim2.new(0,225,0,270),
Position = UDim2.new(0.5,130,0.5,-135),
BackgroundColor3 = Color3.fromRGB(30,30,36),
BorderSizePixel = 0,
Visible = false
})
Corner(TeleportGui,10)
New("TextLabel", {
Parent = TeleportGui,
Size = UDim2.new(1,-45,0,35),
Position = UDim2.new(0,10,0,0),
BackgroundTransparency = 1,
Text = "TELEPORT",
TextColor3 = Color3.new(1,1,1),
TextSize = 16,
Font = Enum.Font.GothamBold,
TextXAlignment = Enum.TextXAlignment.Left
})
local TeleportClose = New("TextButton", {
Parent = TeleportGui,
Size = UDim2.new(0,28,0,28),
Position = UDim2.new(1,-34,0,4),
BackgroundColor3 = Color3.fromRGB(45,45,52),
Text = "−",
TextColor3 = Color3.new(1,1,1),
TextSize = 18,
Font = Enum.Font.GothamBold
})
Corner(TeleportClose,7)
local TeleportScroll = New("ScrollingFrame", {
Parent = TeleportGui,
Size = UDim2.new(1,-20,1,-50),
Position = UDim2.new(0,10,0,42),
BackgroundColor3 = Color3.fromRGB(23,23,28),
BorderSizePixel = 0,
ScrollBarThickness = 5,
CanvasSize = UDim2.new(0,0,0,0),
AutomaticCanvasSize = Enum.AutomaticSize.Y
})
Corner(TeleportScroll,7)
New("UIListLayout", {
Parent = TeleportScroll,
Padding = UDim.new(0,4)
})
local function RefreshTeleportList()
for _, object in ipairs(TeleportScroll:GetChildren()) do
if object:IsA("TextButton") then
object:Destroy()
end
end
for _, target in ipairs(Players:GetPlayers()) do
if target ~= Player then
local button = New("TextButton", {
Parent = TeleportScroll,
Size = UDim2.new(1,-8,0,35),
BackgroundColor3 = Color3.fromRGB(45,45,52),
Text = target.DisplayName.." @"..target.Name,
TextColor3 = Color3.new(1,1,1),
TextSize = 12,
Font = Enum.Font.GothamBold
})
Corner(button,6)
button.MouseButton1Click:Connect(function()
if target.Character and Root then
local targetRoot =
target.Character:FindFirstChild("HumanoidRootPart")
if targetRoot then
Root.CFrame =
targetRoot.CFrame +
Vector3.new(0,3,0)
end
end
end)
end
end
end
TeleportClose.MouseButton1Click:Connect(function()
TeleportGui.Visible = false
end)
task.spawn(function()
while ScreenGui.Parent do
task.wait(60)
if TeleportGui.Visible then
RefreshTeleportList()
end
end
end)
SpeedButton.MouseButton1Click:Connect(function()
OpenScriptA("Speed")
end)
XRayButton.MouseButton1Click:Connect(function()
OpenScriptA("XRay")
end)
AntiFlingButton.MouseButton1Click:Connect(function()
OpenScriptA("AntiFling")
end)
FlightButton.MouseButton1Click:Connect(function()
OpenScriptA("Flight")
end)
NoClipButton.MouseButton1Click:Connect(function()
OpenScriptA("NoClip")
end)
TeleportButton.MouseButton1Click:Connect(function()
TeleportGui.Visible = true
RefreshTeleportList()
end)
Toggle.MouseButton1Click:Connect(function()
if CurrentAbility == "Speed" then
SpeedEnabled = not SpeedEnabled
ApplySpeed()
elseif CurrentAbility == "XRay" then
SetXRay(not XRayEnabled)
elseif CurrentAbility == "AntiFling" then
SetAntiFling(not AntiFlingEnabled)
elseif CurrentAbility == "Flight" then
FlightEnabled = not FlightEnabled
if FlightEnabled then
StartFlight()
else
StopFlight()
end
elseif CurrentAbility == "NoClip" then
SetNoClip(not NoClipEnabled)
end
UpdateScriptA()
end)
local Adjusting = false
local function AdjustValue(amount)
if CurrentAbility == "Speed" then
SpeedValue =
math.max(1,SpeedValue + amount)
ApplySpeed()
elseif CurrentAbility == "Flight" then
FlightSpeed =
math.max(5,FlightSpeed + amount)
end
UpdateScriptA()
end
local function StartAdjusting(amount)
if Adjusting then
return
end
Adjusting = true
task.spawn(function()
while Adjusting do
AdjustValue(amount)
task.wait(0.08)
end
end)
end
Minus.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1
or input.UserInputType == Enum.UserInputType.Touch then
AdjustValue(-5)
StartAdjusting(-5)
end
end)
Minus.InputEnded:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1
or input.UserInputType == Enum.UserInputType.Touch then
Adjusting = false
end
end)
Plus.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1
or input.UserInputType == Enum.UserInputType.Touch then
AdjustValue(5)
StartAdjusting(5)
end
end)
Plus.InputEnded:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1
or input.UserInputType == Enum.UserInputType.Touch then
Adjusting = false
end
end)
local MiniButton = New("TextButton", {
Parent = ScreenGui,
Size = UDim2.new(0,55,0,55),
Position = UDim2.new(0,15,0.5,-27),
BackgroundColor3 = Color3.fromRGB(30,30,36),
Text = "B",
TextColor3 = Color3.new(1,1,1),
TextSize = 21,
Font = Enum.Font.GothamBold,
Visible = false
})
Corner(MiniButton,28)
Minimize.MouseButton1Click:Connect(function()
Main.Visible = false
MiniButton.Visible = true
end)
MiniButton.MouseButton1Click:Connect(function()
Main.Visible = true
MiniButton.Visible = false
end)
local Dragging = false
local DragStart
local StartPosition
MiniButton.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1
or input.UserInputType == Enum.UserInputType.Touch then
Dragging = true
DragStart = input.Position
StartPosition = MiniButton.Position
end
end)
MiniButton.InputEnded:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1
or input.UserInputType == Enum.UserInputType.Touch then
Dragging = false
end
end)
UserInputService.InputChanged:Connect(function(input)
if Dragging and (
input.UserInputType == Enum.UserInputType.MouseMovement
or input.UserInputType == Enum.UserInputType.Touch
) then
local Delta = input.Position - DragStart
MiniButton.Position = UDim2.new(
StartPosition.X.Scale,
StartPosition.X.Offset + Delta.X,
StartPosition.Y.Scale,
StartPosition.Y.Offset + Delta.Y
)
end
end)
local Unload = New("TextButton", {
Parent = Main,
Size = UDim2.new(1,-20,0,30),
Position = UDim2.new(0,10,1,-38),
BackgroundColor3 = Color3.fromRGB(100,35,35),
Text = "UNLOAD",
TextColor3 = Color3.new(1,1,1),
TextSize = 14,
Font = Enum.Font.GothamBold
})
Corner(Unload,7)
Unload.MouseButton1Click:Connect(function()
SpeedEnabled = false
XRayEnabled = false
AntiFlingEnabled = false
FlightEnabled = false
NoClipEnabled = false
Adjusting = false
if Humanoid then
Humanoid.WalkSpeed =
OriginalWalkSpeed
Humanoid.PlatformStand = false
Humanoid.AutoRotate = true
end
SetXRay(false)
SetNoClip(false)
if AntiFlingConnection then
AntiFlingConnection:Disconnect()
AntiFlingConnection = nil
end
StopFlight()
ScreenGui:Destroy()
end)
Player.CharacterAdded:Connect(function(newCharacter)
Character = newCharacter
Humanoid =
Character:WaitForChild("Humanoid")
Root =
Character:WaitForChild("HumanoidRootPart")
OriginalWalkSpeed =
Humanoid.WalkSpeed
if SpeedEnabled then
ApplySpeed()
end
if XRayEnabled then
SetXRay(true)
end
if NoClipEnabled then
SetNoClip(true)
end
if FlightEnabled then
StartFlight()
end
end)NO KEY
SCRIPTS
-SPEED(tested)
-XRAY(tested)
-FLIGHT(tested)
-NO CLIP(tested)
-TP(tested)
-anti fling(untested)
Unload button and minimize
No comments yet. Be the first to comment!
1local Players = game:GetService("Players")
2local UserInputService = game:GetService("UserInputService")
3local RunService = game:GetService("RunService")
4
5local Player = Players.LocalPlayer
6local Character = Player.Character or Player.CharacterAdded:Wait()
7local Humanoid = Character:WaitForChild("Humanoid")
8local Root = Character:WaitForChild("HumanoidRootPart")
9
10local OriginalWalkSpeed = Humanoid.WalkSpeed
11
12local SpeedValue = 32
13local FlightSpeed = 60
14
15local SpeedEnabled = false
16local XRayEnabled = false
17local AntiFlingEnabled = false
18local FlightEnabled = false
19local NoClipEnabled = false
20
21local ScreenGui = Instance.new("ScreenGui")
22ScreenGui.Name = "BBasicGUI"
23ScreenGui.ResetOnSpawn = false
24ScreenGui.Parent = Player:WaitForChild("PlayerGui")
25
26local function New(class, properties)
27 local object = Instance.new(class)
28 for property, value in pairs(properties) do
29 object[property] = value
30 end
31 return object
32end
33
34local function Corner(object, radius)
35 New("UICorner", {
36 Parent = object,
37 CornerRadius = UDim.new(0, radius)
38 })
39end
40
41local Main = New("Frame", {
42 Parent = ScreenGui,
43 Size = UDim2.new(0,240,0,330),
44 Position = UDim2.new(0.5,-120,0.5,-165),
45 BackgroundColor3 = Color3.fromRGB(25,25,30),
46 BorderSizePixel = 0
47})
48Corner(Main,10)
49
50New("TextLabel", {
51 Parent = Main,
52 Size = UDim2.new(1,-45,0,35),
53 Position = UDim2.new(0,10,0,0),
54 BackgroundTransparency = 1,
55 Text = "B-BASIC",
56 TextColor3 = Color3.new(1,1,1),
57 TextSize = 18,
58 Font = Enum.Font.GothamBold,
59 TextXAlignment = Enum.TextXAlignment.Left
60})
61
62local Minimize = New("TextButton", {
63 Parent = Main,
64 Size = UDim2.new(0,28,0,28),
65 Position = UDim2.new(1,-34,0,4),
66 BackgroundColor3 = Color3.fromRGB(45,45,52),
67 Text = "-",
68 TextColor3 = Color3.new(1,1,1),
69 TextSize = 18,
70 Font = Enum.Font.GothamBold
71})
72Corner(Minimize,7)
73
74local Container = New("ScrollingFrame", {
75 Parent = Main,
76 Size = UDim2.new(1,-20,1,-95),
77 Position = UDim2.new(0,10,0,42),
78 BackgroundTransparency = 1,
79 BorderSizePixel = 0,
80 ScrollBarThickness = 4,
81 CanvasSize = UDim2.new(0,0,0,0),
82 AutomaticCanvasSize = Enum.AutomaticSize.Y,
83 ScrollingDirection = Enum.ScrollingDirection.Y
84})
85
86New("UIListLayout", {
87 Parent = Container,
88 Padding = UDim.new(0,4),
89 HorizontalAlignment = Enum.HorizontalAlignment.Center
90})
91
92local function AbilityButton(text)
93 local button = New("TextButton", {
94 Parent = Container,
95 Size = UDim2.new(1,-4,0,40),
96 BackgroundColor3 = Color3.fromRGB(40,40,48),
97 Text = text,
98 TextColor3 = Color3.new(1,1,1),
99 TextSize = 14,
100 Font = Enum.Font.GothamBold
101 })
102 Corner(button,7)
103 return button
104end
105
106local SpeedButton = AbilityButton("SPEED")
107local XRayButton = AbilityButton("X-RAY")
108local AntiFlingButton = AbilityButton("ANTI FLING")
109local FlightButton = AbilityButton("FLIGHT")
110local NoClipButton = AbilityButton("NO-CLIP")
111local TeleportButton = AbilityButton("TELEPORT")
112
113local ScriptA = New("Frame", {
114 Parent = ScreenGui,
115 Size = UDim2.new(0,225,0,175),
116 Position = UDim2.new(0.5,130,0.5,-87),
117 BackgroundColor3 = Color3.fromRGB(30,30,36),
118 BorderSizePixel = 0,
119 Visible = false
120})
121Corner(ScriptA,10)
122
123local ScriptATitle = New("TextLabel", {
124 Parent = ScriptA,
125 Size = UDim2.new(1,-45,0,35),
126 Position = UDim2.new(0,10,0,0),
127 BackgroundTransparency = 1,
128 Text = "SCRIPT-A",
129 TextColor3 = Color3.new(1,1,1),
130 TextSize = 16,
131 Font = Enum.Font.GothamBold,
132 TextXAlignment = Enum.TextXAlignment.Left
133})
134
135local ScriptAMinus = New("TextButton", {
136 Parent = ScriptA,
137 Size = UDim2.new(0,28,0,28),
138 Position = UDim2.new(1,-34,0,4),
139 BackgroundColor3 = Color3.fromRGB(45,45,52),
140 Text = "−",
141 TextColor3 = Color3.new(1,1,1),
142 TextSize = 18,
143 Font = Enum.Font.GothamBold
144})
145Corner(ScriptAMinus,7)
146
147local Toggle = New("TextButton", {
148 Parent = ScriptA,
149 Size = UDim2.new(1,-20,0,35),
150 Position = UDim2.new(0,10,0,42),
151 BackgroundColor3 = Color3.fromRGB(50,50,58),
152 Text = "OFF",
153 TextColor3 = Color3.new(1,1,1),
154 TextSize = 15,
155 Font = Enum.Font.GothamBold
156})
157Corner(Toggle,7)
158
159local ValueLabel = New("TextLabel", {
160 Parent = ScriptA,
161 Size = UDim2.new(1,-20,0,25),
162 Position = UDim2.new(0,10,0,82),
163 BackgroundTransparency = 1,
164 Text = "",
165 TextColor3 = Color3.new(1,1,1),
166 TextSize = 14,
167 Font = Enum.Font.Gotham
168})
169
170local Minus = New("TextButton", {
171 Parent = ScriptA,
172 Size = UDim2.new(0,45,0,32),
173 Position = UDim2.new(0,28,0,120),
174 BackgroundColor3 = Color3.fromRGB(50,50,58),
175 Text = "-",
176 TextColor3 = Color3.new(1,1,1),
177 TextSize = 19,
178 Font = Enum.Font.GothamBold
179})
180Corner(Minus,7)
181
182local Plus = New("TextButton", {
183 Parent = ScriptA,
184 Size = UDim2.new(0,45,0,32),
185 Position = UDim2.new(1,-73,0,120),
186 BackgroundColor3 = Color3.fromRGB(50,50,58),
187 Text = "+",
188 TextColor3 = Color3.new(1,1,1),
189 TextSize = 19,
190 Font = Enum.Font.GothamBold
191})
192Corner(Plus,7)
193
194local ScriptADragging = false
195local ScriptADragStart
196local ScriptAStartPosition
197
198ScriptA.InputBegan:Connect(function(input)
199 if input.UserInputType == Enum.UserInputType.MouseButton1
200 or input.UserInputType == Enum.UserInputType.Touch then
201 ScriptADragging = true
202 ScriptADragStart = input.Position
203 ScriptAStartPosition = ScriptA.Position
204 end
205end)
206
207ScriptA.InputEnded:Connect(function(input)
208 if input.UserInputType == Enum.UserInputType.MouseButton1
209 or input.UserInputType == Enum.UserInputType.Touch then
210 ScriptADragging = false
211 end
212end)
213
214UserInputService.InputChanged:Connect(function(input)
215 if ScriptADragging and (
216 input.UserInputType == Enum.UserInputType.MouseMovement
217 or input.UserInputType == Enum.UserInputType.Touch
218 ) then
219 local Delta = input.Position - ScriptADragStart
220
221 ScriptA.Position = UDim2.new(
222 ScriptAStartPosition.X.Scale,
223 ScriptAStartPosition.X.Offset + Delta.X,
224 ScriptAStartPosition.Y.Scale,
225 ScriptAStartPosition.Y.Offset + Delta.Y
226 )
227 end
228end)
229
230local CurrentAbility
231
232local function UpdateScriptA()
233
234 local enabled = false
235
236 if CurrentAbility == "Speed" then
237 ScriptATitle.Text = "SCRIPT-A • SPEED"
238 ValueLabel.Text = "Speed: "..SpeedValue
239 enabled = SpeedEnabled
240
241 elseif CurrentAbility == "XRay" then
242 ScriptATitle.Text = "SCRIPT-A • X-RAY"
243 ValueLabel.Text = "Highlights Players"
244 enabled = XRayEnabled
245
246 elseif CurrentAbility == "AntiFling" then
247 ScriptATitle.Text = "SCRIPT-A • ANTI FLING"
248 ValueLabel.Text = "Protects against fling"
249 enabled = AntiFlingEnabled
250
251 elseif CurrentAbility == "Flight" then
252 ScriptATitle.Text = "SCRIPT-A • FLIGHT"
253 ValueLabel.Text = "Flight Speed: "..FlightSpeed
254 enabled = FlightEnabled
255
256 elseif CurrentAbility == "NoClip" then
257 ScriptATitle.Text = "SCRIPT-A • NO-CLIP"
258 ValueLabel.Text = "Pass through walls"
259 enabled = NoClipEnabled
260 end
261
262 Toggle.Text = enabled and "ON" or "OFF"
263
264 Minus.Visible =
265 CurrentAbility == "Speed"
266 or CurrentAbility == "Flight"
267
268 Plus.Visible =
269 CurrentAbility == "Speed"
270 or CurrentAbility == "Flight"
271end
272
273local function OpenScriptA(ability)
274 CurrentAbility = ability
275 ScriptA.Visible = true
276 UpdateScriptA()
277end
278
279ScriptAMinus.MouseButton1Click:Connect(function()
280 ScriptA.Visible = false
281 CurrentAbility = nil
282end)
283
284local function ApplySpeed()
285 if Humanoid then
286 Humanoid.WalkSpeed =
287 SpeedEnabled and SpeedValue or OriginalWalkSpeed
288 end
289end
290
291local Highlights = {}
292
293local function RemoveHighlight(player)
294 if Highlights[player] then
295 Highlights[player]:Destroy()
296 Highlights[player] = nil
297 end
298end
299
300local function AddHighlight(player)
301
302 if player == Player or not player.Character then
303 return
304 end
305
306 RemoveHighlight(player)
307
308 local highlight = Instance.new("Highlight")
309 highlight.Name = "BBasicXRay"
310 highlight.Adornee = player.Character
311 highlight.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
312 highlight.FillTransparency = 0.65
313 highlight.OutlineTransparency = 0
314 highlight.Parent = ScreenGui
315
316 Highlights[player] = highlight
317end
318
319local function SetXRay(state)
320
321 XRayEnabled = state
322
323 if state then
324
325 for _, player in ipairs(Players:GetPlayers()) do
326 AddHighlight(player)
327 end
328
329 else
330
331 for player, highlight in pairs(Highlights) do
332
333 if highlight then
334 highlight:Destroy()
335 end
336
337 Highlights[player] = nil
338 end
339 end
340end
341
342Players.PlayerAdded:Connect(function(player)
343
344 player.CharacterAdded:Connect(function()
345
346 task.wait(0.5)
347
348 if XRayEnabled then
349 AddHighlight(player)
350 end
351 end)
352end)
353
354Players.PlayerRemoving:Connect(function(player)
355 RemoveHighlight(player)
356end)
357
358local AntiFlingConnection
359
360local function ShowAntiFlingMessage()
361
362 local Message = New("TextLabel", {
363 Parent = ScreenGui,
364 Size = UDim2.new(0,250,0,40),
365 Position = UDim2.new(0.5,-125,0,55),
366 BackgroundColor3 = Color3.fromRGB(35,35,42),
367 Text = "You are now Unflingable",
368 TextColor3 = Color3.new(1,1,1),
369 TextSize = 15,
370 Font = Enum.Font.GothamBold
371 })
372
373 Corner(Message,8)
374
375 task.delay(3,function()
376
377 if Message and Message.Parent then
378 Message:Destroy()
379 end
380
381 end)
382end
383
384local function SetAntiFling(state)
385
386 AntiFlingEnabled = state
387
388 if AntiFlingConnection then
389 AntiFlingConnection:Disconnect()
390 AntiFlingConnection = nil
391 end
392
393 if state then
394
395 ShowAntiFlingMessage()
396
397 AntiFlingConnection =
398 RunService.Heartbeat:Connect(function()
399
400 if Root and Root.Parent then
401
402 Root.AssemblyAngularVelocity =
403 Vector3.zero
404
405 if Root.AssemblyLinearVelocity.Magnitude > 100 then
406 Root.AssemblyLinearVelocity =
407 Vector3.zero
408 end
409 end
410 end)
411 end
412end
413
414local NoClipConnection
415local NoClipTransparency = {}
416
417local function SetNoClip(state)
418
419 NoClipEnabled = state
420
421 if NoClipConnection then
422 NoClipConnection:Disconnect()
423 NoClipConnection = nil
424 end
425
426 if not state then
427
428 for part, transparency in pairs(NoClipTransparency) do
429
430 if part and part.Parent then
431 part.LocalTransparencyModifier = transparency
432 end
433
434 end
435
436 NoClipTransparency = {}
437
438 if Character then
439
440 for _, part in ipairs(Character:GetDescendants()) do
441
442 if part:IsA("BasePart") then
443 part.CanCollide = true
444 end
445
446 end
447 end
448
449 return
450 end
451
452 NoClipConnection =
453 RunService.Stepped:Connect(function()
454
455 if not Character or not Root then
456 return
457 end
458
459 for _, part in ipairs(Character:GetDescendants()) do
460
461 if part:IsA("BasePart") then
462 part.CanCollide = false
463 end
464
465 end
466
467 local OverlapParams = OverlapParams.new()
468
469 OverlapParams.FilterType =
470 Enum.RaycastFilterType.Exclude
471
472 OverlapParams.FilterDescendantsInstances =
473 {Character}
474
475 local NearbyParts =
476 workspace:GetPartBoundsInBox(
477 Root.CFrame,
478 Vector3.new(5,6,5),
479 OverlapParams
480 )
481
482 for _, part in ipairs(NearbyParts) do
483
484 if part:IsA("BasePart")
485 and part.CanCollide
486 and not part:IsDescendantOf(Character) then
487
488 if NoClipTransparency[part] == nil then
489
490 NoClipTransparency[part] =
491 part.LocalTransparencyModifier
492
493 end
494
495 part.LocalTransparencyModifier = 0.65
496 end
497 end
498 end)
499end
500
501local FlightConnection
502local FlightVelocity
503local FlightControls
504
505local FlightInput = {
506 Up = false,
507 Down = false,
508 Left = false,
509 Right = false,
510 Forward = false,
511 Backward = false
512}
513
514local function StopFlight()
515
516 if FlightConnection then
517 FlightConnection:Disconnect()
518 FlightConnection = nil
519 end
520
521 if FlightVelocity then
522 FlightVelocity:Destroy()
523 FlightVelocity = nil
524 end
525
526 if Humanoid then
527 Humanoid.PlatformStand = false
528 Humanoid.AutoRotate = true
529 end
530
531 for key in pairs(FlightInput) do
532 FlightInput[key] = false
533 end
534
535 if FlightControls then
536 FlightControls:Destroy()
537 FlightControls = nil
538 end
539end
540
541local function CreateFlightControls()
542
543 FlightControls = New("Frame", {
544 Parent = ScreenGui,
545 Size = UDim2.new(0,270,0,195),
546 Position = UDim2.new(1,-285,1,-220),
547 BackgroundTransparency = 1
548 })
549
550 local function MakeControl(text,position,key)
551
552 local button = New("TextButton", {
553 Parent = FlightControls,
554 Size = UDim2.new(0,72,0,38),
555 Position = position,
556 BackgroundColor3 = Color3.fromRGB(40,40,48),
557 Text = text,
558 TextColor3 = Color3.new(1,1,1),
559 TextSize = 13,
560 Font = Enum.Font.GothamBold
561 })
562
563 Corner(button,8)
564
565 button.InputBegan:Connect(function(input)
566
567 if input.UserInputType == Enum.UserInputType.MouseButton1
568 or input.UserInputType == Enum.UserInputType.Touch then
569
570 FlightInput[key] = true
571 end
572 end)
573
574 button.InputEnded:Connect(function(input)
575
576 if input.UserInputType == Enum.UserInputType.MouseButton1
577 or input.UserInputType == Enum.UserInputType.Touch then
578
579 FlightInput[key] = false
580 end
581 end)
582 end
583
584 MakeControl("UP",UDim2.new(0,99,0,0),"Up")
585 MakeControl("FORWARD",UDim2.new(0,99,0,47),"Forward")
586 MakeControl("BACKWARD",UDim2.new(0,99,0,94),"Backward")
587 MakeControl("DOWN",UDim2.new(0,99,0,141),"Down")
588 MakeControl("← LEFT",UDim2.new(0,12,0,94),"Left")
589 MakeControl("RIGHT →",UDim2.new(0,186,0,94),"Right")
590end
591
592local function StartFlight()
593
594 StopFlight()
595
596 Humanoid.PlatformStand = true
597 Humanoid.AutoRotate = false
598
599 FlightVelocity = Instance.new("BodyVelocity")
600
601 FlightVelocity.MaxForce =
602 Vector3.new(math.huge,math.huge,math.huge)
603
604 FlightVelocity.Velocity = Vector3.zero
605 FlightVelocity.Parent = Root
606
607 CreateFlightControls()
608
609 FlightConnection =
610 RunService.RenderStepped:Connect(function()
611
612 if not FlightEnabled or not Root.Parent then
613 StopFlight()
614 return
615 end
616
617 local Camera = workspace.CurrentCamera
618 local direction = Vector3.zero
619
620 if FlightInput.Up then
621 direction += Vector3.new(0,1,0)
622 end
623
624 if FlightInput.Down then
625 direction -= Vector3.new(0,1,0)
626 end
627
628 if FlightInput.Left then
629 direction -= Camera.CFrame.RightVector
630 end
631
632 if FlightInput.Right then
633 direction += Camera.CFrame.RightVector
634 end
635
636 if FlightInput.Forward then
637 direction += Camera.CFrame.LookVector
638 end
639
640 if FlightInput.Backward then
641 direction -= Camera.CFrame.LookVector
642 end
643
644 if direction.Magnitude > 0 then
645 direction =
646 direction.Unit * FlightSpeed
647 end
648
649 FlightVelocity.Velocity = direction
650 end)
651end
652
653local TeleportGui = New("Frame", {
654 Parent = ScreenGui,
655 Size = UDim2.new(0,225,0,270),
656 Position = UDim2.new(0.5,130,0.5,-135),
657 BackgroundColor3 = Color3.fromRGB(30,30,36),
658 BorderSizePixel = 0,
659 Visible = false
660})
661Corner(TeleportGui,10)
662
663New("TextLabel", {
664 Parent = TeleportGui,
665 Size = UDim2.new(1,-45,0,35),
666 Position = UDim2.new(0,10,0,0),
667 BackgroundTransparency = 1,
668 Text = "TELEPORT",
669 TextColor3 = Color3.new(1,1,1),
670 TextSize = 16,
671 Font = Enum.Font.GothamBold,
672 TextXAlignment = Enum.TextXAlignment.Left
673})
674
675local TeleportClose = New("TextButton", {
676 Parent = TeleportGui,
677 Size = UDim2.new(0,28,0,28),
678 Position = UDim2.new(1,-34,0,4),
679 BackgroundColor3 = Color3.fromRGB(45,45,52),
680 Text = "−",
681 TextColor3 = Color3.new(1,1,1),
682 TextSize = 18,
683 Font = Enum.Font.GothamBold
684})
685Corner(TeleportClose,7)
686
687local TeleportScroll = New("ScrollingFrame", {
688 Parent = TeleportGui,
689 Size = UDim2.new(1,-20,1,-50),
690 Position = UDim2.new(0,10,0,42),
691 BackgroundColor3 = Color3.fromRGB(23,23,28),
692 BorderSizePixel = 0,
693 ScrollBarThickness = 5,
694 CanvasSize = UDim2.new(0,0,0,0),
695 AutomaticCanvasSize = Enum.AutomaticSize.Y
696})
697Corner(TeleportScroll,7)
698
699New("UIListLayout", {
700 Parent = TeleportScroll,
701 Padding = UDim.new(0,4)
702})
703
704local function RefreshTeleportList()
705
706 for _, object in ipairs(TeleportScroll:GetChildren()) do
707
708 if object:IsA("TextButton") then
709 object:Destroy()
710 end
711
712 end
713
714 for _, target in ipairs(Players:GetPlayers()) do
715
716 if target ~= Player then
717
718 local button = New("TextButton", {
719 Parent = TeleportScroll,
720 Size = UDim2.new(1,-8,0,35),
721 BackgroundColor3 = Color3.fromRGB(45,45,52),
722 Text = target.DisplayName.." @"..target.Name,
723 TextColor3 = Color3.new(1,1,1),
724 TextSize = 12,
725 Font = Enum.Font.GothamBold
726 })
727
728 Corner(button,6)
729
730 button.MouseButton1Click:Connect(function()
731
732 if target.Character and Root then
733
734 local targetRoot =
735 target.Character:FindFirstChild("HumanoidRootPart")
736
737 if targetRoot then
738
739 Root.CFrame =
740 targetRoot.CFrame +
741 Vector3.new(0,3,0)
742
743 end
744 end
745 end)
746 end
747 end
748end
749
750TeleportClose.MouseButton1Click:Connect(function()
751 TeleportGui.Visible = false
752end)
753
754task.spawn(function()
755
756 while ScreenGui.Parent do
757
758 task.wait(60)
759
760 if TeleportGui.Visible then
761 RefreshTeleportList()
762 end
763
764 end
765end)
766
767SpeedButton.MouseButton1Click:Connect(function()
768 OpenScriptA("Speed")
769end)
770
771XRayButton.MouseButton1Click:Connect(function()
772 OpenScriptA("XRay")
773end)
774
775AntiFlingButton.MouseButton1Click:Connect(function()
776 OpenScriptA("AntiFling")
777end)
778
779FlightButton.MouseButton1Click:Connect(function()
780 OpenScriptA("Flight")
781end)
782
783NoClipButton.MouseButton1Click:Connect(function()
784 OpenScriptA("NoClip")
785end)
786
787TeleportButton.MouseButton1Click:Connect(function()
788 TeleportGui.Visible = true
789 RefreshTeleportList()
790end)
791
792Toggle.MouseButton1Click:Connect(function()
793
794 if CurrentAbility == "Speed" then
795
796 SpeedEnabled = not SpeedEnabled
797 ApplySpeed()
798
799 elseif CurrentAbility == "XRay" then
800
801 SetXRay(not XRayEnabled)
802
803 elseif CurrentAbility == "AntiFling" then
804
805 SetAntiFling(not AntiFlingEnabled)
806
807 elseif CurrentAbility == "Flight" then
808
809 FlightEnabled = not FlightEnabled
810
811 if FlightEnabled then
812 StartFlight()
813 else
814 StopFlight()
815 end
816
817 elseif CurrentAbility == "NoClip" then
818
819 SetNoClip(not NoClipEnabled)
820
821 end
822
823 UpdateScriptA()
824end)
825
826local Adjusting = false
827
828local function AdjustValue(amount)
829
830 if CurrentAbility == "Speed" then
831
832 SpeedValue =
833 math.max(1,SpeedValue + amount)
834
835 ApplySpeed()
836
837 elseif CurrentAbility == "Flight" then
838
839 FlightSpeed =
840 math.max(5,FlightSpeed + amount)
841
842 end
843
844 UpdateScriptA()
845end
846
847local function StartAdjusting(amount)
848
849 if Adjusting then
850 return
851 end
852
853 Adjusting = true
854
855 task.spawn(function()
856
857 while Adjusting do
858
859 AdjustValue(amount)
860 task.wait(0.08)
861
862 end
863
864 end)
865end
866
867Minus.InputBegan:Connect(function(input)
868
869 if input.UserInputType == Enum.UserInputType.MouseButton1
870 or input.UserInputType == Enum.UserInputType.Touch then
871
872 AdjustValue(-5)
873 StartAdjusting(-5)
874
875 end
876end)
877
878Minus.InputEnded:Connect(function(input)
879
880 if input.UserInputType == Enum.UserInputType.MouseButton1
881 or input.UserInputType == Enum.UserInputType.Touch then
882
883 Adjusting = false
884
885 end
886end)
887
888Plus.InputBegan:Connect(function(input)
889
890 if input.UserInputType == Enum.UserInputType.MouseButton1
891 or input.UserInputType == Enum.UserInputType.Touch then
892
893 AdjustValue(5)
894 StartAdjusting(5)
895
896 end
897end)
898
899Plus.InputEnded:Connect(function(input)
900
901 if input.UserInputType == Enum.UserInputType.MouseButton1
902 or input.UserInputType == Enum.UserInputType.Touch then
903
904 Adjusting = false
905
906 end
907end)
908
909local MiniButton = New("TextButton", {
910 Parent = ScreenGui,
911 Size = UDim2.new(0,55,0,55),
912 Position = UDim2.new(0,15,0.5,-27),
913 BackgroundColor3 = Color3.fromRGB(30,30,36),
914 Text = "B",
915 TextColor3 = Color3.new(1,1,1),
916 TextSize = 21,
917 Font = Enum.Font.GothamBold,
918 Visible = false
919})
920Corner(MiniButton,28)
921
922Minimize.MouseButton1Click:Connect(function()
923 Main.Visible = false
924 MiniButton.Visible = true
925end)
926
927MiniButton.MouseButton1Click:Connect(function()
928 Main.Visible = true
929 MiniButton.Visible = false
930end)
931
932local Dragging = false
933local DragStart
934local StartPosition
935
936MiniButton.InputBegan:Connect(function(input)
937
938 if input.UserInputType == Enum.UserInputType.MouseButton1
939 or input.UserInputType == Enum.UserInputType.Touch then
940
941 Dragging = true
942 DragStart = input.Position
943 StartPosition = MiniButton.Position
944
945 end
946end)
947
948MiniButton.InputEnded:Connect(function(input)
949
950 if input.UserInputType == Enum.UserInputType.MouseButton1
951 or input.UserInputType == Enum.UserInputType.Touch then
952
953 Dragging = false
954
955 end
956end)
957
958UserInputService.InputChanged:Connect(function(input)
959
960 if Dragging and (
961 input.UserInputType == Enum.UserInputType.MouseMovement
962 or input.UserInputType == Enum.UserInputType.Touch
963 ) then
964
965 local Delta = input.Position - DragStart
966
967 MiniButton.Position = UDim2.new(
968 StartPosition.X.Scale,
969 StartPosition.X.Offset + Delta.X,
970 StartPosition.Y.Scale,
971 StartPosition.Y.Offset + Delta.Y
972 )
973
974 end
975end)
976
977local Unload = New("TextButton", {
978 Parent = Main,
979 Size = UDim2.new(1,-20,0,30),
980 Position = UDim2.new(0,10,1,-38),
981 BackgroundColor3 = Color3.fromRGB(100,35,35),
982 Text = "UNLOAD",
983 TextColor3 = Color3.new(1,1,1),
984 TextSize = 14,
985 Font = Enum.Font.GothamBold
986})
987Corner(Unload,7)
988
989Unload.MouseButton1Click:Connect(function()
990
991 SpeedEnabled = false
992 XRayEnabled = false
993 AntiFlingEnabled = false
994 FlightEnabled = false
995 NoClipEnabled = false
996 Adjusting = false
997
998 if Humanoid then
999
1000 Humanoid.WalkSpeed =
1001 OriginalWalkSpeed
1002
1003 Humanoid.PlatformStand = false
1004 Humanoid.AutoRotate = true
1005
1006 end
1007
1008 SetXRay(false)
1009 SetNoClip(false)
1010
1011 if AntiFlingConnection then
1012
1013 AntiFlingConnection:Disconnect()
1014 AntiFlingConnection = nil
1015
1016 end
1017
1018 StopFlight()
1019
1020 ScreenGui:Destroy()
1021end)
1022
1023Player.CharacterAdded:Connect(function(newCharacter)
1024
1025 Character = newCharacter
1026
1027 Humanoid =
1028 Character:WaitForChild("Humanoid")
1029
1030 Root =
1031 Character:WaitForChild("HumanoidRootPart")
1032
1033 OriginalWalkSpeed =
1034 Humanoid.WalkSpeed
1035
1036 if SpeedEnabled then
1037 ApplySpeed()
1038 end
1039
1040 if XRayEnabled then
1041 SetXRay(true)
1042 end
1043
1044 if NoClipEnabled then
1045 SetNoClip(true)
1046 end
1047
1048 if FlightEnabled then
1049 StartFlight()
1050 end
1051
1052end)