0% found this document useful (0 votes)
264 views12 pages

Roblox GUI to Lua Converter Guide

This document defines instances and properties to create a GUI screen with buttons to control a Lua script that farms different types of mobs in Roblox. It creates instances for a screen GUI, frame, and buttons. It then defines properties like positions, sizes, and colors for the GUI elements. It also includes the Lua script that will be run on button clicks to farm mobs by teleporting the player character behind each mob.
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)
264 views12 pages

Roblox GUI to Lua Converter Guide

This document defines instances and properties to create a GUI screen with buttons to control a Lua script that farms different types of mobs in Roblox. It creates instances for a screen GUI, frame, and buttons. It then defines properties like positions, sizes, and colors for the GUI elements. It also includes the Lua script that will be run on button clicks to farm mobs by teleporting the player character behind each mob.
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

--[[

Gui to Lua Converter


-- Revamped by:HoIyScript
--]]

-- Instances:

local ScreenGui = [Link]("ScreenGui")


local Frame = [Link]("Frame")
local TextButton = [Link]("TextButton")
local TextButton_2 = [Link]("TextButton")
local TextButton_3 = [Link]("TextButton")
local TextButton_4 = [Link]("TextButton")
local TextButton_5 = [Link]("TextButton")
local TextLabel = [Link]("TextLabel")
local TextButton_6 = [Link]("TextButton")
local TextLabel_2 = [Link]("TextLabel")

--[[
Properties:
--]]

[Link] = [Link]
[Link] = [Link]

[Link] = ScreenGui
Frame.BackgroundColor3 = [Link](0.203922, 0.145098, 0.145098)
Frame.BorderColor3 = [Link](0.105882, 0.164706, 0.207843)
[Link] = 0
[Link] = [Link](0.103912197, 0, 0.104422659, 0)
[Link] = [Link](0.0613453835, 0, 0.23710072, 0)
[Link] = true
[Link] = true

[Link] = Frame
TextButton.BackgroundColor3 = [Link](0.345098, 0.345098, 0.345098)
[Link] = 0
[Link] = [Link](0.0804498047, 0, 0.16580309, 0)
[Link] = [Link](0.839100361, 0, 0.0984454527, 0)
[Link] = [Link]
[Link] = "Ghoul"
TextButton.TextColor3 = [Link](1, 1, 1)
[Link] = true
[Link] = 14
[Link] = true

TextButton_2.Parent = Frame
TextButton_2.BackgroundColor3 = [Link](0.345098, 0.345098, 0.345098)
TextButton_2.BorderSizePixel = 0
TextButton_2.Position = [Link](0.0804498047, 0, 0.31088081, 0)
TextButton_2.Size = [Link](0.839100361, 0, 0.0984454527, 0)
TextButton_2.Font = [Link]
TextButton_2.Text = "Human"
TextButton_2.TextColor3 = [Link](1, 1, 1)
TextButton_2.TextScaled = true
TextButton_2.TextSize = 14
TextButton_2.TextWrapped = true
TextButton_3.Parent = Frame
TextButton_3.BackgroundColor3 = [Link](0.345098, 0.345098, 0.345098)
TextButton_3.BorderSizePixel = 0
TextButton_3.Position = [Link](0.0804498047, 0, 0.450777233, 0)
TextButton_3.Size = [Link](0.839100361, 0, 0.0984454527, 0)
TextButton_3.Font = [Link]
TextButton_3.Text = "CCG"
TextButton_3.TextColor3 = [Link](1, 1, 1)
TextButton_3.TextScaled = true
TextButton_3.TextSize = 14
TextButton_3.TextWrapped = true

TextButton_4.Parent = Frame
TextButton_4.BackgroundColor3 = [Link](0.345098, 0.345098, 0.345098)
TextButton_4.BorderSizePixel = 0
TextButton_4.Position = [Link](0.0804498047, 0, 0.590673625, 0)
TextButton_4.Size = [Link](0.839100361, 0, 0.0984454527, 0)
TextButton_4.Font = [Link]
TextButton_4.Text = "SCCG"
TextButton_4.TextColor3 = [Link](1, 1, 1)
TextButton_4.TextScaled = true
TextButton_4.TextSize = 14
TextButton_4.TextWrapped = true

