lua scripting tutorial code example

Example 1: where can i learn lua

Code Blue Youtube Tutorials

May he rest in peace.

Example 2: how to lua

-- Well, first, you could make a variable

local variable = true

-- If you want to print something in the output
print("Hello Output!")

-- Finally, the rest is up to you.

Example 3: Tool script example for lua

local Tool = script.Parent --Put This Script "INSIDE" Your Tool 

Tool.Activated:Connect(function()
	print("You Clicked Me")
end)

Tool.Deactivated:Connect(function()
	print("The Tool Got UnEquiped : D")
end)

Tool.Equipped:Connect(function()
	print("Thanks For Equiping me!")
end) --Officially Made By Rigby#9052 on Discord

Tags:

Misc Example