cool gui
Key RequiredUniversal

cool gui

Universal Scriptmaxmaster3602maxmaster3602 7.5K views 17 executesUpdated Dec 8, 2024
Unrated
00
Lua Script•469 lines (15468 chars)
-- Gui to Lua
-- Version: 3.2

-- Instances:

local ScreenGui = Instance.new("ScreenGui")
local Frame = Instance.new("Frame")
local TextLabel = Instance.new("TextLabel")
local ImageButton = Instance.new("ImageButton")
local ScrollingFrame = Instance.new("ScrollingFrame")
local SpdBoost = Instance.new("TextButton")
local Godmode = Instance.new("TextButton")
local UIListLayout = Instance.new("UIListLayout")
local TextButton = Instance.new("TextButton")
local Aim = Instance.new("TextButton")
local Steal = Instance.new("TextButton")
local ImageButton_2 = Instance.new("ImageButton")
local ImageButton_3 = Instance.new("ImageButton")
local ImageButton_4 = Instance.new("ImageButton")
local ImageButton_5 = Instance.new("ImageButton")
local wawawa = Instance.new("TextLabel")
local ImageButton_6 = Instance.new("ImageButton")

--Properties:

ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling

Frame.Parent = ScreenGui
Frame.BackgroundColor3 = Color3.fromRGB(79, 79, 79)
Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
Frame.BorderSizePixel = 0
Frame.Position = UDim2.new(0.284849554, 0, 0.253903508, 0)
Frame.Size = UDim2.new(0, 608, 0, 341)

TextLabel.Parent = Frame
TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TextLabel.BackgroundTransparency = 1.000
TextLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
TextLabel.BorderSizePixel = 0
TextLabel.Position = UDim2.new(0.230263159, 0, 0, 0)
TextLabel.Size = UDim2.new(0, 311, 0, 88)
TextLabel.Font = Enum.Font.Arcade
TextLabel.Text = "The cool machine (BETA)"
TextLabel.TextColor3 = Color3.fromRGB(94, 3, 102)
TextLabel.TextScaled = true
TextLabel.TextSize = 14.000
TextLabel.TextWrapped = true

ImageButton.Parent = Frame
ImageButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
ImageButton.BackgroundTransparency = 1.000
ImageButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
ImageButton.BorderSizePixel = 0
ImageButton.Position = UDim2.new(0.814144731, 0, 0.0205278601, 0)
ImageButton.Size = UDim2.new(0, 100, 0, 100)
ImageButton.Image = "rbxassetid://17390035883"

ScrollingFrame.Parent = Frame
ScrollingFrame.Active = true
ScrollingFrame.BackgroundColor3 = Color3.fromRGB(47, 47, 47)
ScrollingFrame.BackgroundTransparency = 1.000
ScrollingFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
ScrollingFrame.BorderSizePixel = 0
ScrollingFrame.Position = UDim2.new(0.0131578948, 0, 0.296187401, 0)
ScrollingFrame.Size = UDim2.new(0, 570, 0, 240)
ScrollingFrame.BottomImage = ""
ScrollingFrame.MidImage = ""
ScrollingFrame.ScrollBarThickness = 0
ScrollingFrame.TopImage = ""
ScrollingFrame.VerticalScrollBarPosition = Enum.VerticalScrollBarPosition.Left

SpdBoost.Name = "SpdBoost"
SpdBoost.Parent = ScrollingFrame
SpdBoost.BackgroundColor3 = Color3.fromRGB(61, 61, 61)
SpdBoost.BorderColor3 = Color3.fromRGB(0, 0, 0)
SpdBoost.BorderSizePixel = 0
SpdBoost.Position = UDim2.new(0.411666662, 0, 0.145833209, 0)
SpdBoost.Size = UDim2.new(0, 204, 0, 50)
SpdBoost.Font = Enum.Font.SourceSans
SpdBoost.Text = "Speed-Boost"
SpdBoost.TextColor3 = Color3.fromRGB(255, 255, 255)
SpdBoost.TextScaled = true
SpdBoost.TextSize = 14.000
SpdBoost.TextWrapped = true

Godmode.Name = "Godmode"
Godmode.Parent = ScrollingFrame
Godmode.BackgroundColor3 = Color3.fromRGB(61, 61, 61)
Godmode.BorderColor3 = Color3.fromRGB(0, 0, 0)
Godmode.BorderSizePixel = 0
Godmode.Position = UDim2.new(0, 0, 0.254166543, 0)
Godmode.Size = UDim2.new(0, 204, 0, 47)
Godmode.Font = Enum.Font.SourceSansBold
Godmode.Text = "God mode😇"
Godmode.TextColor3 = Color3.fromRGB(255, 255, 255)
Godmode.TextScaled = true
Godmode.TextSize = 14.000
Godmode.TextWrapped = true

UIListLayout.Parent = ScrollingFrame
UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder

TextButton.Parent = ScrollingFrame
TextButton.BackgroundColor3 = Color3.fromRGB(61, 61, 61)
TextButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
TextButton.BorderSizePixel = 0
TextButton.Position = UDim2.new(0.873873889, 0, 0.404166549, 0)
TextButton.Size = UDim2.new(0, 204, 0, 47)
TextButton.Font = Enum.Font.SourceSansBold
TextButton.Text = "Invis (might not be FE)"
TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
TextButton.TextScaled = true
TextButton.TextSize = 14.000
TextButton.TextWrapped = true

Aim.Name = "Aim"
Aim.Parent = ScrollingFrame
Aim.BackgroundColor3 = Color3.fromRGB(61, 61, 61)
Aim.BorderColor3 = Color3.fromRGB(0, 0, 0)
Aim.BorderSizePixel = 0
Aim.Position = UDim2.new(0, 0, 0.599999845, 0)
Aim.Size = UDim2.new(0, 204, 0, 47)
Aim.Font = Enum.Font.SourceSansBold
Aim.Text = "Aimbot🤖🎯"
Aim.TextColor3 = Color3.fromRGB(255, 255, 255)
Aim.TextScaled = true
Aim.TextSize = 14.000
Aim.TextWrapped = true

Steal.Name = "Steal"
Steal.Parent = ScrollingFrame
Steal.BackgroundColor3 = Color3.fromRGB(61, 61, 61)
Steal.BorderColor3 = Color3.fromRGB(0, 0, 0)
Steal.BorderSizePixel = 0
Steal.Position = UDim2.new(0, 0, 0.599999845, 0)
Steal.Size = UDim2.new(0, 204, 0, 47)
Steal.Font = Enum.Font.SourceSansBold
Steal.Text = "Steal Game (May crash)"
Steal.TextColor3 = Color3.fromRGB(255, 255, 255)
Steal.TextScaled = true
Steal.TextSize = 14.000
Steal.TextWrapped = true

ImageButton_2.Parent = Frame
ImageButton_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
ImageButton_2.BackgroundTransparency = 1.000
ImageButton_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
ImageButton_2.BorderSizePixel = 0
ImageButton_2.Position = UDim2.new(0.379934222, 0, 0.747800589, 0)
ImageButton_2.Size = UDim2.new(0, 347, 0, 66)
ImageButton_2.Image = "rbxassetid://17390035883"

ImageButton_3.Parent = Frame
ImageButton_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
ImageButton_3.BackgroundTransparency = 1.000
ImageButton_3.BorderColor3 = Color3.fromRGB(0, 0, 0)
ImageButton_3.BorderSizePixel = 0
ImageButton_3.Position = UDim2.new(0.379934222, 0, 0.31378299, 0)
ImageButton_3.Size = UDim2.new(0, 347, 0, 66)
ImageButton_3.Image = "rbxassetid://17390035883"

ImageButton_4.Parent = Frame
ImageButton_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
ImageButton_4.BackgroundTransparency = 1.000
ImageButton_4.BorderColor3 = Color3.fromRGB(0, 0, 0)
ImageButton_4.BorderSizePixel = 0
ImageButton_4.Position = UDim2.new(0.379934222, 0, 0.31378299, 0)
ImageButton_4.Size = UDim2.new(0, 347, 0, 66)
ImageButton_4.Image = "rbxassetid://17390035883"

ImageButton_5.Parent = Frame
ImageButton_5.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
ImageButton_5.BackgroundTransparency = 1.000
ImageButton_5.BorderColor3 = Color3.fromRGB(0, 0, 0)
ImageButton_5.BorderSizePixel = 0
ImageButton_5.Position = UDim2.new(0.379934222, 0, 0.521994114, 0)
ImageButton_5.Size = UDim2.new(0, 347, 0, 66)
ImageButton_5.Image = "rbxassetid://17390035883"

wawawa.Name = "wawawa"
wawawa.Parent = Frame
wawawa.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
wawawa.BackgroundTransparency = 1.000
wawawa.BorderColor3 = Color3.fromRGB(0, 0, 0)
wawawa.BorderSizePixel = 0
wawawa.Position = UDim2.new(0.796052635, 0, 0.953079164, 0)
wawawa.Size = UDim2.new(0, 122, 0, 16)
wawawa.Font = Enum.Font.Arcade
wawawa.Text = "not coolkid btw"
wawawa.TextColor3 = Color3.fromRGB(255, 0, 4)
wawawa.TextScaled = true
wawawa.TextSize = 14.000
wawawa.TextWrapped = true

