I'm trying to make a timestop script for my JJBA game, but every time I launch this script, the players character parts are left anchored.
Here's a simplified version of the code:
local anchor
for _, v in pairs(workspace:GetDescendants()) do
if v:IsA("BasePart") and v.Name ~= "HumanoidRootPart" then
anchor = v.Anchored
end
end
for _, v in pairs(workspace:GetDescendants()) do
if v:IsA("BasePart") and v.Name ~= "HumanoidRootPart" then
v.Anchored = true
end
end
wait(5)
for _, v in pairs(workspace:GetDescendants()) do
if v:IsA("BasePart") and v.Name ~= "HumanoidRootPart" then
v.Anchored = anchor
end
end
--(The camera moves around because of the HumanoidRootPart, don't say anything about that, I just want to unanchor the character parts)--

1 comment
ohh lol thanks