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 |
|
|
|
| 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
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 05 Apr 2014 01:48 PM |
| You can't mess with the FriendService. |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 14 Aug 2010 |
| Total Posts: 6905 |
|
| |
|
|
| 05 Apr 2014 05:13 PM |
| command bar has higher context level (or whatever it's called) |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 14 Aug 2010 |
| Total Posts: 6905 |
|
| |
|
UFAIL2
|
  |
| Joined: 14 Aug 2010 |
| Total Posts: 6905 |
|
| |
|
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 |
|
|