Advertisement
Vzurxy

Untitled

Sep 22nd, 2018
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.62 KB | None | 0 0
  1. local Workspace = game:GetService("Workspace")
  2. local CoreGui = game:GetService("CoreGui")
  3. local Players = game:GetService("Players")
  4. local Noclip = Instance.new("ScreenGui")
  5. local BG = Instance.new("Frame")
  6. local Title = Instance.new("TextLabel")
  7. local Toggle = Instance.new("TextButton")
  8. local StatusPF = Instance.new("TextLabel")
  9. local Status = Instance.new("TextLabel")
  10. local Plr = Players.LocalPlayer
  11. local Clipon = false
  12.  
  13. Noclip.Name = "Noclip"
  14. Noclip.Parent = game.CoreGui
  15.  
  16. BG.Name = "BG"
  17. BG.Parent = Noclip
  18. BG.BackgroundColor3 = Color3.new(0.0980392, 0.0980392, 0.0980392)
  19. BG.BorderColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  20. BG.BorderSizePixel = 2
  21. BG.Position = UDim2.new(0.149479166, 0, 0.82087779, 0)
  22. BG.Size = UDim2.new(0, 210, 0, 127)
  23. BG.Active = true
  24. BG.Draggable = true
  25.  
  26. Title.Name = "Title"
  27. Title.Parent = BG
  28. Title.BackgroundColor3 = Color3.new(0.266667, 0.00392157, 0.627451)
  29. Title.BorderColor3 = Color3.new(0.180392, 0, 0.431373)
  30. Title.BorderSizePixel = 2
  31. Title.Size = UDim2.new(0, 210, 0, 33)
  32. Title.Font = Enum.Font.Highway
  33. Title.FontSize = Enum.FontSize.Size32
  34. Title.Text = "Noclip"
  35. Title.TextColor3 = Color3.new(1, 1, 1)
  36. Title.TextSize = 30
  37. Title.TextStrokeColor3 = Color3.new(0.180392, 0, 0.431373)
  38. Title.TextStrokeTransparency = 0
  39.  
  40. Toggle.Parent = BG
  41. Toggle.BackgroundColor3 = Color3.new(0.266667, 0.00392157, 0.627451)
  42. Toggle.BorderColor3 = Color3.new(0.180392, 0, 0.431373)
  43. Toggle.BorderSizePixel = 2
  44. Toggle.Position = UDim2.new(0.152380958, 0, 0.374192119, 0)
  45. Toggle.Size = UDim2.new(0, 146, 0, 36)
  46. Toggle.Font = Enum.Font.Highway
  47. Toggle.FontSize = Enum.FontSize.Size28
  48. Toggle.Text = "Toggle"
  49. Toggle.TextColor3 = Color3.new(1, 1, 1)
  50. Toggle.TextSize = 25
  51. Toggle.TextStrokeColor3 = Color3.new(0.180392, 0, 0.431373)
  52. Toggle.TextStrokeTransparency = 0
  53.  
  54. StatusPF.Name = "StatusPF"
  55. StatusPF.Parent = BG
  56. StatusPF.BackgroundColor3 = Color3.new(1, 1, 1)
  57. StatusPF.BackgroundTransparency = 1
  58. StatusPF.Position = UDim2.new(0.314285725, 0, 0.708661377, 0)
  59. StatusPF.Size = UDim2.new(0, 56, 0, 20)
  60. StatusPF.Font = Enum.Font.Highway
  61. StatusPF.FontSize = Enum.FontSize.Size24
  62. StatusPF.Text = "Status:"
  63. StatusPF.TextColor3 = Color3.new(1, 1, 1)
  64. StatusPF.TextSize = 20
  65. StatusPF.TextStrokeColor3 = Color3.new(0.333333, 0.333333, 0.333333)
  66. StatusPF.TextStrokeTransparency = 0
  67. StatusPF.TextWrapped = true
  68.  
  69. Status.Name = "Status"
  70. Status.Parent = BG
  71. Status.BackgroundColor3 = Color3.new(1, 1, 1)
  72. Status.BackgroundTransparency = 1
  73. Status.Position = UDim2.new(0.580952346, 0, 0.708661377, 0)
  74. Status.Size = UDim2.new(0, 56, 0, 20)
  75. Status.Font = Enum.Font.Highway
  76. Status.FontSize = Enum.FontSize.Size14
  77. Status.Text = "Off"
  78. Status.TextColor3 = Color3.new(0.666667, 0, 0)
  79. Status.TextScaled = true
  80. Status.TextSize = 14
  81. Status.TextStrokeColor3 = Color3.new(0.180392, 0, 0.431373)
  82. Status.TextWrapped = true
  83. Status.TextXAlignment = Enum.TextXAlignment.Left
  84.  
  85.  
  86. Toggle.MouseButton1Click:connect(function()
  87. if Status.Text == "Off" then
  88. Clipon = true
  89. Status.Text = "On"
  90. Status.TextColor3 = Color3.new(0,185,0)
  91. Stepped = game:GetService("RunService").Stepped:Connect(function()
  92. if not Clipon == false then
  93. for a, b in pairs(Workspace:GetChildren()) do
  94. if b.Name == Plr.Name then
  95. for i, v in pairs(Workspace[Plr.Name]:GetChildren()) do
  96. if v:IsA("BasePart") then
  97. v.CanCollide = false
  98. end end end end
  99. else
  100. Stepped:Disconnect()
  101. end
  102. end)
  103. elseif Status.Text == "On" then
  104. Clipon = false
  105. Status.Text = "Off"
  106. Status.TextColor3 = Color3.new(170,0,0)
  107. end
  108. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement