Runixer

Untitled

Jul 7th, 2019
510
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.39 KB | None | 0 0
  1. game:GetService("RunService").Stepped:Connect(function()
  2. PlaybackRandomize = math.random(1,5)
  3. end)
  4. local Input = game:GetService("UserInputService")
  5. local Plr = game.Players.LocalPlayer
  6. local Mouse = Plr:GetMouse()
  7. function To(position)
  8. local Chr = Plr.Character
  9. if Chr ~= nil then
  10. for i=1,10 do
  11. game:GetService("Players").LocalPlayer.Character.Head.Transparency = 0+.1*i
  12. game:GetService("Players").LocalPlayer.Character.Torso.Transparency = 0+.1*i
  13. game:GetService("Players").LocalPlayer.Character["Left Arm"].Transparency = 0+.1*i
  14. game:GetService("Players").LocalPlayer.Character["Right Arm"].Transparency = 0+.1*i
  15. game:GetService("Players").LocalPlayer.Character["Left Leg"].Transparency = 0+.1*i
  16. game:GetService("Players").LocalPlayer.Character["Right Leg"].Transparency = 0+.1*i
  17. game:GetService("Players").LocalPlayer.Character.Head.face.Transparency = 0+.1*i
  18. wait(.05)
  19. end
  20. Chr:MoveTo(position)
  21. for i=1,10 do
  22. game:GetService("Players").LocalPlayer.Character.Head.Transparency = 1-.1*i
  23. game:GetService("Players").LocalPlayer.Character.Torso.Transparency = 1-.1*i
  24. game:GetService("Players").LocalPlayer.Character["Left Arm"].Transparency = 1-.1*i
  25. game:GetService("Players").LocalPlayer.Character["Right Arm"].Transparency = 1-.1*i
  26. game:GetService("Players").LocalPlayer.Character["Left Leg"].Transparency = 1-.1*i
  27. game:GetService("Players").LocalPlayer.Character["Right Leg"].Transparency = 1-.1*i
  28. game:GetService("Players").LocalPlayer.Character.Head.face.Transparency = 1-.1*i
  29. wait(.05)
  30. end
  31. local ScreenGui = Instance.new("ScreenGui")
  32. local Frame = Instance.new("Frame")
  33. local TextLabel = Instance.new("TextLabel")
  34. ScreenGui.Parent = game.CoreGui
  35. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  36. Frame.Parent = ScreenGui
  37. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  38. Frame.BorderColor3 = Color3.new(1, 1, 1)
  39. Frame.Position = UDim2.new(0.709646583, 0, 0.471608847, 0)
  40. Frame.Size = UDim2.new(0, 259, 0, 138)
  41. TextLabel.Parent = Frame
  42. TextLabel.BackgroundColor3 = Color3.new(0.419608, 0.419608, 0.419608)
  43. TextLabel.BorderColor3 = Color3.new(0, 0, 0)
  44. TextLabel.Size = UDim2.new(0, 259, 0, 138)
  45. TextLabel.Font = Enum.Font.Gotham
  46. TextLabel.Text = "You have now teleported!"
  47. TextLabel.TextColor3 = Color3.new(0, 0, 0)
  48. TextLabel.TextScaled = true
  49. TextLabel.TextSize = 14
  50. TextLabel.TextWrapped = true
  51. for i=1,25 do
  52. Frame.Position = UDim2.new(1.09646583-.012*i, 0, 0.471608847, 0)
  53. Frame.Transparency = 1-.04*i
  54. TextLabel.Transparency = 1-.04*i
  55. game:GetService("RunService").Stepped:wait()
  56. end
  57. local tada = Instance.new("Sound")
  58. tada.Name = "tada"
  59. tada.Parent = workspace
  60. tada.SoundId = "rbxassetid://561540934"
  61. if PlaybackRandomize == 1 then
  62. tada.PlaybackSpeed = 1.122
  63. elseif PlaybackRandomize == 2 then
  64. tada.PlaybackSpeed = 1.5
  65. elseif PlaybackRandomize == 3 then
  66. tada.PlaybackSpeed = 1
  67. elseif PlaybackRandomize == 4 then
  68. tada.PlaybackSpeed = 2
  69. elseif PlaybackRandomize == 5 then
  70. tada.PlaybackSpeed = 1.335
  71. end
  72. tada:Play()
  73. repeat game:GetService("RunService").Stepped:wait()
  74. until workspace.tada.Playing == false
  75. workspace.tada:Destroy()
  76. wait(.875)
  77. for i=1,25 do
  78. Frame.Transparency = 0+.04*i
  79. TextLabel.Transparency = 0+.04*i
  80. game:GetService("RunService").Stepped:wait()
  81. end
  82. game.CoreGui.ScreenGui:Destroy()
  83. end
  84. end
  85. Input.InputBegan:Connect(function(input)
  86. if input.UserInputType == Enum.UserInputType.MouseButton1 and Input:IsKeyDown(Enum.KeyCode.LeftControl) then
  87. To(Mouse.Hit.p)
  88. end
  89. end)
Add Comment
Please, Sign In to add comment