idk what am I doing wrong, but anyways i want the script to change your walkspeed
script.Parent.ClickDetector.MouseClick:Connect(function(lol)
local humanoid = lol.Parent:FindFirstChild("Humanoid")
if humanoid ~= nil then
humanoid.WalkSpeed = 0
end
end)

2 comments
more context?
When a part is clicked your WalkSpeed is set to 0