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: Teleport Script

Previous Thread :: Next Thread 
MehCooky is not online. 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
JAMESERIC7 is not online. JAMESERIC7
Joined: 22 Jan 2012
Total Posts: 121
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
pokemon771 is not online. pokemon771
Joined: 28 Oct 2008
Total Posts: 8671
19 Oct 2012 07:24 PM
@jam.

Nope
learn2script
Why would you use while true do?

Report Abuse
JAMESERIC7 is not online. JAMESERIC7
Joined: 22 Jan 2012
Total Posts: 121
19 Oct 2012 07:27 PM
I know how to script,if I didnt I wouldnt have any of my own.
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
19 Oct 2012 07:27 PM
Oh great, we got another idiot here. @jam
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
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
pokemon771 is not online. pokemon771
Joined: 28 Oct 2008
Total Posts: 8671
19 Oct 2012 07:28 PM
Then explain the "while true do"


why would you want that in a teleport script?
Report Abuse
JAMESERIC7 is not online. JAMESERIC7
Joined: 22 Jan 2012
Total Posts: 121
19 Oct 2012 07:28 PM
I studied for two hours a day for a month.
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
19 Oct 2012 07:30 PM
That shows dedication, however, not ability.

¤ ¤ † K M X D † ¤ ¤
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
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
JAMESERIC7 is not online. JAMESERIC7
Joined: 22 Jan 2012
Total Posts: 121
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
pokemon771 is not online. pokemon771
Joined: 28 Oct 2008
Total Posts: 8671
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
JAMESERIC7 is not online. JAMESERIC7
Joined: 22 Jan 2012
Total Posts: 121
19 Oct 2012 07:42 PM
Thank you,my mistake.
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