TextButton_5.Parent = Frame
TextButton_5.BackgroundColor3 = [Link](0.345098, 0.345098, 0.345098)
TextButton_5.BorderSizePixel = 0
TextButton_5.Position = [Link](0.0804498047, 0, 0.725388646, 0)
TextButton_5.Size = [Link](0.839100361, 0, 0.0984454527, 0)
TextButton_5.Font = [Link]
TextButton_5.Text = "Boss"
TextButton_5.TextColor3 = [Link](1, 1, 1)
TextButton_5.TextScaled = true
TextButton_5.TextSize = 14
TextButton_5.TextWrapped = true

[Link] = Frame
TextLabel.BackgroundColor3 = [Link](0.203922, 0.145098, 0.145098)
[Link] = 0
[Link] = [Link](1, 0, 0.113989636, 0)
[Link] = [Link]
[Link] = "Ro Ghoul"
TextLabel.TextColor3 = [Link](1, 1, 1)
[Link] = true
[Link] = 14
[Link] = true

TextButton_6.Parent = Frame
TextButton_6.BackgroundColor3 = [Link](0.345098, 0.345098, 0.345098)
TextButton_6.BorderSizePixel = 0
TextButton_6.Position = [Link](0.0804498047, 0, 0.865285039, 0)
TextButton_6.Size = [Link](0.839100361, 0, 0.0984454527, 0)
TextButton_6.Font = [Link]
TextButton_6.Text = "STOP"
TextButton_6.TextColor3 = [Link](1, 0, 0)
TextButton_6.TextScaled = true
TextButton_6.TextSize = 14
TextButton_6.TextWrapped = true
TextLabel_2.Parent = Frame
TextLabel_2.BackgroundColor3 = [Link](1, 0, 0)
TextLabel_2.BorderSizePixel = 0
TextLabel_2.Position = [Link](0, 0, 0.113989472, 0)
TextLabel_2.Size = [Link](1, 0, 0.010362695, 0)
TextLabel_2.Font = [Link]
TextLabel_2.Text = ""
TextLabel_2.TextColor3 = [Link](0, 0, 0)
TextLabel_2.TextSize = 14

--[[
Scripts:
--]]

local function ZCWB_fake_script() -- [Link]


local script = [Link]('LocalScript', TextButton)

[Link].MouseButton1Click:Connect(function()
local mob = "Ghoul"
local distanceFromMob = -3 -- How far you want to be behind the mob
local travelSpeed = 140 -- higher = faster -- 140 won't kill you, but if you go
too high you will die lol

--[[
Mobs to pick from -
-- Ghoul
-- Human
-- CCG
-- SCCG
-- Boss
]]--

local mobName

if mob == "Ghoul" then


mobName = "GhoulSpawns"
elseif mob == "Human" then
mobName = "HumanSpawns"
elseif mob == "CCG" then
mobName = "CCGSpawns"
elseif mob == "SCCG" then
mobName = "AggroSpawns"
elseif mob == "Boss" then
mobName = "BossSpawns"
else
mobName = "Made by dah GoobsGoobies Big Grin"
end

local tweenS = game:GetService("TweenService")


local player = [Link]
local playerHRP = [Link]:WaitForChild("HumanoidRootPart")
local playerHumanoid = [Link]:WaitForChild("Humanoid")

function farm()
while true do
if [Link] ~= 0 then
for i,v in pairs([Link]:GetChildren()) do
if v:FindFirstChildWhichIsA("Model") and [Link] == mobName and not
v:FindFirstChild("Athlete") then
while true do
if v:FindFirstChildWhichIsA("Model") then
local parent = v:FindFirstChildWhichIsA("Model")
if parent:FindFirstChild("Humanoid") then
if [Link] ~= 0 then
local distance = ([Link] -
[Link]).magnitude
local tweenInfo = [Link](distance/travelSpeed)
local tweenGoal = {}
[Link] = [Link] +
[Link] * distanceFromMob
local playTween =
tweenS:Create(playerHRP,tweenInfo,tweenGoal)
if distance <= 10 then
local parentHRP =
parent:WaitForChild("HumanoidRootPart")
if mob == "Human" then
[Link] = [Link] +
[Link] * distanceFromMob
wait()
[Link] = [Link] +
[Link] * ((distanceFromMob * -1) + 2)
[Link] =
[Link]([Link],[Link])
else
[Link] = [Link] +
[Link] * distanceFromMob
end
else
playTween:Play()
end
wait()
elseif [Link] == 0 then
wait(2)
break
end
elseif not parent:FindFirstChild("Humanoid") then
wait(2)
break
end

elseif not v:FindFirstChildWhichIsA("Model") or


v:FindFirstChildWhichIsA("Model").[Link] == 0 then
wait(2)
break
end
end
end
end
elseif [Link] == 0 then
wait(2)
break
end
wait()
end
end

farm()
end)
end
[Link](ZCWB_fake_script)()
local function JIGTNFS_fake_script() -- TextButton_2.LocalScript
local script = [Link]('LocalScript', TextButton_2)

