when i try to run this code the output is Players.4lve.Backpack.Speed Poition.Script:9: attempt to call a userdata value why?
script.Parent.Activated:Connect(function(player) local plr = script.Parent.Parent local hum = plr:WaitForChild("Humanoid") print(plr.Name)
script.Parent:Destroy()
hum.WalkSpeed = 50
for i = 1,10 do
local speed = game:GetService("Players")(plr.Name).PlayerGui.Boosts.Frame.Speed
speed.Visible = true
speed.Time.Text = i
end
hum.WalkSpeed = 16
end)

1 comment
Where are you defining "hum"?