Можете помочь со скриптом в рб студии
я хочу что-бы была анимация при деша в игре не скрипт не работает
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local animation = Instance.new ("Animation")
animation.AnimationId = "74788241866111" -- анимка
local dashSpeed = 100
local dashDuration = 0.2
local isDashing = false
function createDash()
if isDashing then return end
isDashing = true
local humanoidRootPart = character:FindFirstChild("HumanoidRootPart")
if humanoidRootPart then
local direction = humanoidRootPart.CFrame.LookVector
local originalWalkSpeed = character.Humanoid.WalkSpeed
character.Humanoid.WalkSpeed = dashSpeed
humanoidRootPart.Velocity = direction * dashSpeed
wait(dashDuration)
character.Humanoid.WalkSpeed = originalWalkSpeed
end
isDashing = false
end
UserInputService.InputBegan:Connect(function(input, gameProcessedEvent)
if not gameProcessedEvent and input.KeyCode == Enum.KeyCode.Q then
createDash()
end
end)
Вот ТУТ спроси