Universal Script 📌
2.7k Views
133 Executions

Simple Delete body mover

Universal Script 📌
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Deletes bodymovers that are currently in the workspace Simple script

View Raw
local UserInputService = game:GetService("UserInputService")

local function removeBodyMovers(target)
    for _, descendant in ipairs(target:GetDescendants()) do
        if descendant:IsA("BodyMover") then
            descendant:Destroy()
        end
    end
end


UserInputService.InputBegan:Connect(function(input, gameProcessed)
	if gameProcessed then return end
	if input.KeyCode == Enum.KeyCode.M  then
	    removeBodyMovers(workspace)
	end
end)



Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!