Advertisement
CorruptedExploiter

Mobile Anchor Script

Nov 27th, 2024
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.83 KB | None | 0 0
  1. local nilvalue = Instance.new("ScreenGui")
  2. local Frame = Instance.new("Frame")
  3. local TextButton = Instance.new("TextButton")
  4. local TextButton_2 = Instance.new("TextButton")
  5.  
  6. nilvalue.Name = "nilvalue"
  7. nilvalue.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  8. nilvalue.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  9. nilvalue.ResetOnSpawn = false
  10.  
  11. Frame.Parent = nilvalue
  12. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  13. Frame.BackgroundTransparency = 1
  14. Frame.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  15. Frame.Size = UDim2.new(0.154559508, 0, 0.131752312, 0)
  16.  
  17. TextButton.Parent = Frame
  18. TextButton.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  19. TextButton.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  20. TextButton.BorderSizePixel = 5
  21. TextButton.Position = UDim2.new(4.83380604, 0, 4.91989517, 0)
  22. TextButton.Size = UDim2.new(0.590000033, 0, 0.715593398, 0)
  23. TextButton.Font = Enum.Font.SciFi
  24. TextButton.Text = "Freeze Anims and Anchor is disabled"
  25. TextButton.TextColor3 = Color3.new(0, 0, 0)
  26. TextButton.TextScaled = true
  27. TextButton.TextSize = 25
  28. TextButton.TextWrapped = true
  29.  
  30. TextButton_2.Parent = Frame
  31. TextButton_2.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  32. TextButton_2.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  33. TextButton_2.BorderSizePixel = 5
  34. TextButton_2.Position = UDim2.new(4.83380604, 0, 5.79671812, 0)
  35. TextButton_2.Size = UDim2.new(0.590000033, 0, 0.715593398, 0)
  36. TextButton_2.Font = Enum.Font.SciFi
  37. TextButton_2.Text = "Unanchored"
  38. TextButton_2.TextColor3 = Color3.new(0, 0, 0)
  39. TextButton_2.TextScaled = true
  40. TextButton_2.TextSize = 25
  41. TextButton_2.TextWrapped = true
  42.  
  43. -- Scripts
  44.  
  45. local function RRVJENG_fake_script() -- TextButton.LocalScript
  46. local script = Instance.new('LocalScript', TextButton)
  47.  
  48. script.Parent.Activated:Connect(function()
  49. if script.Parent.Text == "Freeze Anims and Anchor is enabled" then
  50. script.Parent.Text = "Freeze Anims and Anchor is disabled"
  51. for i, v in pairs(game.Players.LocalPlayer.Character:GetDescendants()) do
  52. if v:IsA("BasePart") or v:IsA("MeshPart") then
  53. v.Anchored = false
  54. end
  55. end
  56. else
  57. script.Parent.Text = "Freeze Anims and Anchor is enabled"
  58. for i, v in pairs(game.Players.LocalPlayer.Character:GetDescendants()) do
  59. if v:IsA("BasePart") or v:IsA("MeshPart") then
  60. v.Anchored = true
  61. end
  62. end
  63. end
  64. end)
  65. end
  66. coroutine.wrap(RRVJENG_fake_script)()
  67. local function AAIOGIJ_fake_script() -- TextButton_2.LocalScript
  68. local script = Instance.new('LocalScript', TextButton_2)
  69.  
  70. script.Parent.Activated:Connect(function()
  71. if script.Parent.Text == "Anchored" then
  72. script.Parent.Text = "Unanchored"
  73. game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = false
  74. else
  75. script.Parent.Text = "Anchored"
  76. game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = true
  77. end
  78. end)
  79. end
  80. coroutine.wrap(AAIOGIJ_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement