bloxxyz
|
  |
| Joined: 15 Apr 2012 |
| Total Posts: 6995 |
|
|
| 01 Jun 2013 01:13 PM |
I put this script into Command
while true do part.Transparency = 1 wait(5) game.Workspace.Part.Lock = true wait(3) part.Transparency=0 print("I did it!")
end
The script won't work, and I don't know why. I think it may be a problem on line 4.
Any help is appreciated.
-b |
|
|
| Report Abuse |
|
|
magnalite
|
  |
| Joined: 18 Oct 2009 |
| Total Posts: 2467 |
|
|
| 01 Jun 2013 01:14 PM |
| What is Lock supposed to be? |
|
|
| Report Abuse |
|
|
RoAnt
|
  |
| Joined: 14 Jul 2008 |
| Total Posts: 16794 |
|
|
| 01 Jun 2013 01:15 PM |
http://wiki.roblox.com/index.php/Locked
It's Locked. |
|
|
| Report Abuse |
|
|
bloxxyz
|
  |
| Joined: 15 Apr 2012 |
| Total Posts: 6995 |
|
|
| 01 Jun 2013 01:17 PM |
@magna
I want to Lock the Part in Workspace.. |
|
|
| Report Abuse |
|
|
bloxxyz
|
  |
| Joined: 15 Apr 2012 |
| Total Posts: 6995 |
|
|
| 01 Jun 2013 01:18 PM |
@RoAnt
it is? Let me try that.. |
|
|
| Report Abuse |
|
|
bloxxyz
|
  |
| Joined: 15 Apr 2012 |
| Total Posts: 6995 |
|
|
| 01 Jun 2013 01:19 PM |
It still doesn't work, the script is now:
while true do part.Transparency = 1 wait(5) game.Workspace.Part.Locked = true wait(3) part.Transparency=0 print("I did it!")
end
but it won't work :/ |
|
|
| Report Abuse |
|
|
magnalite
|
  |
| Joined: 18 Oct 2009 |
| Total Posts: 2467 |
|
|
| 01 Jun 2013 01:24 PM |
| Are you sure your not thinking of anchored? |
|
|
| Report Abuse |
|
|
RoAnt
|
  |
| Joined: 14 Jul 2008 |
| Total Posts: 16794 |
|
|
| 01 Jun 2013 01:27 PM |
Is that the entire code? If so, the variable "part" isn't define.
Also, what are you trying to do to this "part?"
I could see you want it to turn invisible... wait 5 seconds... unlock and turn back to visible... then 3 seconds later, repeating the process...
|
|
|
| Report Abuse |
|
|
bloxxyz
|
  |
| Joined: 15 Apr 2012 |
| Total Posts: 6995 |
|
|
| 01 Jun 2013 01:27 PM |
Actually, no magna, I'm trying to lock it; not anchor it. To prevent from deleting, moving, etc.
http://wiki.roblox.com/index.php/Locked |
|
|
| Report Abuse |
|
|
bloxxyz
|
  |
| Joined: 15 Apr 2012 |
| Total Posts: 6995 |
|
|
| 01 Jun 2013 01:28 PM |
@RoAnt
I'm following the instructions from LuaLearners, and it was how they follow:
Your Task: Make a script that does the following. 1. Make a part invisible 2. Wait five seconds 3. Make the same part Locked 4. Wait three seconds 5. Make the same part visible again 6. Write "I did it!" to the output. 7. Include a comment in your script! 8. And finally, make steps 1-7 run an infinite amount of times.
|
|
|
| Report Abuse |
|
|
magnalite
|
  |
| Joined: 18 Oct 2009 |
| Total Posts: 2467 |
|
|
| 01 Jun 2013 01:29 PM |
Then do this
part = Workspace.PARTNAME
while true do part.Transparency = 1 wait(5) game.Workspace.Part.Locked = true wait(3) part.Transparency=0 print("I did it!")
end |
|
|
| Report Abuse |
|
|
RoAnt
|
  |
| Joined: 14 Jul 2008 |
| Total Posts: 16794 |
|
|
| 01 Jun 2013 01:32 PM |
magnalite's script should work because he defined what "part" was.
|
|
|
| Report Abuse |
|
|
bloxxyz
|
  |
