Is there anyone out there willing to teach me how to code in Lua for Roblox? I have had very little experience in the LuaLearners website, as it got shut down a week after I found out about it, and I forgot much of what I learned. In summary, is anyone willing to teach me how to script? I would appreciate it greatly. I live in Ireland, so I think the timezone is GMT+1, so anyone in this timezone would make it more convenient for both of us.
I can show you the awnser! First lesson Variables and print. First we are learning how to make a variable. First click at the top of the screen of roblox studio and click view then output and basic objects and explorer and properties. Second go to basic objects then scroll on basic objects to scrips then double click it. Third type in
Pizza = 5 print(Pizza)
Test the game then look at the output and it should say 5 because pizza is 5 and we printed the value of pizza.
Second lesson Functions First insert a part in basic objects then select the part in explorer then double click script with the part selected in explorer.
function onTouch() Part.Transparency = 0.5 end script.Parent.Touched:connect(onTouch)
This make the part ghost like when you touch it. Third lesson string.len In the variable script you made go in it by double clicking it in explorer. Press enter once then type in the script
soul = "Hi!" print(string.len(soul))
The output would say 3 because there is 3 characters in Hi! Fourth lesson => and <= Make another line in the variable script and type in it
Coolness = 10 Poop = 5 if Coolness <= 20 or Poop => 10 then print("Coolness wins!") else print("Poop wins!") end
The output would print Coolness wins! because coolness is lower than 20 but poop isn't more than 10. --Hope this helps!--
Locked by adark and User#2
This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.
Why was this question closed?