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
 

GUI Universe Teleportation does not work?

Previous Thread :: Next Thread 
SuperGogeta101 is not online. SuperGogeta101
Joined: 26 Aug 2010
Total Posts: 8364
01 Mar 2014 01:23 PM
I have a simple script in a GUI that does not want to work.

player = script.Parent.Parent.Parent.Parent
Lvl = player.leaderstats.Lvl
function teleport()
if Lvl.Value >= 1 then
local player = game:GetService("Players"):GetPlayerFromCharacter(hit.Parent)
game:GetService("TeleportService"):Teleport(87430486, player.Character)
end
end
script.Parent.MouseButton1Down:connect(teleport)
Report Abuse
Devoi is not online. Devoi
Joined: 09 Jun 2013
Total Posts: 5387
01 Mar 2014 01:27 PM
remove the 'local player=game:G..' line
Report Abuse
SuperGogeta101 is not online. SuperGogeta101
Joined: 26 Aug 2010
Total Posts: 8364
01 Mar 2014 01:29 PM
player = script.Parent.Parent.Parent.Parent
Lvl = player.leaderstats.Lvl
function teleport()
if Lvl.Value >= 1 then
game:GetService("TeleportService"):Teleport(87430486, player.Character)
end
end
script.Parent.MouseButton1Down:connect(teleport)

This does not work either.
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