So im making an obby where when the player presses Q every part in the workspace gets anchored, But when i use this the part still has avelocity even after me setting the velocity to 0, how do i fix this?
local usi = game:GetService("UserInputService")
usi.InputBegan:Connect(function(input,typing)
if typing then
return
elseif input.KeyCode == Enum.KeyCode.Q then
for i,v in pairs(workspace:GetChildren()) do
if v:IsA('Part') or v:IsA('MeshPart') then
if not v:FindFirstChild('Value') then
if v.Anchored == true then
v.Anchored = false
elseif v.Anchored == false then
v.Anchored = true
end
end
end
end
end)
-- This goes in Starter Pack
Thanks for the help!

1 comment
Thanks!