Advertisement
SpamDuk3

Universal Click TP

Mar 11th, 2023
1,394
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.07 KB | Gaming | 0 0
  1.  
  2. local ScreenGui = Instance.new("ScreenGui")
  3. local Frame2 = Instance.new("Frame")
  4. local TextButton3 = Instance.new("TextButton")
  5. local Frame = Instance.new("Frame")
  6. local TextButton2 = Instance.new("TextButton")
  7. local TextButton = Instance.new("TextButton")
  8.  
  9. --Properties:
  10.  
  11. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  12. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  13.  
  14. Frame2.Name = "Frame2"
  15. Frame2.Parent = ScreenGui
  16. Frame2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  17. Frame2.Position = UDim2.new(0.422948062, 0, 0.37327823, 0)
  18. Frame2.Size = UDim2.new(0, 363, 0, 199)
  19. Frame2.Visible = false
  20. Frame2.Style = Enum.FrameStyle.RobloxRound
  21.  
  22. TextButton3.Name = "TextButton3"
  23. TextButton3.Parent = Frame2
  24. TextButton3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  25. TextButton3.Size = UDim2.new(0, 200, 0, 50)
  26. TextButton3.Style = Enum.ButtonStyle.RobloxRoundButton
  27. TextButton3.Font = Enum.Font.SourceSans
  28. TextButton3.Text = "Allow teleport in sky / void"
  29. TextButton3.TextColor3 = Color3.fromRGB(17, 34, 136)
  30. TextButton3.TextScaled = true
  31. TextButton3.TextSize = 14.000
  32. TextButton3.TextWrapped = true
  33.  
  34. Frame.Parent = ScreenGui
  35. Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  36. Frame.Position = UDim2.new(0.832495809, 0, 0.508264482, 0)
  37. Frame.Size = UDim2.new(0, 200, 0, 67)
  38. Frame.Style = Enum.FrameStyle.RobloxRound
  39.  
  40. TextButton2.Name = "TextButton2"
  41. TextButton2.Parent = Frame
  42. TextButton2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  43. TextButton2.Position = UDim2.new(0.191600069, 0, 1.14903104, 0)
  44. TextButton2.Size = UDim2.new(0, 113, 0, 35)
  45. TextButton2.Style = Enum.ButtonStyle.RobloxRoundButton
  46. TextButton2.Font = Enum.Font.SourceSans
  47. TextButton2.Text = "Settings"
  48. TextButton2.TextColor3 = Color3.fromRGB(0, 0, 0)
  49. TextButton2.TextSize = 14.000
  50.  
  51. TextButton.Parent = Frame
  52. TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  53. TextButton.Position = UDim2.new(-0.0449999981, 0, 0.025828898, 0)
  54. TextButton.Size = UDim2.new(0, 200, 0, 50)
  55. TextButton.Style = Enum.ButtonStyle.RobloxRoundButton
  56. TextButton.Font = Enum.Font.SourceSans
  57. TextButton.Text = "False"
  58. TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  59. TextButton.TextSize = 14.000
  60.  
  61. -- Scripts:
  62.  
  63. local function RVRTSG_fake_script() -- TextButton.LocalScript
  64. local script = Instance.new('LocalScript', TextButton)
  65.  
  66. frame = script.Parent.Parent -- Take out {}s, and put name of frame
  67. frame.Draggable = true
  68. frame.Active = true
  69. frame.Selectable = true
  70.  
  71. local player = game.Players.LocalPlayer
  72. local mouse = player:GetMouse()
  73. local Toggle = false
  74. local Toggle2 = false
  75. local Toggle3 = false
  76. print("Script Launched")
  77.  
  78. script.Parent.Activated:Connect(function()
  79. if Toggle == true then
  80. Toggle = false
  81. script.Parent.Text = ("False")
  82. print("Now False")
  83. elseif Toggle == false then
  84. Toggle = true
  85. script.Parent.Text = ("True")
  86. print("Now True")
  87. end
  88. end)
  89.  
  90.  
  91. mouse.Button1Down:Connect(function()
  92. if Toggle == true then
  93. if mouse.Target ~= AV then
  94. player.Character.HumanoidRootPart.CFrame = mouse.Hit
  95. end
  96. end
  97. end)
  98.  
  99.  
  100. spawn(function()
  101. script.Parent.Parent:FindFirstChild("TextButton2").Activated:Connect(function()
  102. script.Parent.Parent.Parent:FindFirstChild("Frame2").Visible = Toggle2
  103. if Toggle2 == true then
  104. Toggle2 = false
  105. print("Now False")
  106. elseif Toggle2 == false then
  107. Toggle2 = true
  108. print("Now True")
  109. end
  110. end)
  111. end)
  112. script.Parent.Parent.Parent:FindFirstChild("Frame2").TextButton3.Text = "Allow teleport in sky / void is false"
  113. script.Parent.Parent.Parent:FindFirstChild("Frame2").TextButton3.Activated:Connect(function()
  114. if Toggle3 == true then
  115. Toggle3 = false
  116. AV = "hi"
  117. script.Parent.Parent.Parent:FindFirstChild("Frame2").TextButton3.Text = "Allow teleport in sky / void is true"
  118. print("Now True")
  119. elseif Toggle3 == false then
  120. Toggle3 = true
  121. AV = nil
  122. script.Parent.Parent.Parent:FindFirstChild("Frame2").TextButton3.Text = "Allow teleport in sky / void is false"
  123. print("Now False")
  124. end
  125. end)
  126.  
  127. end
  128. coroutine.wrap(RVRTSG_fake_script)()
  129.  
Tags: Roblox Scripts
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement