Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Neon = Instance.new("ScreenGui")
- local btn = Instance.new("TextButton")
- Neon.Name = "Neon"
- Neon.Parent = game.CoreGui
- Neon.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- btn.Name = "btn"
- btn.Parent = Neon
- btn.BackgroundColor3 = Color3.new(1, 1, 1)
- btn.Position = UDim2.new(0.823529422, 0, 0.607210577, 0)
- btn.Size = UDim2.new(0, 152, 0, 38)
- btn.Font = Enum.Font.SourceSans
- btn.Text = "Teleport"
- btn.TextColor3 = Color3.new(0, 0, 0)
- btn.TextSize = 30
- btn.Draggable = true
- btn.Active = true
- btn.MouseButton1Click:connect(function()
- local beak = false
- local Players = game.Players:GetPlayers()
- local Player = game.Players.LocalPlayer
- --teleport script
- if #Players > 1 then -- you as a player
- table.remove(Players,1) -- remove you
- end
- local rnd = Players[math.random(1,#Players)] -- random players
- local sav = Player.Character.HumanoidRootPart.CFrame -- saved pos
- while true do
- wait(0.1)
- print(rnd)
- wait(0.2)
- Player.Character.HumanoidRootPart.CFrame = rnd.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,-0.8) -- teleport and + the numbers
- wait(0.2)
- Player.Character.HumanoidRootPart.CFrame = rnd.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,-0.8) -- teleport and + the numbers
- wait(0.2)
- Player.Character.HumanoidRootPart.CFrame = rnd.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,-0.8) -- teleport and + the numbers
- wait(0.01)
- Players.Character.HumanoidRootPart.CFrame = sav -- go back to place
- if beak == true then
- break
- end
- end
- end)
- game.Players.LocalPlayer:GetMouse().KeyDown:Connect(function(k)
- if k == "e" then
- beak = true
- print(beak)
- end
- end
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement