The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
Mad City script pastebin roblox
By LINK GAME on 2024-11-22 08:00 am | Syntax: LUA | Views: 17



New Script | Raw | Show/Hide line no. | Copy text to clipboard
  1. local LocalPlayer = game.Players.LocalPlayer
  2. local TeleportOrigin = workspace.Pyramid.Tele.Core2
  3. local TeleportPosition = TeleportOrigin.CFrame
  4.  
  5. function tp(Pos)
  6.     local Magnitude = LocalPlayer.Character.HumanoidRootPart.Position.Magnitude
  7.     local Start = tick()
  8.     local Connection
  9.  
  10.     TeleportOrigin.CanCollide = false
  11.     TeleportOrigin.Transparency = 1
  12.     TeleportOrigin.CFrame = LocalPlayer.Character.HumanoidRootPart.CFrame
  13.  
  14.     repeat
  15.         game:GetService("RunService").Heartbeat:Wait()
  16.     until Magnitude ~= LocalPlayer.Character.HumanoidRootPart.Position.Magnitude or tick() - Start > 1.5
  17.  
  18.     Connection = game:GetService("RunService").Heartbeat:Connect(function()
  19.         LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Pos)
  20.     end)
  21.  
  22.     TeleportOrigin.CanCollide = true
  23.     TeleportOrigin.Transparency = 0
  24.     TeleportOrigin.CFrame = TeleportPosition
  25.     wait(0.4)
  26.     Connection:Disconnect()
  27.     if LocalPlayer.Character:FindFirstChild("AntiTeleport") then
  28.         tp(Pos)
  29.     elseif LocalPlayer.Character.HumanoidRootPart.Position.X - Pos.X > 40 or LocalPlayer.Character.HumanoidRootPart.Position.Y - Pos.Y > 40 then
  30.         tp(Pos)
  31.     else
  32.         wait(0.3)
  33.     end
  34. end
  35.  
  36. for i,v in pairs(workspace.ObjectSelection:GetChildren()) do
  37.     if v.Name == "Fixed Battery" and v.Battery.Position.Y < 500 then
  38.         tp(v.Battery.Position + Vector3.new(0, 5, 0))
  39.         wait(0.2)
  40.         LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v.Battery.Position + Vector3.new(0, 5, 0))
  41.         wait(0.2)
  42.         v.Battery.Battery.Event:FireServer()
  43.     end
  44. end
  45.  
  46. tp(game:GetService("Workspace").ObjectSelection.Generator.Generator.Position)
  47. wait(1)
  48. game:GetService("Workspace").ObjectSelection.Generator.Generator.Generator.Event:FireServer()



  • Recent Roblox Scripts