|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 11 May 2012 05:40 AM |
| yes good point i shall try it |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 5258 |
|
| |
|
|
| 11 May 2012 06:01 AM |
Hmmmmm What do you suggest I do? |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 11 May 2012 06:06 AM |
Thanks :D
I'll try it in the morning
Have to go to bed
night' |
|
|
| Report Abuse |
|
|
Cheater
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 5258 |
|
| |
|
|
| 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 |
|
|
|
| 11 May 2012 06:14 AM |
One more thing b4 I go to bed
Shoudn't you be at school???? Lol |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 12 May 2012 05:47 AM |
IT worked thanks!
Chears!!!!! |
|
|
| Report Abuse |
|
|