ImageButton_6.Parent = Frame
ImageButton_6.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
ImageButton_6.BackgroundTransparency = 1.000
ImageButton_6.BorderColor3 = Color3.fromRGB(0, 0, 0)
ImageButton_6.BorderSizePixel = 0
ImageButton_6.Position = UDim2.new(0.0411184207, 0, 0, 0)
ImageButton_6.Size = UDim2.new(0, 100, 0, 100)
ImageButton_6.Image = "rbxassetid://17390035883"

-- Scripts:

local function HLIBCM_fake_script() -- SpdBoost.LocalScript 
	local script = Instance.new('LocalScript', SpdBoost)

	local button = script.Parent
	local player = game.Players.LocalPlayer
	local character = player.Character or player.CharacterAdded:Wait()
	local humanoid = character:WaitForChild("Humanoid")
	local isActive = false
	
	button.MouseButton1Click:Connect(function()
		isActive = not isActive
		button.BackgroundColor3 = isActive and Color3.fromRGB(0, 255, 0) or Color3.fromRGB(61, 61, 61)
		humanoid.WalkSpeed = isActive and 100 or 16
	end)
	
end
coroutine.wrap(HLIBCM_fake_script)()
local function HRSPPSW_fake_script() -- Godmode.LocalScript 
	local script = Instance.new('LocalScript', Godmode)

	local button = script.Parent
	local player = game.Players.LocalPlayer
	local character = player.Character or player.CharacterAdded:Wait()
	local humanoid = character:WaitForChild("Humanoid")
	local isActive = false
	
	button.MouseButton1Click:Connect(function()
		isActive = not isActive
		button.BackgroundColor3 = isActive and Color3.fromRGB(0, 255, 0) or Color3.fromRGB(61, 61, 61)
	
		if isActive then
			humanoid.MaxHealth = 1e9
			humanoid.Health = humanoid.MaxHealth
			if not character:FindFirstChild("ForceField") then
				local forcefield = Instance.new("ForceField")
				forcefield.Parent = character
			end
		else
			humanoid.MaxHealth = 100
			humanoid.Health = humanoid.MaxHealth
			local forcefield = character:FindFirstChild("ForceField")
			if forcefield then
				forcefield:Destroy()
			end
		end
	end)
	
end
coroutine.wrap(HRSPPSW_fake_script)()
local function CQRVTKR_fake_script() -- TextButton.LocalScript 
	local script = Instance.new('LocalScript', TextButton)

	local button = script.Parent
	local player = game.Players.LocalPlayer
	local character = player.Character or player.CharacterAdded:Wait()
	local isActive = false
	
	button.MouseButton1Click:Connect(function()
		isActive = not isActive
		button.BackgroundColor3 = isActive and Color3.fromRGB(0, 255, 0) or Color3.fromRGB(61, 61, 61)
	
		for _, part in pairs(character:GetDescendants()) do
			if part:IsA("BasePart") then
				part.Transparency = isActive and 1 or 0
				part.CanCollide = not isActive
			end
		end
	end)
	
