Shar Universal
Key RequiredUniversal

Shar Universal

Universal ScriptShiftShift 1.1K views 317 executesUpdated Jun 18, 2026
Unrated
00
Lua Script•745 lines (23002 chars)
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local TweenService = game:GetService("TweenService")

local player = Players.LocalPlayer
local camera = workspace.CurrentCamera

local flying = false
local speed = 50
local walkSpeedValue = 16
local jumpPowerValue = 50
local savedPosition = nil
local accentColor = Color3.fromRGB(45,140,255)
local bodyVelocity = nil
local bodyGyro = nil

local aimAssistEnabled = false
local aimAssistStrength = 0.15
local AIM_MAX_DISTANCE = 180
local AIM_FOV = 8

local themableFills = {}
local themableButtons = {}

local keys = {W=false,A=false,S=false,D=false,Space=false,Shift=false}

local function getParts()
	local char = player.Character
	if not char then return nil, nil end
	return char:FindFirstChild("HumanoidRootPart"), char:FindFirstChildOfClass("Humanoid")
end

local function startFly()
	local hrp, hum = getParts()
	if not hrp or not hum or flying then return end
	flying = true
	hum.PlatformStand = true

	bodyVelocity = Instance.new("BodyVelocity")
	bodyVelocity.MaxForce = Vector3.new(1,1,1) * math.huge
	bodyVelocity.Velocity = Vector3.new(0,0,0)
	bodyVelocity.Parent = hrp

	bodyGyro = Instance.new("BodyGyro")
	bodyGyro.MaxTorque = Vector3.new(1,1,1) * math.huge
	bodyGyro.P = 3000
	bodyGyro.D = 100
	bodyGyro.CFrame = hrp.CFrame
	bodyGyro.Parent = hrp
end

local function stopFly()
	local hrp, hum = getParts()
	flying = false
	if hum then hum.PlatformStand = false end
	if bodyVelocity then bodyVelocity:Destroy() bodyVelocity = nil end
	if bodyGyro then bodyGyro:Destroy() bodyGyro = nil end
end

local function isUsingGamepad()
	local inputType = UserInputService:GetLastInputType()
	return inputType.Name:sub(1, 7) == "Gamepad"
end

local function isAssistTargetVisible(targetPart)
	local origin = camera.CFrame.Position
	local direction = targetPart.Position - origin
	local params = RaycastParams.new()
	params.FilterType = Enum.RaycastFilterType.Exclude
	params.FilterDescendantsInstances = {player.Character}
	local result = workspace:Raycast(origin, direction, params)
	return result == nil
end

local function getAssistTarget()
	local best, bestAngle = nil, AIM_FOV
	local camPos = camera.CFrame.Position
	for _, plr in pairs(Players:GetPlayers()) do
		if plr ~= player and plr.Character then
			local hrp = plr.Character:FindFirstChild("HumanoidRootPart")
			local hum = plr.Character:FindFirstChildOfClass("Humanoid")
			if hrp and hum and hum.Health > 0 then
				local offset = hrp.Position - camPos
				local dist = offset.Magnitude
				if dist < AIM_MAX_DISTANCE and isAssistTargetVisible(hrp) then
					local angle = math.deg(math.acos(camera.CFrame.LookVector:Dot(offset.Unit)))
					if angle < bestAngle then
						bestAngle = angle
						best = hrp
					end
				end
			end
		end
	end
	return best
end

local loadingGui = Instance.new("ScreenGui")
loadingGui.Name = "SharHubLoading"
loadingGui.ResetOnSpawn = false
loadingGui.IgnoreGuiInset = true
loadingGui.DisplayOrder = 10
loadingGui.Parent = player:WaitForChild("PlayerGui")

local loadingFrame = Instance.new("Frame")
loadingFrame.Size = UDim2.new(1, 0, 1, 0)
loadingFrame.BackgroundColor3 = Color3.fromRGB(10,10,10)
loadingFrame.BorderSizePixel = 0
loadingFrame.Parent = loadingGui

local loadingTitle = Instance.new("TextLabel")
loadingTitle.Size = UDim2.new(0, 400, 0, 60)
loadingTitle.AnchorPoint = Vector2.new(0.5,0.5)
loadingTitle.Position = UDim2.new(0.5, 0, 0.46, 0)
loadingTitle.BackgroundTransparency = 1
loadingTitle.Text = "Shar Hub"
loadingTitle.TextColor3 = Color3.new(1,1,1)
loadingTitle.Font = Enum.Font.GothamBlack
loadingTitle.TextSize = 40
loadingTitle.TextTransparency = 1
loadingTitle.Parent = loadingFrame

local loadingSubtitle = Instance.new("TextLabel")
loadingSubtitle.Size = UDim2.new(0, 400, 0, 24)
loadingSubtitle.AnchorPoint = Vector2.new(0.5,0.5)
loadingSubtitle.Position = UDim2.new(0.5, 0, 0.54, 0)
loadingSubtitle.BackgroundTransparency = 1
loadingSubtitle.Text = "loading menu"
loadingSubtitle.TextColor3 = Color3.fromRGB(160,160,160)
loadingSubtitle.Font = Enum.Font.Gotham
loadingSubtitle.TextSize = 16
loadingSubtitle.TextTransparency = 1
loadingSubtitle.Parent = loadingFrame

local barTrack = Instance.new("Frame")
barTrack.Size = UDim2.new(0, 240, 0, 4)
barTrack.AnchorPoint = Vector2.new(0.5,0.5)
barTrack.Position = UDim2.new(0.5, 0, 0.62, 0)
barTrack.BackgroundColor3 = Color3.fromRGB(40,40,40)
barTrack.BackgroundTransparency = 1
barTrack.BorderSizePixel = 0
barTrack.Parent = loadingFrame

local barTrackCorner = Instance.new("UICorner")
barTrackCorner.CornerRadius = UDim.new(0,2)
barTrackCorner.Parent = barTrack

local barFill = Instance.new("Frame")
barFill.Size = UDim2.new(0, 0, 1, 0)
barFill.BackgroundColor3 = accentColor
barFill.BackgroundTransparency = 1
barFill.BorderSizePixel = 0
barFill.Parent = barTrack

local barFillCorner = Instance.new("UICorner")
barFillCorner.CornerRadius = UDim.new(0,2)
barFillCorner.Parent = barFill

local gui = Instance.new("ScreenGui")
gui.Name = "FlyUI"
gui.ResetOnSpawn = false
gui.DisplayOrder = 1
gui.Parent = player:WaitForChild("PlayerGui")

local mainFrame = Instance.new("Frame")
mainFrame.Size = UDim2.new(0, 250, 0, 0)
mainFrame.AutomaticSize = Enum.AutomaticSize.Y
mainFrame.Position = UDim2.new(0, 20, 0.5, -180)
mainFrame.BackgroundColor3 = Color3.fromRGB(22,22,22)
mainFrame.BorderSizePixel = 0
mainFrame.Visible = false
mainFrame.Parent = gui

local uiScale = Instance.new("UIScale")
uiScale.Scale = 1
uiScale.Parent = mainFrame

local mainCorner = Instance.new("UICorner")
mainCorner.CornerRadius = UDim.new(0,10)
mainCorner.Parent = mainFrame

local mainStroke = Instance.new("UIStroke")
mainStroke.Color = Color3.fromRGB(50,50,50)
mainStroke.Thickness = 1
mainStroke.Parent = mainFrame

local shadow = Instance.new("ImageLabel")
shadow.Name = "Shadow"
shadow.AnchorPoint = Vector2.new(0.5,0.5)
shadow.BackgroundTransparency = 1
shadow.Position = UDim2.new(0.5, 0, 0.5, 6)
shadow.Size = UDim2.new(1, 30, 1, 30)
shadow.ZIndex = 0
shadow.Image = "rbxassetid://1316045217"
shadow.ImageColor3 = Color3.new(0,0,0)
shadow.ImageTransparency = 0.4
shadow.ScaleType = Enum.ScaleType.Slice
shadow.SliceCenter = Rect.new(10,10,118,118)
shadow.Parent = mainFrame

local titleBar = Instance.new("Frame")
titleBar.Size = UDim2.new(1, 0, 0, 34)
titleBar.BackgroundColor3 = Color3.fromRGB(16,16,16)
titleBar.BorderSizePixel = 0
titleBar.ZIndex = 2
titleBar.Parent = mainFrame

local titleCorner = Instance.new("UICorner")
titleCorner.CornerRadius = UDim.new(0,10)
titleCorner.Parent = titleBar

local titleText = Instance.new("TextLabel")
titleText.Size = UDim2.new(1, -40, 1, 0)
titleText.Position = UDim2.new(0, 14, 0, 0)
titleText.BackgroundTransparency = 1
titleText.Text = "Shar Hub"
titleText.TextColor3 = Color3.new(1,1,1)
titleText.Font = Enum.Font.GothamBlack
titleText.TextSize = 15
titleText.TextXAlignment = Enum.TextXAlignment.Left
titleText.ZIndex = 2
titleText.Parent = titleBar

local minimizeButton = Instance.new("TextButton")
minimizeButton.Size = UDim2.new(0, 24, 0, 24)
minimizeButton.Position = UDim2.new(1, -32, 0, 5)
minimizeButton.BackgroundColor3 = Color3.fromRGB(40,40,40)
minimizeButton.Text = "-"
minimizeButton.TextColor3 = Color3.new(1,1,1)
minimizeButton.Font = Enum.Font.GothamBold
minimizeButton.TextSize = 16
minimizeButton.ZIndex = 2
minimizeButton.Parent = titleBar

local minimizeCorner = Instance.new("UICorner")
minimizeCorner.CornerRadius = UDim.new(0,5)
minimizeCorner.Parent = minimizeButton

local content = Instance.new("Frame")
content.Size = UDim2.new(1, 0, 0, 0)
content.Position = UDim2.new(0, 0, 0, 34)
content.AutomaticSize = Enum.AutomaticSize.Y
content.BackgroundTransparency = 1
content.ZIndex = 2
content.Parent = mainFrame

local contentLayout = Instance.new("UIListLayout")
contentLayout.FillDirection = Enum.FillDirection.Vertical
contentLayout.Padding = UDim.new(0, 9)
contentLayout.Parent = content

local contentPadding = Instance.new("UIPadding")
contentPadding.PaddingTop = UDim.new(0, 12)
contentPadding.PaddingBottom = UDim.new(0, 12)
contentPadding.PaddingLeft = UDim.new(0, 12)
contentPadding.PaddingRight = UDim.new(0, 12)
contentPadding.Parent = content

local toggleButton = Instance.new("TextButton")
toggleButton.Size = UDim2.new(1, 0, 0, 36)
toggleButton.BackgroundColor3 = accentColor
toggleButton.Text = "Fly: OFF  (F)"
toggleButton.TextColor3 = Color3.new(1,1,1)
toggleButton.Font = Enum.Font.GothamBold
toggleButton.TextSize = 16
toggleButton.ZIndex = 2
toggleButton.Parent = content

local toggleCorner = Instance.new("UICorner")
toggleCorner.CornerRadius = UDim.new(0,6)
toggleCorner.Parent = toggleButton

local function setToggleVisual()
	if flying then
		toggleButton.Text = "Fly: ON  (F)"
		toggleButton.BackgroundColor3 = Color3.fromRGB(255,70,70)
	else
		toggleButton.Text = "Fly: OFF  (F)"
		toggleButton.BackgroundColor3 = accentColor
	end
end

local function createDivider(parent)
	local divider = Instance.new("Frame")
	divider.Size = UDim2.new(1, 0, 0, 1)
	divider.BackgroundColor3 = Color3.fromRGB(45,45,45)
	divider.BorderSizePixel = 0
	divider.ZIndex = 2
	divider.Parent = parent
	return divider
end

