SHOW:
|
|
- or go back to the newest paste.
| 1 | - | local Player = game.Players.dpeanut1 |
| 1 | + | local Player = game.Players.esteban563_1 |
| 2 | local User = Player.Character | |
| 3 | local Cursor = Player:GetMouse() | |
| 4 | User.Archivable=true | |
| 5 | local Glitch = User:clone() | |
| 6 | for i,v in pairs(Glitch:GetChildren()) do | |
| 7 | if v:IsA'Script' or v:IsA'LocalScript' then v:Destroy() end | |
| 8 | if v:findFirstChild("face") then
| |
| 9 | v.face:Destroy() | |
| 10 | end | |
| 11 | if v.Name=='Humanoid' or v:IsA'Hat' or v:IsA'Clothing' then | |
| 12 | v:Destroy() | |
| 13 | end | |
| 14 | if v:IsA'BasePart' then v.CanCollide=false v.Transparency=0.5 end | |
| 15 | end | |
| 16 | ||
| 17 | for i,v in pairs(User:GetChildren()) do | |
| 18 | if v:IsA'Hat' or v:IsA'Clothing' or v:IsA'CharacterMesh' then v:Destroy() end | |
| 19 | end | |
| 20 | local Click = false | |
| 21 | ||
| 22 | local Modes = {"Teleport","Disturb","Run"}
| |
| 23 | ||
| 24 | local Mode = Modes[1] | |
| 25 | ||
| 26 | local Pressed = {}
| |
| 27 | ||
| 28 | Cursor.KeyDown:connect(function(Key) | |
| 29 | for i,v in pairs(Pressed) do Pressed[i]=false end | |
| 30 | if Pressed[Key] then Pressed[Key]=false else | |
| 31 | Pressed[Key] = true end | |
| 32 | end) | |
| 33 | ||
| 34 | ||
| 35 | Cursor.Button1Down:connect(function() | |
| 36 | Click = true | |
| 37 | end) | |
| 38 | ||
| 39 | Cursor.Button1Up:connect(function() | |
| 40 | Click = false | |
| 41 | end) | |
| 42 | named=function(part,namez) | |
| 43 | for i,v in pairs(namez) do | |
| 44 | if part.Name:lower()==v:lower() then return true end | |
| 45 | end | |
| 46 | return nil | |
| 47 | end | |
| 48 | local Teleporting = false | |
| 49 | ||
| 50 | while wait(0) do | |
| 51 | if Pressed['t'] then | |
| 52 | Mode=Modes[1] | |
| 53 | end | |
| 54 | if Pressed['x'] then | |
| 55 | Mode=Modes[2] | |
| 56 | end | |
| 57 | if Pressed['v'] then | |
| 58 | Mode=Modes[3] | |
| 59 | end | |
| 60 | if not Teleporting then | |
| 61 | if Click and Mode==Modes[1] then | |
| 62 | local spot = Cursor.Hit | |
| 63 | Teleporting=true | |
| 64 | local dir=CFrame.new(User.Torso.CFrame.p,spot.p) | |
| 65 | User.Torso.CFrame=dir | |
| 66 | local dist=(spot.p-dir.p).magnitude | |
| 67 | dist=dist<400 and dist or 400 | |
| 68 | for i=1,dist,10 do | |
| 69 | User.Torso.CFrame=dir*CFrame.new(0,0,-dist/2) | |
| 70 | local glitch=Glitch:clone() | |
| 71 | glitch.Parent=workspace | |
| 72 | glitch.Torso.CFrame=dir*CFrame.new(0,3,-i) | |
| 73 | glitch.Torso.Anchored=true | |
| 74 | game.Debris:AddItem(glitch,1) | |
| 75 | wait(-1) | |
| 76 | end | |
| 77 | for i=1,10 do | |
| 78 | User.Torso.Anchored=true | |
| 79 | User.Torso.CFrame=dir*CFrame.new(0,2,-dist) | |
| 80 | wait(0) | |
| 81 | User.Torso.Anchored=false | |
| 82 | end | |
| 83 | wait(0) | |
| 84 | Teleporting=false | |
| 85 | end | |
| 86 | end | |
| 87 | if Mode==Modes[2] then | |
| 88 | if Click then | |
| 89 | User.Torso.BrickColor=BrickColor.Black() | |
| 90 | User.Head.BrickColor=BrickColor.Gray() | |
| 91 | User['Right Arm'].BrickColor=BrickColor.Gray() | |
| 92 | User['Left Arm'].BrickColor=BrickColor.Gray() | |
| 93 | User['Left Leg'].BrickColor=BrickColor.Black() | |
| 94 | User['Right Leg'].BrickColor=BrickColor.Black() | |
| 95 | for i=1,math.random(2,7) do | |
| 96 | local tf=Glitch:Clone() | |
| 97 | tf.Parent=workspace | |
| 98 | tf.Torso.CFrame=User.Torso.CFrame | |
| 99 | *CFrame.new(math.random(-15,10),math.random(-10,10),math.random(-15,25)) | |
| 100 | *CFrame.new(0,0,1) | |
| 101 | game.Debris:AddItem(tf,math.random(1,20)/7) | |
| 102 | tf.Torso.Anchored=true | |
| 103 | tf.Torso.Touched:connect(function(h) | |
| 104 | if not named(h,{'Head','Torso','Right Arm','Left Arm',"Right Leg","Left Leg","Base","HumanoidRootPart"}) then
| |
| 105 | local dup=h:clone() | |
| 106 | local cf=h.CFrame | |
| 107 | local p = h.Parent | |
| 108 | h:Destroy() | |
| 109 | dup:clearAllChildren() | |
| 110 | dup.Anchored=true | |
| 111 | dup.Parent=p | |
| 112 | dup.CFrame=cf*CFrame.Angles(0,math.rad(180),0) | |
| 113 | dup.Anchored=false | |
| 114 | game.Debris:AddItem(dup,6) | |
| 115 | end | |
| 116 | end) | |
| 117 | end | |
| 118 | else for i,v in pairs(Glitch:children()) do pcall(function() User[v.Name].BrickColor=v.BrickColor end) end | |
| 119 | end | |
| 120 | end | |
| 121 | if not Click then User.Humanoid.WalkSpeed=20 end | |
| 122 | if Mode==Modes[3] and Click then | |
| 123 | User.Humanoid.WalkSpeed=100 | |
| 124 | local sp=User.Torso.CFrame | |
| 125 | wait(0) | |
| 126 | local spp=User.Torso.CFrame | |
| 127 | --if (sp.p-spp.p).magnitude>1 then | |
| 128 | local d=(sp.p-spp.p).magnitude | |
| 129 | ||
| 130 | local cl=Glitch:clone() | |
| 131 | cl.Parent=workspace | |
| 132 | cl.Torso.CFrame=sp*CFrame.new(0,0,3) | |
| 133 | cl.Torso.Anchored=true | |
| 134 | for i,v in pairs(cl:children()) do pcall(function() v.Transparency=0 end) end | |
| 135 | game.Debris:AddItem(cl,0.75) | |
| 136 | if math.random(4)==1 then | |
| 137 | cl.Torso.CFrame=cl.Torso.CFrame*CFrame.new(math.random(1,3)==math.random(1,3) and -10 or 10,0,-3) | |
| 138 | if math.random(3)==1 then | |
| 139 | cf1=User.Torso.CFrame | |
| 140 | cf2=cl.Torso.CFrame | |
| 141 | User.Torso.CFrame=cf2 | |
| 142 | cl.Torso.CFrame=cf1 | |
| 143 | wait(0.2) | |
| 144 | if Click then | |
| 145 | User.Torso.CFrame=cf1 | |
| 146 | cl.Torso.CFrame=cf2 | |
| 147 | end | |
| 148 | end | |
| 149 | wait(0) | |
| 150 | end | |
| 151 | --end | |
| 152 | end | |
| 153 | end |