0% found this document useful (0 votes)
28 views5 pages

Message 11

The document outlines a Lua script for a GUI in a Roblox game, featuring buttons for giving weapons, auto farming, and auto guessing. Each button is linked to a local script that executes specific game functions when clicked, such as firing server events or moving the player's character. The GUI is designed with a frame and text buttons, and includes functionality for dragging the GUI around the screen.

Uploaded by

angeljay920
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)
28 views5 pages

Message 11

The document outlines a Lua script for a GUI in a Roblox game, featuring buttons for giving weapons, auto farming, and auto guessing. Each button is linked to a local script that executes specific game functions when clicked, such as firing server events or moving the player's character. The GUI is designed with a frame and text buttons, and includes functionality for dragging the GUI around the screen.

Uploaded by

angeljay920
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
You are on page 1/ 5

-- Gui to Lua

-- Version: 3.2

-- Instances:

local ui = Instance.new("ScreenGui")
local PageHolder = Instance.new("Frame")
local UICorner = Instance.new("UICorner")
local GiveWeapons = Instance.new("TextButton")
local UICorner_2 = Instance.new("UICorner")
local Farm = Instance.new("TextButton")
local UICorner_3 = Instance.new("UICorner")
local Guess = Instance.new("TextButton")
local UICorner_4 = Instance.new("UICorner")

--Properties:

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

PageHolder.Name = "PageHolder"
PageHolder.Parent = ui
PageHolder.BackgroundColor3 = Color3.fromRGB(121, 139, 255)
PageHolder.BackgroundTransparency = 0.800
PageHolder.BorderColor3 = Color3.fromRGB(20, 20, 20)
PageHolder.Position = UDim2.new(0.0310236439, 0, 0.0530651398, 0)
PageHolder.Size = UDim2.new(0, 268, 0, 323)

UICorner.Parent = PageHolder

GiveWeapons.Name = "Give Weapons"


GiveWeapons.Parent = PageHolder
GiveWeapons.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
GiveWeapons.BackgroundTransparency = 0.800
GiveWeapons.BorderColor3 = Color3.fromRGB(0, 0, 0)
GiveWeapons.BorderSizePixel = 0
GiveWeapons.Position = UDim2.new(0.0932835788, 0, 0.0693877563, 0)
GiveWeapons.Size = UDim2.new(0, 200, 0, 39)
GiveWeapons.Font = Enum.Font.Unknown
GiveWeapons.Text = "WEAPONS"
GiveWeapons.TextColor3 = Color3.fromRGB(0, 0, 0)
GiveWeapons.TextSize = 16.000

UICorner_2.Parent = GiveWeapons

Farm.Name = "Farm"
Farm.Parent = PageHolder
Farm.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Farm.BackgroundTransparency = 0.800
Farm.BorderColor3 = Color3.fromRGB(0, 0, 0)
Farm.BorderSizePixel = 0
Farm.Position = UDim2.new(0.0932835788, 0, 0.28107664, 0)
Farm.Size = UDim2.new(0, 200, 0, 39)
Farm.Font = Enum.Font.Unknown
Farm.Text = "AUTO FARM"
Farm.TextColor3 = Color3.fromRGB(0, 0, 0)
Farm.TextSize = 16.000
UICorner_3.Parent = Farm

Guess.Name = "Guess"
Guess.Parent = PageHolder
Guess.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Guess.BackgroundTransparency = 0.800
Guess.BorderColor3 = Color3.fromRGB(0, 0, 0)
Guess.BorderSizePixel = 0
Guess.Position = UDim2.new(0.0932835788, 0, 0.510178804, 0)
Guess.Size = UDim2.new(0, 200, 0, 39)
Guess.Font = Enum.Font.Unknown
Guess.Text = "AUTO GUESS"
Guess.TextColor3 = Color3.fromRGB(0, 0, 0)
Guess.TextSize = 16.000

UICorner_4.Parent = Guess

-- Scripts:

local function TINRA_fake_script() -- GiveWeapons.LocalScript


local script = Instance.new('LocalScript', GiveWeapons)

