local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
-- 把你的動畫 ID 放在這裡
local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://你的動畫ID"
local animTrack = humanoid:LoadAnimation(animation)
-- 偵測鍵盤按下
local UIS = game:GetService("UserInputService")
UIS.InputBegan:Connect(function(input, gameProcessed)
if gameProcessed then return end
if input.KeyCode == Enum.KeyCode.E then
if animTrack.IsPlaying then
animTrack:Stop()
else
animTrack:Play()
end
end
end)
葳格 Minecraft 帳號
北屯森活 Minecraft
員林AI Minecraft
竹北國中A Minecraft
竹北國中B Minecraft
葳格小學 Roblox營隊
協和小學 Minecraft
3C Micro:Bit班