GreedTaka
|
  |
| Joined: 12 Dec 2014 |
| Total Posts: 1503 |
|
|
| 03 Sep 2017 02:51 PM |
for i,v in pairs (plrInv:GetChildren()) do print'98798789' -- with FE on stops here
v.Exp.Changed:connect(function(Exp) print 'start1'
game.ReplicatedStorage.Events.XP:FireClient(player)
end ) end end )
its in a server script works in studio and when fe is off
|
|
|
| Report Abuse |
|
|
Baseness
|
  |
| Joined: 07 Oct 2015 |
| Total Posts: 1001 |
|
|
| 03 Sep 2017 02:53 PM |
Tell us the location of the parent of Exp.
|
|
|
| Report Abuse |
|
|
GreedTaka
|
  |
| Joined: 12 Dec 2014 |
| Total Posts: 1503 |
|
|
| 03 Sep 2017 02:58 PM |
local plrInv = player.Stats
it gets all of the values in stats and if they change then if one is changed it should work and see if you have enough exp to level up |
|
|
| Report Abuse |
|
|
GreedTaka
|
  |
| Joined: 12 Dec 2014 |
| Total Posts: 1503 |
|
| |
|
GreedTaka
|
  |
| Joined: 12 Dec 2014 |
| Total Posts: 1503 |
|
| |
|
GreedTaka
|
  |
| Joined: 12 Dec 2014 |
| Total Posts: 1503 |
|
| |
|
GreedTaka
|
  |
| Joined: 12 Dec 2014 |
| Total Posts: 1503 |
|
| |
|
jonesj627
|
  |
| Joined: 06 Oct 2010 |
| Total Posts: 1496 |
|
|
| 03 Sep 2017 03:30 PM |
| are you trying to change values from a local script? |
|
|
| Report Abuse |
|
|
GreedTaka
|
  |
| Joined: 12 Dec 2014 |
| Total Posts: 1503 |
|
|
| 03 Sep 2017 03:33 PM |
im trying to get it to work .. the value changes for sure , it should run this function but it only runs with fe off. it doesn't print start1 with it on
after it does that its supposed to do the rest in a local script |
|
|
| Report Abuse |
|
|
jonesj627
|
  |
| Joined: 06 Oct 2010 |
| Total Posts: 1496 |
|
|
| 03 Sep 2017 03:37 PM |
| that's what i'm asking, if you're trying to update values from a local script, with fe on, it won't replicate the updated value to the server, and the function would never call. what is supposed to be changing your values in player stats? |
|
|
| Report Abuse |
|
|
GreedTaka
|
  |
| Joined: 12 Dec 2014 |
| Total Posts: 1503 |
|
|
| 03 Sep 2017 03:39 PM |
i took out because of chat filtering this is in it too
if v.Exp.Value >= v.ExpNeeded.Value and v.Exp.Value ~= 0 then if Enl then Enl = false v.Exp.Value = nil
v.Level.Value = ((v.Level.Value) + 1) v.ExpNeeded.Value = (calculateLevel(v.Level.Value)) |
|
|
| Report Abuse |
|
|
jonesj627
|
  |
| Joined: 06 Oct 2010 |
| Total Posts: 1496 |
|
|
| 03 Sep 2017 03:43 PM |
| where's the script when v.EXP.Value is changed |
|
|
| Report Abuse |
|
|
GreedTaka
|
  |
| Joined: 12 Dec 2014 |
| Total Posts: 1503 |
|
|
| 03 Sep 2017 03:46 PM |
| that works with fe on its in the woodcutting local script. its just that when u finally get the amount exp needed to level up nothing happens and u dont |
|
|
| Report Abuse |
|
|
|
| 03 Sep 2017 03:47 PM |
| why are you using '' on the print when youre printing numbers the '' is for printing strings. do print(Numbers) |
|
|
| Report Abuse |
|
|
jonesj627
|
  |
| Joined: 06 Oct 2010 |
| Total Posts: 1496 |
|
|
| 03 Sep 2017 03:48 PM |
| Firstly, I know nothing about your game or how you have your scripts organized. But by your response, it sounds like you're trying to change player stats from a local script which I told you would not work because if you tried to change values from local scripts with filtering enabled on, it would not change on the sever. You need to figure out a way to replicate to the server using remote events or something |
|
|
| Report Abuse |
|
|
GreedTaka
|
  |
| Joined: 12 Dec 2014 |
| Total Posts: 1503 |
|
| |
|
jonesj627
|
  |
| Joined: 06 Oct 2010 |
| Total Posts: 1496 |
|
|
| 03 Sep 2017 03:49 PM |
| ugh, i'm done ################## good luck |
|
|
| Report Abuse |
|
|
GreedTaka
|
  |
| Joined: 12 Dec 2014 |
| Total Posts: 1503 |
|
|
| 03 Sep 2017 03:52 PM |
| but in the local script it does change the woodcutting xp for sure ? then its supposed run this in the server script everytime any xp is changed but it doesn't |
|
|
| Report Abuse |
|
|
|
| 03 Sep 2017 03:53 PM |
THERES A REASON ITS ERRORING ON THE PRINT
YOURE PRINTING WRONG
INSTEAD OF DOING
print'123456'
DO
print(123456)
you're printing a value not a string |
|
|
| Report Abuse |
|
|
GreedTaka
|
  |
| Joined: 12 Dec 2014 |
| Total Posts: 1503 |
|
|
| 03 Sep 2017 03:53 PM |
i wasnt talking to u haha i was talking about the print()
so what ur saying is if i change my data values in the local script.. i wont beable to check if they changed in the server script? |
|
|
| Report Abuse |
|
|
GreedTaka
|
  |
| Joined: 12 Dec 2014 |
| Total Posts: 1503 |
|
|
| 03 Sep 2017 03:55 PM |
| changing the print still didnt work |
|
|
| Report Abuse |
|
|
GreedTaka
|
  |
| Joined: 12 Dec 2014 |
| Total Posts: 1503 |
|
| |
|
jonesj627
|
  |
| Joined: 06 Oct 2010 |
| Total Posts: 1496 |
|
|
| 03 Sep 2017 04:01 PM |
That's exactly what I'm saying.
With Filtering Enabled on,
Say for Example I tried to set a player stat value from 10 to 90. It'd be 90 on your computer(client)
But it would not replicate to the server and so It'd still be 10. The function would not call because to the server, it would be like nothing has changed. |
|
|
| Report Abuse |
|
|
GreedTaka
|
  |
| Joined: 12 Dec 2014 |
| Total Posts: 1503 |
|
|
| 03 Sep 2017 04:07 PM |
| ok coo that fixed it it bro thank u |
|
|
| Report Abuse |
|
|