|
| 23 Jul 2012 08:56 PM |
| Is that a function? It looks like ROBLOX might have used it in the Friend Only door 2.0. |
|
|
| Report Abuse |
|
|
| |
|
|
| 23 Jul 2012 09:00 PM |
It's a method, yes.
> http://wiki.roblox.com/index.php/IsFriendsWith
† KMXD †
|
|
|
| Report Abuse |
|
|
|
| 23 Jul 2012 09:01 PM |
| OMG cool. I was just thinking about it in the car. LOL |
|
|
| Report Abuse |
|
|
|
| 23 Jul 2012 09:03 PM |
So now if I do
script.Parent.Touched:connect(function ot(h)
if h:IsFriendsWith(1, 7036217) then print("User is friendswithme!")
end)
in a block, will it work? I don't get the ( integer userId ) part |
|
|
| Report Abuse |
|
|
| |
|
|
| 23 Jul 2012 09:06 PM |
Something like:
script.Parent.Touched:connect(function(h) if h:FindFirstChild("Humanoid") then local p = Game.Players:GetPlayerFromCharacter(h.Parent) if p:IsFriendsWith(7036217) then print("User is friendswithme!") end end end)
† KMXD † |
|
|
| Report Abuse |
|
|
|
| 23 Jul 2012 09:07 PM |
| Ok, that makes more sense. |
|
|
| Report Abuse |
|
|
| |
|
| |
|