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 from place to place

Previous Thread :: Next Thread 
beeflord is not online. beeflord
Joined: 06 Jun 2009
Total Posts: 3372
06 Nov 2011 07:55 AM
This is currently a localscript and it's not working.

function onChatted(msg, recipient, speaker)
if msg == "/teleport1" then
game:GetService("TeleportService"):Teleport(58444466)
end
end

function onPlayerEntered(newPlayer)
newPlayer.Chatted:connect(function(msg,recipient) onChatted(msg, recipient, newPlayer) end)
end

game.Players.ChildAdded:connect(onPlayerEntered)
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
06 Nov 2011 07:56 AM
Any output?
Report Abuse
HaileyForever is not online. HaileyForever
Joined: 01 Oct 2011
Total Posts: 1496
06 Nov 2011 07:58 AM
Repost it okay. Just, repost it. Because if nobody replied on your first one then obviously everyone likes it.

~The Official Princess Luna of Roblox~
Report Abuse
beeflord is not online. beeflord
Joined: 06 Jun 2009
Total Posts: 3372
06 Nov 2011 07:59 AM
@su8 I thought I made a obvious fail so I didnt put any output in. I will go get it.
Report Abuse
beeflord is not online. beeflord
Joined: 06 Jun 2009
Total Posts: 3372
06 Nov 2011 08:00 AM
Umm I cant get the output because it's a talk script and I cant talk in build or edit mode =/
Report Abuse
beeflord is not online. beeflord
Joined: 06 Jun 2009
Total Posts: 3372
06 Nov 2011 08:05 AM
I'm thinking it's the

game:GetService("TeleportService"):Teleport(58444466)

Thats wrong.
Report Abuse
DXPower is not online. DXPower
Joined: 21 Oct 2008
Total Posts: 2866
06 Nov 2011 08:16 AM
game:GetService("TeleportService"):TeleportTo(58444466)
Report Abuse
beeflord is not online. beeflord
Joined: 06 Jun 2009
Total Posts: 3372
06 Nov 2011 08:38 AM
DX, the line I wrote worked in a GUI click button so I dont think it's that.
Report Abuse
skipperguy12 is not online. skipperguy12
Joined: 09 Oct 2009
Total Posts: 955
06 Nov 2011 08:46 AM
That lines perfectly right, but hw will the script know who to teleport? I'm not a great scripter, but I think thats the problem. Meybe use a variable to defind speaker? Like:


Speaker = namehere

--code

game:GetService("TeleportService"):TeleportToSpawnByName("Speaker","1818", "SomeSpawnName") --> Will teleport a player to crossroads, and if there was a spawn named "SomeSpawnName" then you would spawn there.

Report Abuse
skipperguy12 is not online. skipperguy12
Joined: 09 Oct 2009
Total Posts: 955
06 Nov 2011 08:47 AM
@Bee, DX could be right, in the wiki its

game:GetService("TeleportService"):TeleportTo("1818", "SomeSpawnName")
Report Abuse
coolbob44 is not online. coolbob44
Joined: 26 Nov 2009
Total Posts: 1649
06 Nov 2011 08:57 AM
You may be encountering problems because most of the "Players" events do not work in LocalScripts.
Report Abuse
beeflord is not online. beeflord
Joined: 06 Jun 2009
Total Posts: 3372
06 Nov 2011 08:58 AM
Aww...
Report Abuse
beeflord is not online. beeflord
Joined: 06 Jun 2009
Total Posts: 3372
06 Nov 2011 09:36 AM
Please help.
Report Abuse
beeflord is not online. beeflord
Joined: 06 Jun 2009
Total Posts: 3372
06 Nov 2011 09:42 AM
What about a talk script that clones the teleport script? Would that be possible?
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
06 Nov 2011 09:58 AM
Tools>Test>Start server>Tools>Test>Start Player
Then run this command in command bar;
game.Players.Player:SetSuperSafeChat(false)
Thats how you get the output
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