SHOW:
|
|
- or go back to the newest paste.
| 1 | local plrs = game:GetService("Players")
| |
| 2 | local plr = plrs.LocalPlayer | |
| 3 | local character = plr.Character | |
| 4 | local upordownorstable=-3.5 | |
| 5 | local MANAFLY | |
| 6 | local mouse = plr:GetMouse() | |
| 7 | - | local harp={Up="q",Down="e"}
|
| 7 | + | local harp={Up="x",Down="z"}
|
| 8 | local Ui | |
| 9 | local MANAFLY_EVENT | |
| 10 | - | for _,v in pairs(character:GetChildren())do |
| 10 | + | |
| 11 | if k == harp["Up"] then | |
| 12 | - | if v:IsA("Part")then
|
| 12 | + | upordownorstable = upordownorstable+3 |
| 13 | - | v.CanCollide = true |
| 13 | + | |
| 14 | - | print("NoCollisionConstraint ",v.Name)
|
| 14 | + | |
| 15 | - | if v.Name:find("Leg") then
|
| 15 | + | |
| 16 | - | v.Touched:Connect(function(hit) |
| 16 | + | |
| 17 | - | if not v:FindFirstChild("NoCollisionConstraint4") then
|
| 17 | + | |
| 18 | - | d=Instance.new("NoCollisionConstraint",v)
|
| 18 | + | |
| 19 | - | d.Name = "NoCollisionConstraint4" |
| 19 | + | |
| 20 | - | elseif v:FindFirstChild("NoCollisionConstraint4") then
|
| 20 | + | |
| 21 | - | d=v:FindFirstChild("NoCollisionConstraint4")
|
| 21 | + | |
| 22 | - | end |
| 22 | + | |
| 23 | - | if hit.Parent:FindFirstChild("HumanoidRootPart") and hit.Parent:FindFirstChild("Humanoid") and hit.Parent:IsA("Model")then
|
| 23 | + | |
| 24 | - | d.Part0 = plr.Character:FindFirstChild("Torso")
|
| 24 | + | |
| 25 | - | d.Part1 =hit.Parent:FindFirstChild("Left Leg")
|
| 25 | + | |
| 26 | - | end |
| 26 | + | |
| 27 | - | |
| 27 | + | |
| 28 | - | if not v:FindFirstChild("NoCollisionConstraint3") then
|
| 28 | + | |
| 29 | - | c=Instance.new("NoCollisionConstraint",v)
|
| 29 | + | |
| 30 | - | c.Name = "NoCollisionConstraint3" |
| 30 | + | |
| 31 | - | elseif v:FindFirstChild("NoCollisionConstraint3") then
|
| 31 | + | |
| 32 | - | c=v:FindFirstChild("NoCollisionConstraint3")
|
| 32 | + | |
| 33 | - | end |
| 33 | + | |
| 34 | - | if hit.Parent:FindFirstChild("HumanoidRootPart") and hit.Parent:FindFirstChild("Humanoid") and hit.Parent:IsA("Model")then
|
| 34 | + | |
| 35 | - | c.Part0 = plr.Character.Torso |
| 35 | + | |
| 36 | - | c.Part1 = hit.Parent:FindFirstChild("Head")
|
| 36 | + | |
| 37 | - | end |
| 37 | + | |
| 38 | - | if not v:FindFirstChild("NoCollisionConstraint2") then
|
| 38 | + | |
| 39 | - | b=Instance.new("NoCollisionConstraint",v)
|
| 39 | + | |
| 40 | - | b.Name = "NoCollisionConstraint2" |
| 40 | + | |
| 41 | - | elseif v:FindFirstChild("NoCollisionConstraint2") then
|
| 41 | + | |
| 42 | - | b=v:FindFirstChild("NoCollisionConstraint2")
|
| 42 | + | |
| 43 | - | end |
| 43 | + | |
| 44 | end | |
| 45 | - | if hit.Parent:FindFirstChild("HumanoidRootPart") and hit.Parent:FindFirstChild("Humanoid") and hit.Parent:IsA("Model")then
|
| 45 | + | |
| 46 | - | b.Part0 = plr.Character.Torso |
| 46 | + | |
| 47 | - | b.Part1 = hit.Parent:FindFirstChild("Torso")
|
| 47 | + | |
| 48 | - | end |
| 48 | + | |
| 49 | - | if not v:FindFirstChild("NoCollisionConstraint") then
|
| 49 | + | |
| 50 | - | a=Instance.new("NoCollisionConstraint",v)
|
| 50 | + | |
| 51 | - | a.Name = "NoCollisionConstraint" |
| 51 | + | |
| 52 | - | elseif v:FindFirstChild("NoCollisionConstraint") then
|
| 52 | + | |
| 53 | - | a=v:FindFirstChild("NoCollisionConstraint")
|
| 53 | + | |
| 54 | - | end |
| 54 | + | |
| 55 | - | if hit.Name ~= "MANAFLYPART" and hit.Name ~= " Torso"and hit.Name ~= "HumanoidRootPart" then |
| 55 | + | |
| 56 | - | a.Part0=plr.Character.Torso |
| 56 | + | |
| 57 | - | a.Part1=hit |
| 57 | + | |
| 58 | - | end |
| 58 | + | |
| 59 | - | end) |
| 59 | + | |
| 60 | - | else |
| 60 | + | |
| 61 | - | v.Touched:Connect(function(hit) |
| 61 | + | |
| 62 | - | if not v:FindFirstChild("NoCollisionConstraint4") then
|
| 62 | + | |
| 63 | - | d=Instance.new("NoCollisionConstraint",v)
|
| 63 | + | |
| 64 | - | d.Name = "NoCollisionConstraint4" |
| 64 | + | |
| 65 | - | elseif v:FindFirstChild("NoCollisionConstraint4") then
|
| 65 | + | |
| 66 | - | d=v:FindFirstChild("NoCollisionConstraint4")
|
| 66 | + | |
| 67 | - | end |
| 67 | + | |
| 68 | - | if hit.Parent:FindFirstChild("HumanoidRootPart") and hit.Parent:FindFirstChild("Humanoid") and hit.Parent:IsA("Model")then
|
| 68 | + | |
| 69 | - | d.Part0 = v |
| 69 | + | |
| 70 | - | d.Part1 = hit.Parent:FindFirstChild("Left Leg")
|
| 70 | + | |
| 71 | - | end |
| 71 | + | |
| 72 | - | if not v:FindFirstChild("NoCollisionConstraint3") then
|
| 72 | + | |
| 73 | - | c=Instance.new("NoCollisionConstraint",v)
|
| 73 | + | |
| 74 | - | c.Name = "NoCollisionConstraint3" |
| 74 | + | |
| 75 | - | elseif v:FindFirstChild("NoCollisionConstraint3") then
|
| 75 | + | |
| 76 | - | c=v:FindFirstChild("NoCollisionConstraint3")
|
| 76 | + | |
| 77 | - | end |
| 77 | + | |
| 78 | - | if hit.Parent:FindFirstChild("HumanoidRootPart") and hit.Parent:FindFirstChild("Humanoid") and hit.Parent:IsA("Model")then
|
| 78 | + | |
| 79 | - | c.Part0 = v |
| 79 | + | |
| 80 | - | c.Part1 = hit.Parent:FindFirstChild("Head")
|
| 80 | + | |
| 81 | - | end |
| 81 | + | |
| 82 | ButtonSubmit.MouseButton1Click:Connect(function() | |
| 83 | - | if not v:FindFirstChild("NoCollisionConstraint2") then
|
| 83 | + | |
| 84 | - | b=Instance.new("NoCollisionConstraint",v)
|
| 84 | + | |
| 85 | - | b.Name = "NoCollisionConstraint2" |
| 85 | + | |
| 86 | - | elseif v:FindFirstChild("NoCollisionConstraint2") then
|
| 86 | + | |
| 87 | - | b=v:FindFirstChild("NoCollisionConstraint2")
|
| 87 | + | |
| 88 | - | end |
| 88 | + | |
| 89 | - | if hit.Parent:FindFirstChild("HumanoidRootPart") and hit.Parent:FindFirstChild("Humanoid") and hit.Parent:IsA("Model")then
|
| 89 | + | |
| 90 | - | b.Part0 = v |
| 90 | + | |
| 91 | - | b.Part1 = hit.Parent:FindFirstChild("Torso")
|
| 91 | + | |
| 92 | - | end |
| 92 | + | |
| 93 | - | if not v:FindFirstChild("NoCollisionConstraint") then
|
| 93 | + | |
| 94 | - | a=Instance.new("NoCollisionConstraint",v)
|
| 94 | + | |
| 95 | - | a.Name = "NoCollisionConstraint" |
| 95 | + | |
| 96 | - | elseif v:FindFirstChild("NoCollisionConstraint") then
|
| 96 | + | |
| 97 | - | a=v:FindFirstChild("NoCollisionConstraint")
|
| 97 | + | |
| 98 | - | end |
| 98 | + | |
| 99 | - | if hit.Name ~= "MANAFLYPART" and hit.Name ~= " Torso"and hit.Name ~= "HumanoidRootPart" then |
| 99 | + | |
| 100 | - | a.Part0=v |
| 100 | + | |
| 101 | - | a.Part1=hit |
| 101 | + | |
| 102 | - | end |
| 102 | + | |
| 103 | - | end) |
| 103 | + | |
| 104 | - | end |
| 104 | + | |
| 105 | end) | |
| 106 | end | |
| 107 | end)) | |
| 108 | end) |