Kiriyato
|
  |
| Joined: 15 Mar 2014 |
| Total Posts: 94 |
|
|
| 17 Oct 2017 11:47 AM |
Hello!
I've been making a lot of tools in which i clone a model (internally welded) and then give to one of it's parts body velocity. In studio it works just fine, in an online server it always lags. I have tested the tools individually in an empty game and they still lag.
Does any one have any idea how i can fix it?
Ps.: Tool uses handle; normal scrip, not local script; the script consists in calling a function when the tool is activated; in the function, i get some variables locally, for example UserName, Character, Torso Cframe; i think i clone the model and do Instance.new(BodyVelocity) with local; besides that, the function has a for - do that renames the tools constantly to represent the cooldown; i do disable the script in the beggining, and enable it in the end; and also, inside the function i have another function that is called when a model's part is touched; that other function just verifies if the part touched is a humanoid, that it wasnt damaged recently(i use folders with a name like "damaged") and that it isnt the player using the tool. Thats all i think, please help |
|
|
| Report Abuse |
|