Categories > Coding > C# >

SendLuaScript(string_LuaScript) SendLuaCScript(string_LuaCScript)

Posts: 28

Threads: 10

Joined: Jun, 2022

Reputation: -4

Posted

What's the difference between SendLuaScript(string_LuaScript) SendLuaCScript(string_LuaCScript)?

  • 0

Posts: 0

Threads: 0

Joined: ?

Reputation:

Replied

one is to send lua scripts and one is to send luac scripts...

  • 0

Kura

kuraise

Posts: 138

Threads: 3

Joined: Jun, 2021

Reputation: 5

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()

*/
  • 0

Added

@68804 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.

  • 0

 

https://cdn.discordapp.com/attachments/877610317037858846/975469974405673041/Signature.png

Luau

Luau

Posts: 113

Threads: 24

Joined: May, 2022

Reputation: -33

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

  • 0

Luau

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )