
2.2k Views
605 Executions
Part controller
Universal Script π
ThescriptmasterFirst script
11 months ago
Please login to perform these actions:Does it work?
No reports yetNo 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
Script edited: Update script
-- 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
0Log in to join the conversation. Login
No comments yet. Be the first!







