So I was making a luck based game, y'know, the norm, then i am trying to make the walkspeed 16 again, but the computer doesn't know what the humanoid is (and i know why) if that was a mouthful, you will see what i mean
local Hitable = false script.Parent.Touched:Connect(function(hit) if Hitable == false then local humanoid = hit.Parent:findFirstChild("Humanoid") if humanoid~=nil then Hitable = true wait(.5) humanoid.WalkSpeed = 0 local Number = math.random(1,2) print(Number) if Number == 1 then humanoid.Health = 0 end end end end)