HaxRoblox

FreezeUNFreeze

Oct 22nd, 2016
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. l/mouse = game.Players.LocalPlayer:GetMouse()
  2. plr = game.Players.LocalPlayer
  3. plr.Character.Humanoid.WalkSpeed = 100
  4. sg = Instance.new('ScreenGui',game.Players.LocalPlayer.PlayerGui)
  5. sg.Name = 'Mod'
  6. tl = Instance.new('TextLabel',game.Players.LocalPlayer.PlayerGui.Mod)
  7. tl.Name = 'OnOff'
  8. tl.Size = UDim2.new(0,60,0,20)
  9. tl.Position = UDim2.new(0,370,0,5)
  10. tl.TextWrapped = true
  11. tl.Text = 'FREEZE'
  12. tl.TextScaled = false
  13. tl.FontSize = 'Size9'
  14. tl.Font = 'Arial'
  15. tl.BackgroundColor3 = Color3.new(0.434254,0.5443214,0.8744244)
  16. tb = {game.Players:GetChildren()}
  17. local mouse = game.Players.LocalPlayer:GetMouse()
  18. mouse.KeyDown:connect(function (key)
  19. for i, v in pairs(tb) do
  20. if key == "q" then
  21. tl.Text = 'FREEZE'
  22. end
  23. end
  24. end)
  25. tb = {game.Players:GetChildren()}
  26. local mouse = game.Players.LocalPlayer:GetMouse()
  27. mouse.KeyDown:connect(function (key)
  28. for i, v in pairs(tb) do
  29. if key == "e" then
  30. tl.Text = 'UNFREEZE'
  31. end
  32. end
  33. end)
  34. mouse.Button1Up:connect(function()
  35. if mouse.Target.Size.X <200 then
  36. if plr.PlayerGui.Mod.OnOff.Text == 'FREEZE' then
  37. print(mouse.Target.Parent.Name,('.'),mouse.Target.Name,": FREEZED")
  38. mouse.Target.Anchored = true
  39. elseif plr.PlayerGui.Mod.OnOff.Text == 'UNFREEZE' then
  40. print(mouse.Target.Parent.Name,('.'),mouse.Target.Name,": UNFREEZED")
  41. mouse.Target.Anchored = false
  42. end
  43. end
  44. end)
Add Comment
Please, Sign In to add comment