end
coroutine.wrap(CQRVTKR_fake_script)()
local function WGFKW_fake_script() -- Aim.LocalScript 
	local script = Instance.new('LocalScript', Aim)

	local TextButton = script.Parent -- Assuming the script is a child of the TextButton
	
	local UserInputService = game:GetService("UserInputService")
	local Players = game:GetService("Players")
	local RunService = game:GetService("RunService")
	local LocalPlayer = Players.LocalPlayer
	
	local cursorLocked = false
	local connection
	
	-- List of user IDs that should not be locked
	local excludedUserIds = {
		[7531926986] = true,
		[7491888654] = true
	}
	
	-- Create and set up the GUI
	local gui = Instance.new("ScreenGui")
	local textLabel = Instance.new("TextLabel")
	
	gui.Name = "CursorLockGui"
	gui.Parent = LocalPlayer:WaitForChild("PlayerGui")
	
	textLabel.Name = "LockStatusLabel"
	textLabel.Parent = gui
	textLabel.Text = "Cursor Unlocked"
	textLabel.Size = UDim2.new(0, 200, 0, 50)
	textLabel.Position = UDim2.new(0.5, -100, 0, 0)
	textLabel.TextScaled = true
	textLabel.BackgroundTransparency = 0.5
	textLabel.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
	textLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
	textLabel.Visible = true
	
	-- Function to find the closest player's head
	local function findClosestPlayerHead()
		local closestPlayer = nil
		local closestDistance = math.huge
	
		for _, player in pairs(Players:GetPlayers()) do
			if player ~= LocalPlayer 
				and player.Character 
				and player.Character:FindFirstChild("Head") 
				and not excludedUserIds[player.UserId] then
				local head = player.Character.Head
				local distance = (LocalPlayer.Character.Head.Position - head.Position).Magnitude
				if distance < closestDistance then
					closestDistance = distance
					closestPlayer = head
				end
			end
		end
	
		return closestPlayer
	end
	
	-- Function to lock the cursor to the closest player's head
	local function lockCursorToClosestHead()
		local closestHead = findClosestPlayerHead()
		if closestHead then
			UserInputService.MouseBehavior = Enum.MouseBehavior.LockCenter
			connection = RunService.RenderStepped:Connect(function()
				local camera = workspace.CurrentCamera
				camera.CFrame = CFrame.new(camera.CFrame.Position, closestHead.Position)
			end)
			textLabel.Text = "Cursor Locked"
			print("Cursor lock enabled")  -- Print statement to confirm the script is on
		end
	end
	
	-- Function to unlock the cursor
	local function unlockCursor()
		UserInputService.MouseBehavior = Enum.MouseBehavior.Default
		if connection then
			connection:Disconnect()
			connection = nil
		end
		textLabel.Text = "Cursor Unlocked"
		print("Cursor lock disabled")  -- Print statement to confirm the script is off
	end
	
	-- Function to handle mouse button press
	local function onMousePress(input, gameProcessedEvent)
		if not gameProcessedEvent then
			if input.UserInputType == Enum.UserInputType.MouseButton2 then
				if cursorLocked then
					unlockCursor()
				else
					lockCursorToClosestHead()
				end
				cursorLocked = not cursorLocked
			end
		end
	end
	
	-- Set up the TextButton click handler
	local isActive = false  -- Variable to track if the feature is on or off
	
	TextButton.MouseButton1Click:Connect(function()
		if not isActive then
			-- Turn it on
			UserInputService.InputBegan:Connect(onMousePress)
			textLabel.Text = "Cursor Locked"
			print("Cursor lock toggled on")
		else
			-- Turn it off
			UserInputService.InputBegan:Disconnect(onMousePress)
			unlockCursor()
			textLabel.Text = "Cursor Unlocked"
			print("Cursor lock toggled off")
		end
	
		isActive = not isActive  -- Toggle the state
	end)
	
end
coroutine.wrap(WGFKW_fake_script)()
local function LIFV_fake_script() -- Steal.LocalScript 
	local script = Instance.new('LocalScript', Steal)

	local TextButton = script.Parent -- Assuming this script is a child of the TextButton
	
	local Params = {
		RepoURL = "https://raw.githubusercontent.com/luau/SynSaveInstance/main/",
		SSI = "saveinstance",
	}
	
	TextButton.MouseButton1Click:Connect(function()
		local synsaveinstance = loadstring(game:HttpGet(Params.RepoURL .. Params.SSI .. ".luau", true), Params.SSI)()
		local Options = {} -- Documentation here https://luau.github.io/UniversalSynSaveInstance/api/SynSaveInstance
		synsaveinstance(Options)
	end)
	
end
coroutine.wrap(LIFV_fake_script)()
local function MKAHGW_fake_script() -- Frame.LocalScript 
	local script = Instance.new('LocalScript', Frame)

	local gui = script.Parent -- The ScreenGui you want to make draggable
	local dragging = false
	local dragInput = nil
	local dragStart = nil
	local startPos = nil
	
	-- Function to start dragging
	local function onDragStart(input)
		dragging = true
		dragInput = input
		dragStart = input.Position
		startPos = gui.Position
	end
	
	-- Function to update dragging position
	local function onDragMove(input)
		if dragging then
			local delta = input.Position - dragStart
			gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
		end
	end
	
	-- Function to stop dragging
	local function onDragEnd(input)
		dragging = false
		dragInput = nil
		dragStart = nil
		startPos = nil
	end
	
	-- Connect functions to input events
	gui.InputBegan:Connect(function(input)
		if input.UserInputType == Enum.UserInputType.MouseButton1 then
			onDragStart(input)
		end
	end)
	
	gui.InputChanged:Connect(function(input)
		if input.UserInputType == Enum.UserInputType.MouseMovement then
			onDragMove(input)
		end
	end)
	
	gui.InputEnded:Connect(function(input)
		if input.UserInputType == Enum.UserInputType.MouseButton1 then
			onDragEnd(input)
		end
	end)
	
end
coroutine.wrap(MKAHGW_fake_script)()

Features & Information

s
#free

Community Comments (1)

JoelymarcelyJoelymarcelyAug 20, 2025

Real?

More Scripts for Universal Scripts