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
 

Scripting a mana bar with filtering enabled

Previous Thread :: Next Thread 
BlockCrusader is not online. BlockCrusader
Joined: 23 Jun 2013
Total Posts: 76
13 May 2017 11:44 PM
Unlike a health bar, I think a mana bar doesn't have a way to bypass filtering enabled. So would I have an integer value placed in a player like a leaderboard would have and also a script in the player that sends a remote event every time it detects the integer value change? Or, is there another solution that's better preferred?
Report Abuse
Dratik is online. Dratik
Joined: 13 Nov 2008
Total Posts: 36385
13 May 2017 11:46 PM
You could put the value in the gui... Right? Since it goes to PlayerGui?


Report Abuse
Intended_Pun is not online. Intended_Pun
Joined: 10 Aug 2016
Total Posts: 4384
13 May 2017 11:49 PM
You could make a health bar and make it so the health is stored on the server and the client displays it.

That is the right way.
Report Abuse
BlockCrusader is not online. BlockCrusader
Joined: 23 Jun 2013
Total Posts: 76
14 May 2017 12:22 AM
Wouldn't that just defeat the purpose of Filtering Enabled since the mana values are now visible on the client side?
Report Abuse
BlockCrusader is not online. BlockCrusader
Joined: 23 Jun 2013
Total Posts: 76
14 May 2017 12:23 AM
@Dratik*
Report Abuse
BlockCrusader is not online. BlockCrusader
Joined: 23 Jun 2013
Total Posts: 76
14 May 2017 12:28 AM
@Intended Yes, I know that, but the point is that how would the GUI communicate with the mana values? If I'm not mistaken, I cannot directly access the mana values, which are stored on the server side, from a local script. So in that case, what would I have to do?
Report Abuse
nullfeels is not online. nullfeels
Joined: 31 Mar 2017
Total Posts: 1215
14 May 2017 12:32 AM
Use a RemoteFunction.
Report Abuse
BlockCrusader is not online. BlockCrusader
Joined: 23 Jun 2013
Total Posts: 76
14 May 2017 12:32 AM
...Welp, this was a wild goose chase. I fixed it. Thank you anyways
Report Abuse
Valyrian_Advisor is not online. Valyrian_Advisor
Joined: 13 Apr 2013
Total Posts: 1703
14 May 2017 01:41 AM
Let a local script change the bar for the player, but let the mana value but let only the server modify the mana value , so put it somewhere inside the game.
Report Abuse
Valyrian_Advisor is not online. Valyrian_Advisor
Joined: 13 Apr 2013
Total Posts: 1703
14 May 2017 01:42 AM
Wow, mobile corrector even duplicate words now?
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