local Player = game.Players.LocalPlayer local player = game.Players:GetPlayerFromCharacter(char) local char = Player.Character local Character = Player.Character local RootPart = Character.HumanoidRootPart
local Player = game.Players.LocalPlayer local player = game.Players:GetPlayerFromCharacter(char) local char = Player.Character local Character = Player.Character local RootPart = Character.HumanoidRootPart
If you're trying to address game.Players.LocalPlayer,
then you need to be using a LocalScript