|
| 02 Jul 2012 01:03 AM |
-- YOU NEED A StringValue! --
First you want to start off with the basics: The script to execute the inner workings(the script to execute the script.. XD) -- Which will MOST LIKELY be the .Chatted event(except for crazyman32...) -- Here's a tidbit of the script you may need: ---- game.Players.PlayerAdded:connect(function(plr) plr.Chatted:connect(function(msg) if msg:sub(1,2) == "s/" then -- depending on what you are trying to do ------ Rest when done ------ ----
Now that's all we have, this is where it gets tricky! you want to have one script(the text execution script*which is this:*) -- for this script the STRINGVALUE <--- is IN the script
loadstring(script.ScriptExe.Value)() -- ScriptExe is the name of the StringValue
A script named Normal should do, then put a StringValue named ScriptExe within the script(named Normal*or whatever you want to call it*).
-- HUGE NOTE: The chatting script is the PARENT of the Normal script(the load script) which INCLUDES the StringValue within the Normal script(load script)! -- {Disable the Normal script(load script)!}
Finishing the code: -- game.Players.PlayerAdded:connect(function(plr) plr.Chatted:connect(function(msg) if msg:sub(1,2) == "s/" then -- depending on what you are trying to do s = script.Normal:clone() s.Parent = script.Parent s.ScriptExe.Value = msg -- please keep in mind change ScriptExe to the name of your StringValue! s.Disabled = false end end) end)
There you have a very simple SB(Script Builder)! For reference you can check out my two SB's which I made by scratch I might add. One is partly GUI based and the other is not, but both have LocalScript and Normal Script functions. Pretty soon I'm thinking of UnCopyLocking those two games for people to enjoy learning off of or copying off of. |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2012 01:08 AM |
| Bump in the name of learning! |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2012 02:19 AM |
| I prefer using GUI's in Script Builders. Tends to be a lot more organized and user-friendly. |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2012 03:00 AM |
| Or just take one of them... derp |
|
|
| Report Abuse |
|
|
1WOOF1
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
|
| 02 Jul 2012 03:33 AM |
@thedeathmaster
Yep. Nothing says "hey, im proud of what i made" like taking somebody else's work. |
|
|
| Report Abuse |
|
|
| |
|
|
| 02 Jul 2012 01:51 PM |
Hey I made a script builder in 4 lines
function onChat(msg) loadstring(msg)() end game.Players.ServerLabs.Chatted:connect(onChat)
I'M SO PROUD :') |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2012 01:55 PM |
Or you could do that... I never thought of that LOL.
I CAN MAKE ONE IN THREE LINES!
game.Players.flappydavid.Chatted:connect(function(msg) loadstring(msg)() end)
WHAT NOW?! |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2012 01:56 PM |
I can even make one in one line!
game.Players.flappydavid.Chatted:connect(function(msg) loadstring(msg)() end)
|
|
|
| Report Abuse |
|
|
|
| 02 Jul 2012 01:57 PM |
| You need to have that script in a StringValue though... Just sayin' or it won't work, XD. |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2012 02:00 PM |
| Keep bumping this.. We need noobs to see it, XD. |
|
|
| Report Abuse |
|
|
jobro13
|
  |
| Joined: 05 Aug 2009 |
| Total Posts: 2865 |
|
|
| 02 Jul 2012 02:18 PM |
This is a fail script builder, just use destroy and poof.
Lets talk about script sandboxing, thats much better. Or just new languages inside lua.
Is that possible? Yep. Use string.gsub and you are done. |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 02 Jul 2012 02:20 PM |
| Chuck Norris can make a SB out of no lines. |
|
|
| Report Abuse |
|
|
| |
|
|
| 02 Jul 2012 03:01 PM |
| job, either your stupid or retarded... Or just high, I pick all the above. Also says the one who can't make one(you). |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2012 03:02 PM |
Oyus
-GD987, the FPS Developer- |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2012 03:24 PM |
| Question: How do you access this SB? |
|
|
| Report Abuse |
|
|
|
| 04 Jul 2012 01:42 PM |
| Latest news, I put most of my place up for take, but three. So my places you can copy and learn from, you go in and play. |
|
|
| Report Abuse |
|
|
|
| 07 Jul 2012 12:28 AM |
| Well if you take one of uncopylocked ones for you're own good, well that is fine |
|
|
| Report Abuse |
|
|
|
| 07 Jul 2012 12:30 AM |
> I can even make one in one line!
You can make *anything* into 1 line. Even something like Person299's commands. |
|
|
| Report Abuse |
|
|
| |
|