View difference between Paste ID: aw3Dctny and 9UE6YyzY
SHOW: | | - or go back to the newest paste.
1
local Workspace = game:GetService("Workspace")
2
local Players = game:GetService("Players")
3
local LocalPlayer = Players.LocalPlayer
4
local ui = loadstring(game:GetObjects("rbxassetid://4133667265")[1].Source)("Library by wally")
5
local w = ui:CreateWindow('Vehicle Simulator')
6
local t = w:Toggle('Crates', {flag = "c"})
7
spawn(function(C)
8
    while wait(1) do
9
        if w.flags.c then
10
            local Crates = Workspace:GetChildren()
11
            for i=1,#Crates do
12
                if Crates[i].ClassName == "Model" then
13
                    local Crates2 = Crates[i]:GetChildren()
14
                    for i=1,#Crates2 do
15
                        if Crates2[i].ClassName == "Model" then
16
                            local Crates3 = Crates2[i]:GetChildren()
17
                            for i=1,#Crates3 do
18
                                if Crates3[i].ClassName == "MeshPart" then
19
                                    if Crates3[i]:FindFirstChild("Smoke") then
20
                                        firetouchinterest(LocalPlayer.Character.HumanoidRootPart, Crates3[i], 0)
21
                                    end
22
                                end
23
                            end
24
                        end
25
                    end
26
                end
27
            end
28
        end
29
    end
30
end)