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: TeleportService Question

Previous Thread :: Next Thread 
UFAIL2 is not online. UFAIL2
Joined: 14 Aug 2010
Total Posts: 6905
05 Apr 2014 01:27 PM
while true do
for num, Friend in pairs(Friends) do
wait()
local success, error, place, server = Teleport:GetPlayerPlaceInstanceAsync(Friend)
if success and place ~= 134110531 then
Tab[num].IsOnline.Text = "true"
else
print(error)
Tab[num].IsOnline.Text = "false"
end
end
end

The error this is printing is Forbidden. Can anyone explain to me why?
Report Abuse
DeSpizer27 is not online. DeSpizer27
Joined: 13 Jul 2012
Total Posts: 2679
05 Apr 2014 01:47 PM
Are you testing in solo mode? If so, studio doesn't allow you to teleport, you have to test it through the game.
Report Abuse
maxomega3 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
05 Apr 2014 01:48 PM
You can't mess with the FriendService.
Report Abuse
UFAIL2 is not online. UFAIL2
Joined: 14 Aug 2010
Total Posts: 6905
05 Apr 2014 02:39 PM
I messed with that Service via Command Bar. Should I just re-install?
Report Abuse
UFAIL2 is not online. UFAIL2
Joined: 14 Aug 2010
Total Posts: 6905
05 Apr 2014 04:54 PM
Bump
Report Abuse
VerifiedName is not online. VerifiedName
Joined: 26 Jul 2009
Total Posts: 4534
05 Apr 2014 05:13 PM
command bar has higher context level (or whatever it's called)
Report Abuse
UFAIL2 is not online. UFAIL2
Joined: 14 Aug 2010
Total Posts: 6905
05 Apr 2014 05:23 PM
That isn't answering either of my questions.
Report Abuse
UFAIL2 is not online. UFAIL2
Joined: 14 Aug 2010
Total Posts: 6905
05 Apr 2014 06:22 PM
!
Report Abuse
UFAIL2 is not online. UFAIL2
Joined: 14 Aug 2010
Total Posts: 6905
05 Apr 2014 07:26 PM
Can anyone help me?
Report Abuse
UFAIL2 is not online. UFAIL2
Joined: 14 Aug 2010
Total Posts: 6905
05 Apr 2014 08:40 PM
Here is the whole script if it will help anyone:

local Teleport = game:GetService("TeleportService")

local Friends = {9685104, 47507043, 14243332, 18990052, 9391574, 31611868, 4417568, 619780, 5204247, 261, 33768326, 11208695, 9318283}
local Tab = game.Players.LocalPlayer.PlayerGui:WaitForChild("ScreenGui"):GetChildren()

function UsernameFromID(ID)
if type(ID) ~= "number" then
return
end
local sets = game:service("InsertService"):GetUserSets(ID)
for k, v in next, sets do
if v.Name == "My Models" then
return v.CreatorName
end
end
end

for num, Friend in pairs(Friends) do
Tab[num].N.Text = UsernameFromID(Friend)
end

while true do
for num, Friend in pairs(Friends) do
wait()
local success, error, place, server = Teleport:GetPlayerPlaceInstanceAsync(Friend)
if success then
Tab[num].IsOnline.Text = "true"
else
Tab[num].IsOnline.Text = "false"
end
end
end
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