I need to be able to access the physical player to change the humanoid of certain players without having them step on or click anything. I don't think it would work with a player added function either because it needs to happen in the middle of the game, but I could be wrong about this. I have tried to get the player name using local player, however that didn't work.
local players = game:GetService("Players")
while wait(1) do
for i,v in pairs(players:GetPlayers()) do
game.Workspace(v.Name).Humanoid.WalkSpeed = 20
end
end
When using the script above this error message comes up: - Workspace.SeekingA:5: attempt to call a userdata value
And when using the script below it comes up with the same error message.
local players = game:GetService("Players")
while wait(1) do
for i,v in pairs(players:GetPlayers()) do
game.Workspace(players.Name).Humanoid.WalkSpeed = 20
end
end
