Must not be tools, To activate them N= Salute M= At ease
have your own salute/at ease animations and add them where it says to add them in the script
not tested yet script:
local ui = game:GetService("UserInputService") local hum = game:GetService("Players").LocalPlayer.Character:WaitForChild("Humanoid") local saluteAnimID = "???" -- salute anim area (dont remove quote) local atEaseAnimID = "???" -- at ease anim area (dont remove quote) -- Dont edit code after this line local loadedSaluteAnim = Instance.new("Animation") loadedSaluteAnim.AnimationId = saluteAnimID loadedSaluteAnim = hum:LoadAnimation(loadedSaluteAnim) local loadedAtEaseAnim = Instance.new("Animation") loadedAtEaseAnim.AnimationId = loadedAtEaseAnim loadedAtEaseAnim = hum:LoadAnimation(loadedAtEaseAnim) ui.InputBegan:Connect(function(input) if input.KeyCode == Enum.KeyCode.N then -- Salute loadedSaluteAnim:Play() loadedAtEaseAnim:Stop() end end) ui.InputBegan:Connect(function(input) if input.KeyCode == Enum.KeyCode.N then -- At Ease loadedAtEaseAnim:Play() loadedSaluteAnim:Stop() end end)
Closed as Not Constructive by Gameplayer365247v2, moo1210, Block_manvn, Torren_Mr, and hiimgoodpack
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?