A Roblox Community
You must log in to view most of the sites content. If you do not already have an account click Register below...

A Roblox Community

A community of Robloxians who want to learn to script and build on Roblox Studio.
 
HomeFAQRegisterLog in
If you're a experienced coder make some tutorials! It would really help the site grow.
Make sure you read the rules(Which can be found by clicking here)
If you're a beginner at coding, try some tutorials.
We have many Moderators/Admins watching this site. Contact them with Questions.
Let us know what your favorite sport is. By clicking here to vote (Click here)
This site is becoming inactive. Lets make it active.
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Top posters
blueymaddog
 
naknak
 
Supernapalm
 
m27frogy
 
slayer9365
 
myrco919
 
branefreez
 
ninga95
 
CloneTrooper787
 
raboy117
 
Top posting users this month
Latest topics
» Genesis Point
July 17th 2014, 5:04 pm by branefreez

» Where to go from here.
July 17th 2014, 3:55 am by m27frogy

» Reward System
July 17th 2014, 3:41 am by m27frogy

» Script Request
July 10th 2014, 9:43 am by naknak

» local scripts?
July 10th 2014, 9:39 am by naknak

» Project: Reconstruction [Died]
July 10th 2014, 9:36 am by naknak

» Ambassador!
June 18th 2014, 5:21 pm by m27frogy

» Hi. I am new here
April 26th 2014, 2:01 pm by altshiftkey

» What's your favorite sport?
January 1st 2014, 11:13 am by m27frogy

» FlashLight Script
January 1st 2014, 11:11 am by m27frogy

» Gun Making! [READ DESC]
January 1st 2014, 11:10 am by m27frogy

» Hi, I am new here!
November 26th 2013, 12:33 pm by Keanu73

» Improve Coding
October 26th 2013, 10:12 am by pook03

» Simple Button
September 1st 2013, 3:19 pm by branefreez

» I'm new here.
September 1st 2013, 3:17 pm by branefreez

» Hi, I'm new!
July 2nd 2013, 11:53 am by DrPlank

» Admin Chest Plate Giver
June 20th 2013, 4:18 am by recnic

» Admin only GUI?
May 29th 2013, 9:46 am by branefreez

» hi i am new here
May 18th 2013, 7:42 pm by MrNicNac

» Admin/GUI Doors
May 6th 2013, 8:05 am by 1stRecon01

How to make a SIMPLE command script511
Share | 
 

 How to make a SIMPLE command script

View previous topic View next topic Go down 
Go to page : 1, 2  Next
AuthorMessage
naknak
Administrator
Administrator


Posts: 868
Join date: 2010-07-30

PostSubject: How to make a SIMPLE command script   July 31st 2010, 6:22 am

There really is know simple way to make a command script, but we can make a simplified one. Here is a short reset command script:
Code:
game.Players.PlayerAdded:connect(function(newPlayer) --when an new player enters...
   newPlayer.Chatted:connect(function(msg) --they can chat to activate the function...
      if msg:lower() == "reset" then --and if they said "reset"...
         if newPlayer.Character then --and they have a character,
            newPlayer.Character:BreakJoints() --then you die
         end
      end
   end)
end)
There are better ways to organize this kind of script if there are multiple commands, if you want to know how, please ask...


Last edited by naknak on July 31st 2010, 9:28 am; edited 1 time in total (Reason for editing : It needed more explaination)
Back to top Go down
Bobbyfishstick5
Expert Scripter
Expert Scripter


Posts: 13
Join date: 2010-07-30
Age: 18

PostSubject: Re: How to make a SIMPLE command script   July 31st 2010, 7:34 am

Total awesomeness!
Back to top Go down
naknak
Administrator
Administrator


Posts: 868
Join date: 2010-07-30

PostSubject: Re: How to make a SIMPLE command script   July 31st 2010, 7:38 am

I am the only one with any reputation right now :D
Back to top Go down
Prodigy
Administrator
Administrator


Posts: 58
Join date: 2010-07-28

PostSubject: Re: How to make a SIMPLE command script   July 31st 2010, 7:56 am

Moved it to a better suited forum(The intermediate one).

