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 » Scripters
Home Search
 

How Do I Tell If A Player Has Been Still For 1 minute

Previous Thread :: Next Thread 
HuskiesPancake is not online. HuskiesPancake
Joined: 12 Apr 2013
Total Posts: 2623
27 Nov 2015 01:15 AM
^^^^
Report Abuse
HuskiesPancake is not online. HuskiesPancake
Joined: 12 Apr 2013
Total Posts: 2623
27 Nov 2015 01:17 AM
bump
Report Abuse
lilblitz56 is not online. lilblitz56
Joined: 06 Nov 2010
Total Posts: 461
27 Nov 2015 01:17 AM
Use Humanoid.PlatformStanding
Report Abuse
sonicboy01 is not online. sonicboy01
Joined: 22 Nov 2008
Total Posts: 923
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
HuskiesPancake is not online. HuskiesPancake
Joined: 12 Apr 2013
Total Posts: 2623
27 Nov 2015 01:21 AM
How Do I Make Sure Its for 60 Secons Though
Report Abuse
lilblitz56 is not online. lilblitz56
Joined: 06 Nov 2010
Total Posts: 461
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
sonicboy01 is not online. sonicboy01
Joined: 22 Nov 2008
Total Posts: 923
27 Nov 2015 01:21 AM
You bothered to search in the wiki, for an anti afk system?
Report Abuse
sonicboy01 is not online. sonicboy01
Joined: 22 Nov 2008
Total Posts: 923
27 Nov 2015 01:22 AM
@lil, good logic right there...
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
27 Nov 2015 01:24 AM
awful logic...
Report Abuse
sonicboy01 is not online. sonicboy01
Joined: 22 Nov 2008
Total Posts: 923
27 Nov 2015 01:25 AM
Might not be the most efficient way, but it's clever.
Report Abuse
lilblitz56 is not online. lilblitz56
Joined: 06 Nov 2010
Total Posts: 461
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 is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
27 Nov 2015 01:26 AM
It wouldn't work at all.
Report Abuse
sonicboy01 is not online. sonicboy01
Joined: 22 Nov 2008
Total Posts: 923
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
lilblitz56 is not online. lilblitz56
Joined: 06 Nov 2010
Total Posts: 461
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 is not online. 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
sonicboy01 is not online. sonicboy01
Joined: 22 Nov 2008
Total Posts: 923
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 is not online. 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
sonicboy01 is not online. sonicboy01
Joined: 22 Nov 2008
Total Posts: 923
27 Nov 2015 01:30 AM
Or they end up falling through the ground so there torso above is showing :)
Report Abuse
sonicboy01 is not online. sonicboy01
Joined: 22 Nov 2008
Total Posts: 923
27 Nov 2015 01:30 AM
Lmao.
Report Abuse
cntkillme is not online. 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
lilblitz56 is not online. lilblitz56
Joined: 06 Nov 2010
Total Posts: 461
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
HuskiesPancake is not online. HuskiesPancake
Joined: 12 Apr 2013
Total Posts: 2623
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
cpmoderator12345 is not online. cpmoderator12345
Joined: 26 Jan 2013
Total Posts: 15651
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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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