so i made a script for stopping time and it plays the sound but doesnt do anything. it goes in startercharacterscripts if you couldnt tell
while true do
if script.Parent.Name == "defaultkid99" or script.Parent.Name == "mahnmon" or script.Parent.Name == "doglover8775" or script.Parent.Name == "mc_campbell" then
wait(15)
script["STOP TIME"].PlaybackSpeed = 1
script["STOP TIME"].TimePosition = 0
script["STOP TIME"]:Play()
local parts = workspace:GetDescendants()
for i,v in next, parts do
if v.Name == "Part" or v.Name == "HumanoidRootPart" or v.ClassName == workspace.Baseplate.ClassName then
local oldanchor = v.Anchored
local oldvelocity = v.Velocity
v.Anchored = true
script.Parent.HumanoidRootPart.Anchored = false
script.Parent.Torso.Anchored = false
script.Parent.Head.Anchored = false
script.Parent["Right Arm"].Anchored = false
script.Parent["Left Arm"].Anchored = false
script.Parent["Right Leg"].Anchored = false
script.Parent["Left Leg"].Anchored = false
wait(20)
v.Anchored = oldanchor
v.Velocity = oldvelocity
end
end
script["STOP TIME"].PlaybackSpeed = 2
script["STOP TIME"].TimePosition = 1
script["STOP TIME"]:Play()
end
end
please figure out what went wrong here.

2 comments
give full script
this is full script