generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Before You Post a Thread Here...

Previous Thread :: Next Thread 
WaffleBoy is not online. WaffleBoy
Joined: 21 Mar 2007
Total Posts: 1377
04 Jan 2008 11:27 AM
Please look upon this scripting article.

http://wiki.roblox.com/index.php?title=In-Dept_Scripting_Guide

It IS in-fact very in-dept and almost everyone can understand it. I update this guide very often so that it is never out of date. It also answers a ton of questions for scripting.
Note: I left out things that have to do with building. (i.e. Checkpoints)
Now, please enjoy this guide and please, refer to it before you post something silly. Thank you.
Report Abuse
MetalMario is not online. MetalMario
Top 100 Poster
Joined: 18 May 2007
Total Posts: 7133
04 Jan 2008 11:32 AM
It's AWESOME :P
Report Abuse
snowwolf is not online. snowwolf
Joined: 23 Nov 2006
Total Posts: 357
04 Jan 2008 11:33 AM
It really does help to have it.
Report Abuse
coelho714 is not online. coelho714
Joined: 07 Jun 2007
Total Posts: 4230
04 Jan 2008 11:35 AM
I just wanna correct a thing: CFrame is CoordinateFrame, not CharacterFrame.
Anyways, it's good the whole thing. Newbies will like this wiki-page.
Report Abuse
WaffleBoy is not online. WaffleBoy
Joined: 21 Mar 2007
Total Posts: 1377
04 Jan 2008 11:41 AM
Shh... Character Frame is more rememberable... And makes a bit more sense. But yeah, I know it means Coordinate Frame.
Report Abuse
totti is not online. totti
Joined: 02 Nov 2006
Total Posts: 2684
04 Jan 2008 11:53 AM
Heh..Anyways, good going waffle! :D

Totti
Report Abuse
DingDong272 is not online. DingDong272
Top 100 Poster
Joined: 08 Dec 2007
Total Posts: 9860
04 Jan 2008 12:06 PM
Uh...yeah...Check your discussion page. A little word of advice from me!

~Ding
Report Abuse
WaffleBoy is not online. WaffleBoy
Joined: 21 Mar 2007
Total Posts: 1377
04 Jan 2008 12:14 PM
Well, tags have many different names. My guide was meant for new scripters, so I'm not using the full terms and instead, using easier terms that everyone still understands, like CFrame and Tags.
Report Abuse
DingDong272 is not online. DingDong272
Top 100 Poster
Joined: 08 Dec 2007
Total Posts: 9860
04 Jan 2008 12:44 PM
K. That's fine. Just saying.
Report Abuse
LuigiFan is not online. LuigiFan
Joined: 18 Jun 2007
Total Posts: 4143
04 Jan 2008 04:40 PM
This is THE greatest explanation for beginning scripters EVER! Great job Waffle! =D

=P-LuigiFan-=P
Report Abuse
XlegoX is not online. XlegoX
Joined: 16 Jun 2008
Total Posts: 14955
04 Jan 2008 04:45 PM
Horray, now I can start making vehicles, thanks to the lookvector function =P
Report Abuse
XlegoX is not online. XlegoX
Joined: 16 Jun 2008
Total Posts: 14955
04 Jan 2008 04:45 PM
If only this had been here when I learned scripting =S, great job!
Report Abuse
WaffleBoy is not online. WaffleBoy
Joined: 21 Mar 2007
Total Posts: 1377
04 Jan 2008 04:46 PM
Heh. Well, yeah, I'm still expanding it. This Wiki will probably be the longest one on our Wiki when its finished.
Report Abuse
XlegoX is not online. XlegoX
Joined: 16 Jun 2008
Total Posts: 14955
04 Jan 2008 04:50 PM
I hope theres a description of making an object pull towards your mouse, I cant figure out how you find your mouse's postion =S
Report Abuse
WaffleBoy is not online. WaffleBoy
Joined: 21 Mar 2007
Total Posts: 1377
04 Jan 2008 05:38 PM
Just a lil' bump. Anyways, I've added a bit more on to the term 'Instance.new()' as requested by (Anonymous).
Report Abuse
the5souls is not online. the5souls
Joined: 17 Dec 2007
Total Posts: 5
04 Jan 2008 06:56 PM
Thank you for bumping this so much! It is very helpful! Just a few questions though.

