Categories > Coding > C# >
SendLuaScript(string_LuaScript) SendLuaCScript(string_LuaCScript)
Posted
What's the difference between SendLuaScript(string_LuaScript) SendLuaCScript(string_LuaCScript)?
Replied
one is to send lua scripts and one is to send luac scripts...
Cancel
Post
Mail me at sirweebdev@protonmail.com if you have any questions or you want to say anything to me, I'll reply (maybe).
Replied
LuaC is the compiler of Lua is built so it's like your coding on Lua using the C methods:
/* Script in LuaC; Random kill script I found on Google:
getglobal game
getfield -1 Players
getfield -1 LocalPlayer
getfield -1 Character
getfield -1 Humanoid
getfield -1 Destroy
pushvalue -2
pcall 1 0 0
emptystack
Script in Lua:
game.Players.LocalPlayer.Character.Humanoid:Destroy()
*/
Cancel
Post
Added
@SirWeeb Sort of how it works, it's like your coding Lua but using the C methods lol, it's confusing and I don't fully know how it works.
Cancel
Post
https://cdn.discordapp.com/attachments/877610317037858846/975469974405673041/Signature.png
Replied
Lua C also known as Lua embedded with C/C++. LuaC sends scritps that are similar to run as in DLL's.
For example:
print("Hey")
But in LC:
getglobal print
pushstring Hey
pcall 1 1 0
Cancel
Post
Luau
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post