function saveHighScore(score)
print("High score: "..tostring(score))
local file,err = io.open("high_score.txt",'w')
if file then
file:write(tostring(score))
file:close()
else
print("error:", err) -- not so hard?
end
end
Code Example |
---|
Lua :: get all players roblox |
Lua :: if string contains lua |
Lua :: lua not equal |
Lua :: how to get a random number in lua |
Lua :: luau make region |
Lua :: if part is touched |
Lua :: roblox __index and __newindex |
Lua :: roblox how to tween part color |
Lua :: gfjhhkn roblox |
Lua :: color3 not working lua |
Lua :: rotate object roblox |
Lua :: for i in pairs lua |
Lua :: print script lua |
Lua :: how to define a player roblox studio |
Lua :: lua string split |
Lua :: lua f animation |
Lua :: roblox studio pause physics |
Lua :: lua string |
Lua :: lua loop through string |
Lua :: lua how to print NUMBER |
Lua :: roblox can I have player animations on the server |
Matlab :: matlab if |
Matlab :: how to run a p code matlab |
Matlab :: matlab app designer axes buttondownfcn |
Basic :: NÃO CONSIGO MANDAR UM POST EM VBNET USANDO POSTMAN |
Elixir :: generate random number elixir |
Elixir :: .t() elixir |
Scala :: scala order list |
Actionscript :: hello world in actionscript |
Excel :: unhide rows in excel |