function notification(text) game.StarterGui:SetCore("SendNotification", { Title = "UMG:R Kill Aura"; Text = text; Icon = ""; Duration = 1; }) end local toggle = true function onKeyPress(actionName, userInputState, inputObject) if userInputState == Enum.UserInputState.Begin then if toggle == false then notification("Off") toggle = true _G.on = false else notification("On") toggle = false _G.on = true while _G.on do wait(.55) pcall(function() for i,v in pairs(game.Players:GetPlayers()) do local lp = game.Players.LocalPlayer local character = v.Character local charactername = v.Name if v:IsFriendsWith(game:GetService("Players").LocalPlayer.UserId) then --- nothing else if (lp.Character and lp.Character:FindFirstChild("Head") and character:FindFirstChild("Head")) then local mag = (v.Character.Head.Position - lp.Character.Head.Position).Magnitude if mag < 20 then local ohString1 = "Charged" local ohInstance2 = character local ohNumber3 = 1 local ohNumber4 = 1.0377000000000005 local ohBoolean5 = true game:GetService("ReplicatedStorage").Server.Events.Attack:FireServer(ohString1, ohInstance2, ohNumber3, ohNumber4, ohBoolean5) end end end end end) end end end end game.ContextActionService:BindAction("keyPress", onKeyPress, false, Enum.KeyCode.T)