Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2020
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.71 KB | None | 0 0
  1. --[[
  2. HMMMMm
  3. --]]
  4.  
  5.  
  6.  
  7. -- Instances:
  8.  
  9. local Antifling = Instance.new("ScreenGui")
  10. local Frame = Instance.new("ImageButton")
  11. local tggon = Instance.new("TextButton")
  12. local Tggoff = Instance.new("TextButton")
  13. local TextLabel = Instance.new("TextLabel")
  14. local Exit = Instance.new("TextButton")
  15.  
  16. --[[
  17. Properties:
  18. --]]
  19.  
  20. Antifling.Name = "Antifling"
  21. Antifling.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  22. Antifling.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  23. Antifling.ResetOnSpawn = false
  24.  
  25. Frame.Name = "Frame"
  26. Frame.Parent = Antifling
  27. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  28. Frame.BackgroundTransparency = 1
  29. Frame.Position = UDim2.new(0.423616856, 0, 0.3857494, 0)
  30. Frame.Size = UDim2.new(0, 184, 0, 154)
  31. Frame.Image = "rbxassetid://2790382281"
  32. Frame.ImageColor3 = Color3.new(0.137255, 0.137255, 0.137255)
  33. Frame.ScaleType = Enum.ScaleType.Slice
  34. Frame.SliceCenter = Rect.new(4, 4, 252, 252)
  35.  
  36. tggon.Name = "tggon"
  37. tggon.Parent = Frame
  38. tggon.BackgroundColor3 = Color3.new(1, 1, 1)
  39. tggon.BackgroundTransparency = 1
  40. tggon.Position = UDim2.new(0.070652172, 0, 0.422077924, 0)
  41. tggon.Size = UDim2.new(0, 65, 0, 24)
  42. tggon.Font = Enum.Font.Cartoon
  43. tggon.Text = "Toggle"
  44. tggon.TextColor3 = Color3.new(1, 1, 1)
  45. tggon.TextScaled = true
  46. tggon.TextSize = 14
  47. tggon.TextWrapped = true
  48.  
  49. Tggoff.Name = "Tggoff"
  50. Tggoff.Parent = Frame
  51. Tggoff.BackgroundColor3 = Color3.new(1, 1, 1)
  52. Tggoff.BackgroundTransparency = 1
  53. Tggoff.Position = UDim2.new(0.5, 0, 0.422077924, 0)
  54. Tggoff.Size = UDim2.new(0, 74, 0, 24)
  55. Tggoff.Font = Enum.Font.Cartoon
  56. Tggoff.Text = "Untoggle"
  57. Tggoff.TextColor3 = Color3.new(1, 1, 1)
  58. Tggoff.TextScaled = true
  59. Tggoff.TextSize = 14
  60. Tggoff.TextWrapped = true
  61.  
  62. TextLabel.Parent = Frame
  63. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  64. TextLabel.BackgroundTransparency = 1
  65. TextLabel.Position = UDim2.new(0.146739125, 0, 0.0389610417, 0)
  66. TextLabel.Size = UDim2.new(0, 131, 0, 35)
  67. TextLabel.Font = Enum.Font.SourceSans
  68. TextLabel.Text = "Anti Fling"
  69. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  70. TextLabel.TextScaled = true
  71. TextLabel.TextSize = 14
  72. TextLabel.TextWrapped = true
  73.  
  74. Exit.Name = "Exit"
  75. Exit.Parent = Frame
  76. Exit.BackgroundColor3 = Color3.new(1, 1, 1)
  77. Exit.BackgroundTransparency = 1
  78. Exit.Position = UDim2.new(0.853260875, 0, 0.0389610529, 0)
  79. Exit.Size = UDim2.new(0, 27, 0, 24)
  80. Exit.Font = Enum.Font.Cartoon
  81. Exit.Text = "X"
  82. Exit.TextColor3 = Color3.new(1, 0, 0)
  83. Exit.TextScaled = true
  84. Exit.TextSize = 14
  85. Exit.TextWrapped = true
  86.  
  87. --[[
  88. Scripts:
  89. --]]
  90.  
  91. local function CAWIZMZ_fake_script() -- tggon.LocalScript
  92. local script = Instance.new('LocalScript', tggon)
  93.  
  94. script.Parent.MouseButton1Click:Connect(function()
  95. local plr = game:GetService("Players").LocalPlayer
  96. local Char = plr.Character
  97. local Torso = Char:FindFirstChild("Torso")
  98. Torso.Anchored = true
  99. end)
  100. end
  101. coroutine.wrap(CAWIZMZ_fake_script)()
  102. local function STJYP_fake_script() -- Tggoff.LocalScript
  103. local script = Instance.new('LocalScript', Tggoff)
  104.  
  105. script.Parent.MouseButton1Click:Connect(function()
  106. local plr = game:GetService("Players").LocalPlayer
  107. local Char = plr.Character
  108. local Torso = Char:FindFirstChild("Torso")
  109. Torso.Anchored = false
  110. end)
  111. end
  112. coroutine.wrap(STJYP_fake_script)()
  113. local function QEAX_fake_script() -- Exit.LocalScript
  114. local script = Instance.new('LocalScript', Exit)
  115.  
  116. script.Parent.MouseButton1Click:Connect(function()
  117. script.Parent.Parent.Parent:Destroy()
  118. end)
  119. end
  120. coroutine.wrap(QEAX_fake_script)()
  121. local function WOLEDJ_fake_script() -- Frame.LocalScript
  122. local script = Instance.new('LocalScript', Frame)
  123.  
  124. local UserInputService,gui,dragging,dragInput,dragStart,startPos = game:GetService("UserInputService"),script.Parent
  125.  
  126. local function update(input)
  127. local delta = input.Position - dragStart
  128. gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  129. end
  130.  
  131. gui.InputBegan:Connect(function(input)
  132. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  133. dragging = true
  134. dragStart = input.Position
  135. startPos = gui.Position
  136.  
  137. input.Changed:Connect(function()
  138. if input.UserInputState == Enum.UserInputState.End then
  139. dragging = false
  140. end
  141. end)
  142. end
  143. end)
  144.  
  145. gui.InputChanged:Connect(function(input)
  146. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  147. dragInput = input
  148. end
  149. end)
  150.  
  151. UserInputService.InputChanged:Connect(function(input)
  152. if input == dragInput and dragging then
  153. update(input)
  154. end
  155. end)
  156. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement