Franke004 Posted September 18, 2017 Share Posted September 18, 2017 So , i made my character eat nightmare fuel and upgrade something like wx but i want that upgrade to decay over time so he has to eat more , how do i do that ? someone please help me out Link to comment Share on other sites More sharing options...
pickleplayer Posted September 19, 2017 Share Posted September 19, 2017 You could try something simple using a DoPeriodicTask like this inst:DoPeriodicTask(10, function() --STUFF GOES HERE-- --maybe something kind of like level = level - 1 end) this is where something would run every 10 seconds. Just replace 10 with however many seconds you want it to wait before repeating. I think it would go under common postinit, but I'm not positive. Just because I think it would have to run on the server too so it would keep track of how many levels it drops. You can mess around with to try Link to comment Share on other sites More sharing options...
Franke004 Posted September 20, 2017 Author Share Posted September 20, 2017 On 9/19/2017 at 3:55 AM, pickleplayer said: You could try something simple using a DoPeriodicTask like this inst:DoPeriodicTask(10, function() --STUFF GOES HERE-- --maybe something kind of like level = level - 1 end) this is where something would run every 10 seconds. Just replace 10 with however many seconds you want it to wait before repeating. I think it would go under common postinit, but I'm not positive. Just because I think it would have to run on the server too so it would keep track of how many levels it drops. You can mess around with to try Thanks , what do i have to put in ' --STUFF GOES HERE-- hm.... imma try to put something like nightmare fuel something something Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now