RobloxHQ Forums

You are not logged in.

Announcement

WARNING: THIS FORUM MAY BE UNSUITABLE FOR LITTLE KIDS. IF YOU THINK YOU'RE A LITTLE KID, PLEASE KEEP THAT IN MIND. Thank you.
DISCLAIMER: ROBLOX HQ IS NOT AFFILIATED WITH ROBLOX IN ANY WAY. NOTHING SAID HERE REFLECTS ON OR IS REPRESENTATIVE OF THE OFFICIAL ROBLOX WEBSITE AND COMPANY.
The Rule is just this - Don't be stupid. (More Rules)
  • Index
  •  » Roblox Stuff
  •  » Bob10110's Scripting Guide. (Lesson #3 nearing completion!)

#51 2008-12-30 2:23 PM

goko305
Forum User
Registered: 2008-12-18

Re: Bob10110's Scripting Guide. (Lesson #3 nearing completion!)

Why won't this work

script.Parent.Anchored = true

function onClicked()
script.Parent.Transparency = .5
script.Parent.CanCollide = false
wait(3)
script.Parent.CanCollide = true
script.Parent.Transparency = 0
end


Check out my friend's Obby!

http://www.roblox.com/Item.aspx?ID=5551333

Offline

 

#52 2008-12-30 2:30 PM

zasguach
Forum VIP
From: Yesterday
Registered: 2008-08-25
Website

Re: Bob10110's Scripting Guide. (Lesson #3 nearing completion!)

goko305 wrote:

Why won't this work

script.Parent.Anchored = true

function onClicked()
script.Parent.Transparency = .5
script.Parent.CanCollide = false
wait(3)
script.Parent.CanCollide = true
script.Parent.Transparency = 0
end

You need to add a conect line at the end. For that script it would be: script.Parent.ClickDetector.MouseClick:connect(onClicked)
Add that to the end and you should be good.


http://i488.photobucket.com/albums/rr243/zasguach/Sig.gif
"You're as useless as tits on a trout."~My dad

Offline

 

#53 2008-12-30 4:03 PM

Byndley
Forum Super-Cool VIP
From: math.huge +1
Registered: 2008-07-08
Website

Re: Bob10110's Scripting Guide. (Lesson #3 nearing completion!)

goko305 wrote:

Why won't this work

script.Parent.Anchored = true

function onClicked()
script.Parent.Transparency = .5
script.Parent.CanCollide = false
wait(3)
script.Parent.CanCollide = true
script.Parent.Transparency = 0
end

You forgot the clickdetector.


http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&UserName=Byndley http://i177.photobucket.com/albums/w204/UNX789/byndley2.gif http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&UserName=Byndley
Follow me on Twitter!
Thanks BlooWolf for the Signature! I'm hoping to get a new one, *hint* *hint*.

Offline

 

#54 2008-12-30 5:37 PM

Nearmiss
Forum Veteran
From: Level 95
Registered: 2008-10-24
Website

Re: Bob10110's Scripting Guide. (Lesson #3 nearing completion!)

function OnClicked()
game:remove()
end

script.Parent.ClickDetector.MouseClick:connect (OnClicked)

Give this to your best friend.

Last edited by Nearmiss (2008-12-30 5:37 PM)


~nm

Offline

 

#55 2009-02-11 7:46 PM

MrWillyWonnka
Forum Super Veteran
From: WB for aale: 50 tix!
Registered: 2008-10-08

Re: Bob10110's Scripting Guide. (Lesson #3 nearing completion!)

Thanks but i need something so it will make a certain script happen when someone Dies, Or joins the game because it would be a great help :P


This post is brought to you by Wonka Bars!
They're insanely yummy!

Offline

 

#56 2009-03-17 8:02 PM

gorillaman50
Forum Contributor
Registered: 2009-03-16
Website

Re: Bob10110's Scripting Guide. (Lesson #3 nearing completion!)

Man,this help me alot thnx bob.


DapLand Visit
LINKINPARK

Offline

 

#57 2009-03-18 6:33 AM

bchunter
Forum User
From: In your closet with a knife.
Registered: 2008-12-29

Re: Bob10110's Scripting Guide. (Lesson #3 nearing completion!)

I have been trying for months to find a tutorial that actually help me,and this once actually did!Thnx!

Offline

 

#58 2009-03-23 9:52 AM

snateraar
Forum Gosen
From: A Utopian Playland
Registered: 2008-06-25
Website

Re: Bob10110's Scripting Guide. (Lesson #3 nearing completion!)

ARGHHHHH.
I can't get through tutorial 2,and even 1 is hard...
F YOU AUTISMf


"Hello, my name is Dr. Phineas Waldolf Steel™ and I’m crazy. At least that’s what they tell me. It’s a real load off my mind too. I mean you can get away with pretty much anything if you’re bonkers." ~Dr. Steel

Offline

 

#59 2009-03-23 10:44 AM

zasguach
Forum VIP
From: Yesterday
Registered: 2008-08-25
Website

Re: Bob10110's Scripting Guide. (Lesson #3 nearing completion!)

Well since this thread is already bumped I might as well ask. How long do you think it will be until lesson 3 is done?

Last edited by zasguach (2009-03-23 10:44 AM)


http://i488.photobucket.com/albums/rr243/zasguach/Sig.gif
"You're as useless as tits on a trout."~My dad

Offline

 

#60 2009-03-23 11:05 AM

mige313
Forum Gosen
Registered: 2008-06-19
Website

Re: Bob10110's Scripting Guide. (Lesson #3 nearing completion!)

Well written. I still don't understand some parts but at least I learned something.


http://i43.tinypic.com/50lbtx.png
Naster nachtitlan kastanechli quechnilan naar.

Offline

 

#61 2009-04-21 8:30 PM

smashbi121
Forum DESTROYER
From: Youkai Academy
Registered: 2008-07-12
Website

Re: Bob10110's Scripting Guide. (Lesson #3 nearing completion!)

Hey Bob, how about adding a tutorial on how something follows a mouse direction.

Like making a vehicle face where the mouse is facing or like a gun pointing at where the cursor is at without doing the "Button1Down " part(clicking).

I'm having troubles with such things relating to "Players" control.

Last edited by smashbi121 (2009-04-21 8:31 PM)


To steal ideas from one person is plagiarism, to steal from many is research.
DEVIANTART
http://tinyurl.com/26vjob5http://forums.robloxhq.com/img/badges/brush.png

Offline

 

#62 2009-04-21 8:33 PM

bob10110
And now we return to our regularly scheduled RHQ.
From: The Interverse
Registered: 2008-07-03
Website

Re: Bob10110's Scripting Guide. (Lesson #3 nearing completion!)

Hmm, I'll think about doing it sometime this weekend.  This week's too busy for me.

In the meantime, look here.


http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&UserName=bob10110
Scripting Tutorial
↑ ↑ ↓ ↓ ← → ← → B A
♥ ♦ ♣ ♠

Offline

 

#63 2009-04-21 9:01 PM

smashbi121
Forum DESTROYER
From: Youkai Academy
Registered: 2008-07-12
Website

Re: Bob10110's Scripting Guide. (Lesson #3 nearing completion!)

bob10110 wrote:

Hmm, I'll think about doing it sometime this weekend.  This week's too busy for me.

In the meantime, look here.

Yes I read and tried as hard to understand everything about the page but it didn't explain much about this:

Hit -- CFrame value
Target -- object value
X -- mouse's X position on the screen.
Y -- mouse's Y position on the screen.


To steal ideas from one person is plagiarism, to steal from many is research.
DEVIANTART
http://tinyurl.com/26vjob5http://forums.robloxhq.com/img/badges/brush.png

Offline

 

#64 2009-04-22 6:34 AM

bob10110
And now we return to our regularly scheduled RHQ.
From: The Interverse
Registered: 2008-07-03
Website

Re: Bob10110's Scripting Guide. (Lesson #3 nearing completion!)

Hit -- think of that as where exactly that green disk would show up if you didn't have any tools selected.

Target -- the brick you're attempting to click.  It acts quite similarly to a MouseDetector, if you've ever worked with those.

X/Y -- Don't bother yourself too much with these, there's little practical use for them.


http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&UserName=bob10110
Scripting Tutorial
↑ ↑ ↓ ↓ ← → ← → B A
♥ ♦ ♣ ♠

Offline

 

#65 2009-05-08 3:47 PM

R0bl0xV3t3ran
Forum User
From: your closet
Registered: 2009-05-06
Website

Re: Bob10110's Scripting Guide. (Lesson #3 nearing completion!)

thanks, it's great

Offline

 

#66 2009-06-17 8:58 AM

RoUGhsMANGER
Forum User
Registered: 2009-06-15

Re: Bob10110's Scripting Guide. (Lesson #3 nearing completion!)

thanx bob...this helped alot


I know how to script....yay

Offline

 

#67 2009-06-17 10:11 AM

ApplePiePod
Forum VIP
From: Surrey, England
Registered: 2009-02-01
Website

Re: Bob10110's Scripting Guide. (Lesson #3 nearing completion!)

Heh. I know how to make tool 'Categories'.


http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username=ApplePiePodhttp://img63.imageshack.us/img63/6021/sigthing.png
Damnit that's like 3 times now I've had to change that.

Offline

 

#68 2009-06-17 10:19 AM

Scorch597
Forum Super Contributor
From: New York
Registered: 2009-04-13
Website

Re: Bob10110's Scripting Guide. (Lesson #3 nearing completion!)

:O The first thing too actually teach me how too script!!!


Roses are black violets are full of violence, Ill tie your hands behind your back and kill you in full silence.

Offline

 

#69 2009-06-17 10:23 AM

Pew01
Forum VIP
From: Where the sun dont shine
Registered: 2009-04-13

Re: Bob10110's Scripting Guide. (Lesson #3 nearing completion!)

KKTHXBOB10110! First scripting tutorial that made sense.


  ▲
 ▲
ALL HAIL RAINBOW TRIFORCE
http://www.youtube.com/watch?v=At5027YQxpE

Offline

 

#70 2009-06-18 6:59 AM

RoUGhsMANGER
Forum User
Registered: 2009-06-15

Re: Bob10110's Scripting Guide. (Lesson #3 nearing completion!)

can you please teach me how give one team one typee of gun and the other team another


I know how to script....yay

Offline

 

#71 2009-06-19 1:10 PM

snateraar
Forum Gosen
From: A Utopian Playland
Registered: 2008-06-25
Website

Re: Bob10110's Scripting Guide. (Lesson #3 nearing completion!)

Thanks,bob.
Thanks to your tutorials I was able to make this.
http://www.roblox.com/Item.aspx?ID=11985923


"Hello, my name is Dr. Phineas Waldolf Steel™ and I’m crazy. At least that’s what they tell me. It’s a real load off my mind too. I mean you can get away with pretty much anything if you’re bonkers." ~Dr. Steel

Offline

 

#72 2009-06-27 3:31 PM

Rennoc11
Forum User
Registered: 2008-09-21

Re: Bob10110's Scripting Guide. (Lesson #3 nearing completion!)

Its sad how i cant get past the first part,i pulled up the command tool bar,because i couldnt find where to type it i typed "print ("hello world")" and didnt do anything.

its official,i fail at scripting

Offline

 

#73 2009-06-27 4:18 PM

bob10110
And now we return to our regularly scheduled RHQ.
From: The Interverse
Registered: 2008-07-03
Website

Re: Bob10110's Scripting Guide. (Lesson #3 nearing completion!)

Hmm...actually, I should go try that myself.  I never did do anything with the print() function in the Command line.
EDIT:  Are you sure you have the Output window showing as well?  That's the thing that print() uses to display messages.

In the meantime, I should have some pretty decent info up soon -- I'm here often enough that I might as well share a bit more of what I've learned.  I'll definitely be mentioning "_G" -- if you're wondering what that is, check my Roblox blurb.

Last edited by bob10110 (2009-06-27 4:22 PM)


http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&UserName=bob10110
Scripting Tutorial
↑ ↑ ↓ ↓ ← → ← → B A
♥ ♦ ♣ ♠

Offline

 

#74 2009-07-16 11:44 PM

smashbi121
Forum DESTROYER
From: Youkai Academy
Registered: 2008-07-12
Website

Re: Bob10110's Scripting Guide. (Lesson #3 nearing completion!)

Thanks for making this simple scripting tutorial, anyways can you explain more of the "GetChildren" function.

I'm not sure if that really works on making a "Model" anchored using a script.


To steal ideas from one person is plagiarism, to steal from many is research.
DEVIANTART
http://tinyurl.com/26vjob5http://forums.robloxhq.com/img/badges/brush.png

Offline

 

#75 2009-07-17 12:51 PM

bob10110
And now we return to our regularly scheduled RHQ.
From: The Interverse
Registered: 2008-07-03
Website

Re: Bob10110's Scripting Guide. (Lesson #3 nearing completion!)

Well, basically getChildren() creates a table of anything that's inside whatever you use the function (really, it's a "method" but I'll call it a function for simplicity).  You can then manipulate the objects in this table individually.

Dang, I can never get around to this can I?


http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&UserName=bob10110
Scripting Tutorial
↑ ↑ ↓ ↓ ← → ← → B A
♥ ♦ ♣ ♠

Offline

 
  • Index
  •  » Roblox Stuff
  •  » Bob10110's Scripting Guide. (Lesson #3 nearing completion!)

Board footer

Powered by PunBB 1.2.20
© Copyright 2002–2008 PunBB