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 » Scripters
Home Search
 

Re: Unable to cast object? Please help

Previous Thread :: Next Thread 
IDKBlox is not online. IDKBlox
Joined: 05 Apr 2013
Total Posts: 1304
27 Apr 2015 10:58 PM
game:GetService("TeleportService"):Teleport(8473728,Plr)

this means what? :)
Report Abuse
Viscoelastic is not online. Viscoelastic
Joined: 04 May 2012
Total Posts: 269
27 Apr 2015 11:00 PM
Plr is not a Player.

game:GetService("TeleportService"):Teleport(12345678, game.Players.IDKBlox)
Report Abuse
IDKBlox is not online. IDKBlox
Joined: 05 Apr 2013
Total Posts: 1304
27 Apr 2015 11:01 PM
Thats but that wasnt the problem lol, and yes it was :P thanks for trying to help though
Report Abuse
vacha is not online. vacha
Joined: 06 Jan 2011
Total Posts: 1993
27 Apr 2015 11:04 PM
Does the destination exist and do you have permissions to access it?
Report Abuse
NotAshley is not online. NotAshley
Joined: 16 Jan 2014
Total Posts: 14257
27 Apr 2015 11:04 PM
The error means you're trying to set a value to something that doesn't accept that value type. Assuming Plr is a valid player, your code will work, so the issue is elsewhere in your code.
Report Abuse
NotAshley is not online. NotAshley
Joined: 16 Jan 2014
Total Posts: 14257
27 Apr 2015 11:05 PM
@vacha I'm pretty sure TeleportService allows teleportation to any place.
Report Abuse
Viscoelastic is not online. Viscoelastic
Joined: 04 May 2012
Total Posts: 269
27 Apr 2015 11:07 PM
"I'm pretty sure TeleportService allows teleportation to any place."
Yeah, it definitely allows teleportation to friend-only games, personal servers, VIP servers, paid-access places, BC-only places, inactive places, etc.
Report Abuse
vacha is not online. vacha
Joined: 06 Jan 2011
Total Posts: 1993
27 Apr 2015 11:08 PM
@Ashley,
Only places that are open to everyone and if you have permission to visit it.

Also if attempted from studio it only teleports if you are the owner of the place (imagine if this wasn't the case)
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
27 Apr 2015 11:09 PM
@Viscoelastic

Teleport service does allow teleporting to inactive places if it is in the same game.


I script -~ chimmihc
Report Abuse
NotAshley is not online. NotAshley
Joined: 16 Jan 2014
Total Posts: 14257
27 Apr 2015 11:10 PM
Didn't think of that, but that would give a different error, not an unable to cast value error.
Report Abuse
Viscoelastic is not online. Viscoelastic
Joined: 04 May 2012
Total Posts: 269
27 Apr 2015 11:10 PM
Well that's not technically inactive if the starting place is active.
Report Abuse
vacha is not online. vacha
Joined: 06 Jan 2011
Total Posts: 1993
27 Apr 2015 11:12 PM
OP is trying to teleport to a place that doesn't exist (id 8473728)
The place id is the same from the wiki page
http://wiki.roblox.com/index.php?title=TeleportService_guide
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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