Categories > Coding > C# >

SendLuaScript(string_LuaScript) SendLuaCScript(string_LuaCScript)

Posts: 31

Threads: 11

Joined: Jun, 2022

Reputation: -4

Posted

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

  • 0

Posts: 1316

Threads: 54

Joined: Jul, 2021

Reputation: 64

Replied

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

  • 0

Mail me at sirweebdev@protonmail.com if you have any questions or you want to say anything to me, I'll reply (maybe).

Kura

kuraise

Posts: 161

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

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

  • 0

 

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

Luau

Luau

Posts: 132

Threads: 25

Joined: May, 2022

Reputation: -32

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 )