Universal Script πŸ“Œ
2.2k Views
605 Executions

Part controller

Universal Script πŸ“Œ
Thescriptmaster
ThescriptmasterFirst script
11 months 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

This script can alter parts locally but still. Can be seen by other players, make sure you have the parts network or it won’t work:/

Updates

  1. Script edited: Update script

View Raw
-- SERVICES
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local TweenService = game:GetService("TweenService")
local player = Players.LocalPlayer

-- WAIT FOR PLAYERGUI
local playerGui = player:WaitForChild("PlayerGui")

-- CHARACTER
local char = player.Character or player.CharacterAdded:Wait()
local hrp = char:WaitForChild("HumanoidRootPart")

-- VARIABLES
local activeConnections = {}

-------------------------------
-- FUNCTION: GET WORLD PARTS
-------------------------------
local function getWorldParts()
	local parts = {}
	for _, p in ipairs(workspace:GetDescendants()) do
		if p:IsA("BasePart") and not p.Anchored then
			local inPlayer = false
			for _, plr in ipairs(Players:GetPlayers()) do
				if plr.Character and p:IsDescendantOf(plr.Character) then
					inPlayer = true
					break
				end
			end
			if not inPlayer then
				table.insert(parts, p)
			end
		end
	end
	return parts
end

-------------------------------
-- FUNCTION: CLEAR EFFECTS


Comments

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

More universal scripts

See all
Script hub
164.5k
562.3k
Bumped 2 hours ago
Key System

Script hub

Hall of Fame #6

Verified script badgeAcro Hub OP SCRIPT

Script hub
3.0k
3.8k
Bumped 3 hours ago
Script hub
246
1.2k
13 hours ago
Key System

Script hub

#8 today

Verified script badgeBlendHub | Easy + Quick

Universal Script πŸ“Œ
137
79
Approved 5 hours ago
Script hub
147
884
Approved 6 hours ago
Script hub
75
193
Approved 6 hours ago
Universal Script πŸ“Œ
99
235
Approved 6 hours ago