local function createSectionLabel(parent, text)
	local label = Instance.new("TextLabel")
	label.Size = UDim2.new(1, 0, 0, 18)
	label.BackgroundTransparency = 1
	label.Text = text
	label.TextColor3 = Color3.new(1,1,1)
	label.Font = Enum.Font.GothamBold
	label.TextSize = 14
	label.TextXAlignment = Enum.TextXAlignment.Left
	label.ZIndex = 2
	label.Parent = parent
	return label
end

local function createSlider(parent, text, min, max, default, callback)
	local container = Instance.new("Frame")
	container.Size = UDim2.new(1, 0, 0, 40)
	container.BackgroundTransparency = 1
	container.ZIndex = 2
	container.Parent = parent

	local label = Instance.new("TextLabel")
	label.Size = UDim2.new(1, 0, 0, 18)
	label.BackgroundTransparency = 1
	label.Text = text .. ": " .. default
	label.TextColor3 = Color3.new(1,1,1)
	label.Font = Enum.Font.Gotham
	label.TextSize = 14
	label.TextXAlignment = Enum.TextXAlignment.Left
	label.ZIndex = 2
	label.Parent = container

	local track = Instance.new("TextButton")
	track.Size = UDim2.new(1, 0, 0, 18)
	track.Position = UDim2.new(0, 0, 0, 20)
	track.BackgroundColor3 = Color3.fromRGB(55,55,55)
	track.Text = ""
	track.AutoButtonColor = false
	track.ZIndex = 2
	track.Parent = container

	local trackCorner = Instance.new("UICorner")
	trackCorner.CornerRadius = UDim.new(0,4)
	trackCorner.Parent = track

	local fill = Instance.new("Frame")
	fill.Size = UDim2.new((default - min) / (max - min), 0, 1, 0)
	fill.BackgroundColor3 = accentColor
	fill.BorderSizePixel = 0
	fill.ZIndex = 2
	fill.Parent = track

	local fillCorner = Instance.new("UICorner")
	fillCorner.CornerRadius = UDim.new(0,4)
	fillCorner.Parent = fill

	table.insert(themableFills, fill)

	local dragging = false

	local function update(input)
		local rel = math.clamp((input.Position.X - track.AbsolutePosition.X) / track.AbsoluteSize.X, 0, 1)
		local value = math.floor(min + rel * (max - min))
		fill.Size = UDim2.new(rel, 0, 1, 0)
		label.Text = text .. ": " .. value
		callback(value)
	end

	track.InputBegan:Connect(function(input)
		if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
			dragging = true
			update(input)
		end
	end)

	UserInputService.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
			update(input)
		end
	end)

	return container
end

createSlider(content, "Fly Speed", 0, 200, speed, function(value)
	speed = value
end)

createSlider(content, "WalkSpeed", 0, 100, walkSpeedValue, function(value)
	walkSpeedValue = value
	local hrp, hum = getParts()
	if hum then hum.WalkSpeed = value end
end)

createSlider(content, "JumpPower", 0, 300, jumpPowerValue, function(value)
	jumpPowerValue = value
	local hrp, hum = getParts()
	if hum then
		hum.UseJumpPower = true
		hum.JumpPower = value
	end
end)

createDivider(content)
createSectionLabel(content, "Teleport")

local coordRow = Instance.new("Frame")
coordRow.Size = UDim2.new(1, 0, 0, 26)
coordRow.BackgroundTransparency = 1
coordRow.ZIndex = 2
coordRow.Parent = content

local coordLayout = Instance.new("UIListLayout")
coordLayout.FillDirection = Enum.FillDirection.Horizontal
coordLayout.Padding = UDim.new(0, 6)
coordLayout.Parent = coordRow

local function createCoordBox(parent, placeholder)
	local box = Instance.new("TextBox")
	box.Size = UDim2.new(0.333, -4, 1, 0)
	box.BackgroundColor3 = Color3.fromRGB(55,55,55)
	box.TextColor3 = Color3.new(1,1,1)
	box.PlaceholderText = placeholder
	box.Text = ""
	box.Font = Enum.Font.Gotham
	box.TextSize = 14
	box.ClearTextOnFocus = false
	box.ZIndex = 2
	box.Parent = parent

	local boxCorner = Instance.new("UICorner")
	boxCorner.CornerRadius = UDim.new(0,4)
	boxCorner.Parent = box

	return box
end

local xBox = createCoordBox(coordRow, "X")
local yBox = createCoordBox(coordRow, "Y")
local zBox = createCoordBox(coordRow, "Z")

local teleportRow = Instance.new("Frame")
teleportRow.Size = UDim2.new(1, 0, 0, 30)
teleportRow.BackgroundTransparency = 1
teleportRow.ZIndex = 2
teleportRow.Parent = content

local teleportLayout = Instance.new("UIListLayout")
teleportLayout.FillDirection = Enum.FillDirection.Horizontal
teleportLayout.Padding = UDim.new(0, 6)
teleportLayout.Parent = teleportRow

local function createSmallButton(parent, text)
	local btn = Instance.new("TextButton")
	btn.Size = UDim2.new(0.333, -4, 1, 0)
	btn.BackgroundColor3 = accentColor
	btn.Text = text
	btn.TextColor3 = Color3.new(1,1,1)
	btn.Font = Enum.Font.GothamBold
	btn.TextSize = 13
	btn.ZIndex = 2
	btn.Parent = parent

	local btnCorner = Instance.new("UICorner")
	btnCorner.CornerRadius = UDim.new(0,4)
	btnCorner.Parent = btn

	table.insert(themableButtons, btn)
	return btn
end

local goButton = createSmallButton(teleportRow, "Go")
local saveButton = createSmallButton(teleportRow, "Save")
local homeButton = createSmallButton(teleportRow, "Home")

goButton.MouseButton1Click:Connect(function()
	local hrp = getParts()
	if not hrp then return end
	local x = tonumber(xBox.Text)
	local y = tonumber(yBox.Text)
	local z = tonumber(zBox.Text)
	if x and y and z then
		hrp.CFrame = CFrame.new(x, y, z)
	end
end)

saveButton.MouseButton1Click:Connect(function()
	local hrp = getParts()
	if hrp then
		savedPosition = hrp.Position
	end
end)

homeButton.MouseButton1Click:Connect(function()
	local hrp = getParts()
	if hrp and savedPosition then
		hrp.CFrame = CFrame.new(savedPosition)
	end
end)

createDivider(content)
createSectionLabel(content, "Combat")

local combatToggleButton = Instance.new("TextButton")
combatToggleButton.Size = UDim2.new(1, 0, 0, 32)
combatToggleButton.BackgroundColor3 = Color3.fromRGB(55,55,55)
combatToggleButton.Text = "Aim Assist (Gamepad): OFF"
combatToggleButton.TextColor3 = Color3.new(1,1,1)
combatToggleButton.Font = Enum.Font.GothamBold
combatToggleButton.TextSize = 14
combatToggleButton.ZIndex = 2
combatToggleButton.Parent = content

local combatToggleCorner = Instance.new("UICorner")
combatToggleCorner.CornerRadius = UDim.new(0,6)
combatToggleCorner.Parent = combatToggleButton

local function setCombatVisual()
	if aimAssistEnabled then
		combatToggleButton.Text = "Aim Assist (Gamepad): ON"
		combatToggleButton.BackgroundColor3 = accentColor
	else
		combatToggleButton.Text = "Aim Assist (Gamepad): OFF"
		combatToggleButton.BackgroundColor3 = Color3.fromRGB(55,55,55)
	end
end

combatToggleButton.MouseButton1Click:Connect(function()
	aimAssistEnabled = not aimAssistEnabled
	setCombatVisual()
end)

createSlider(content, "Assist Strength", 0, 30, math.floor(aimAssistStrength * 100), function(value)
	aimAssistStrength = value / 100
end)

