If you want to learn how to LUA follow these steps
If you want to learn how to master scripting you have to start small. So i'm going to teach you how you should start.
The first game you should start working on is an obby. but lets start in the basics.
To find an object in explorer you have to start with game
game is just to tell that its on the game. Like explorer is the whole game.
It doesn't have to be work space it can be all the columns in explorer like "starter Gui" or "Starter player"
That is the first script you should learn. To start knowing more go to the roblox wiki's.
Ok now back to the obby's.
So start by trying to make a kill brick over and over in till you remember it.
local human = part.Parent:findFirstChild("Humanoid")
if (human == nil) then return end
human.Health = 0
Now start trying to make that over and over in till you remember it and remember there meanings.
NOTE:it will not work if you keep looking back at the script i gave you.
After you mastered that try to remember how to make a checkpoint script
local spawn = script.Parent
if hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid") then
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
local checkpointData = game.ServerStorage:FindFirstChild("CheckpointData")
if not checkpointData then
checkpointData = Instance.new("Model", game.ServerStorage)
checkpointData.Name = "CheckpointData"
local checkpoint = checkpointData:FindFirstChild(tostring(player.userId)) if not checkpoint then checkpoint = Instance.new("ObjectValue", checkpointData) checkpoint.Name = tostring(player.userId) player.CharacterAdded:connect(function(character) wait() character:WaitForChild("HumanoidRootPart").CFrame = game.ServerStorage.CheckpointData[tostring(player.userId)].Value.CFrame + Vector3.new(0, 4, 0) end) end checkpoint.Value = spawn end
I know this a little harder but if you want to learn you have to remember how to make it and know there meanings.
When you have mastered that you need to make an obby then keep on making more and more and without copying the spawns and kill bricks you have to script each one.