Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local testsquadAIR = {
- Airwalk = Enum.KeyCode.LeftAlt;
- }
- local ContextAction = Game:GetService("ContextActionService")
- local RunService = Game:GetService("RunService")
- local function ForEach(t, f)
- for Index, Value in pairs(t) do
- f(Value, Index)
- end
- end _G.ForEach=ForEach;
- local function Create(ClassName)
- local Object = Instance.new(ClassName)
- return function(Properties)
- ForEach(Properties, function(Value, Property)
- Object[Property] = Value
- end)
- return Object
- end
- end _G.Create=Create;
- do
- local airwalkState = false
- local currentPart = nil
- RunService.RenderStepped:connect(function()
- if airwalkState then
- if not currentPart then
- warn "On"
- currentPart = Create "Part" {
- Parent = workspace.CurrentCamera;
- Name = "AWP";
- Transparency = 1;
- Size = Vector3.new(2, 1, 2);
- Anchored = true;
- }
- end
- local character = game.Players.LocalPlayer.Character
- if character then
- currentPart.CFrame = character.HumanoidRootPart.CFrame - Vector3.new(0, 3.6, 0)
- end
- else
- if currentPart then
- warn "Off"
- currentPart:Destroy()
- currentPart = nil
- end
- end
- end)
- ContextAction:BindAction("Airwalk", function(_, InputState)
- if InputState == Enum.UserInputState.Begin then
- warn "airwalk by ur nigga hitrustme"
- airwalkState = not airwalkState
- end
- end, false, testsquadAIR.Airwalk)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement