Advertisement
Guest User

FLOATT

a guest
Apr 21st, 2019
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. local testsquadAIR = {
  2. Airwalk = Enum.KeyCode.LeftAlt;
  3. }
  4.  
  5. local ContextAction = Game:GetService("ContextActionService")
  6. local RunService = Game:GetService("RunService")
  7.  
  8. local function ForEach(t, f)
  9. for Index, Value in pairs(t) do
  10. f(Value, Index)
  11. end
  12. end _G.ForEach=ForEach;
  13. local function Create(ClassName)
  14. local Object = Instance.new(ClassName)
  15. return function(Properties)
  16. ForEach(Properties, function(Value, Property)
  17. Object[Property] = Value
  18. end)
  19. return Object
  20. end
  21. end _G.Create=Create;
  22.  
  23. do
  24. local airwalkState = false
  25. local currentPart = nil
  26. RunService.RenderStepped:connect(function()
  27. if airwalkState then
  28. if not currentPart then
  29. warn "On"
  30. currentPart = Create "Part" {
  31. Parent = workspace.CurrentCamera;
  32. Name = "AWP";
  33. Transparency = 1;
  34. Size = Vector3.new(2, 1, 2);
  35. Anchored = true;
  36. }
  37. end
  38. local character = game.Players.LocalPlayer.Character
  39. if character then
  40. currentPart.CFrame = character.HumanoidRootPart.CFrame - Vector3.new(0, 3.6, 0)
  41. end
  42. else
  43. if currentPart then
  44. warn "Off"
  45. currentPart:Destroy()
  46. currentPart = nil
  47. end
  48. end
  49. end)
  50. ContextAction:BindAction("Airwalk", function(_, InputState)
  51. if InputState == Enum.UserInputState.Begin then
  52. warn "airwalk by ur friend of African descent hitrustme"
  53. airwalkState = not airwalkState
  54. end
  55. end, false, testsquadAIR.Airwalk)
  56. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement