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
 

Re: An if statement to detect a player with higher score?

Previous Thread :: Next Thread 
roblox123ii is not online. roblox123ii
Joined: 16 Nov 2008
Total Posts: 11
05 Sep 2015 07:06 AM
I've had a concept of a roblox place I'd enjoy making, however I've came across this hard thing I can't put my brain around. How would I be able to detect another player with a higher score after touching a block?

I'm sorry if I'm not wording this correctly but here's the thing I want it to do:

1. Player with 1 point steps on block.
2. If another player has more points who is also stepping on that block
3. Kill the player with less points.

However I can't put my head around detecting this other player with more points.
Any advice?
Report Abuse
IllegallyBlind is not online. IllegallyBlind
Joined: 07 Nov 2010
Total Posts: 1691
05 Sep 2015 07:30 AM
more detail less writing


I was gonna make a dubstep joke but I guess ill just drop it.
Report Abuse
roblox123ii is not online. roblox123ii
Joined: 16 Nov 2008
Total Posts: 11
05 Sep 2015 07:42 AM
I think I gave enough detail for you guys to understand the problem I have.

I can't figure out how to detect a player when you step on a part.

That's all I need to figure out.
Report Abuse
IllegallyBlind is not online. IllegallyBlind
Joined: 07 Nov 2010
Total Posts: 1691
05 Sep 2015 08:29 AM
Touched and TouchEnded events.


I was gonna make a dubstep joke but I guess ill just drop it.
Report Abuse
lampwnage121 is not online. lampwnage121
Joined: 20 Oct 2012
Total Posts: 4285
05 Sep 2015 08:38 AM
Obviously keep track of the score of the highest player that has touched it so far and compare it to everyone that touches it.
Report Abuse
roblox123ii is not online. roblox123ii
Joined: 16 Nov 2008
Total Posts: 11
05 Sep 2015 08:44 AM
Ah, completely forgot about those, I havent used Lua in ages. thanks.
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