script.Parent.MouseButton1Click:Connect(function()
for _, item in
pairs(game:GetService("ReplicatedStorage").Weapon:GetChildren()) do
if item:IsA("RemoteEvent") then
item:FireServer()
end
end
end)
end
coroutine.wrap(TINRA_fake_script)()
local function KDLA_fake_script() -- Farm.LocalScript
local script = Instance.new('LocalScript', Farm)

script.Parent.MouseButton1Click:Connect(function()
local plrs = game.Players
local lplr = plrs.LocalPlayer
local race_part = workspace.Levels.Race.One:GetChildren()[64]
local infinity_part = workspace.Levels.Infinity:GetChildren()[57]
while true do
task.wait()
lplr.Character.HumanoidRootPart.CFrame = infinity_part.CFrame
fireproximityprompt(infinity_part.ProximityPrompt)
task.wait()
lplr.Character.HumanoidRootPart.CFrame = race_part.CFrame
fireproximityprompt(race_part.ProximityPrompt)
end
end)

end
coroutine.wrap(KDLA_fake_script)()
local function QORLWVZ_fake_script() -- Guess.LocalScript
local script = Instance.new('LocalScript', Guess)

script.Parent.MouseButton1Click:Connect(function()
local player = game.Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = playerGui

local function createTextLabel(index)


local textLabel = Instance.new("TextLabel")
textLabel.Size = UDim2.new(0, 400, 0, 50)
textLabel.Position = UDim2.new(0.5, -200, 0.1 + (index * 0.1), -
25)
textLabel.BackgroundTransparency = 1
textLabel.TextScaled = true
textLabel.Font = Enum.Font.GothamBold
textLabel.TextColor3 = Color3.new(1, 1, 1)
textLabel.Text = ""
textLabel.Parent = screenGui
return textLabel
end

local textLabels = {}
for i = 1, 10 do
textLabels[i] = createTextLabel(i - 1)
end

local function isFacingModel(door)


local playerPosition = player.Character.PrimaryPart.Position
local directionToModel = (door.Position - playerPosition).unit
local lookVector = player.Character.PrimaryPart.CFrame.LookVector
local dotProduct = directionToModel:Dot(lookVector)
return dotProduct > 0.05
end

local function updateText()


local hue = 0
while true do
local playerPosition = player.Character and
player.Character.PrimaryPart.Position
local displayedTexts = {}

if playerPosition then
for _, difficultyFolder in
pairs(workspace.Levels:GetChildren()) do
if difficultyFolder:IsA("Folder") then
for _, model in
pairs(difficultyFolder:GetChildren()) do
if model:IsA("Model") then
local door =
model:FindFirstChild("Door")
if door and door:IsA("Part")
then
local stringValues =
door:GetChildren()
local distance =
(door.Position - playerPosition).magnitude

if distance <= 28 then


if
isFacingModel(door) then
for _, value
in pairs(stringValues) do
if
value:IsA("StringValue") then
table.insert(displayedTexts, value.Value)
end
end
end
end
end
end
end
end
end

for i = 1, 10 do
textLabels[i].Text = displayedTexts[i] or ""
textLabels[i].TextColor3 = Color3.fromHSV(hue,
1, 1)
end

hue = (hue + 0.005) % 1


wait(0.1)
else
wait(0.1)
end
end
end

updateText()
end)

end
coroutine.wrap(QORLWVZ_fake_script)()
local function TGUPBO_fake_script() -- PageHolder.LocalScript
local script = Instance.new('LocalScript', PageHolder)

local FrameDetect = script.Parent


local FrameMoves = script.Parent

local RunService = game:GetService("RunService")


local UserInputService = game:GetService("UserInputService")
local CurrentMousePosition
local Detected = false

FrameDetect.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
CurrentMousePosition = UserInputService:GetMouseLocation()
Detected = true
end
end)

FrameDetect.InputEnded:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
Detected = false
end
end)

RunService.RenderStepped:Connect(function()
if Detected then
local MousePosition = UserInputService:GetMouseLocation()
local MoveX = CurrentMousePosition.X - MousePosition.X
local MoveY = CurrentMousePosition.Y - MousePosition.Y
CurrentMousePosition = MousePosition
FrameMoves.Position = FrameMoves.Position -
UDim2.new(0,MoveX,0,MoveY)
end
end)
end
coroutine.wrap(TGUPBO_fake_script)()

You might also like