#Need help!!
1 messages · Page 1 of 1 (latest)
@harsh blade
local uis = game:GetService("UserInputService")
local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild("Humanoid")
local M1s = {
"98490265142865",
"140381833256634"
}
local currentM1 = 1
uis.InputBegan:Connect(function(input, isTyping)
if isTyping then return end
if input.UserInputType == Enum.UserInputType.MouseButton1 then
local anim = Instance.new("Animation")
anim.AnimationId = "rbxassetid://" .. M1s[currentM1]
local track = Humanoid:LoadAnimation(anim)
track:Play()
track.Stopped:Connect(function()
anim:Destroy()
end)
currentM1 += 1
if currentM1 > #M1s then
currentM1 = 1
end
end
end)