You should break down and explain the script, so they don't just copy and paste.
Back to top Go down
http://roblox.youneed.us
naknak
Administrator
Administrator


Posts: 868
Join date: 2010-07-30

PostSubject: Re: How to make a SIMPLE command script   July 31st 2010, 9:29 am

there, it is fixed (I think)
Back to top Go down
blueymaddog
Administrator
Administrator


Posts: 1081
Join date: 2010-12-09
Age: 16

PostSubject: Re: How to make a SIMPLE command script   January 18th 2011, 3:29 am

yep. This would give people a great start to chat commands!

_________________
blueymaddog
Administrator • Moderator • Expert Scripter
PM: blueymaddog
<+1 post. ujelly?>
Back to top Go down
lukenuke75
Novice Scripter
Novice Scripter


Posts: 38
Join date: 2011-03-07
Age: 17

PostSubject: Re: How to make a SIMPLE command script   March 8th 2011, 1:26 pm

Personally i would not have used an anonymous function. Mainly because it is not as neat as the declared functions. Plus, i think it would be easier to use the declared function instead. Thus giving you more room and less confusion over what goes where.



5/10
Back to top Go down
naknak
Administrator
Administrator


Posts: 868
Join date: 2010-07-30

PostSubject: Re: How to make a SIMPLE command script   March 8th 2011, 7:39 pm

If I wrote it, I know exactly what it says. My scripting style is just extremely messy.
Back to top Go down
blueymaddog
Administrator
Administrator


Posts: 1081
Join date: 2010-12-09
Age: 16

PostSubject: Re: How to make a SIMPLE command script   March 27th 2011, 3:31 am

lol, most of the time my scripts don't make sense to people cuz my vats are abbreviated and shorted.
eg: Player becomes pl. :P


_________________
blueymaddog
Administrator • Moderator • Expert Scripter
PM: blueymaddog
<+1 post. ujelly?>
Back to top Go down
naknak
Administrator
Administrator


Posts: 868
Join date: 2010-07-30

PostSubject: Re: How to make a SIMPLE command script   March 27th 2011, 6:39 pm

Workspace becomes "W", Lighting becomes "L", etc... If you were to read one of my more large scripts you wouldn't be able to get very far.
Back to top Go down
Supernapalm
Expert Scripter
Expert Scripter


Posts: 393
Join date: 2011-01-17

PostSubject: Re: How to make a SIMPLE command script   March 29th 2011, 6:09 pm

well my variables are declared in alphabetical order AND compressed. so if i declared Workspace, Lighting, SoundService all in order it would be something like this:

a=workspace b=game.Lighting c=game.SoundService

so my in line scripting would just keep going until it reaches the maximum length of the line. oh, and i count my code length in commands. and this script is 3 lines long
Back to top Go down
http://hackthissite.org
naknak
Administrator
Administrator


Posts: 868
Join date: 2010-07-30

PostSubject: Re: How to make a SIMPLE command script   March 30th 2011, 4:25 am

if you used "a=workspace" then any smart virus could break that script ;)
Back to top Go down
myrco919
Intermediate Scripter
Intermediate Scripter


Posts: 190
Join date: 2011-01-21
Age: 16
Location: Holland

PostSubject: Re: How to make a SIMPLE command script   April 4th 2011, 5:38 am

naknak wrote:
If I wrote it, I know exactly what it says. My scripting style is just extremely messy.


Oh my. really?
Back to top Go down
naknak
Administrator
Administrator


Posts: 868
Join date: 2010-07-30

PostSubject: Re: How to make a SIMPLE command script   April 4th 2011, 3:39 pm

Was that sarcasm? If not, yes I write very messy but as long as the job gets done, no one cares.
Back to top Go down
lukenuke75
Novice Scripter
Novice Scripter


Posts: 38
Join date: 2011-03-07
Age: 17

PostSubject: Re: How to make a SIMPLE command script   August 13th 2011, 12:57 pm

Great tutorial, though you could explain it a lot better. I know what your tkling about but do you think others might?
Back to top Go down
 

How to make a SIMPLE command script

View previous topic View next topic Back to top 
Page 1 of 2Go to page : 1, 2  Next

Permissions in this forum:You cannot reply to topics in this forum
A Roblox Community ::  :: -