Replace part of string lua

replace part of string lua name = “^aH^ai” name = name:gsub(“%^a”, “”)
replace part of string lua name = “^aH^ai” name = name:gsub(“%^a”, “”)
lua syntax cheat sheet chunk ::= {stat [`;´]} [laststat [`;´]] block ::= chunk stat ::= varlist `=´ explist | functioncall | do block end | while exp do block end | repeat block until exp | if exp then block {elseif exp then block} [else block] end | for Name `=´ exp `,´ exp [`,´ […]
Lua Slow walk script speed = 12 –Defualt Speed is “16” function onPlayerRespawned(character) wait(1) –Lodaing Delay local player = game.Players:GetPlayerFromCharacter(character) local human = character:findFirstChild(“Humanoid”) if player ~= nil and human ~= nil then human.WalkSpeed = speed end end game.Workspace.ChildAdded:connect(onPlayerRespawned) –A Script By Rigby#9052 on Discord
lua click detection local clickDetector = workspace.Part.ClickDetector function onMouseClick() print(“You clicked me!”) end clickDetector.MouseClick:connect(onMouseClick)
lua clear table for i=1, #tablevar do tablevar[i] = nil end
how to make a table in lua –You need to use this {} and put them in a varible local Table = {13,”1hihihi”, — u can even do tis {122,222}}
truncate table TRUNCATE TABLE Categories; what is truncate in sql DELETE – -DML COMMAND -Delete Rows from the table one by one -We can use where clause with Delete to delete single row -Delete is slower than truncate -ROLLBACK is possible with DELETE DROP- -DDL COMMAND -Delete the entire structure or schema -We can’t use […]
storing RGBA in mysql db UInt32 rgba = color.R | ( color.G << 8 ) | ( color.B << 16 ) | ( color.A << 24 ); Color color = Color.FromRgba( rgba & 0xFF, ( rgba >> 8 ) & 0xFF, ( rgba >> 16 ) & 0xFF, ( rgba >> 24 ) & 0xFF […]
sqlite3 attempt to write a readonly database //do the follow chown www-data /myproject chown www-data /myproject/db.sqlite3 chmod 777 /myproject/db.sqlite3
sqlite select query python import sqlite3 conn = sqlite3.connect(your_database_name) c = conn.cursor() c.execute(“SELECT * FROM tablename VALUES(value1,value2,…)”) conn.commit() conn.close()