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
 

FilteringEnabled Values

Previous Thread :: Next Thread 
HatLicense is not online. HatLicense
Joined: 16 Mar 2015
Total Posts: 330
11 Aug 2016 05:17 PM
I've got a money value in player, I want to give the player 50 coins whenever they touch a brick but with FilteringEnabled I've realised I can't just use the script in the brick and go value=value+50 so how do I go about this?
Report Abuse
FrozenSmite is not online. FrozenSmite
Joined: 17 Jul 2013
Total Posts: 2242
11 Aug 2016 05:19 PM
You can use RemoteEvents and RemoteFunctions
Report Abuse
HatLicense is not online. HatLicense
Joined: 16 Mar 2015
Total Posts: 330
11 Aug 2016 05:21 PM
I'd have to fire a remotefunction with a script in Workspace? Is it even possible firing one with a script and not a localscript?
Report Abuse
Widths is not online. Widths
Joined: 12 Aug 2014
Total Posts: 41286
11 Aug 2016 05:21 PM
put the script within the block:

script.Parent.Touched:connect(function(h)
if h.Parent:FindFirstChild("Humanoid") ~= nil then
local p = game.Players:GetPlayerFromCharacter(h.Parent)
if p ~= nil then
p:FindFirstChild("Money").Value = p:FindFirstChild("Money").Value + 50
wait(2)
end
end
end)

FE shouldn't affect this at all


-iJava
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