weax
|
  |
| Joined: 13 Oct 2009 |
| Total Posts: 127 |
|
|
| 26 Oct 2014 05:43 AM |
So, I want to detect if a player is in a room, but I'm not sure how I would do it. Help appreciated
|
|
|
| Report Abuse |
|
|
Goulstem
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 7177 |
|
|
| 26 Oct 2014 05:54 AM |
| http://wiki.roblox.com/index.php?title=Region3 |
|
|
| Report Abuse |
|
|
weax
|
  |
| Joined: 13 Oct 2009 |
| Total Posts: 127 |
|
| |
|
|
| 27 Oct 2014 12:25 AM |
while true do wait(.1) for _, player in pairs(game.Players:GetPlayers()) do local tx = tostring(player:DistanceFromCharacter(script.Parent.Position)) if math.floor(tx+.5) <= 4 then --Stuff to do. end end end |
|
|
| Report Abuse |
|
|