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
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
| |
|
|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 21 Oct 2008 |
| Total Posts: 2866 |
|
|
| 06 Nov 2011 08:16 AM |
| game:GetService("TeleportService"):TeleportTo(58444466) |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|
|
| 06 Nov 2011 08:47 AM |
@Bee, DX could be right, in the wiki its
game:GetService("TeleportService"):TeleportTo("1818", "SomeSpawnName") |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 06 Jun 2009 |
| Total Posts: 3372 |
|
| |
|
beeflord
|
  |
| Joined: 06 Jun 2009 |
| Total Posts: 3372 |
|
| |
|
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
|
  |
| 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 |
|
|