Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can Someone Please make a script ( NOT TOOLS ) for Salute and At ease? [closed]

Asked by 4 years ago

Must not be tools, To activate them N= Salute M= At ease

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?

1 answer

Log in to vote
0
Answered by 4 years ago

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)
Ad