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)

1 comment

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