Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i make a timestop effect?

Asked by
iuclds 720 Moderation Voter
4 years ago

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

0
using a for loop LuaDLL 253 — 4y

1 answer

Log in to vote
1
Answered by
EDLLT 146
4 years ago
Edited 4 years ago

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)
0
horrible answer, will bring a lot of problems. Elixcore 1337 — 4y
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. EDLLT 146 — 4y
0
i know this was 11 months ago but how do i keybind the freeze? and where do i put it? Noxcitrus 2 — 3y
Ad

Answer this question