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: Click Detector Help

Previous Thread :: Next Thread 
99Nickster is not online. 99Nickster
Joined: 27 Jan 2012
Total Posts: 289
11 May 2012 05:27 AM
I could use a little help with a script...

--------------------------------------------------------
while true do


script.Parent.Parent.Name = "Hi"
wait(1)
script.Parent.Parent.Name = "bye"
wait(1)
end
---------------------------------------------------------
I'm having trouble makeing this script have a click detector for its Parent.Parent,
so when someone clicks it, it does the function

Could anyone help?

Thanks!
Report Abuse
Cheater is not online. Cheater
Joined: 29 Jun 2007
Total Posts: 5258
11 May 2012 05:30 AM
function onClicked()

while true do

script.Parent.Parent.Name = "Hi"
wait(1)
script.Parent.Parent.Name = "bye"
wait(1)
end

script.Parent.Parent.ClickDetector.MouseClick:connect(onClicked)
Report Abuse
99Nickster is not online. 99Nickster
Joined: 27 Jan 2012
Total Posts: 289
11 May 2012 05:32 AM
i tried that but i might have made a spelling error when i typed it originaly

Thanks i'll try it
Report Abuse
Cheater is not online. Cheater
Joined: 29 Jun 2007
Total Posts: 5258
11 May 2012 05:33 AM
Maybe the ClickDetector is on another place or yout brick isn't a Head with a Humanoid in there. It should look like this:

Model
-Head
--ClickDetector
---Script
-Humanoid

But insted of Parent.Parent, it would be only one Parent. And you would need 3 Parent for your name changes.
Report Abuse
Cheater is not online. Cheater
Joined: 29 Jun 2007
Total Posts: 5258
11 May 2012 05:34 AM
function onClicked()

while true do

script.Parent.Parent.Parent.Name = "Hi"
wait(1)
script.Parent.Parent.Parent.Name = "bye"
wait(1)
end

script.Parent.ClickDetector.MouseClick:connect(onClicked)
Report Abuse
99Nickster is not online. 99Nickster
Joined: 27 Jan 2012
Total Posts: 289
11 May 2012 05:40 AM
yes good point i shall try it
Report Abuse
99Nickster is not online. 99Nickster
Joined: 27 Jan 2012
Total Posts: 289
11 May 2012 05:44 AM
still not working.....
i checked over it a number of times.....

could it be roblox updates???
Report Abuse
Cheater is not online. Cheater
Joined: 29 Jun 2007
Total Posts: 5258
11 May 2012 05:54 AM
Output?
Report Abuse
99Nickster is not online. 99Nickster
Joined: 27 Jan 2012
Total Posts: 289
11 May 2012 06:01 AM
Hmmmmm
What do you suggest I do?
Report Abuse
Cheater is not online. Cheater
Joined: 29 Jun 2007
Total Posts: 5258
11 May 2012 06:02 AM
Look what the output says and post it here.
Report Abuse
99Nickster is not online. 99Nickster
Joined: 27 Jan 2012
Total Posts: 289
11 May 2012 06:06 AM
Thanks :D

I'll try it in the morning

Have to go to bed

night'
Report Abuse
Cheater is not online. Cheater
Joined: 29 Jun 2007
Total Posts: 5258
11 May 2012 06:07 AM
13:07 here. ._.
Report Abuse
99Nickster is not online. 99Nickster
Joined: 27 Jan 2012
Total Posts: 289
11 May 2012 06:11 AM
21:10 here

I have a basketball and in the mourning gotta go to bed early lol
Report Abuse
99Nickster is not online. 99Nickster
Joined: 27 Jan 2012
Total Posts: 289
11 May 2012 06:14 AM
One more thing b4 I go to bed

Shoudn't you be at school???? Lol
Report Abuse
Cheater is not online. Cheater
Joined: 29 Jun 2007
Total Posts: 5258
11 May 2012 06:16 AM
No, I'm already at work, but there isn't a lot to do here.
Report Abuse
99Nickster is not online. 99Nickster
Joined: 27 Jan 2012
Total Posts: 289
11 May 2012 06:18 AM
Oh lol

Don't get in trouble for playing on Roblox though

Night' for reels now
Report Abuse
Cheater is not online. Cheater
Joined: 29 Jun 2007
Total Posts: 5258
11 May 2012 06:20 AM
I'm not playing ROBLOX, I'm helping people out. Playing online is blocked here. (Failed to connect to the game. ID=17)

There was just someone here asking me what I'm exactly doing here and I just told him the truth and he said "that's great for the community" :)
Report Abuse
99Nickster is not online. 99Nickster
Joined: 27 Jan 2012
Total Posts: 289
12 May 2012 05:47 AM
IT worked thanks!

Chears!!!!!
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