Загрузка страницы

Parachute System Tutorial - Roblox Studio

Hello, sorry this video is so late. Follow along, it is only 1 script. If this video gets to 100 likes then I'll just give you guys the script.
Have a fantastic day, leave a like and subscribe while your at it!

Thankyou so much for all the likes and support! Here is the script, please let me know if the script doesn't work and the error you might be getting in the comments and I'll try my best to get back to you if I'm active.

local character = script.Parent

local player = game:GetService("Players").LocalPlayer

local humanoid = character:WaitForChild("Humanoid")

local isFalling = false

local UIS = game:GetService("UserInputService")

humanoid.StateChanged:Connect(function(oldstate, newstate)
if newstate == Enum.HumanoidStateType.Freefall then
if isFalling == false then
isFalling = true
end
elseif newstate == Enum.HumanoidStateType.Landed then
if isFalling == true then
isFalling = false
if character:WaitForChild("HumanoidRootPart"):FindFirstChild("Chute") then
character:WaitForChild("HumanoidRootPart"):FindFirstChild("Chute"):Destroy()
character:WaitForChild("HumanoidRootPart"):FindFirstChild("WeldConstraint"):Destroy()
character:WaitForChild("HumanoidRootPart"):FindFirstChild("BodyVelocity"):Destroy()
end
end

end
end)

UIS.InputBegan:Connect(function(input, gameProcessed)
if input.UserInputType == Enum.UserInputType.Keyboard and not gameProcessed then
if input.KeyCode == Enum.KeyCode.Space then
if isFalling == true then
local chute = game.ReplicatedStorage:FindFirstChild("Chute"):Clone()
chute.Parent = character:FindFirstChild("HumanoidRootPart")
chute.CFrame = CFrame.new((character:FindFirstChild("HumanoidRootPart").Position))
local weld = Instance.new("WeldConstraint")
weld.Parent = character:WaitForChild("HumanoidRootPart")
weld.Part0 = character:FindFirstChild("HumanoidRootPart")
weld.Part1 = chute
local bodyvelocity = Instance.new("BodyVelocity")
bodyvelocity.Parent = character:WaitForChild("HumanoidRootPart")
bodyvelocity.Velocity = Vector3.new(0, -10, 0)
bodyvelocity.MaxForce = Vector3.new(0, 3500, 0)
end
end
end
end)

Видео Parachute System Tutorial - Roblox Studio канала Creative Side-B
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
22 сентября 2021 г. 7:06:59
00:18:20
Яндекс.Метрика