Как сделать рывок(тутор по Roblox Studio)

Аватар автора
Roblox Studio Уроки и Туториалы
Привет! Сегодня я тебе расскажу как сделать рывок на любую клавишу! Скрипт: local UserInputService = game:GetService("UserInputService") local player = game.Players.LocalPlayer local DashAnimation = script:WaitForChild('Animation') -- Settings local key = Enum.KeyCode.F -- key to trigger dash local velocity = 14000 -- dash speed local debounce = false -- debounce, do not set to true local cooldown = 2 -- cooldown after dash local duration = 0.4 -- dash duration -- local function Dash() local character = player.Character if character and not debounce then debounce = true -- now we begin the dash script here local humanoid = character.Humanoid local HRP = character.HumanoidRootPart -- HRP stands for HumanoidRootPart local loadedAnimation = humanoid.Animator:LoadAnimation(DashAnimation) local dashDirection = nil local moveDirection = humanoid.MoveDirection local lookVector = HRP.CFrame.LookVector local minusVelocity = -velocity -- in CFrame, if we set Z to positive, player will go move backward -- instead of forward -- checking if player is on ground, not floating local isOnGround = humanoid.FloorMaterial ~= Enum.Material.Air and humanoid.FloorMaterial ~= Enum.Material.Water if isOnGround then if moveDirection == Vector3.new(0,0,0) then -- if player...

0/0


0/0

0/0