--[[ Global Variables ]] local game = game local players = game:GetService("Players") local localPlayer = players.LocalPlayer local character = localPlayer.Character local playerGui = localPlayer.PlayerGui local teleportService = game:GetService("TeleportService") local userInputService = game:GetService("UserInputService") local virtualInputManager = game:GetService("VirtualInputManager") local runService = game:GetService("RunService") local replicatedStorage = game:GetService("ReplicatedStorage") local guiService = game:GetService("GuiService") local tweenService = game:GetService("TweenService") local httpService = game:GetService("HttpService") local placeId = game.PlaceId local coreGui = game:GetService("CoreGui") local currentCamera = workspace.CurrentCamera local keyCode = Enum.KeyCode local instanceNew = Instance.new local uDim2New = UDim2.new local vector2New = Vector2.new local vector3New = Vector3.new local color3New = Color3.new local cFrameNew = CFrame.new --[[ local variables ]] local tycoons = workspace:FindFirstChild("Tycoons") local factory for _,v in tycoons:GetChildren() do if v.Owner.Value == localPlayer.Name then factory = v break end end --[[ Main code ]] runService.RenderStepped:Connect(function() for _,v in workspace.DroppedParts[factory.Name]:GetChildren() do for i,b in factory:GetChildren() do if b.ClassName == "Model" and b:FindFirstChild("Model") and b.Model:FindFirstChild("UpgraderShip") then local upgrader = b.Model:FindFirstChild("Upgrade") or b.Model:FindFirstChild("Scan") firetouchinterest(v, upgrader, 0) end end end end)