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

Begginer: How do I make a no-package script?

Asked by 7 years ago

Sorry, I'm a begginer at scripting and I hate packages, I want no packages in my training place.

0
packages as in like robloxian 2.0? DevScripting 92 — 7y
0
Yes, I want no 2.0, no "woman" or "man", nothing, just the normal one you begin with when you join roblox. iDelta_Dev 2 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago
Edited 7 years ago
local debris = game:GetService('Debris')
local function onDescendantAdded(descendant)
    if descendant:IsA('CharacterMesh') then -- checks if its a package mesh
        debris:AddItem(descendant, 0) -- if so delete it
    end
end
workspace.DescendantAdded:connect(onDescendantAdded) -- checks for anything that enters the workspace, even if it was added into a separate parent just as long as its inside the workspace
0
Thank you! iDelta_Dev 2 — 7y
Ad

Answer this question