| |
|
| |
|
|
| 27 Nov 2015 01:17 AM |
| Use Humanoid.PlatformStanding |
|
|
| Report Abuse |
|
|
|
| 27 Nov 2015 01:19 AM |
| *Sighs* only if the players body parts positions actually changed it's pos in the properties..... would help us all.... anyone mind explaining why roblox put this as it is? |
|
|
| Report Abuse |
|
|
|
| 27 Nov 2015 01:21 AM |
| How Do I Make Sure Its for 60 Secons Though |
|
|
| Report Abuse |
|
|
|
| 27 Nov 2015 01:21 AM |
game.Players.LocalPlayer.Character.Humanoid.PlatformStanding:connect(function(PlatformStanding) if PlatformStanding then wait(60) print(game.Players.LocalPlayer.Name.." has been PlatformStanding for one minute.") end end) |
|
|
| Report Abuse |
|
|
|
| 27 Nov 2015 01:21 AM |
| You bothered to search in the wiki, for an anti afk system? |
|
|
| Report Abuse |
|
|
|
| 27 Nov 2015 01:22 AM |
| @lil, good logic right there... |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
|
| 27 Nov 2015 01:25 AM |
| Might not be the most efficient way, but it's clever. |
|
|
| Report Abuse |
|
|
|
| 27 Nov 2015 01:25 AM |
| cnt I was just trying to give him a simple way of doing what he asked. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
|
| 27 Nov 2015 01:27 AM |
| It sets them with a platform so if they move the platform stand will equal false equaling them to be active, but I wouldn't use platform stand personally. |
|
|
| Report Abuse |
|
|
|
| 27 Nov 2015 01:27 AM |
| You're actually right though now that I look over it again, lol. I would need to add an i statement or something to make sure they stay still for 60 seconds instead of just a wait. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 27 Nov 2015 01:28 AM |
| ... I'll wait until you guys figure out the huge logic problem with this. |
|
|
| Report Abuse |
|
|
|
| 27 Nov 2015 01:29 AM |
| That when they fall over it possibly alters this? Or when a player touches them it will set it to false? "I wouldn't personally use it" :) |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 27 Nov 2015 01:30 AM |
Anyways, a completely different solution that might work: maybe UIS would be of help here?
local lastActive = tick(); local function updateActive() lastActive = tick(); end UIS.InputBegan:connect(updateActive); UIS.InputEnded:connect(updateActive);
while true do wait(60) if tick() >= lastActive + 60 then -- inactive end end |
|
|
| Report Abuse |
|
|
|
| 27 Nov 2015 01:30 AM |
| Or they end up falling through the ground so there torso above is showing :) |
|
|
| Report Abuse |
|
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 27 Nov 2015 01:31 AM |
| Although "still" is different than "inactive" so what I said is technically incorrect. |
|
|
| Report Abuse |
|
|
|
| 27 Nov 2015 01:31 AM |
| No the reason it doesn't work is because I was just careless and added a 60 second wait in there lol. Say if they began platforming, it would automatically start waiting for 60 seconds but if they start moving during that 60 seconds, it would still keep waiting and then it would print. So basically that wasn't an accurate script at all. |
|
|
| Report Abuse |
|
|
|
| 27 Nov 2015 01:31 AM |
waitcount = 0 game.Players.LocalPlayer.Character.Humanoid.PlatformStanding:connect(function (PlatformStanding) while PlatformStanding wait(1) waitcount++
if waitcount = 60: print(game.Players.LocalPlayer.Name.." has been PlatformStanding for one minute.") end end)
Might Be Wrong I Don't Know Much Luna Going On My Kwoldedge of other launguages |
|
|
| Report Abuse |
|
|
|
| 27 Nov 2015 02:26 AM |
| well you do realize that the playerstandingstill event thing fires like 2 minutes after they're actually afk |
|
|
| Report Abuse |
|
|
galio13
|
  |
| Joined: 20 Jul 2011 |
| Total Posts: 842 |
|
|
| 27 Nov 2015 10:29 AM |
| Well if you guys really didnt know, get the player's mouse and check if idle then make a timer and after the 60 sec has past fire a function, I wil do it for 20 robux |
|
|
| Report Abuse |
|
|