Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do i make a timestop effect?

i want a time stop effect that makes only certain models get anchored. How do i do that using get children?

1 comment

0

using a for loop

1 answer

✓ Accepted answer

There you go bud Feel free to ask me if you want some modifications for example freezing player's character only or such things. This will freeze the whole workspace and unfreeze it in 3 seconds Use GetDescendants since it gets the children of the children of the children and so on

FREEZEME=workspace -- Change it if you don't want the whole workspace frozen
function anchor(bool)
	children=FREEZEME:GetDescendants()
	for i=1,#children do
		if children[i]:IsA("BasePart") and children[i].className~="Terrain" then -- Checks if it is a basepart and not a terrain
			children[i].Anchored=bool
		end
	end
end
-- In order to toggle it type anchor(true) or anchor(false)
anchor(true)
wait(3) -- How many seconds do you want it to wait?
anchor(false)

3 comments

0

horrible answer, will bring a lot of problems.

0

@Elixcore, if your eyes were not broken there were options saying what you want to freeze, Therefore I kindly said that I could edit it so that it matches his needs since he didn't really got into the information, idiot.

0

i know this was 11 months ago but how do i keybind the freeze? and where do i put it?

This discussion is preserved as it was. New answers, comments, and votes are closed.