local combatNote = Instance.new("TextLabel")
combatNote.Size = UDim2.new(1, 0, 0, 28)
combatNote.BackgroundTransparency = 1
combatNote.Text = "Only nudges aim on gamepad input, within a tight cone around your reticle"
combatNote.TextColor3 = Color3.fromRGB(150,150,150)
combatNote.Font = Enum.Font.Gotham
combatNote.TextSize = 12
combatNote.TextWrapped = true
combatNote.TextXAlignment = Enum.TextXAlignment.Left
combatNote.ZIndex = 2
combatNote.Parent = content

createDivider(content)
createSectionLabel(content, "Theme")

local themeRow = Instance.new("Frame")
themeRow.Size = UDim2.new(1, 0, 0, 26)
themeRow.BackgroundTransparency = 1
themeRow.ZIndex = 2
themeRow.Parent = content

local themeLayout = Instance.new("UIListLayout")
themeLayout.FillDirection = Enum.FillDirection.Horizontal
themeLayout.Padding = UDim.new(0, 6)
themeLayout.Parent = themeRow

local themeColors = {
	Color3.fromRGB(45,140,255),
	Color3.fromRGB(255,70,70),
	Color3.fromRGB(70,220,120),
	Color3.fromRGB(190,90,255),
	Color3.fromRGB(255,170,40),
	Color3.fromRGB(255,90,180),
}

local function applyTheme(color)
	accentColor = color
	for _, fill in pairs(themableFills) do
		fill.BackgroundColor3 = color
	end
	for _, btn in pairs(themableButtons) do
		btn.BackgroundColor3 = color
	end
	if not flying then
		toggleButton.BackgroundColor3 = color
	end
	if aimAssistEnabled then
		combatToggleButton.BackgroundColor3 = color
	end
end

for _, color in pairs(themeColors) do
	local swatch = Instance.new("TextButton")
	swatch.Size = UDim2.new(0, 26, 0, 26)
	swatch.BackgroundColor3 = color
	swatch.Text = ""
	swatch.ZIndex = 2
	swatch.Parent = themeRow

	local swatchCorner = Instance.new("UICorner")
	swatchCorner.CornerRadius = UDim.new(0,13)
	swatchCorner.Parent = swatch

	swatch.MouseButton1Click:Connect(function()
		applyTheme(color)
	end)
end

createDivider(content)
createSectionLabel(content, "Customization")

createSlider(content, "Panel Opacity", 0, 80, 0, function(value)
	mainFrame.BackgroundTransparency = value / 100
	titleBar.BackgroundTransparency = value / 100
end)

createSlider(content, "UI Scale", 70, 130, 100, function(value)
	uiScale.Scale = value / 100
end)

local dragging = false
local dragInput = nil
local dragStart = nil
local startPos = nil

titleBar.InputBegan:Connect(function(input)
	if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
		dragging = true
		dragStart = input.Position
		startPos = mainFrame.Position
		input.Changed:Connect(function()
			if input.UserInputState == Enum.UserInputState.End then
				dragging = false
			end
		end)
	end
end)

titleBar.InputChanged:Connect(function(input)
	if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
		dragInput = input
	end
end)

UserInputService.InputChanged:Connect(function(input)
	if input == dragInput and dragging then
		local delta = input.Position - dragStart
		mainFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
	end
end)

local minimized = false

minimizeButton.MouseButton1Click:Connect(function()
	minimized = not minimized
	content.Visible = not minimized
	minimizeButton.Text = minimized and "+" or "-"
end)

toggleButton.MouseButton1Click:Connect(function()
	if flying then stopFly() else startFly() end
	setToggleVisual()
end)

UserInputService.InputBegan:Connect(function(input, gpe)
	if gpe then return end
	if input.KeyCode == Enum.KeyCode.W then keys.W = true end
	if input.KeyCode == Enum.KeyCode.A then keys.A = true end
	if input.KeyCode == Enum.KeyCode.S then keys.S = true end
	if input.KeyCode == Enum.KeyCode.D then keys.D = true end
	if input.KeyCode == Enum.KeyCode.Space then keys.Space = true end
	if input.KeyCode == Enum.KeyCode.LeftShift then keys.Shift = true end
	if input.KeyCode == Enum.KeyCode.F then
		if flying then stopFly() else startFly() end
		setToggleVisual()
	end
end)