Ok so... let me get this straight...

"==" means If it is
"~=" means If it is NOT

"<" means Less than
">" means Greater than

"=>" or ">=" means Equal or Greater than
"=<" or "<=" means Equal or Less than




And in that first Example with "function anchor (object)"...



bin = script.Parent

function anchor(object)
object.Anchored = true
end

function onTouched(part)
anchor(part)
end

bin.Touched:connect(onTouched)




"anchor" is the Name of the Function

"(object)" is another name that can be used for this function?
And if I wanted to, I can put "(object, blabla, qwert)"?
So if I put "blabla(part)" underneath the onTouched function, would this still work?


Please tell me if all of these meanins are correct, please.

I'm currently reading the If statements under LUA right now. I'll get back to you with more questions! 8)

Thanks for answering!
Report Abuse
WaffleBoy is not online. WaffleBoy
Joined: 21 Mar 2007
Total Posts: 1377
04 Jan 2008 07:01 PM
Well, object is the anchor function is what will be anchored. So if we change it to part, in the onTouched function, the "part" will become anchored. Think of it like this: You got the part from onTouched and changed "object" for "part" so instead of the object, part gets anchored.
Report Abuse
the5souls is not online. the5souls
Joined: 17 Dec 2007
Total Posts: 5
04 Jan 2008 07:04 PM
What would be the difference between "Object" and "Part"? I'm guessing object is the object that the script is placed in?
Report Abuse
Kaynex is not online. Kaynex
Joined: 28 Dec 2007
Total Posts: 20
04 Jan 2008 07:04 PM
Nice, You should Make a clickable link to the place.
Report Abuse
WaffleBoy is not online. WaffleBoy
Joined: 21 Mar 2007
Total Posts: 1377
04 Jan 2008 07:10 PM
Er... Object can be anything, basically. Sorry this is so hard to understand. The function is re-usable, so I added it onto my onTouched, which means you are touching a "part". So when it gets touched, it runs the anchor function, but instead of the "object", it uses the "part".
Report Abuse
Righter is not online. Righter
Joined: 31 Aug 2007
Total Posts: 172
04 Jan 2008 07:31 PM
I will admit that the WIKI is the most reconisible and understandble for the people who don't know how to script well(pretty much rookies)the only down-side is that the more advanced users always come up with the crazy ideas that requires a expertee in scripting and since the WIKI is for the begginers of scripting, the advanced players can't get the help that they need. Therefore they HAVE to go on the forum to help. Because theres no data on the WIKI to inform and help them.


$$$Righter$$$
Report Abuse
WaffleBoy is not online. WaffleBoy
Joined: 21 Mar 2007
Total Posts: 1377
04 Jan 2008 08:16 PM
What are you talking about Righter? This topic was meant for people who have obvious questions or for people who ask for help to learn how to script. If you need to post, then post.
Report Abuse
Righter is not online. Righter
Joined: 31 Aug 2007
Total Posts: 172
04 Jan 2008 08:23 PM
O! srry I didn't know what I was doing...that happens alot.
Report Abuse
Righter is not online. Righter
Joined: 31 Aug 2007
Total Posts: 172
04 Jan 2008 08:33 PM
Ok then I'll ask a question I'm going to show a script below and I wonder if theres anything wrong with it. The script is used for after a zombie dies it will generate again. Witch I can do buuuut...I can't do it with more than one.
Report Abuse
Righter is not online. Righter
Joined: 31 Aug 2007
Total Posts: 172
04 Jan 2008 08:33 PM

name="Zombie"

wait(1)
robo=game.Workspace.Zombieb:findFirstChild(name):clone()

while true do
wait(5)
if game.Workspace.Zombieb:findFirstChild(name)==nil then
robot=robo:clone()
robot.Parent=game.Workspace.Zombieb
end
if game.Workspace.Zombieb:findFirstChild(name):findFirstChild("Zombie")==nil then
game.Workspace.Zombieb:findFirstChild(name):remove()
robot=robo:clone()
robot.Parent=game.Workspace.Zombieb
end
if game.Workspace.Zombieb:findFirstChild(name).Zombie.Health<1 then
game.Workspace.Zombieb:findFirstChild(name):remove()
robot=robo:clone()
robot.Parent=game.Workspace.Zombieb
end
end
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image