Categories > Exploiting > Scripts >
req script that brings certain named parts to me
Posted
looking for a script that scans the workspace and finds all the parts with a certain name and teleports them all to me
Replied
You can check out survey:
local partNameToFind = "MySpecialPart" -- Change this to the name you're looking for
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
-- Wait until HumanoidRootPart is available
local hrp = character:WaitForChild("HumanoidRootPart")
for _, obj in pairs(workspace:GetDescendants()) do
if obj:IsA("BasePart") and obj.Name == partNameToFind then
obj.CFrame = hrp.CFrame + Vector3.new(math.random(-5,5), 3, math.random(-5,5))
end
end
Cancel
Post
Replied
thanks i modded it slightly to work with a certain flying game and it still works! all good
Cancel
Post
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post