Lua Dist: https://luadist.org/repository/
Lua Binaries: https://luabinaries.sourceforge.net/
Check LUA: lua
https://github.com/pohka/Lua-Beginners-Guide
Lua Docs: https://www.lua.org/docs.html
https://www.youtube.com/watch?v=kgiEF1frHQ8
https://leafo.net/lapis/changelog.html
Homepage: http://leafo.net/lapis
Reference manual: http://leafo.net/lapis/reference.html
GitHub: https://github.com/leafo/lapis
Game 2 D
https://www.youtube.com/watch?v=I549C6SmUnk
https://www.youtube.com/playlist?list=PL1A1gsSe2tMzxf54D1OooafEnADpjZlP7
Go to https://www.roblox.com/create then choose start creating to download Roblox Application
Camera controls for studio are:
Move - WASD or Arrows
Jump- Spacebar
Look around- Hold right-mouse-button
Detail:
to move Forward- W
to move Away- S
to move Left- A
to move Right- D
to move Down- Q
to move Up- E
Focus on selected part- F (mouse)
Turn Camera-Right Mouse Button
Zoom in and Out- Scroll Wheel
Create Design: Blender 3D, Unity 3D, Maya, Paint 3D, and Unreal Engine
local name1 = storyMaker:GetInput("What is your name?")
local food1 = storyMaker:GetInput("What is your favourite food?")
local story = "In a tree on a hill lives a great wizard ".. name1..". Every morning, ".. name1.."loves eating a giant bowl of honey roasted ".. food1.."."
storyMaker:Write(story)
Full Version
-- GLOBAL VARIABLES
local storyMaker = require(script:WaitForChild("StoryMaker"))
-- Code controlling the game
local playing = true
while playing do
storyMaker:Reset()
-- Code story between the dashes
-- =============================================
local name1 = storyMaker:GetInput("What is your name?")
local food1 = storyMaker:GetInput("What is your favourite food?")
local story = "In a tree on a hill lives a great wizard ".. name1..". Every morning, ".. name1.."loves eating a giant bowl of honey roasted ".. food1.."."
-- =============================================
-- Add the story variable between the parenthesis below
storyMaker:Write(story)
-- Play again?
playing = storyMaker:PlayAgain()
end
# Insert the block, then go to explorer. Right click then
Rename Model become LavaFloor
Rename script become KillPlayer
#Insert the following script:
local lava = script.Parent
local function killPlayer(otherPart)
local partParent = otherPart.Parent
local humanoid = partParent:FindFirstChild("Humanoid")
if humanoid then
humanoid.Health = 0
end
end
lava.Touched:Connect(killPlayer)
# Click part of LavaFloor, then edit the properties/setting the appearance
BrickColor :NeonOrange
CastShadow : Checklist
Color :(215,115,60)
Material :Neon
Reflectance :0
# Debug and Run
#Insert Wall from the Models
Rename Model become Wall
Rename script become Disappear
#Insert the following script:
local platform = script.Parent
local function disappear ()
platform.CanCollide =false
platform.Transparency =1
end
disappear()
local function appear ()
platform.CanCollide =true
platform.Transparency =0
end
while true do
wait(3)
disappear()
wait(3)
appear()
end
# Debug and Run
# Rename Model become FaddingPlatform
# Rename script become FadeOnTouch
local platform = script.Parent
local isTouched = false
local function fade()
if not isTouched then
for count = 1, 10 do
platform.Transparency = count / 10
wait(0.1)
end
platform.CanCollide = false
wait(3)
platform.CanCollide = true
platform.Transparency = 0
end
end
platform.Touched:Connect(fade)
4. Fire, Smoke
# Insert the block, then go to explorer.
#Insert the following script:
wait(10)
game.Workspace.Part:ClearAllChildren()
5. Generate Object
local myPart =Instance.new("Part")
myPart.Transparency =0.5
myPart.Anchored=true
myPart.Position=Vector3.new(5,5,5)
myPart.Parent = game.Workspace --placing under Workspace
6. Insert Script in ServerScriptService
# Insert the block, then go to explorer.
#Insert the following script in ServerScriptService
game.Workspace.Part.Transparency=0
game.Workspace.Part.Material=Enum.Material.Neon
game.Workspace.Part.BrickColor=BrickColor.new("Brown")
game.Workspace.Part.Color=Color3.fromRGB(255, 170, 0)
game.Workspace.Part.Anchored=true
7. START, END, INCREASE
--START, END, INCREASE/DECREASE: (1, -1 or 2)
-- S, E, I
for i= 1, 5, 1 do
print("Hello"..i)
wait(0.5)
end
print("Finish")
# Insert the block, then go to explorer.
#Insert the following script:
-- S E I
for i =1, 30, 1 do
local myPart =Instance.new("Part")
myPart.Parent=workspace
myPart.Position=Vector3.new(10,10,10)
wait(0.1)
print(i)
end
print("finish")
8. Function and Returning
--next lesson
function createPart(transparency,color,anchored)
local part=Instance.new("Partx")
part.Tranparency=transparency
part.Color=color
part.Anchored=anchored
part.Parent=workspace
return part
end
local myReturnPart=createPart(0.5,Color3.fromRGB(255,0,0),true)
myReturnPart.Color=Color3.fromRGB(0,255,0)
Functions
--functions
function generatePart()
local part=Instance.new("Part")
part.Name="MyAwesomePart"
part.BrickColor=BrickColor.new("Really red")
part.Anchored=true
part.Position=Vector3.new(0,15,0)
part.Trancparency=0.5
part.Reflectance=0.6
part.CanCollide=false
part.Parent=workspace
end
generatePart()
--Next Lesson
function generatePart(name) --
local part=Instance.new("Part")
part.Name=name
part.BrickColor=BrickColor.new("Really red")
part.Anchored=true
part.Position=Vector3.new(0,15,0)
part.Trancparency=0.5
part.Reflectance=0.6
part.CanCollide=false
part.Parent=workspace
end
generatePart("PartNumberOne")
generatePart("PartNumberTwo")
generatePart("PartNumberThree")
generatePart("PartNumberfour")
--Next Lesson 2
function generatePart(name,isAnchored,reflectance) --
local part=Instance.new("Part")
part.Name=name
part.BrickColor=BrickColor.new("Really red")
part.Anchored=isAnchored
part.Position=Vector3.new(0,15,0)
part.Trancparency=0.5
part.Reflectance=reflectance
part.CanCollide=true
part.Parent=workspace
end
generatePart("Hamburger",false,1)
--Next Lesson 3
function printText(stringToPrint)
print(stringToPrint)
end
printText("Hello there this is roblox")
wait(5)
printText(This is a message)
--lesson 5: Function
--destroy()
game.Workspace.Part:Destroy()
--clone
local myClone=game.Workspace.Part:Clone()
myClone.Parent=game.Workspace
--lesson of event
function hello()
print("Hello World")
end
game.Workspace.Banana.Touched:Connect(hello)
--lesson
game.Workspace.Banana.Touched:Connect(function())
game.Workspace.Banana1.Touched:Connect(
function()
print(""hello world")
end
)
--lesson
game.Workspace.Banana1.Touched:Connect(
function()
print(""hello world")
end
)
while wait(0.1) do
game.Lighting:SetMinutesAfterMidnight(game.Lighting:GetMinutesAfterMidnight()+1)
end
Projects
# Insert the block, then setting Appearance:
ref:https://developer.roblox.com/en-us/onboarding/fading-trap/2
10 Best Car Games on Roblox
Simulator of a Vehicle
Speed Race
Sprinting Simulator II
Ultimate Driving
Jailbreak
Pacifico
Roblox Deathrun
Speed Run 4
GTA 5.
Street Racing Unleashed