User:JulienDethurens/Example

From Legacy Roblox Wiki
Jump to navigationJump to search

Usage

Example

name[code]</syntaxhighlight>

Notes

The code argument is optional (because you could want to give an example about something that doesn't involve code), but the description argument is not and shouldn't be. Every example you give should have a description, because just giving code without explaining it is bad.

Example

Code

{{User:JulienDethurens/Example
|description=This code would print <samp>A player was added to the game!</samp> whenever a player joins the game.
|code=
game.Players.PlayerAdded:connect(function(player)
	print("A player was added to the game!")
end)
}}

Result

Example

This code would print A player was added to the game! whenever a player joins the game.game.Players.PlayerAdded:connect(function(player)

print("A player was added to the game!") end)