UserInputService.InputEnded:Connect(function(input)
	if input.KeyCode == Enum.KeyCode.W then keys.W = false end
	if input.KeyCode == Enum.KeyCode.A then keys.A = false end
	if input.KeyCode == Enum.KeyCode.S then keys.S = false end
	if input.KeyCode == Enum.KeyCode.D then keys.D = false end
	if input.KeyCode == Enum.KeyCode.Space then keys.Space = false end
	if input.KeyCode == Enum.KeyCode.LeftShift then keys.Shift = false end
end)

RunService.RenderStepped:Connect(function()
	if not flying or not bodyVelocity or not bodyGyro then return end
	local hrp = getParts()
	if not hrp then return end

	local camCFrame = camera.CFrame
	local moveVector = Vector3.new(0,0,0)

	if keys.W then moveVector = moveVector + camCFrame.LookVector end
	if keys.S then moveVector = moveVector - camCFrame.LookVector end
	if keys.A then moveVector = moveVector - camCFrame.RightVector end
	if keys.D then moveVector = moveVector + camCFrame.RightVector end
	if keys.Space then moveVector = moveVector + Vector3.new(0,1,0) end
	if keys.Shift then moveVector = moveVector - Vector3.new(0,1,0) end

	if moveVector.Magnitude > 0 then
		moveVector = moveVector.Unit * speed
	end

	bodyVelocity.Velocity = moveVector
	bodyGyro.CFrame = CFrame.new(hrp.Position, hrp.Position + camCFrame.LookVector)
end)

RunService.RenderStepped:Connect(function()
	if not aimAssistEnabled or not isUsingGamepad() then return end
	local target = getAssistTarget()
	if not target then return end
	local camPos = camera.CFrame.Position
	local goal = CFrame.new(camPos, target.Position)
	camera.CFrame = camera.CFrame:Lerp(goal, aimAssistStrength)
end)

player.CharacterAdded:Connect(function(char)
	flying = false
	bodyVelocity = nil
	bodyGyro = nil
	setToggleVisual()
	local hum = char:WaitForChild("Humanoid")
	hum.WalkSpeed = walkSpeedValue
	hum.UseJumpPower = true
	hum.JumpPower = jumpPowerValue
end)

task.spawn(function()
	TweenService:Create(loadingTitle, TweenInfo.new(0.4), {TextTransparency = 0}):Play()
	TweenService:Create(loadingSubtitle, TweenInfo.new(0.4), {TextTransparency = 0}):Play()
	TweenService:Create(barTrack, TweenInfo.new(0.4), {BackgroundTransparency = 0}):Play()
	TweenService:Create(barFill, TweenInfo.new(0.4), {BackgroundTransparency = 0}):Play()
	TweenService:Create(barFill, TweenInfo.new(1.2, Enum.EasingStyle.Quad), {Size = UDim2.new(1, 0, 1, 0)}):Play()

	task.wait(1.7)

	mainFrame.Visible = true

	local fadeOut = TweenService:Create(loadingFrame, TweenInfo.new(0.4), {BackgroundTransparency = 1})
	TweenService:Create(loadingTitle, TweenInfo.new(0.4), {TextTransparency = 1}):Play()
	TweenService:Create(loadingSubtitle, TweenInfo.new(0.4), {TextTransparency = 1}):Play()
	TweenService:Create(barTrack, TweenInfo.new(0.4), {BackgroundTransparency = 1}):Play()
	TweenService:Create(barFill, TweenInfo.new(0.4), {BackgroundTransparency = 1}):Play()
	fadeOut:Play()
	fadeOut.Completed:Wait()
	loadingGui:Destroy()
end)

Features & Information

Fly Walkspeed Jump height Aim assist (FIXING) UNDETECTED
#Fly#Walkspeed#Free

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts