MehCooky
|
  |
| Joined: 23 Jul 2008 |
| Total Posts: 3205 |
|
|
| 19 Oct 2012 07:10 PM |
I have this script inside a text button, inside a frame, inside a gui. If you click it a bunch, it sometimes works, but one click doesn't work, and clicking multiple times doesn't always work. How can I fix this?
Here is the script:
function Click() script.Parent.Parent.Parent.Parent.Parent.Character.Torso.CFrame = CFrame.new(-2887, 100.9, 74.5) end
script.Parent.MouseButton1Down:connect(Click)
|
|
|
| Report Abuse |
|
|
|
| 19 Oct 2012 07:23 PM |
Re-align the postion for were to click,remember scripts are like commands you tall them what to do. If this dosent work try "while true do".
Or look for the Roblox script wiki. |
|
|
| Report Abuse |
|
|
|
| 19 Oct 2012 07:24 PM |
@jam.
Nope learn2script Why would you use while true do?
|
|
|
| Report Abuse |
|
|
|
| 19 Oct 2012 07:27 PM |
| I know how to script,if I didnt I wouldnt have any of my own. |
|
|
| Report Abuse |
|
|
|
| 19 Oct 2012 07:27 PM |
| Oh great, we got another idiot here. @jam |
|
|
| Report Abuse |
|
|
|
| 19 Oct 2012 07:27 PM |
function Click() pcall(function() script.Parent.Parent.Parent.Parent.Parent.Character.Torso.CFrame = CFrame.new(-2887, 100.9, 74.5) end) end script.Parent.MouseButton1Down:connect(Click)
¤ ¤ † K M X D † ¤ ¤ |
|
|
| Report Abuse |
|
|
|
| 19 Oct 2012 07:28 PM |
Then explain the "while true do"
why would you want that in a teleport script?
|
|
|
| Report Abuse |
|
|
|
| 19 Oct 2012 07:28 PM |
| I studied for two hours a day for a month. |
|
|
| Report Abuse |
|
|
|
| 19 Oct 2012 07:30 PM |
That shows dedication, however, not ability.
¤ ¤ † K M X D † ¤ ¤ |
|
|
| Report Abuse |
|
|
|
| 19 Oct 2012 07:32 PM |
| "I studied for two hours a day for a month." When I started to learn RBX.Lua in April, I started with stickmasterlukes YouTube videos and it only took an hour. Then I found Scripting Helpers and learned from here. You don't need to "study" for two hours a month. |
|
|
| Report Abuse |
|
|
|
| 19 Oct 2012 07:35 PM |
| Well it dose sound wacky,but thats just because i love scripting and i make sure that i dont miss a step. |
|
|
| Report Abuse |
|
|
|
| 19 Oct 2012 07:40 PM |
An I by it's self is capitalized
"because i love scripting and i make sure that i "
Should be
because I love scripting and I make sure that I |
|
|
| Report Abuse |
|
|
| |
|