[Link].MouseButton1Click:Connect(function()
local mob = "Human"
local distanceFromMob = -3 -- How far you want to be behind the mob
local travelSpeed = 140 -- higher = faster -- 140 won't kill you, but if you go
too high you will die lol

--[[
Mobs to pick from -
-- Ghoul
-- Human
-- CCG
-- SCCG
-- Boss
]]--

local mobName

if mob == "Ghoul" then


mobName = "GhoulSpawns"
elseif mob == "Human" then
mobName = "HumanSpawns"
elseif mob == "CCG" then
mobName = "CCGSpawns"
elseif mob == "SCCG" then
mobName = "AggroSpawns"
elseif mob == "Boss" then
mobName = "BossSpawns"
else
mobName = "Made by dah GoobsGoobies Big Grin"
end

local tweenS = game:GetService("TweenService")


local player = [Link]
local playerHRP = [Link]:WaitForChild("HumanoidRootPart")
local playerHumanoid = [Link]:WaitForChild("Humanoid")

function farm()
while true do
if [Link] ~= 0 then
for i,v in pairs([Link]:GetChildren()) do
if v:FindFirstChildWhichIsA("Model") and [Link] == mobName and not
v:FindFirstChild("Athlete") then
while true do
if v:FindFirstChildWhichIsA("Model") then
local parent = v:FindFirstChildWhichIsA("Model")
if parent:FindFirstChild("Humanoid") then
if [Link] ~= 0 then
local distance = ([Link] -
[Link]).magnitude
local tweenInfo = [Link](distance/travelSpeed)
local tweenGoal = {}
[Link] = [Link] +
[Link] * distanceFromMob
local playTween =
tweenS:Create(playerHRP,tweenInfo,tweenGoal)
if distance <= 10 then
local parentHRP =
parent:WaitForChild("HumanoidRootPart")
if mob == "Human" then
[Link] = [Link] +
[Link] * distanceFromMob
wait()
[Link] = [Link] +
[Link] * ((distanceFromMob * -1) + 2)
[Link] =
[Link]([Link],[Link])
else
[Link] = [Link] +
[Link] * distanceFromMob
end
else
playTween:Play()
end
wait()
elseif [Link] == 0 then
wait(2)
break
end
elseif not parent:FindFirstChild("Humanoid") then
wait(2)
break
end

elseif not v:FindFirstChildWhichIsA("Model") or


v:FindFirstChildWhichIsA("Model").[Link] == 0 then
wait(2)
break
end
end
end
end
elseif [Link] == 0 then
wait(2)
break
end
wait()
end
end

farm()
end)
end
[Link](JIGTNFS_fake_script)()
local function SMNVS_fake_script() -- TextButton_3.LocalScript
local script = [Link]('LocalScript', TextButton_3)

