IWannaDieAsWell

Location FInder

Feb 19th, 2023
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.17 KB | None | 0 0
  1. -- Made by TheXploiter
  2.  
  3. local ScreenGui = Instance.new("ScreenGui")
  4. local Frame = Instance.new("Frame")
  5. local title = Instance.new("TextLabel")
  6. local copy = Instance.new("TextButton")
  7. local pos = Instance.new("TextBox")
  8. local find = Instance.new("TextButton")
  9.  
  10. --Properties:
  11.  
  12. ScreenGui.Parent = game.CoreGui
  13. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  14.  
  15. Frame.Parent = ScreenGui
  16. Frame.BackgroundColor3 = Color3.fromRGB(43, 43, 43)
  17. Frame.BorderSizePixel = 0
  18. Frame.Position = UDim2.new(0.639646292, 0, 0.399008662, 0)
  19. Frame.Size = UDim2.new(0, 387, 0, 206)
  20. Frame.Active = true
  21.  
  22. title.Name = "title"
  23. title.Parent = Frame
  24. title.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  25. title.BorderSizePixel = 0
  26. title.Size = UDim2.new(0, 387, 0, 50)
  27. title.Font = Enum.Font.GothamBold
  28. title.Text = "Position Finder"
  29. title.TextColor3 = Color3.fromRGB(255, 255, 255)
  30. title.TextSize = 30.000
  31. title.TextWrapped = true
  32.  
  33. copy.Name = "copy"
  34. copy.Parent = Frame
  35. copy.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  36. copy.BorderSizePixel = 0
  37. copy.Position = UDim2.new(0.527131796, 0, 0.635922313, 0)
  38. copy.Size = UDim2.new(0, 148, 0, 50)
  39. copy.Font = Enum.Font.GothamSemibold
  40. copy.Text = "Copy"
  41. copy.TextColor3 = Color3.fromRGB(255, 255, 255)
  42. copy.TextSize = 20.000
  43.  
  44. pos.Name = "pos"
  45. pos.Parent = Frame
  46. pos.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  47. pos.BorderSizePixel = 0
  48. pos.Position = UDim2.new(0.0904392749, 0, 0.305825233, 0)
  49. pos.Size = UDim2.new(0, 317, 0, 50)
  50. pos.Font = Enum.Font.GothamSemibold
  51. pos.Text = ""
  52. pos.TextColor3 = Color3.fromRGB(255, 255, 255)
  53. pos.TextSize = 14.000
  54. pos.TextWrapped = true
  55.  
  56. find.Name = "find"
  57. find.Parent = Frame
  58. find.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  59. find.BorderSizePixel = 0
  60. find.Position = UDim2.new(0.0904392898, 0, 0.635922313, 0)
  61. find.Size = UDim2.new(0, 148, 0, 50)
  62. find.Font = Enum.Font.GothamSemibold
  63. find.Text = "Find"
  64. find.TextColor3 = Color3.fromRGB(255, 255, 255)
  65. find.TextSize = 20.000
  66.  
  67. -- Scripts:
  68.  
  69. local function UMTQ_fake_script() -- copy.LocalScript
  70.     local script = Instance.new('LocalScript', copy)
  71.  
  72.     script.Parent.MouseButton1Click:Connect(function()
  73.         setclipboard(script.Parent.Parent.pos.Text)
  74.     end)
  75. end
  76. coroutine.wrap(UMTQ_fake_script)()
  77. local function KJAYG_fake_script() -- Frame.Dragify
  78.     local script = Instance.new('LocalScript', Frame)
  79.  
  80.     local UIS = game:GetService("UserInputService")
  81.     function dragify(Frame)
  82.         dragToggle = nil
  83.         local dragSpeed = 0
  84.         dragInput = nil
  85.         dragStart = nil
  86.         local dragPos = nil
  87.         function updateInput(input)
  88.             local Delta = input.Position - dragStart
  89.             local Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
  90.             game:GetService("TweenService"):Create(Frame, TweenInfo.new(0.25), {Position = Position}):Play()
  91.         end
  92.         Frame.InputBegan:Connect(function(input)
  93.             if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) and UIS:GetFocusedTextBox() == nil then
  94.                 dragToggle = true
  95.                 dragStart = input.Position
  96.                 startPos = Frame.Position
  97.                 input.Changed:Connect(function()
  98.                     if input.UserInputState == Enum.UserInputState.End then
  99.                         dragToggle = false
  100.                     end
  101.                 end)
  102.             end
  103.         end)
  104.         Frame.InputChanged:Connect(function(input)
  105.             if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  106.                 dragInput = input
  107.             end
  108.         end)
  109.         game:GetService("UserInputService").InputChanged:Connect(function(input)
  110.             if input == dragInput and dragToggle then
  111.                 updateInput(input)
  112.             end
  113.         end)
  114.     end
  115.    
  116.     dragify(script.Parent)
  117. end
  118. coroutine.wrap(KJAYG_fake_script)()
  119. local function EKBNYI_fake_script() -- find.LocalScript
  120.     local script = Instance.new('LocalScript', find)
  121.  
  122.     script.Parent.MouseButton1Down:Connect(function()
  123.         script.Parent.Parent.pos.Text = tostring(game.Players.LocalPlayer.Character.HumanoidRootPart.Position)
  124.     end)
  125. end
  126. coroutine.wrap(EKBNYI_fake_script)()
  127.  
Add Comment
Please, Sign In to add comment