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
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
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
New 0.8.4 Security Update (Bloxburg)Cozy Modern Mansion Speedbuild (Bloxburg)Modern Mega Mansion Tour - BloxburgCreative Side-B - Now on FiverrCosy Mansion Tour - BloxburgCozy Modern House SpeedBuild - BloxburgCool Bloxburg Build Hacks(Twin Falls) Waterpark Tour - Bloxburg20 Things For Future Updates (Bloxburg)Iron Man Mansion Floor Plans - BloxburgIron Man Mansion Tour - BloxburgSkyDiving System Tutorial - Roblox StudioRoblox Graphics Showcase - Roblox ReShadeIron Man Mansion Tutorial - BloxburgMega Mansion Floor Plans - BloxburgMega Mansion Tour - Bloxburg