Must not be tools, To activate them N= Salute M= At ease
COMMUNITY QUESTION
Can Someone Please make a script ( NOT TOOLS ) for Salute and At ease?
1 answer
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)
This discussion is preserved as it was. New answers, comments, and votes are closed.
