Index nil with 'Character' using a custom character rig (Sprint Gui)

I used a scripting tutorial on increase walk-speed and play animation when walk-speed increases, along with a sprint cool down, and a Gui indicator. The Gui doesn’t do anything, nor dose it go up or down when ‘stamina’ is being utilized.

This is just a video I used for help to see how it’s put together.
ref : https://www.youtube.com/watchv=Bo3GmbJXX_E&list=PLutYCynjIpEsWZMItJTZakPsE4cF1gKrp&index=6&t=750s

Typo. game.Players.localPlayer should’ve been game.Players.LocalPlayer (is case-sensitive).

LocalPlayer can only be defined on the client. Since you’re using a server script, the player variable does not exist and therefore throws this error.

2 Likes