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: Can someone please educate me why this wont work?

Previous Thread :: Next Thread 
SuperGogeta101 is not online. SuperGogeta101
Joined: 26 Aug 2010
Total Posts: 8364
08 Mar 2014 10:50 AM
player = script.Parent.Parent.Parent.Parent
Lvl = player.leaderstats.Lvl
function teleport()
if Lvl.Value >= 1 then
teleportService = game:GetService("87430486")
end
end
if Lvl.Value >= 1 then
teleportService = game:GetService("87430486")
end
script.Parent.MouseButton1Down:connect(teleport)
Report Abuse
SuperGogeta101 is not online. SuperGogeta101
Joined: 26 Aug 2010
Total Posts: 8364
08 Mar 2014 10:51 AM
player = script.Parent.Parent.Parent.Parent
Lvl = player.leaderstats.Lvl
function teleport()
if Lvl.Value >= 1 then
teleportService = game:GetService("87430486")
end
script.Parent.MouseButton1Down:connect(teleport)


Whoops, sorry.
Report Abuse
Marolex is not online. Marolex
Joined: 17 Dec 2012
Total Posts: 1785
08 Mar 2014 10:53 AM
"sword.Position = sword.Position - Vector3.new(0, 1, 0)"

uwotm8
Report Abuse
SuperGogeta101 is not online. SuperGogeta101
Joined: 26 Aug 2010
Total Posts: 8364
08 Mar 2014 10:54 AM
...What?
Report Abuse
Marolex is not online. Marolex
Joined: 17 Dec 2012
Total Posts: 1785
08 Mar 2014 10:55 AM
Oops, old copy&paste


"teleportService = game:GetService("87430486")" uwotm8
Report Abuse
SuperGogeta101 is not online. SuperGogeta101
Joined: 26 Aug 2010
Total Posts: 8364
08 Mar 2014 10:57 AM
I am new at teleport service. I am really bad at it, also. Gotta love how the wiki says nothing.
Report Abuse
Marolex is not online. Marolex
Joined: 17 Dec 2012
Total Posts: 1785
08 Mar 2014 10:59 AM
Well for starters, that's probably because it isnt a real thing...
Report Abuse
PRESTIGIOUSaLEGEND is not online. PRESTIGIOUSaLEGEND
Joined: 16 Apr 2011
Total Posts: 1765
08 Mar 2014 10:59 AM
you are missing an "end" to close the function.
Report Abuse
Marolex is not online. Marolex
Joined: 17 Dec 2012
Total Posts: 1785
08 Mar 2014 11:01 AM
Wait, i'm sorry, i thought you meant it as taking a player to i vector location in the game

here's the wiki on tele service

http://wiki.roblox.com/index.php?title=TeleportService_Guide
Report Abuse
SuperGogeta101 is not online. SuperGogeta101
Joined: 26 Aug 2010
Total Posts: 8364
08 Mar 2014 11:01 AM
I feel stupid now.
Report Abuse
Marolex is not online. Marolex
Joined: 17 Dec 2012
Total Posts: 1785
08 Mar 2014 11:02 AM
Dont, i was wrong bud, sorry.
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
08 Mar 2014 11:05 AM
It is a real thing... http://wiki.roblox.com/index.php?title=TeleportService_Guide



player = script.Parent.Parent.Parent.Parent
Lvl = player.leaderstats.Lvl
function teleport()
if Lvl.Value >= 1 then
game:GetService("TeleportService"):Teleport(ID, player)
end
script.Parent.MouseButton1Down:connect(teleport)
end

Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
08 Mar 2014 11:07 AM
I hope I helped
Report Abuse
maxomega3 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
08 Mar 2014 11:10 AM
game:GetService ('TeleportService'):Teleport (123040379, player.Character)

I'm so proud to know that by heart. I was beginning to think that I'd never learn that.
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
08 Mar 2014 11:12 AM
Not that I am not a fan mega (Which I'm still thanking you for that script you gave me) I already answered his question...
Report Abuse
maxomega3 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
08 Mar 2014 11:14 AM
Yeah, I forgot I hadn't submitted the post. I even fixed a grenade in the process, lol. I guess you could say I got ninja'd, but it's like ninja'ing a sloth.
Report Abuse
maxomega3 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
08 Mar 2014 11:15 AM
Haha, also refreshing to hear I have a fan. cntkillme is the best I've seen, though.
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
08 Mar 2014 11:30 AM
Maxo don't get ninjad again, go here; http://www.roblox.com/Forum/ShowPost.aspx?PostID=127564198
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