-
What do you want to achieve? I want to achieve where when the part is clicked the part will be cloned and attached behind your torso and when you are falling and press space the part is then turned into the dark green color then your fall speed is decreased and when you land the part is destroyed after 3 seconds and all effects are gone
-
What is the issue? When I click the part the part doesn’t attach behind my torso and there is no error what so ever in the output
-
What solutions have you tried so far? I tried checking the console/output and there was no error
it is a simple and easy skydiving system so I am confused what I did wrong if you can help me. I would appreciate it very much!
local part = game:GetService("Workspace").Parachute
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local torso = character:WaitForChild("Torso")
local debounce = false
part.ClickDetector.MouseClick:Connect(function()
local newPart = part:Clone()
newPart.Anchored = true
newPart.CFrame = torso.CFrame * CFrame.new(0, 0, -2)
newPart.Parent = game.Workspace
local connection
connection = game:GetService("UserInputService").JumpRequest:Connect(function()
if not debounce and humanoid:GetState() == Enum.HumanoidStateType.Freefall then
debounce = true
newPart.BrickColor = BrickColor.new("Dark green")
humanoid.FreeFalling:Connect(function(active)
if active then
humanoid.PlatformStand = true
else
humanoid.PlatformStand = false
wait(3)
newPart:Destroy()
connection:Disconnect()
debounce = false
end
end)
end
end)
end)