Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

If i use DataStore2 Get instead of variables, will the game lag??

Asked by 3 years ago
Edited 3 years ago

Please provide more explanation in your question. If you explain exactly what you are trying to accomplish, it will be much easier to answer your question correctly.

I am worried that the game will lag if i only use the Get function of DataStore2 (thinking on ping). Example:

game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(player,a)
    if a == "run" then
        player.Character.Humanoid.WalkSpeed = 16 + speed:Get()
    end
end)
0
I don't believe so, but only really use it if you want to. And don't use DataStores for changing speed. If you want to, go to the Server-sided script you made here, add an ATTRIBUTE and make it a NUMBER, change it to the number you want, etc, etc. Then just do player.Character.Humanoid.Walkspeed = script:GetAttribute("whatever_you_named_the_attribute").Value , this should change the speed that way Antelear 185 — 2y

Answer this question