KodieCorn
|
  |
| Joined: 23 Jul 2012 |
| Total Posts: 6500 |
|
|
| 21 Nov 2016 11:59 AM |
I have a reset stats GUI for my game but as soon as I switch my game to filtering enabled it no longer works.
Should I try to bother with fixing it I've tried before with no success or should I just find a script that resets your stats to 0 if you say the command !reset stats
I don't know how to make a script that would work on command like admin commands but with the only command being !resets stats
:(
|
|
|
| Report Abuse |
|
|
|
| 21 Nov 2016 12:25 PM |
Is everything in a local script?
|
|
|
| Report Abuse |
|
|
KodieCorn
|
  |
| Joined: 23 Jul 2012 |
| Total Posts: 6500 |
|
|
| 21 Nov 2016 12:26 PM |
I think so if I switch it to a local script would that fix the problem ?
|
|
|
| Report Abuse |
|
|
|
| 21 Nov 2016 12:31 PM |
You might need to have it set to an event you can put the event in your ReplicatedStorage and you will need to have a script in serverscriptservice and in your script write this
local repStorage = game:GetService("ReplicatedStorage ") local remote = repStorage:WaitForChild("remote")
remove:OnServerEvent:connect(function))
end)
I will write more just do this for now.
|
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 21 Nov 2016 12:32 PM |
https://forum.roblox.com/Forum/ShowPost.aspx?PostID=198426552
|
|
|
| Report Abuse |
|
|
|
| 21 Nov 2016 12:33 PM |
okay time to edit the script you have written in alright?
local repStorage = game:GetService("ReplicatedStorage ") local remote = repStorage:WaitForChild("remote")
remove:OnServerEvent:connect(function(player)
--Find your humanoid
end)
|
|
|
| Report Abuse |
|
|
|
| 21 Nov 2016 12:37 PM |
Only local scripts can really fire or activate any of these functions so you should read about this on the wiki.
|
|
|
| Report Abuse |
|
|
KodieCorn
|
  |
| Joined: 23 Jul 2012 |
| Total Posts: 6500 |
|
|
| 21 Nov 2016 12:45 PM |
oh also not everything is in a local script its just a gui and the scripts are in the gui so idk what to do
|
|
|
| Report Abuse |
|
|