Advertisement
agentagony124

Extendo V4

Apr 11th, 2022 (edited)
1,134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 14.60 KB | None | 0 0
  1. --made by Vidal#5057
  2.  
  3. --Remake Fe Extendo ( but not the best :c )
  4.  
  5. function noplsmesh(hat)
  6. for i,v in next, workspace[game.Players.LocalPlayer.Name][hat]:GetDescendants() do
  7. if v:IsA('Mesh') or v:IsA('SpecialMesh') then
  8. v:Remove()
  9. end
  10. end
  11. end
  12. local character = game.Players.LocalPlayer.Character
  13. local mode = 1
  14.  
  15.  
  16.  
  17. --[[Network]]
  18. sethiddenproperty(game.Players.LocalPlayer,"MaximumSimulationRadius",math.huge)
  19. sethiddenproperty(game.Players.LocalPlayer,"SimulationRadius",101)
  20.  
  21. for i,v in next, game:GetService("Players").LocalPlayer.Character:GetDescendants() do
  22. if v:IsA("BasePart") and v.Name ~="HumanoidRootPart" then
  23. game:GetService("RunService").Heartbeat:connect(function()
  24. pcall(function()
  25. v.Velocity = Vector3.new(0,35.05,0)
  26. wait(0.5)
  27. end)
  28. end)
  29. end
  30. end
  31.  
  32. game:GetService("RunService").Heartbeat:Connect(function()
  33.     for i,v in pairs(game:GetService("Players").LocalPlayer.Character.Humanoid:GetAccessories()) do
  34.         if not v.Handle:FindFirstChild("AccessoryWeld") then
  35.         pcall(function()
  36.             v.Handle.Velocity = Vector3.new(0,35.05,0)
  37.             v.CFrame = v.CFrame
  38.         end)
  39.     end
  40. end
  41. end)
  42.  
  43. game.Players.LocalPlayer.Character.Head.Mesh:Destroy()
  44. for _,BasePart in pairs(game.Players.LocalPlayer.Character:GetDescendants()) do
  45.     pcall(function()
  46.             BasePart.CanTouch = false
  47.             BasePart.CanQuery = false
  48.             BasePart.CastShadow = false
  49.             --BasePart.Archivable = false
  50.             --BasePart.Parent.Archivable = false
  51.             --BasePart.Massless = true
  52.     end)
  53. end
  54.  
  55. -- // Uses Mizt's bypass \\ --
  56.  
  57. Bypass = "death"
  58. loadstring(game:GetObjects("rbxassetid://5325226148")[1].Source)()
  59.  
  60. e = Instance.new("BodyVelocity",game.Players.LocalPlayer.Character.HumanoidRootPart)
  61. e.Velocity = Vector3.new(0,-27.5,0)
  62. e.P = math.huge
  63. e.MaxForce = Vector3.new(0,3000,0)
  64.  
  65. local playerss = workspace.non
  66.  
  67. spawn(function()
  68. m = game.Players.LocalPlayer:GetMouse()
  69.  
  70. m.KeyDown:connect(function(k)
  71. if k == "q" then
  72. playerss.Humanoid.WalkSpeed = 48
  73. end
  74. end)
  75.  
  76. m.KeyUp:connect(function(k)
  77. if k == "q" then
  78. playerss.Humanoid.WalkSpeed = 16
  79. end
  80. end)
  81. end)
  82.  
  83. local IsDead = false
  84. local StateMover = true
  85. local bbv,bullet
  86. if Bypass == "death" then
  87.     bullet = game.Players.LocalPlayer.Character["HumanoidRootPart"]
  88.     bullet.Transparency = 1
  89.     bullet.Massless = true
  90.     if bullet:FindFirstChildOfClass("Attachment") then
  91.         for _,v in pairs(bullet:GetChildren()) do
  92.             if v:IsA("Attachment") then
  93.                 v:Destroy()
  94.             end
  95.         end
  96.     end
  97.     bbv = Instance.new("BodyPosition",bullet)
  98.     bbv.Position = playerss["Right Arm"].CFrame.p
  99. end
  100.  
  101. if Bypass == "death" then
  102. coroutine.wrap(function()
  103.     while true do
  104.         if not playerss or not playerss:FindFirstChildOfClass("Humanoid") or playerss:FindFirstChildOfClass("Humanoid").Health <= 0 then IsDead = true; return end
  105.         if StateMover then
  106.             bbv.Position = playerss["Torso"].CFrame.p
  107.             bullet.Position = playerss["Torso"].CFrame.p
  108.         end
  109.         game:GetService("RunService").RenderStepped:wait()
  110.     end
  111. end)()
  112. end
  113.  
  114. bbav = Instance.new("BodyAngularVelocity",bullet)
  115.    bbav.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  116.    bbav.P = 100000000000000000000000000000
  117.    bbav.AngularVelocity = Vector3.new(10000000000000000000000000000000,100000000000000000000000000,100000000000000000)
  118.  
  119. --[[
  120. local Highlight = Instance.new("SelectionBox")
  121. Highlight.Adornee = game.Players.LocalPlayer.Character["HumanoidRootPart"]
  122. Highlight.LineThickness=0
  123. Highlight.Color3 = Color3.fromRGB(30,255,30)
  124. Highlight.Parent = game.Players.LocalPlayer.Character["HumanoidRootPart"]
  125. Highlight.Name = "RAINBOW"
  126.  
  127. hrp = Highlight
  128.  
  129. spawn(function()
  130. while true do
  131. srv.Stepped:Wait()
  132. if ded then break end
  133. hrp.Color3 = Color3.new(255/255,0/255,0/255)
  134. for i = 0,255,10 do
  135. wait()
  136. hrp.Color3 = Color3.new(255/255,i/255,0/255)
  137. end
  138. for i = 255,0,-10 do
  139. wait()
  140. hrp.Color3 = Color3.new(i/255,255/255,0/255)
  141. end
  142. for i = 0,255,10 do
  143. wait()
  144. hrp.Color3 = Color3.new(0/255,255/255,i/255)
  145. end
  146. for i = 255,0,-10 do
  147. wait()
  148. hrp.Color3 = Color3.new(0/255,i/255,255/255)
  149. end
  150. for i = 0,255,10 do
  151. wait()
  152. hrp.Color3 = Color3.new(i/255,0/255,255/255)
  153. end
  154. for i = 255,0,-10 do
  155. wait()
  156. hrp.Color3 = Color3.new(255/255,0/255,i/255)
  157. end
  158. end
  159. end)
  160. ]]
  161.  
  162. IT = Instance.new
  163. CF = CFrame.new
  164. VT = Vector3.new
  165. RAD = math.rad
  166. C3 = Color3.new
  167. UD2 = UDim2.new
  168. BRICKC = BrickColor.new
  169. ANGLES = CFrame.Angles
  170. EULER = CFrame.fromEulerAnglesXYZ
  171. COS = math.cos
  172. ACOS = math.acos
  173. SIN = math.sin
  174. ASIN = math.asin
  175. ABS = math.abs
  176. MRANDOM = math.random
  177. FLOOR = math.floor
  178.  
  179. speed = 1
  180. sine = 1
  181. srv = game:GetService('RunService')
  182.  
  183. reanim = playerss
  184.  
  185. function hatset(yes,part,c1,c0,nm)
  186. reanim[yes].Handle.AccessoryWeld.Part1=reanim[part]
  187. reanim[yes].Handle.AccessoryWeld.C1=c1 or CFrame.new()
  188. reanim[yes].Handle.AccessoryWeld.C0=c0 or CFrame.new()
  189. if nm==true then
  190. noplsmesh(yes)
  191. end
  192. end
  193.  
  194. --put the hat script converted here do not put it in loop or it will make ur camera bugged.
  195. hatset('Hat1','Left Leg',CFrame.new(),reanim['Hat1'].Handle.AccessoryWeld.C0:Lerp(CF(0.5+0*math.cos(sine/13),-0.15+0*math.cos(sine/13),2+0*math.cos(sine/13))*ANGLES(RAD(100+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(-25+0*math.cos(sine/13))),1),true)
  196. hatset('Pink Hair','Right Leg',CFrame.new(),reanim['Pink Hair'].Handle.AccessoryWeld.C0:Lerp(CF(-0.5+0*math.cos(sine/13),-0.15+0*math.cos(sine/13),2+0*math.cos(sine/13))*ANGLES(RAD(100+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(25+0*math.cos(sine/13))),1),true)
  197. hatset('LavanderHair','Right Arm',CFrame.new(),reanim['LavanderHair'].Handle.AccessoryWeld.C0:Lerp(CF(-0.5+0*math.cos(sine/13),0.3+0*math.cos(sine/13),1.8+0*math.cos(sine/13))*ANGLES(RAD(75+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(35+0*math.cos(sine/13))),1),true)
  198. hatset('Kate Hair','Left Arm',CFrame.new(),reanim['Kate Hair'].Handle.AccessoryWeld.C0:Lerp(CF(0.5+0*math.cos(sine/13),0.3+0*math.cos(sine/13),1.8+0*math.cos(sine/13))*ANGLES(RAD(75+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(-35+0*math.cos(sine/13))),1),true)
  199.  
  200. RJ = reanim.HumanoidRootPart.RootJoint
  201. RS = reanim.Torso['Right Shoulder']
  202. LS = reanim.Torso['Left Shoulder']
  203. RH = reanim.Torso['Right Hip']
  204. LH = reanim.Torso['Left Hip']
  205. Root = reanim.HumanoidRootPart
  206. NECK = reanim.Torso.Neck
  207. NECK.C0 = CF(0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  208. NECK.C1 = CF(0,-0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  209. RJ.C1 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  210. RJ.C0 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  211. RS.C1 = CF(0,0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  212. LS.C1 = CF(0,0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  213. RH.C1 = CF(0.5,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  214. LH.C1 = CF(-0.5,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  215. RH.C0 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  216. LH.C0 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  217. RS.C0 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  218. LS.C0 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  219.  
  220. coroutine.wrap(function()
  221. while true do -- anim changer
  222. if HumanDied then break end
  223. sine = sine + speed
  224. local rlegray = Ray.new(reanim["Right Leg"].Position + Vector3.new(0, 0.5, 0), Vector3.new(0, -2, 0))
  225. local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, char)
  226. local llegray = Ray.new(reanim["Left Leg"].Position + Vector3.new(0, 0.5, 0), Vector3.new(0, -2, 0))
  227. local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, char)
  228. local rightvector = (Root.Velocity * Root.CFrame.rightVector).X + (Root.Velocity * Root.CFrame.rightVector).Z
  229. local lookvector = (Root.Velocity * Root.CFrame.lookVector).X + (Root.Velocity * Root.CFrame.lookVector).Z
  230. if lookvector > reanim.Humanoid.WalkSpeed then
  231. lookvector = reanim.Humanoid.WalkSpeed
  232. end
  233. if lookvector < -reanim.Humanoid.WalkSpeed then
  234. lookvector = -reanim.Humanoid.WalkSpeed
  235. end
  236. if rightvector > reanim.Humanoid.WalkSpeed then
  237. rightvector = reanim.Humanoid.WalkSpeed
  238. end
  239. if rightvector < -reanim.Humanoid.WalkSpeed then
  240. rightvector = -reanim.Humanoid.WalkSpeed
  241. end
  242. local lookvel = lookvector / reanim.Humanoid.WalkSpeed
  243. local rightvel = rightvector / reanim.Humanoid.WalkSpeed
  244. if Root.Velocity.y > 1 then -- jump
  245. --jump clerp here
  246. elseif Root.Velocity.y < -1 then -- fall
  247. --fall clerp here
  248. elseif Root.Velocity.Magnitude < 2 then -- idle
  249. --idle clerp here
  250. reanim['Hat1'].Handle.AccessoryWeld.C0 =  reanim['Hat1'].Handle.AccessoryWeld.C0:Lerp(CF(0.5+0*math.cos(sine/13),-0.15+0*math.cos(sine/13),2+0*math.cos(sine/13))*ANGLES(RAD(100+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(-25+0*math.cos(sine/13))),1)
  251. reanim['Pink Hair'].Handle.AccessoryWeld.C0 = reanim['Pink Hair'].Handle.AccessoryWeld.C0:Lerp(CF(-0.5+0*math.cos(sine/13),-0.15+0*math.cos(sine/13),2+0*math.cos(sine/13))*ANGLES(RAD(100+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(25+0*math.cos(sine/13))),1)
  252. reanim['LavanderHair'].Handle.AccessoryWeld.C0 = reanim['LavanderHair'].Handle.AccessoryWeld.C0:Lerp(CF(-0.5+0*math.cos(sine/13),0.3+0*math.cos(sine/13),1.8+0*math.cos(sine/13))*ANGLES(RAD(75+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(35+0*math.cos(sine/13))),1)
  253. reanim['Kate Hair'].Handle.AccessoryWeld.C0 = reanim['Kate Hair'].Handle.AccessoryWeld.C0:Lerp(CF(0.5+0*math.cos(sine/13),0.3+0*math.cos(sine/13),1.8+0*math.cos(sine/13))*ANGLES(RAD(75+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(-35+0*math.cos(sine/13))),1)
  254.  
  255. NECK.C0 = NECK.C0:Lerp(CF(0+0*math.cos(sine/13),1+0*math.cos(sine/13),0+0*math.cos(sine/13))*ANGLES(RAD(0+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13))),.3)
  256. RJ.C0 = RJ.C0:Lerp(CF(0+0*math.cos(sine/18),2+0*math.cos(sine/18),0+0*math.cos(sine/18))*ANGLES(RAD(-15+0*math.cos(sine/18)),RAD(0+0*math.cos(sine/18)),RAD(0+0*math.cos(sine/18))),.3)
  257. RS.C0 = RS.C0:Lerp(CF(1.5+0*math.cos(sine/18),0.6+0*math.cos(sine/18),0+0*math.cos(sine/18))*ANGLES(RAD(25+0*math.cos(sine/18)),RAD(0+0*math.cos(sine/18)),RAD(45+8*math.cos(sine/18))),.3)
  258. LS.C0 = LS.C0:Lerp(CF(-1.5+0*math.cos(sine/18),0.6+0*math.cos(sine/18),0+0*math.cos(sine/18))*ANGLES(RAD(25+0*math.cos(sine/18)),RAD(0+0*math.cos(sine/18)),RAD(-45+-8*math.cos(sine/18))),.3)
  259. RH.C0 = RH.C0:Lerp(CF(1+0*math.cos(sine/13),-1+0*math.cos(sine/13),0+0*math.cos(sine/13))*ANGLES(RAD(25+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(35+0*math.cos(sine/13))),.3)
  260. LH.C0 = LH.C0:Lerp(CF(-1+0*math.cos(sine/13),-1+0*math.cos(sine/13),0+0*math.cos(sine/13))*ANGLES(RAD(25+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(-35+0*math.cos(sine/13))),.3)
  261.  
  262.  
  263. elseif Root.Velocity.Magnitude < 20 then -- walk
  264. --walk clerp here
  265. reanim['Hat1'].Handle.AccessoryWeld.C0 = reanim['Hat1'].Handle.AccessoryWeld.C0:Lerp(CF(0+0*math.cos(sine/7),-0.5+0*math.cos(sine/7),2+0*math.cos(sine/7))*ANGLES(RAD(115+0*math.cos(sine/7)),RAD(0+0*math.cos(sine/7)),RAD(0+0*math.cos(sine/7))),.3)
  266. reanim['Pink Hair'].Handle.AccessoryWeld.C0 = reanim['Pink Hair'].Handle.AccessoryWeld.C0:Lerp(CF(0+0*math.cos(sine/7),-0.5+0*math.cos(sine/7),2+0*math.cos(sine/7))*ANGLES(RAD(115+0*math.cos(sine/7)),RAD(0+0*math.cos(sine/7)),RAD(0+0*math.cos(sine/7))),.3)
  267. reanim['LavanderHair'].Handle.AccessoryWeld.C0 = reanim['LavanderHair'].Handle.AccessoryWeld.C0:Lerp(CF(0+0*math.cos(sine/7),0.5+0*math.cos(sine/7),2+0*math.cos(sine/7))*ANGLES(RAD(65+0*math.cos(sine/7)),RAD(0+0*math.cos(sine/7)),RAD(0+0*math.cos(sine/7))),.3)
  268. reanim['Kate Hair'].Handle.AccessoryWeld.C0 = reanim['Kate Hair'].Handle.AccessoryWeld.C0:Lerp(CF(0+0*math.cos(sine/7),0.5+0*math.cos(sine/7),2+0*math.cos(sine/7))*ANGLES(RAD(65+0*math.cos(sine/7)),RAD(0+0*math.cos(sine/7)),RAD(0+0*math.cos(sine/7))),.3)
  269.  
  270. NECK.C0 = NECK.C0:Lerp(CF(0+0*math.cos(sine/7),1+0*math.cos(sine/7),0+0*math.cos(sine/7))*ANGLES(RAD(0+0*math.cos(sine/7)),RAD(0+0*math.cos(sine/7)),RAD(0+0*math.cos(sine/7))),.3)
  271. RJ.C0 = RJ.C0:Lerp(CF(0+0*math.cos(sine/7),2+0.01*math.cos(sine/7),0+0*math.cos(sine/7))*ANGLES(RAD(0+0*math.cos(sine/7)),RAD(0+0*math.cos(sine/7)),RAD(0+0*math.cos(sine/7))),.3)
  272. RS.C0 = RS.C0:Lerp(CF(1.5+0*math.cos(sine/7),0.5+0*math.cos(sine/7),0+0*math.cos(sine/7))*ANGLES(RAD(0+-35*math.cos(sine/7)),RAD(0+0*math.cos(sine/7)),RAD(0+0*math.cos(sine/7))),.3)
  273. LS.C0 = LS.C0:Lerp(CF(-1.5+0*math.cos(sine/7),0.5+0*math.cos(sine/7),0+0*math.cos(sine/7))*ANGLES(RAD(0+35*math.cos(sine/7)),RAD(0+0*math.cos(sine/7)),RAD(0+0*math.cos(sine/7))),.3)
  274. RH.C0 = RH.C0:Lerp(CF(1+0*math.cos(sine/7),-1+0*math.cos(sine/7),0+0*math.cos(sine/7))*ANGLES(RAD(0+35*math.cos(sine/7)),RAD(0+0*math.cos(sine/7)),RAD(0+0*math.cos(sine/7))),.3)
  275. LH.C0 = LH.C0:Lerp(CF(-1+0*math.cos(sine/7),-1+0*math.cos(sine/7),0+0*math.cos(sine/7))*ANGLES(RAD(0+-35*math.cos(sine/7)),RAD(0+0*math.cos(sine/7)),RAD(0+0*math.cos(sine/7))),.3)
  276.  
  277. elseif Root.Velocity.Magnitude > 20 then -- run
  278. reanim['Hat1'].Handle.AccessoryWeld.C0 = reanim['Hat1'].Handle.AccessoryWeld.C0:Lerp(CF(0+0*math.cos(sine/3),-0.5+0*math.cos(sine/3),2+0*math.cos(sine/3))*ANGLES(RAD(115+0*math.cos(sine/3)),RAD(0+0*math.cos(sine/3)),RAD(0+0*math.cos(sine/3))),.3)
  279. reanim['Pink Hair'].Handle.AccessoryWeld.C0 = reanim['Pink Hair'].Handle.AccessoryWeld.C0:Lerp(CF(0+0*math.cos(sine/3),-0.5+0*math.cos(sine/3),2+0*math.cos(sine/3))*ANGLES(RAD(115+0*math.cos(sine/3)),RAD(0+0*math.cos(sine/3)),RAD(0+0*math.cos(sine/3))),.3)
  280. reanim['LavanderHair'].Handle.AccessoryWeld.C0 = reanim['LavanderHair'].Handle.AccessoryWeld.C0:Lerp(CF(0+0*math.cos(sine/3),0.5+0*math.cos(sine/3),2+0*math.cos(sine/3))*ANGLES(RAD(65+0*math.cos(sine/3)),RAD(0+0*math.cos(sine/3)),RAD(0+0*math.cos(sine/3))),.3)
  281. reanim['Kate Hair'].Handle.AccessoryWeld.C0 = reanim['Kate Hair'].Handle.AccessoryWeld.C0:Lerp(CF(0+0*math.cos(sine/3),0.5+0*math.cos(sine/3),2+0*math.cos(sine/3))*ANGLES(RAD(65+0*math.cos(sine/3)),RAD(0+0*math.cos(sine/3)),RAD(0+0*math.cos(sine/3))),.3)
  282.  
  283. NECK.C0 = NECK.C0:Lerp(CF(0+0*math.cos(sine/3),1+0*math.cos(sine/3),0+0*math.cos(sine/3))*ANGLES(RAD(0+0*math.cos(sine/3)),RAD(0+0*math.cos(sine/3)),RAD(0+0*math.cos(sine/3))),.3)
  284. RJ.C0 = RJ.C0:Lerp(CF(0+0*math.cos(sine/3),2+0.01*math.cos(sine/3),0+0*math.cos(sine/3))*ANGLES(RAD(0+0*math.cos(sine/3)),RAD(0+0*math.cos(sine/3)),RAD(0+0*math.cos(sine/3))),.3)
  285. RS.C0 = RS.C0:Lerp(CF(1.5+0*math.cos(sine/3),0.5+0*math.cos(sine/3),0+0*math.cos(sine/3))*ANGLES(RAD(0+-35*math.cos(sine/3)),RAD(0+0*math.cos(sine/3)),RAD(0+0*math.cos(sine/3))),.3)
  286. LS.C0 = LS.C0:Lerp(CF(-1.5+0*math.cos(sine/3),0.5+0*math.cos(sine/3),0+0*math.cos(sine/3))*ANGLES(RAD(0+35*math.cos(sine/3)),RAD(0+0*math.cos(sine/3)),RAD(0+0*math.cos(sine/3))),.3)
  287. RH.C0 = RH.C0:Lerp(CF(1+0*math.cos(sine/3),-1+0*math.cos(sine/3),0+0*math.cos(sine/3))*ANGLES(RAD(0+35*math.cos(sine/3)),RAD(0+0*math.cos(sine/3)),RAD(0+0*math.cos(sine/3))),.3)
  288. LH.C0 = LH.C0:Lerp(CF(-1+0*math.cos(sine/3),-1+0*math.cos(sine/3),0+0*math.cos(sine/3))*ANGLES(RAD(0+-35*math.cos(sine/3)),RAD(0+0*math.cos(sine/3)),RAD(0+0*math.cos(sine/3))),.3)
  289. end
  290. srv.RenderStepped:Wait()
  291. end
  292. end)()
  293. --Created using Nexo Animator :D
  294. --Me pican los cocos    
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement