|
| 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 |
|
|
|
| 11 Aug 2016 05:19 PM |
| You can use RemoteEvents and RemoteFunctions |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|