#press to play animation
41 messages · Page 1 of 1 (latest)
where is the script
** You are now Level 1! **
Kinda
local UserInputService = game:GetService("UserInputService")
local Animation = script.Animation
UserInputService.InputBegan:Connect(function(input, gameProcessed)
if input.Keycode == Enum.KeyCode.E then
local Player = game.Players.LocalPlayer
local Character = Player.Character
local Humanoid = Character:WaitForChild("Humanoid")
local Anim = Humanoid:LoadAnimation(Animation)
Animation:Play(12920974366)
end
end
try this
i am new so idk if it will work
da,m
Animation:Play does not take a number as a argument it takes a Animation Instance
Create a new animation wherever and pass that through the :LoadAnimation(Animation)
wait you already did that
it would be
Anim:Play()
testing it rn
it still not working @nova beacon
local UserInputService = game:GetService("UserInputService")
local Animation = script.Animation
UserInputService.InputBegan:Connect(function(input, gameProcessed)
if input.Keycode == Enum.KeyCode.E then
local Player = game.Players.LocalPlayer
local Character = Player.Character
local Humanoid = Character:WaitForChild("Humanoid")
local Anim = Humanoid:LoadAnimation(Animation)
Anim:Play(12920974366)
end
end
local UserInputService = game:GetService("UserInputService")
local Animation = script.Animation
UserInputService.InputBegan:Connect(function(input, gameProcessed)
if input.Keycode == Enum.KeyCode.E then
local Player = game.Players.LocalPlayer
local Character = Player.Character
local Humanoid = Character:WaitForChild("Humanoid")
local Anim = Humanoid:LoadAnimation(Animation)
Anim:Play()
end
end
Try this
starterplayer
local
lemme check if the actual animation works rq
** You are now Level 2! **