I don't know what is wrong with this script but the output says touched is not a valid member of attachment
local plr = game.Players.LocalPlayer
touched = false
repeat wait()until plr.Character.LowerTorso.Anchored == true
repeat wait()until plr.Character.LowerTorso.Anchored == false
wait(5)
for _, descendant in pairs(plr.Character:GetDescendants())do
descendant.Touched:Connect(function(hit)
if hit:IsA("Part") then
touched = true
if touched == true then
script.Parent.MidAirAnim.Disabled = true
script.Parent.MidAirMovement.Disabled = true
plr.Character.Animation:Destroy()
local CrashLandAnim = Instance.new("Animation", plr.Character)
CrashLandAnim.AnimationId = "http://www.roblox.com/asset/?id=2296730026"
local humanoid = plr.Character:WaitForChild("Humanoid")
local playanim = humanoid:LoadAnimation(CrashLandAnim)
CrashLandAnim:Play()
end
end
end)
end
