Roblox Tower Defense Simulator Autofarm Script

Roblox Tower Defense Simulator Autofarm Script

Script by House

local Players = game:GetService("Players")
repeat wait() until Players.LocalPlayer repeat wait() until Players.LocalPlayer.Character repeat wait() until Players.LocalPlayer.Character.HumanoidRootPart

function fireButton1(button)
   for i,signal in next, getconnections(button.MouseButton1Click) do
       signal:Fire()
   end
   for i,signal in next, getconnections(button.MouseButton1Down) do
       signal:Fire()
   end
   for i,signal in next, getconnections(button.Activated) do
       signal:Fire()
   end
end

if game.PlaceId == 3260590327 then
   local Elevators = workspace:WaitForChild("Elevators")
   local function teleport()
       for _,v in pairs(Elevators:GetDescendants()) do
           if v.Name == "Players" and v:IsA("IntValue") and v.Value == 0 then
               if v.Parent.Parent.name ~= "Event" then
                   Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.Parent.Parent.Touch.CFrame
               end
           end
       end
   end
   teleport() wait(30) teleport() wait(30) teleport()

elseif game.PlaceId ~= 3260590327 then
   while wait() do
       local RF = game:GetService("ReplicatedStorage").RemoteFunction
       RF:InvokeServer("Difficulty", "Vote", "Insane")
       RF:InvokeServer("Waves", "Skip")
       fireButton1(game:GetService("Players").LocalPlayer.PlayerGui.GameGui.Results.Lobby.Button)
   end
end
%d bloggers like this: