Forum > Coding >

[Help] How to put the script into a button [HELP]

Posts: 16

Threads: 3

Joined: Jun, 2018

Reputation: 0

Posted

How do you put the script into a button that \n doesn't work well for me.. Help PLS!!
  • 0

Posts: 212

Threads: 42

Joined: May, 2018

Reputation: 0

Replied

Here's a little and simple example for you:

api.SendLimitedLua("game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 100 print('You were speeded');

-------

make sure to always put ' ' and not " " when you put a script in a button
  • 0

Posts: 16

Threads: 3

Joined: Jun, 2018

Reputation: 0

Replied

LuaMaster what about the long script?
  • 0

Posts: 53

Threads: 14

Joined: Jan, 2018

Reputation: 0

Replied

if its limited lua just do the thing a billion times or do an invisable 1 line textbox and make it so it executes that
  • 0

I use synapse sometimes
Languages i have experience with: c#, lua, javascript.

Posts: 369

Threads: 61

Joined: Apr, 2018

Reputation: 0

Replied

Ask Murphy for that, and you also.... you will become a script kiddie.
  • 0

Posts: 120

Threads: 19

Joined: Apr, 2018

Reputation: 1

Replied

if it's Lua-C just do
api.SendScript(@"script here");
the @ puts the entire script together.
and as said above,
use ' ' and not " " if there is anything in the script that is in quotation marks.
  • 0

Posts: 20

Threads: 2

Joined: Jun, 2018

Reputation: 0

Replied

it's not \n...

it's \r\n

or you can send pastebin stuff..was it...

 

SendScript(new WebClient().DownloadString(""));

  • 0

Users viewing this thread:

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