I’ve never gotten this error before and it started happening randomly.
Not sure what’s happening.
function ToggleMovementPlaying(toggle)
for i,v in pairs(_G.Players) do
if v.Character then
if v.Character:FindFirstChild("Humanoid") then
if toggle then
if v.Character.Humanoid then
if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(v.UserId, 2087304) then -- line 54
v.Character.Humanoid.WalkSpeed = 20
else
if v.Character.Humanoid then
v.Character.Humanoid.WalkSpeed = 16
end
end
end
else
if v.Character.Humanoid then
v.Character.Humanoid.WalkSpeed = 0
end
end
end
end
end
end