[Link].MouseButton1Click:Connect(function()
local mob = "CCG"
local distanceFromMob = -3 -- How far you want to be behind the mob
local travelSpeed = 140 -- higher = faster -- 140 won't kill you, but if you go
too high you will die lol
--[[
Mobs to pick from -
-- Ghoul
-- Human
-- CCG
-- SCCG
-- Boss
]]--

local mobName

if mob == "Ghoul" then


mobName = "GhoulSpawns"
elseif mob == "Human" then
mobName = "HumanSpawns"
elseif mob == "CCG" then
mobName = "CCGSpawns"
elseif mob == "SCCG" then
mobName = "AggroSpawns"
elseif mob == "Boss" then
mobName = "BossSpawns"
else
mobName = "Made by dah GoobsGoobies Big Grin"
end

local tweenS = game:GetService("TweenService")


local player = [Link]
local playerHRP = [Link]:WaitForChild("HumanoidRootPart")
local playerHumanoid = [Link]:WaitForChild("Humanoid")

function farm()
while true do
if [Link] ~= 0 then
for i,v in pairs([Link]:GetChildren()) do
if v:FindFirstChildWhichIsA("Model") and [Link] == mobName and not
v:FindFirstChild("Athlete") then
while true do
if v:FindFirstChildWhichIsA("Model") then
local parent = v:FindFirstChildWhichIsA("Model")
if parent:FindFirstChild("Humanoid") then
if [Link] ~= 0 then
local distance = ([Link] -
[Link]).magnitude
local tweenInfo = [Link](distance/travelSpeed)
local tweenGoal = {}
[Link] = [Link] +
[Link] * distanceFromMob
local playTween =
tweenS:Create(playerHRP,tweenInfo,tweenGoal)
if distance <= 10 then
local parentHRP =
parent:WaitForChild("HumanoidRootPart")
if mob == "Human" then
[Link] = [Link] +
[Link] * distanceFromMob
wait()
[Link] = [Link] +
[Link] * ((distanceFromMob * -1) + 2)
[Link] =
[Link]([Link],[Link])
else
[Link] = [Link] +
[Link] * distanceFromMob
end
else
playTween:Play()
end
wait()
elseif [Link] == 0 then
wait(2)
break
end
elseif not parent:FindFirstChild("Humanoid") then
wait(2)
break
end

elseif not v:FindFirstChildWhichIsA("Model") or


v:FindFirstChildWhichIsA("Model").[Link] == 0 then
wait(2)
break
end
end
end
end
elseif [Link] == 0 then
wait(2)
break
end
wait()
end
end

farm()
end)
end
[Link](SMNVS_fake_script)()
local function LSXJJCB_fake_script() -- TextButton_4.LocalScript
local script = [Link]('LocalScript', TextButton_4)

[Link].MouseButton1Click:Connect(function()
local mob = "SCCG"
local distanceFromMob = -3 -- How far you want to be behind the mob
local travelSpeed = 140 -- higher = faster -- 140 won't kill you, but if you go
too high you will die lol

--[[
Mobs to pick from -
-- Ghoul
-- Human
-- CCG
-- SCCG
-- Boss
]]--

local mobName

if mob == "Ghoul" then


mobName = "GhoulSpawns"
elseif mob == "Human" then
mobName = "HumanSpawns"
elseif mob == "CCG" then
mobName = "CCGSpawns"
elseif mob == "SCCG" then
mobName = "AggroSpawns"
elseif mob == "Boss" then
mobName = "BossSpawns"
else
mobName = "Made by dah GoobsGoobies Big Grin"
end

local tweenS = game:GetService("TweenService")


local player = [Link]
local playerHRP = [Link]:WaitForChild("HumanoidRootPart")
local playerHumanoid = [Link]:WaitForChild("Humanoid")

function farm()
while true do
if [Link] ~= 0 then
for i,v in pairs([Link]:GetChildren()) do
if v:FindFirstChildWhichIsA("Model") and [Link] == mobName and not
v:FindFirstChild("Athlete") then
while true do
if v:FindFirstChildWhichIsA("Model") then
local parent = v:FindFirstChildWhichIsA("Model")
if parent:FindFirstChild("Humanoid") then
if [Link] ~= 0 then
local distance = ([Link] -
[Link]).magnitude
local tweenInfo = [Link](distance/travelSpeed)
local tweenGoal = {}
[Link] = [Link] +
[Link] * distanceFromMob
local playTween =
tweenS:Create(playerHRP,tweenInfo,tweenGoal)
if distance <= 10 then
local parentHRP =
parent:WaitForChild("HumanoidRootPart")
if mob == "Human" then
[Link] = [Link] +
[Link] * distanceFromMob
wait()
[Link] = [Link] +
[Link] * ((distanceFromMob * -1) + 2)
[Link] =
[Link]([Link],[Link])
else
[Link] = [Link] +
[Link] * distanceFromMob
end
else
playTween:Play()
end
wait()
elseif [Link] == 0 then
wait(2)
break
end
elseif not parent:FindFirstChild("Humanoid") then
wait(2)
break
end

elseif not v:FindFirstChildWhichIsA("Model") or


v:FindFirstChildWhichIsA("Model").[Link] == 0 then
wait(2)
break
end
end
end
end
elseif [Link] == 0 then
wait(2)
break
end
wait()
end
end

farm()
end)
end
[Link](LSXJJCB_fake_script)()
local function NCRI_fake_script() -- TextButton_5.LocalScript
local script = [Link]('LocalScript', TextButton_5)

