golangoal
|
  |
| Joined: 26 Apr 2011 |
| Total Posts: 185 |
|
|
| 12 Mar 2016 05:29 PM |
When I use FE, does everything has to be called from a local script to a server script? For example if pressing the key H sets my walkspeed to 100, the line of writing humanoid.walkspeed = 100 is supposed to be written in a server script or a local script? |
|
|
| Report Abuse |
|
|
golangoal
|
  |
| Joined: 26 Apr 2011 |
| Total Posts: 185 |
|
| |
|
|
| 12 Mar 2016 06:10 PM |
Well, not everything. And yeah you should invoke a RE/RF that changes the walkspeed after you press H or whatever. |
|
|
| Report Abuse |
|
|
golangoal
|
  |
| Joined: 26 Apr 2011 |
| Total Posts: 185 |
|
|
| 12 Mar 2016 06:16 PM |
| I need to understand something, does FE prevent exploiters from changing the game no matter where I write the script(server or local)? |
|
|
| Report Abuse |
|
|
golangoal
|
  |
| Joined: 26 Apr 2011 |
| Total Posts: 185 |
|
|
| 12 Mar 2016 06:18 PM |
| Because I tend to think that if something is written in a local script, then an exploiter can change things in it like switching his walkspeed and then the other players can see it which I don't want to happen. |
|
|
| Report Abuse |
|
|
|
| 12 Mar 2016 06:19 PM |
| Just change the speed on the client, since it controls the character's physics anyways. |
|
|
| Report Abuse |
|
|
golangoal
|
  |
| Joined: 26 Apr 2011 |
| Total Posts: 185 |
|
|
| 12 Mar 2016 06:23 PM |
| If you had to choose where to change the speed of the player in FE, would you choose to put it in local or server script? What you say is what I'll do. |
|
|
| Report Abuse |
|
|
|
| 12 Mar 2016 06:24 PM |
if you change it in the client the higher walkspeed might not show to other clients
or, it will
you'd have to get a friend to test with you and check
#Code print("Narwhals are our future") |
|
|
| Report Abuse |
|
|
|
| 12 Mar 2016 06:26 PM |
Lord, it would because you can change local stuff with FE, which would allow a walkspeed change.
|
|
|
| Report Abuse |
|
|
|
| 12 Mar 2016 06:29 PM |
| Changing the speed on the client would cause the character's speed to increase, but the property change wouldn't replicate. So if you need other network peers to know the property was changed, change it on the server. Otherwise, change it on the client. |
|
|
| Report Abuse |
|
|
golangoal
|
  |
| Joined: 26 Apr 2011 |
| Total Posts: 185 |
|
|
| 12 Mar 2016 06:33 PM |
So you would use this?
--server
script.RemoteEvent.OnServerEvent:conenct(function(Player) Player.Character.Humanoid.WalkSpeed = 100 end)
--local
game.Workspace.Script.RemoteEvent:FireServer() |
|
|
| Report Abuse |
|
|