KATARSIS0414

ggggggg

Mar 31st, 2021
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.51 KB | None | 0 0
  1.  
  2.  
  3. -- Scripts:
  4.  
  5. local function WCZUZKA_fake_script() -- df.dragging
  6.     local script = Instance.new('LocalScript', df)
  7.  
  8.     local UserInputService = game:GetService("UserInputService")
  9.    
  10.     local gui = script.Parent
  11.    
  12.     local dragging
  13.     local dragInput
  14.     local dragStart
  15.     local startPos
  16.    
  17.     local function update(input)
  18.         local delta = input.Position - dragStart
  19.         wait() -- remove this line if you don't want the dragging to be smoother
  20.         gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  21.     end
  22.    
  23.     gui.InputBegan:Connect(function(input)
  24.         if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  25.             dragging = true
  26.             dragStart = input.Position
  27.             startPos = gui.Position
  28.            
  29.             input.Changed:Connect(function()
  30.                 if input.UserInputState == Enum.UserInputState.End then
  31.                     dragging = false
  32.                 end
  33.             end)
  34.         end
  35.     end)
  36.    
  37.     gui.InputChanged:Connect(function(input)
  38.         if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  39.             dragInput = input
  40.         end
  41.     end)
  42.    
  43.     UserInputService.InputChanged:Connect(function(input)
  44.         if input == dragInput and dragging then
  45.             update(input)
  46.         end
  47.     end)
  48. end
  49. coroutine.wrap(WCZUZKA_fake_script)()
  50. local function XDVJ_fake_script() -- upd.LocalScript
  51.     local script = Instance.new('LocalScript', upd)
  52.  
  53.     script.Parent.MouseButton1Click:Connect(function()
  54.         script.Parent.Parent.T.Text = tostring(game.Players.LocalPlayer.Character.HumanoidRootPart.Position)
  55.     end)
  56. end
  57. coroutine.wrap(XDVJ_fake_script)()
  58. local function GMIYA_fake_script() -- T.LocalScript
  59.     local script = Instance.new('LocalScript', T)
  60.  
  61.     script.Parent.Text = tostring(game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").Position)
  62. end
  63. coroutine.wrap(GMIYA_fake_script)()
  64. local function PKTHP_fake_script() -- exit.LocalScript
  65.     local script = Instance.new('LocalScript', exit)
  66.  
  67.     script.Parent.MouseButton1Click:Connect(function()
  68.         script.Parent.Parent.Parent:Destroy()
  69.     end)
  70. end
  71. coroutine.wrap(PKTHP_fake_script)()
  72. local function GDVRJ_fake_script() -- mini.LocalScript
  73.     local script = Instance.new('LocalScript', mini)
  74.  
  75.     local q = false script.Parent.MouseButton1Click:Connect(function()if q==false then q=true script.Parent.Parent.main.Visible = false script.Parent.Text = "+" else q=false script.Parent.Parent.main.Visible = true script.Parent.Text = "-" end end)
  76. end
  77. coroutine.wrap(GDVRJ_fake_script)()
Add Comment
Please, Sign In to add comment