| Joined: 15 Apr 2012 |
| Total Posts: 6995 |
|
|
| 01 Jun 2013 01:35 PM |
@magna
the script makes the brick transparent, and prints "I did it" but thats it.
never locks, doesn't become solid again. |
|
|
| Report Abuse |
|
|
magnalite
|
  |
| Joined: 18 Oct 2009 |
| Total Posts: 2467 |
|
|
| 01 Jun 2013 01:37 PM |
You defined the location half way through >.<
part = Workspace.PARTNAME
while true do part.Transparency = 1 wait(5) Part.Locked = true wait(3) part.Transparency=0 print("I did it!")
end |
|
|
| Report Abuse |
|
|
bloxxyz
|
  |
| Joined: 15 Apr 2012 |
| Total Posts: 6995 |
|
|
| 01 Jun 2013 01:39 PM |
Nope, still not working.
I tried it like 5 times.. |
|
|
| Report Abuse |
|
|
magnalite
|
  |
| Joined: 18 Oct 2009 |
| Total Posts: 2467 |
|
|
| 01 Jun 2013 01:48 PM |
part = Workspace.PARTNAME
while true do part.Transparency = 1 wait(5) part.Locked = true wait(3) part.Transparency=0 print("I did it!")
end |
|
|
| Report Abuse |
|
|
bloxxyz
|
  |
| Joined: 15 Apr 2012 |
| Total Posts: 6995 |
|
|
| 01 Jun 2013 01:53 PM |
@magna
you didn't change anything ._. |
|
|
| Report Abuse |
|
|
RoAnt
|
  |
| Joined: 14 Jul 2008 |
| Total Posts: 16794 |
|
|
| 01 Jun 2013 01:55 PM |
I'm sorry if you can't see it, but he did change it. Test his code out using Output. |
|
|
| Report Abuse |
|
|
magnalite
|
  |
| Joined: 18 Oct 2009 |
| Total Posts: 2467 |
|
|
| 01 Jun 2013 01:56 PM |
part = Workspace.PARTNAME
while true do part.Transparency = 1 wait(5) part.Locked = true -- de-capitalized the p here (didn't notice it the first time) wait(3) part.Transparency=0 print("I did it!")
end |
|
|
| Report Abuse |
|
|
bloxxyz
|
  |
| Joined: 15 Apr 2012 |
| Total Posts: 6995 |
|
|
| 01 Jun 2013 02:11 PM |
Still won't work..
Gawd this is annoying. |
|
|
| Report Abuse |
|
|
magnalite
|
  |
| Joined: 18 Oct 2009 |
| Total Posts: 2467 |
|
|
| 01 Jun 2013 02:15 PM |
part = Workspace.Part
while true do part.Transparency = 1 wait(5) part.Locked = true wait(3) part.Transparency = 0 print("I did it!") --might want to add a wait here as it instantly loops to the beginning
end |
|
|
| Report Abuse |
|
|
bloxxyz
|
  |
| Joined: 15 Apr 2012 |
| Total Posts: 6995 |
|
|
| 01 Jun 2013 03:15 PM |
nope :/
I'll figure it out later... |
|
|
| Report Abuse |
|
|
bloxxyz
|
  |
| Joined: 15 Apr 2012 |
| Total Posts: 6995 |
|
|
| 01 Jun 2013 03:15 PM |
nope :/
I'll figure it out later... |
|
|
| Report Abuse |
|
|
RoAnt
|
  |
| Joined: 14 Jul 2008 |
| Total Posts: 16794 |
|
|
| 01 Jun 2013 11:23 PM |
What does the output say? http://wiki.roblox.com/index.php/Output#How_to_use_the_Output
|
|
|
| Report Abuse |
|
|
RoAnt
|
  |
| Joined: 14 Jul 2008 |
| Total Posts: 16794 |
|
|
| 01 Jun 2013 11:24 PM |
part = Workspace.Part
while true do part.Transparency = 1 wait(5) part.Locked = true part.Transparency = 0 print("I did it!") --might want to add a wait here as it instantly loops to the beginning wait(3) end |
|
|
| Report Abuse |
|
|