[Link].MouseButton1Click:Connect(function()
local mob = "Boss"
local distanceFromMob = -3 -- How far you want to be behind the mob
local travelSpeed = 140 -- higher = faster -- 140 won't kill you, but if you go
too high you will die lol

--[[
Mobs to pick from -
-- Ghoul
-- Human
-- CCG
-- SCCG
-- Boss
]]--

local mobName

if mob == "Ghoul" then


mobName = "GhoulSpawns"
elseif mob == "Human" then
mobName = "HumanSpawns"
elseif mob == "CCG" then
mobName = "CCGSpawns"
elseif mob == "SCCG" then
mobName = "AggroSpawns"
elseif mob == "Boss" then
mobName = "BossSpawns"
else
mobName = "Made by dah GoobsGoobies Big Grin"
end
local tweenS = game:GetService("TweenService")
local player = [Link]
local playerHRP = [Link]:WaitForChild("HumanoidRootPart")
local playerHumanoid = [Link]:WaitForChild("Humanoid")

function farm()
while true do
if [Link] ~= 0 then
for i,v in pairs([Link]:GetChildren()) do
if v:FindFirstChildWhichIsA("Model") and [Link] == mobName and not
v:FindFirstChild("Athlete") then
while true do
if v:FindFirstChildWhichIsA("Model") then
local parent = v:FindFirstChildWhichIsA("Model")
if parent:FindFirstChild("Humanoid") then
if [Link] ~= 0 then
local distance = ([Link] -
[Link]).magnitude
local tweenInfo = [Link](distance/travelSpeed)
local tweenGoal = {}
[Link] = [Link] +
[Link] * distanceFromMob
local playTween =
tweenS:Create(playerHRP,tweenInfo,tweenGoal)
if distance <= 10 then
local parentHRP =
parent:WaitForChild("HumanoidRootPart")
if mob == "Human" then
[Link] = [Link] +
[Link] * distanceFromMob
wait()
[Link] = [Link] +
[Link] * ((distanceFromMob * -1) + 2)
[Link] =
[Link]([Link],[Link])
else
[Link] = [Link] +
[Link] * distanceFromMob
end
else
playTween:Play()
end
wait()
elseif [Link] == 0 then
wait(2)
break
end
elseif not parent:FindFirstChild("Humanoid") then
wait(2)
break
end

elseif not v:FindFirstChildWhichIsA("Model") or


v:FindFirstChildWhichIsA("Model").[Link] == 0 then
wait(2)
break
end
end
end
end
elseif [Link] == 0 then
wait(2)
break
end
wait()
end
end

farm()
end)
end
[Link](NCRI_fake_script)()
local function EHVD_fake_script() -- TextButton_6.LocalScript
local script = [Link]('LocalScript', TextButton_6)

[Link].MouseButton1Click:Connect(function()
[Link] = 0
end)
end
[Link](EHVD_fake_script)()

You might also like