-- Gui to Lua -- Version: 3.2 -- Instances: local V0C0N HUB_lobby = Instance.new("ScreenGui") local Frame = Instance.new("Frame") local UICorner = Instance.new("UICorner") local TextLabel = Instance.new("TextLabel") local loadhere = Instance.new("TextLabel") local Frame_2 = Instance.new("Frame") local UIGradient = Instance.new("UIGradient") local TextLabel_2 = Instance.new("TextLabel") local loadcode = Instance.new("TextButton") local UIGradient_2 = Instance.new("UIGradient") local UICorner_2 = Instance.new("UICorner") local TextLabel_3 = Instance.new("TextLabel") local TextLabel_4 = Instance.new("TextLabel") --Properties: bordub_lobby.Name = "bordub_lobby" bordub_lobby.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") bordub_lobby.ZIndexBehavior = Enum.ZIndexBehavior.Sibling bordub_lobby.ResetOnSpawn = false Frame.Parent = bordub_lobby Frame.BackgroundColor3 = Color3.fromRGB(71, 71, 71) Frame.Position = UDim2.new(0, 550, 0, 333) Frame.Size = UDim2.new(0, 599, 0, 355) UICorner.CornerRadius = UDim.new(0, 3) UICorner.Parent = Frame TextLabel.Parent = Frame TextLabel.BackgroundColor3 = Color3.fromRGB(71, 71, 71) TextLabel.BackgroundTransparency = 1.000 TextLabel.BorderSizePixel = 0 TextLabel.Size = UDim2.new(0, 150, 0, 50) TextLabel.Font = Enum.Font.Oswald TextLabel.Text = "Bor" TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0) TextLabel.TextSize = 57.000 loadhere.Name = "loadhere" loadhere.Parent = Frame loadhere.BackgroundColor3 = Color3.fromRGB(71, 71, 71) loadhere.BackgroundTransparency = 1.000 loadhere.BorderSizePixel = 0 loadhere.Position = UDim2.new(0, 200, 0, 135) loadhere.Size = UDim2.new(0, 200, 0, 50) loadhere.Visible = false loadhere.Font = Enum.Font.Oswald loadhere.Text = "click here to load" loadhere.TextColor3 = Color3.fromRGB(255, 255, 255) loadhere.TextSize = 57.000 Frame_2.Parent = Frame Frame_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Frame_2.BorderSizePixel = 0 Frame_2.Position = UDim2.new(0, 0, 0, 55) Frame_2.Size = UDim2.new(0, 599, 0, 3) UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(0.00, Color3.fromRGB(224, 224, 224)), ColorSequenceKeypoint.new(0.96, Color3.fromRGB(149, 149, 149)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(255, 255, 255))} UIGradient.Offset = Vector2.new(1, 0.899999976) UIGradient.Rotation = 90 UIGradient.Parent = Frame TextLabel_2.Parent = Frame TextLabel_2.BackgroundColor3 = Color3.fromRGB(71, 71, 71) TextLabel_2.BackgroundTransparency = 1.000 TextLabel_2.BorderSizePixel = 0 TextLabel_2.Position = UDim2.new(0, 415, 0, 66) TextLabel_2.Size = UDim2.new(0, 150, 0, 50) TextLabel_2.Font = Enum.Font.Oswald TextLabel_2.Text = "load_fx" TextLabel_2.TextColor3 = Color3.fromRGB(0, 0, 0) TextLabel_2.TextScaled = true TextLabel_2.TextSize = 57.000 TextLabel_2.TextWrapped = true loadcode.Name = "load code" loadcode.Parent = Frame loadcode.Active = false loadcode.BackgroundColor3 = Color3.fromRGB(90, 90, 90) loadcode.Position = UDim2.new(0, 200, 0, 199) loadcode.Size = UDim2.new(0, 200, 0, 50) loadcode.Visible = false loadcode.Font = Enum.Font.Oswald loadcode.Text = "LOAD" loadcode.TextColor3 = Color3.fromRGB(0, 0, 0) loadcode.TextSize = 43.000 UIGradient_2.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(0.00, Color3.fromRGB(224, 224, 224)), ColorSequenceKeypoint.new(0.96, Color3.fromRGB(149, 149, 149)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(255, 255, 255))} UIGradient_2.Offset = Vector2.new(1, 0.899999976) UIGradient_2.Rotation = 90 UIGradient_2.Parent = loadcode UICorner_2.CornerRadius = UDim.new(0, 3) UICorner_2.Parent = loadcode TextLabel_3.Parent = Frame TextLabel_3.BackgroundColor3 = Color3.fromRGB(71, 71, 71) TextLabel_3.BackgroundTransparency = 1.000 TextLabel_3.BorderSizePixel = 0 TextLabel_3.Position = UDim2.new(0, 50, 0, 0) TextLabel_3.Size = UDim2.new(0, 150, 0, 50) TextLabel_3.Font = Enum.Font.Oswald TextLabel_3.Text = "dub" TextLabel_3.TextColor3 = Color3.fromRGB(255, 255, 255) TextLabel_3.TextSize = 57.000 TextLabel_4.Parent = Frame TextLabel_4.BackgroundColor3 = Color3.fromRGB(71, 71, 71) TextLabel_4.BackgroundTransparency = 1.000 TextLabel_4.BorderSizePixel = 0 TextLabel_4.Position = UDim2.new(0, 50, 0, 66) TextLabel_4.Size = UDim2.new(0, 150, 0, 50) TextLabel_4.Font = Enum.Font.Oswald TextLabel_4.Text = "if it doesnt load you needa get whitelisted" TextLabel_4.TextColor3 = Color3.fromRGB(0, 0, 0) TextLabel_4.TextScaled = true TextLabel_4.TextSize = 57.000 TextLabel_4.TextWrapped = true -- Scripts: local function ZMACFX_fake_script() -- Frame.LocalScript local script = Instance.new('LocalScript', Frame) local UserInputService = game:GetService("UserInputService") local runService = (game:GetService("RunService")); local gui = script.Parent local dragging local dragInput local dragStart local startPos function Lerp(a, b, m) return a + (b - a) * m end; local lastMousePos local lastGoalPos local DRAG_SPEED = (8); -- // The speed of the UI darg. function Update(dt) if not (startPos) then return end; if not (dragging) and (lastGoalPos) then gui.Position = UDim2.new(startPos.X.Scale, Lerp(gui.Position.X.Offset, lastGoalPos.X.Offset, dt * DRAG_SPEED), startPos.Y.Scale, Lerp(gui.Position.Y.Offset, lastGoalPos.Y.Offset, dt * DRAG_SPEED)) return end; local delta = (lastMousePos - UserInputService:GetMouseLocation()) local xGoal = (startPos.X.Offset - delta.X); local yGoal = (startPos.Y.Offset - delta.Y); lastGoalPos = UDim2.new(startPos.X.Scale, xGoal, startPos.Y.Scale, yGoal) gui.Position = UDim2.new(startPos.X.Scale, Lerp(gui.Position.X.Offset, xGoal, dt * DRAG_SPEED), startPos.Y.Scale, Lerp(gui.Position.Y.Offset, yGoal, dt * DRAG_SPEED)) end; gui.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = gui.Position lastMousePos = UserInputService:GetMouseLocation() input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) gui.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then dragInput = input end end) runService.Heartbeat:Connect(Update) end coroutine.wrap(ZMACFX_fake_script)() local function GDDBS_fake_script() -- TextLabel_2.LocalScript local script = Instance.new('LocalScript', TextLabel_2) r = script.Parent g = script.Parent.Parent["load code"] b = script.Parent.Parent:WaitForChild("fx") wait() r.Text = "Loading..." b:play() wait(1) r.Text = "Loading.." b:play() wait(1) r.Text = "Loading." b:play() wait(1) r.Text = "Done." b:play() g.Visible = true end coroutine.wrap(GDDBS_fake_script)() local function KAZLG_fake_script() -- loadcode.LocalScript local script = Instance.new('LocalScript', loadcode) local click = script.Parent click.MouseButton1Down:Connect(function() local effect = Instance.new("Sound", script.Parent) effect.SoundId = "rbxassetid://4526034708" effect.Volume = 10 effect:play() end) end coroutine.wrap(KAZLG_fake_script)() local function YWYLDH_fake_script() -- loadcode.LocalScript local script = Instance.new('LocalScript', loadcode) local g = script.Parent g.MouseButton1Down:Connect(function() wait() script.Parent.Parent.Parent:Destroy() wait() -- Gui to Lua -- Version: 3.2 -- Instances: local bordub_main = Instance.new("ScreenGui") local bar = Instance.new("Frame") local UICorner = Instance.new("UICorner") local Frame = Instance.new("Frame") local UICorner_2 = Instance.new("UICorner") local TextLabel = Instance.new("TextLabel") local TextLabel_2 = Instance.new("TextLabel") local EXIT = Instance.new("TextButton") local UICorner_3 = Instance.new("UICorner") local Frame_2 = Instance.new("Frame") local TextLabel_3 = Instance.new("TextLabel") local mainui = Instance.new("Frame") local UICorner_4 = Instance.new("UICorner") local Frame_3 = Instance.new("Frame") local Frame_4 = Instance.new("Frame") local Lowhold = Instance.new("TextButton") local Frame_5 = Instance.new("Frame") local UICorner_5 = Instance.new("UICorner") local Backpack = Instance.new("TextButton") local Frame_6 = Instance.new("Frame") local UICorner_6 = Instance.new("UICorner") local Shoulder = Instance.new("TextButton") local Frame_7 = Instance.new("Frame") local UICorner_7 = Instance.new("UICorner") local NormalHold = Instance.new("TextButton") local Frame_8 = Instance.new("Frame") local UICorner_8 = Instance.new("UICorner") local Grips = Instance.new("TextLabel") local Frame_9 = Instance.new("Frame") local UICorner_9 = Instance.new("UICorner") local Vis = Instance.new("TextButton") local Frame_10 = Instance.new("Frame") local UICorner_10 = Instance.new("UICorner") local EquipItems = Instance.new("TextButton") local Frame_11 = Instance.new("Frame") local UICorner_11 = Instance.new("UICorner") local Gtools = Instance.new("TextButton") local Frame_12 = Instance.new("Frame") local UICorner_12 = Instance.new("UICorner") local Demesh = Instance.new("TextButton") local Frame_13 = Instance.new("Frame") local UICorner_13 = Instance.new("UICorner") local Dupe = Instance.new("TextButton") local Frame_14 = Instance.new("Frame") local UICorner_14 = Instance.new("UICorner") local ID = Instance.new("TextBox") local Frame_15 = Instance.new("Frame") local UICorner_15 = Instance.new("UICorner") local Play = Instance.new("TextButton") local Frame_16 = Instance.new("Frame") local UICorner_16 = Instance.new("UICorner") local Amount = Instance.new("TextBox") local Frame_17 = Instance.new("Frame") local UICorner_17 = Instance.new("UICorner") local Frame_18 = Instance.new("Frame") local Frame_19 = Instance.new("Frame") local fIX = Instance.new("TextButton") local Frame_20 = Instance.new("Frame") local UICorner_18 = Instance.new("UICorner") local Presets = Instance.new("ScrollingFrame") local Frame_21 = Instance.new("Frame") local Ring = Instance.new("TextButton") local Frame_22 = Instance.new("Frame") local UICorner_19 = Instance.new("UICorner") local UIListLayout = Instance.new("UIListLayout") local Worm = Instance.new("TextButton") local Frame_23 = Instance.new("Frame") local UICorner_20 = Instance.new("UICorner") local Line = Instance.new("TextButton") local Frame_24 = Instance.new("Frame") local UICorner_21 = Instance.new("UICorner") local Wall = Instance.new("TextButton") local Frame_25 = Instance.new("Frame") local UICorner_22 = Instance.new("UICorner") local Normal = Instance.new("TextButton") local Frame_26 = Instance.new("Frame") local UICorner_23 = Instance.new("UICorner") local Frame_27 = Instance.new("Frame") local settings = Instance.new("Frame") local offset = Instance.new("TextBox") local Frame_28 = Instance.new("Frame") local UICorner_24 = Instance.new("UICorner") local TextLabel_4 = Instance.new("TextLabel") local angular = Instance.new("TextBox") local Frame_29 = Instance.new("Frame") local UICorner_25 = Instance.new("UICorner") local TextLabel_5 = Instance.new("TextLabel") local speed = Instance.new("TextBox") local Frame_30 = Instance.new("Frame") local UICorner_26 = Instance.new("UICorner") local TextLabel_6 = Instance.new("TextLabel") local Amountofradios = Instance.new("TextBox") local Frame_31 = Instance.new("Frame") local UICorner_27 = Instance.new("UICorner") local TextLabel_7 = Instance.new("TextLabel") local Frame_32 = Instance.new("Frame") --Properties: bordub_main.Name = "bordub_main" bordub_main.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") bordub_main.ZIndexBehavior = Enum.ZIndexBehavior.Sibling bordub_main.ResetOnSpawn = false bar.Name = "bar" bar.Parent = bordub_main bar.BackgroundColor3 = Color3.fromRGB(59, 59, 59) bar.Position = UDim2.new(0, 250, 0, 255) bar.Size = UDim2.new(0, 255, 0, 37) UICorner.CornerRadius = UDim.new(0, 3) UICorner.Parent = bar Frame.Parent = bar Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Frame.BorderSizePixel = 0 Frame.Size = UDim2.new(0, 255, 0, 4) UICorner_2.CornerRadius = UDim.new(0, 3) UICorner_2.Parent = Frame TextLabel.Parent = Frame TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255) TextLabel.BackgroundTransparency = 1.000 TextLabel.Size = UDim2.new(0, 99, 0, 35) TextLabel.Font = Enum.Font.Oswald TextLabel.Text = "Bor" TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0) TextLabel.TextScaled = true TextLabel.TextSize = 43.000 TextLabel.TextWrapped = true TextLabel_2.Parent = Frame TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255) TextLabel_2.BackgroundTransparency = 1.000 TextLabel_2.Position = UDim2.new(0, 35, 0, 0) TextLabel_2.Size = UDim2.new(0, 99, 0, 35) TextLabel_2.Font = Enum.Font.Oswald TextLabel_2.Text = "Dub" TextLabel_2.TextColor3 = Color3.fromRGB(255, 255, 255) TextLabel_2.TextScaled = true TextLabel_2.TextSize = 43.000 TextLabel_2.TextWrapped = true EXIT.Name = "EXIT" EXIT.Parent = bar EXIT.BackgroundColor3 = Color3.fromRGB(255, 72, 0) EXIT.Position = UDim2.new(0, 225, 0, 9) EXIT.Size = UDim2.new(0, 15, 0, 15) EXIT.Font = Enum.Font.SourceSans EXIT.Text = "" EXIT.TextColor3 = Color3.fromRGB(0, 0, 0) EXIT.TextSize = 14.000 UICorner_3.CornerRadius = UDim.new(0, 3) UICorner_3.Parent = EXIT Frame_2.Parent = bar Frame_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Frame_2.BackgroundTransparency = 1.000 Frame_2.BorderSizePixel = 0 Frame_2.Size = UDim2.new(0, 255, 0, 37) TextLabel_3.Parent = bar TextLabel_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255) TextLabel_3.BackgroundTransparency = 1.000 TextLabel_3.Position = UDim2.new(0, 50, 0, 0) TextLabel_3.Size = UDim2.new(0, 200, 0, 36) TextLabel_3.Font = Enum.Font.Oswald TextLabel_3.Text = "V:2" TextLabel_3.TextColor3 = Color3.fromRGB(0, 0, 0) TextLabel_3.TextScaled = true TextLabel_3.TextSize = 14.000 TextLabel_3.TextWrapped = true mainui.Name = "mainui" mainui.Parent = bordub_main mainui.BackgroundColor3 = Color3.fromRGB(59, 59, 59) mainui.Position = UDim2.new(0, 250, 0, 295) mainui.Size = UDim2.new(0, 1225, 0, 300) UICorner_4.CornerRadius = UDim.new(0, 3) UICorner_4.Parent = mainui Frame_3.Parent = mainui Frame_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Frame_3.BackgroundTransparency = 0.500 Frame_3.BorderSizePixel = 0 Frame_3.Position = UDim2.new(0, 145, 0, 5) Frame_3.Size = UDim2.new(0, 3, 0, 295) Frame_4.Parent = mainui Frame_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Frame_4.BackgroundTransparency = 0.500 Frame_4.BorderSizePixel = 0 Frame_4.Position = UDim2.new(0, 455, 0, 5) Frame_4.Size = UDim2.new(0, 3, 0, 295) Lowhold.Name = "Lowhold" Lowhold.Parent = mainui Lowhold.BackgroundColor3 = Color3.fromRGB(67, 67, 67) Lowhold.Position = UDim2.new(0, 10, 0, 15) Lowhold.Size = UDim2.new(0, 125, 0, 50) Lowhold.Font = Enum.Font.Oswald Lowhold.Text = "Lowhold" Lowhold.TextColor3 = Color3.fromRGB(0, 0, 0) Lowhold.TextSize = 33.000 Lowhold.TextWrapped = true Frame_5.Parent = Lowhold Frame_5.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Frame_5.BackgroundTransparency = 0.500 Frame_5.BorderSizePixel = 0 Frame_5.Size = UDim2.new(0, 125, 0, 2) UICorner_5.CornerRadius = UDim.new(0, 3) UICorner_5.Parent = Lowhold Backpack.Name = "Backpack" Backpack.Parent = mainui Backpack.BackgroundColor3 = Color3.fromRGB(67, 67, 67) Backpack.Position = UDim2.new(0, 10, 0, 75) Backpack.Size = UDim2.new(0, 125, 0, 50) Backpack.Font = Enum.Font.Oswald Backpack.Text = "Backpack" Backpack.TextColor3 = Color3.fromRGB(0, 0, 0) Backpack.TextSize = 33.000 Backpack.TextWrapped = true Frame_6.Parent = Backpack Frame_6.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Frame_6.BackgroundTransparency = 0.500 Frame_6.BorderSizePixel = 0 Frame_6.Size = UDim2.new(0, 125, 0, 2) UICorner_6.CornerRadius = UDim.new(0, 3) UICorner_6.Parent = Backpack Shoulder.Name = "Shoulder" Shoulder.Parent = mainui Shoulder.BackgroundColor3 = Color3.fromRGB(67, 67, 67) Shoulder.Position = UDim2.new(0, 10, 0, 135) Shoulder.Size = UDim2.new(0, 125, 0, 50) Shoulder.Font = Enum.Font.Oswald Shoulder.Text = "Shoulder" Shoulder.TextColor3 = Color3.fromRGB(0, 0, 0) Shoulder.TextSize = 33.000 Shoulder.TextWrapped = true Frame_7.Parent = Shoulder Frame_7.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Frame_7.BackgroundTransparency = 0.500 Frame_7.BorderSizePixel = 0 Frame_7.Size = UDim2.new(0, 125, 0, 2) UICorner_7.CornerRadius = UDim.new(0, 3) UICorner_7.Parent = Shoulder NormalHold.Name = "Normal Hold" NormalHold.Parent = mainui NormalHold.BackgroundColor3 = Color3.fromRGB(67, 67, 67) NormalHold.Position = UDim2.new(0, 10, 0, 195) NormalHold.Size = UDim2.new(0, 125, 0, 50) NormalHold.Font = Enum.Font.Oswald NormalHold.Text = "Normal Hold" NormalHold.TextColor3 = Color3.fromRGB(0, 0, 0) NormalHold.TextSize = 33.000 NormalHold.TextWrapped = true Frame_8.Parent = NormalHold Frame_8.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Frame_8.BackgroundTransparency = 0.500 Frame_8.BorderSizePixel = 0 Frame_8.Size = UDim2.new(0, 125, 0, 2) UICorner_8.CornerRadius = UDim.new(0, 3) UICorner_8.Parent = NormalHold Grips.Name = "Grips" Grips.Parent = mainui Grips.BackgroundColor3 = Color3.fromRGB(67, 67, 67) Grips.Position = UDim2.new(0, 10, 0, 253) Grips.Size = UDim2.new(0, 125, 0, 40) Grips.Font = Enum.Font.Oswald Grips.Text = "Grips" Grips.TextColor3 = Color3.fromRGB(0, 0, 0) Grips.TextScaled = true Grips.TextSize = 14.000 Grips.TextWrapped = true Frame_9.Parent = Grips Frame_9.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Frame_9.BackgroundTransparency = 0.500 Frame_9.BorderSizePixel = 0 Frame_9.Size = UDim2.new(0, 125, 0, 2) UICorner_9.CornerRadius = UDim.new(0, 3) UICorner_9.Parent = Grips Vis.Name = "Vis" Vis.Parent = mainui Vis.BackgroundColor3 = Color3.fromRGB(67, 67, 67) Vis.Position = UDim2.new(0, 175, 0, 15) Vis.Size = UDim2.new(0, 255, 0, 50) Vis.Font = Enum.Font.Oswald Vis.Text = "Visualise" Vis.TextColor3 = Color3.fromRGB(0, 0, 0) Vis.TextSize = 33.000 Vis.TextWrapped = true Frame_10.Parent = Vis Frame_10.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Frame_10.BackgroundTransparency = 0.500 Frame_10.BorderSizePixel = 0 Frame_10.Size = UDim2.new(0, 255, 0, 2) UICorner_10.CornerRadius = UDim.new(0, 3) UICorner_10.Parent = Vis EquipItems.Name = "Equip Items" EquipItems.Parent = mainui EquipItems.BackgroundColor3 = Color3.fromRGB(67, 67, 67) EquipItems.Position = UDim2.new(0, 175, 0, 75) EquipItems.Size = UDim2.new(0, 255, 0, 50) EquipItems.Font = Enum.Font.Oswald EquipItems.Text = "Etools" EquipItems.TextColor3 = Color3.fromRGB(0, 0, 0) EquipItems.TextSize = 33.000 EquipItems.TextWrapped = true Frame_11.Parent = EquipItems Frame_11.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Frame_11.BackgroundTransparency = 0.500 Frame_11.BorderSizePixel = 0 Frame_11.Size = UDim2.new(0, 255, 0, 2) UICorner_11.CornerRadius = UDim.new(0, 3) UICorner_11.Parent = EquipItems Gtools.Name = "Gtools" Gtools.Parent = mainui Gtools.BackgroundColor3 = Color3.fromRGB(67, 67, 67) Gtools.Position = UDim2.new(0, 175, 0, 205) Gtools.Size = UDim2.new(0, 255, 0, 50) Gtools.Font = Enum.Font.Oswald Gtools.Text = "Gtools" Gtools.TextColor3 = Color3.fromRGB(0, 0, 0) Gtools.TextSize = 33.00
Write, Run & Share Lua code online using OneCompiler's Lua online compiler for free. It's one of the robust, feature-rich online compilers for Lua language, running the latest Lua version 5.4. Getting started with the OneCompiler's Lua editor is easy and fast. The editor shows sample boilerplate code when you choose language as Lua and start coding.
OneCompiler's Lua online editor supports stdin and users can give inputs to programs using the STDIN textbox under the I/O tab. Following is a sample Lua program which takes name as input and prints hello message with your name.
name = io.read("*a")
print ("Hello ", name)
Lua is a light weight embeddable scripting language which is built on top of C. It is used in almost all kind of applications like games, web applications, mobile applications, image processing etc. It's a very powerful, fast, easy to learn, open-source scripting language.
-- global variables
a = 10
-- local variables
local x = 30
Value Type | Description |
---|---|
number | Represents numbers |
string | Represents text |
nil | Differentiates values whether it has data or not |
boolean | Value can be either true or false |
function | Represents a sub-routine |
userdata | Represents arbitary C data |
thread | Represents independent threads of execution. |
table | Can hold any value except nil |
While is also used to iterate a set of statements based on a condition. Usually while is preferred when number of iterations are not known in advance.
while(condition)
do
--code
end
Repeat-Until is also used to iterate a set of statements based on a condition. It is very similar to Do-While, it is mostly used when you need to execute the statements atleast once.
repeat
--code
until( condition )
For loop is used to iterate a set of statements based on a condition.
for init,max/min value, increment
do
--code
end
Function is a sub-routine which contains set of statements. Usually functions are written when multiple calls are required to same set of statements which increase re-usuability and modularity.
optional_function_scope function function_name( argument1, argument2, argument3........, argumentn)
--code
return params with comma seperated
end