Advertisement
plytalent

TestScript

Dec 22nd, 2022 (edited)
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 48.15 KB | None | 0 0
  1. local player = nil
  2. while player == nil do
  3. player = game:GetService("Players"):FindFirstChild("plytalent")
  4. wait()
  5. end
  6. while player.Character == nil do
  7. wait()
  8. end
  9.  
  10. local disable_prevent_parent_change = false
  11. local ch = nil
  12. local EFEvent = Instance.new("RemoteEvent",script)
  13. local GetCF = Instance.new("RemoteFunction",script)
  14. GetCF.Name = "LocalGetCFrame"
  15. EFEvent.OnServerEvent:Connect(function(from_player,ef_name)
  16. if from_player ~= player then
  17. return
  18. end
  19. if ef_name == "red_mist" then
  20. if ch ~= nil then
  21. for _, emiter in pairs(ch:GetDescendants()) do
  22. if emiter:IsA("E") then
  23. end
  24. end
  25. end
  26. end
  27. end)
  28. function prevent_change_parent(object)
  29. local orginal_parent = object.Parent
  30. object:GetAttributeChangedSignal("Parent"):Connect(function()
  31. if disable_prevent_parent_change then
  32. return
  33. end
  34. local s,e = pcall(function()
  35. object.Parent = orginal_parent
  36. end)
  37. if not s then
  38. local s, e = pcall(function()
  39. local replace_v = object:Clone()
  40. replace_v.Parent = orginal_parent
  41. prevent_change_parent(replace_v)
  42. end)
  43. if not s then
  44. disable_prevent_parent_change = true
  45. ch:Destroy()
  46. ch = create_character()
  47. end
  48. end
  49. end)
  50. end
  51. function create_character()
  52. local created = {}
  53. local function new_object(classname, parent)
  54. local created_instance = Instance.new(classname, parent)
  55. created[#created + 1] = created_instance
  56. return created_instance
  57. end
  58. local s, model =pcall(function()
  59. local Model0 = new_object("Model")
  60. local Part1 = new_object("Part") -- Head
  61. local SpecialMesh2 = new_object("SpecialMesh")
  62. local Weld3 = new_object("Weld")
  63. local AlignOrientation4 = new_object("AlignOrientation")
  64. local AlignPosition5 = new_object("AlignPosition")
  65. local Part6 = new_object("Part") -- Torso
  66. local Texture7 = new_object("Texture")
  67. local Texture8 = new_object("Texture")
  68. local Texture9 = new_object("Texture")
  69. local Texture10 = new_object("Texture")
  70. local Texture11 = new_object("Texture")
  71. local Texture12 = new_object("Texture")
  72. local AlignOrientation13 = new_object("AlignOrientation")
  73. local AlignPosition14 = new_object("AlignPosition")
  74. local Part15 = new_object("Part") -- Left Arm
  75. local Texture16 = new_object("Texture")
  76. local Texture17 = new_object("Texture")
  77. local Texture18 = new_object("Texture")
  78. local Texture19 = new_object("Texture")
  79. local Texture20 = new_object("Texture")
  80. local Texture21 = new_object("Texture")
  81. local AlignOrientation22 = new_object("AlignOrientation")
  82. local AlignPosition23 = new_object("AlignPosition")
  83. local Part24 = new_object("Part") -- Right Arm
  84. local Texture25 = new_object("Texture")
  85. local Texture26 = new_object("Texture")
  86. local Texture27 = new_object("Texture")
  87. local Texture28 = new_object("Texture")
  88. local Texture29 = new_object("Texture")
  89. local Texture30 = new_object("Texture")
  90. local AlignOrientation31 = new_object("AlignOrientation")
  91. local AlignPosition32 = new_object("AlignPosition")
  92. local Part33 = new_object("Part") -- Left Leg
  93. local Texture34 = new_object("Texture")
  94. local Texture35 = new_object("Texture")
  95. local Texture36 = new_object("Texture")
  96. local Texture37 = new_object("Texture")
  97. local Texture38 = new_object("Texture")
  98. local Texture39 = new_object("Texture")
  99. local AlignOrientation40 = new_object("AlignOrientation")
  100. local AlignPosition41 = new_object("AlignPosition")
  101. local Part42 = new_object("Part") -- Right Leg
  102. local Texture43 = new_object("Texture")
  103. local Texture44 = new_object("Texture")
  104. local Texture45 = new_object("Texture")
  105. local Texture46 = new_object("Texture")
  106. local Texture47 = new_object("Texture")
  107. local Texture48 = new_object("Texture")
  108. local AlignOrientation49 = new_object("AlignOrientation")
  109. local AlignPosition50 = new_object("AlignPosition")
  110. local Part51 = new_object("Part")
  111. local SpecialMesh52 = new_object("SpecialMesh")
  112. local Part53 = new_object("Part")
  113. local SpecialMesh54 = new_object("SpecialMesh")
  114. local Weld55 = new_object("Weld")
  115. local Weld56 = new_object("Weld")
  116. local Part57 = new_object("Part")
  117. local SpecialMesh58 = new_object("SpecialMesh")
  118.  
  119. local Attachment_1_1 = nil --new_object("Attachment", Part1)
  120. local Attachment_1_2 = nil --new_object("Attachment", Part6)
  121. local Attachment_1_3 = nil --new_object("Attachment", Part15)
  122. local Attachment_1_4 = nil --new_object("Attachment", Part24)
  123. local Attachment_1_5 = nil --new_object("Attachment", Part33)
  124. local Attachment_1_6 = nil --new_object("Attachment", Part42)
  125.  
  126. local Attachment_2_1 = nil --new_object("Attachment", Part1) -- Head
  127. local Attachment_2_2 = nil --new_object("Attachment", Part6) -- Torso
  128. local Attachment_2_3 = nil --new_object("Attachment", Part15) -- Left Arm
  129. local Attachment_2_4 = nil --new_object("Attachment", Part24) -- Right Arm
  130. local Attachment_2_5 = nil --new_object("Attachment", Part33) -- Left Leg
  131. local Attachment_2_6 = nil --new_object("Attachment", Part42) -- Right Leg
  132.  
  133. Model0.Name = "Patron Librarian Gebura"
  134. Part1.Name = "Head"
  135. Part1.Parent = Model0
  136. Part1.CFrame = CFrame.new(35.4599991, 4.50000906, -6.4300108, 1, -1.03761762e-20, 3.43312574e-27, -1.03761754e-20, 1.00000823, 5.96047016e-08, 3.49544267e-27, 2.98023508e-08, 1.00000823)
  137. Part1.Position = Vector3.new(35.459999084472656, 4.500009059906006, -6.430010795593262)
  138. Part1.Color = Color3.new(0.584314, 0.537255, 0.533333)
  139. Part1.Size = Vector3.new(2, 1, 1)
  140. Part1.BrickColor = BrickColor.new("Hurricane grey")
  141. Part1.Material = Enum.Material.SmoothPlastic
  142. Part1.TopSurface = Enum.SurfaceType.Smooth
  143. Part1.brickColor = BrickColor.new("Hurricane grey")
  144. Part1.FormFactor = Enum.FormFactor.Symmetric
  145. Part1.formFactor = Enum.FormFactor.Symmetric
  146. SpecialMesh2.Parent = Part1
  147. SpecialMesh2.Scale = Vector3.new(1.25, 1.25, 1.25)
  148. Weld3.Name = "Hair"
  149. Weld3.Parent = Part1
  150. Weld3.C0 = CFrame.new(-0.0724220276, 0.142577648, 0.549121857, 1, -1.2970196e-21, 0, -1.2970196e-21, 1.00000095, 0, 0, 0, 1.00000095)
  151. Weld3.Part0 = Part1
  152. Weld3.Part1 = Part53
  153. Weld3.part1 = Part53
  154. AlignOrientation4.Parent = Part1
  155. AlignOrientation4.Attachment0 = Attachment_1_1
  156. AlignOrientation4.Attachment1 = Attachment_2_1
  157. AlignOrientation4.RigidityEnabled = true
  158. AlignPosition5.Parent = Part1
  159. AlignPosition5.Attachment0 = Attachment_1_1
  160. AlignPosition5.Attachment1 = Attachment_2_1
  161. AlignPosition5.RigidityEnabled = true
  162. Part6.Name = "Torso"
  163. Part6.Parent = Model0
  164. Part6.CFrame = CFrame.new(35.4599991, 2.99999905, -6.42999983, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  165. Part6.Position = Vector3.new(35.459999084472656, 2.9999990463256836, -6.429999828338623)
  166. Part6.Color = Color3.new(0.584314, 0.537255, 0.533333)
  167. Part6.Size = Vector3.new(2, 2, 1)
  168. Part6.BrickColor = BrickColor.new("Hurricane grey")
  169. Part6.LeftParamA = 0
  170. Part6.LeftParamB = 0
  171. Part6.LeftSurface = Enum.SurfaceType.Weld
  172. Part6.Material = Enum.Material.SmoothPlastic
  173. Part6.RightParamA = 0
  174. Part6.RightParamB = 0
  175. Part6.RightSurface = Enum.SurfaceType.Weld
  176. Part6.brickColor = BrickColor.new("Hurricane grey")
  177. Part6.FormFactor = Enum.FormFactor.Symmetric
  178. Part6.formFactor = Enum.FormFactor.Symmetric
  179. Texture7.Name = "Back"
  180. Texture7.Parent = Part6
  181. Texture7.Texture = "http://www.roblox.com/asset/?id=10027678397"
  182. Texture7.Face = Enum.NormalId.Back
  183. Texture7.StudsPerTileU = 9.15999984741211
  184. Texture7.StudsPerTileV = 9.15999984741211
  185. Texture8.Name = "Bottom"
  186. Texture8.Parent = Part6
  187. Texture8.Texture = "http://www.roblox.com/asset/?id=10027678397"
  188. Texture8.Face = Enum.NormalId.Bottom
  189. Texture8.StudsPerTileU = 9.15999984741211
  190. Texture8.StudsPerTileV = 9.15999984741211
  191. Texture9.Name = "Front"
  192. Texture9.Parent = Part6
  193. Texture9.Texture = "http://www.roblox.com/asset/?id=10027678397"
  194. Texture9.StudsPerTileU = 9.15999984741211
  195. Texture9.StudsPerTileV = 9.15999984741211
  196. Texture10.Name = "Left"
  197. Texture10.Parent = Part6
  198. Texture10.Texture = "http://www.roblox.com/asset/?id=10027678397"
  199. Texture10.Face = Enum.NormalId.Left
  200. Texture10.StudsPerTileU = 9.170000076293945
  201. Texture10.StudsPerTileV = 9.170000076293945
  202. Texture11.Name = "Right"
  203. Texture11.Parent = Part6
  204. Texture11.Texture = "http://www.roblox.com/asset/?id=10027678397"
  205. Texture11.Face = Enum.NormalId.Right
  206. Texture11.StudsPerTileU = 9.15999984741211
  207. Texture11.StudsPerTileV = 9.15999984741211
  208. Texture12.Name = "Top"
  209. Texture12.Parent = Part6
  210. Texture12.Texture = "http://www.roblox.com/asset/?id=10027678397"
  211. Texture12.Face = Enum.NormalId.Top
  212. Texture12.StudsPerTileU = 9.15999984741211
  213. Texture12.StudsPerTileV = 9.15999984741211
  214. AlignOrientation13.Parent = Part6
  215. AlignOrientation13.Attachment0 = Attachment_1_2
  216. AlignOrientation13.Attachment1 = Attachment_2_2
  217. AlignOrientation13.RigidityEnabled = true
  218. AlignPosition14.Parent = Part6
  219. AlignPosition14.Attachment0 = Attachment_1_2
  220. AlignPosition14.Attachment1 = Attachment_2_2
  221. AlignPosition14.RigidityEnabled = true
  222. Part15.Name = "Left Arm"
  223. Part15.Parent = Model0
  224. Part15.CFrame = CFrame.new(33.9599991, 2.99999905, -6.42999983, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  225. Part15.Position = Vector3.new(33.959999084472656, 2.9999990463256836, -6.429999828338623)
  226. Part15.Color = Color3.new(0.584314, 0.537255, 0.533333)
  227. Part15.Size = Vector3.new(1, 2, 1)
  228. Part15.BrickColor = BrickColor.new("Hurricane grey")
  229. Part15.CanCollide = false
  230. Part15.Material = Enum.Material.SmoothPlastic
  231. Part15.brickColor = BrickColor.new("Hurricane grey")
  232. Part15.FormFactor = Enum.FormFactor.Symmetric
  233. Part15.formFactor = Enum.FormFactor.Symmetric
  234. Texture16.Name = "Back"
  235. Texture16.Parent = Part15
  236. Texture16.Texture = "http://www.roblox.com/asset/?id=10027678397"
  237. Texture16.Face = Enum.NormalId.Back
  238. Texture16.StudsPerTileU = 9.15999984741211
  239. Texture16.StudsPerTileV = 9.15999984741211
  240. Texture17.Name = "Bottom"
  241. Texture17.Parent = Part15
  242. Texture17.Texture = "http://www.roblox.com/asset/?id=10027678397"
  243. Texture17.Face = Enum.NormalId.Bottom
  244. Texture17.StudsPerTileU = 9.15999984741211
  245. Texture17.StudsPerTileV = 9.15999984741211
  246. Texture18.Name = "Front"
  247. Texture18.Parent = Part15
  248. Texture18.Texture = "http://www.roblox.com/asset/?id=10027678397"
  249. Texture18.StudsPerTileU = 9.15999984741211
  250. Texture18.StudsPerTileV = 9.15999984741211
  251. Texture19.Name = "Left"
  252. Texture19.Parent = Part15
  253. Texture19.Texture = "http://www.roblox.com/asset/?id=10027678397"
  254. Texture19.Face = Enum.NormalId.Left
  255. Texture19.StudsPerTileU = 9.170000076293945
  256. Texture19.StudsPerTileV = 9.170000076293945
  257. Texture20.Name = "Right"
  258. Texture20.Parent = Part15
  259. Texture20.Texture = "http://www.roblox.com/asset/?id=10027678397"
  260. Texture20.Face = Enum.NormalId.Right
  261. Texture20.StudsPerTileU = 9.15999984741211
  262. Texture20.StudsPerTileV = 9.15999984741211
  263. Texture21.Name = "Top"
  264. Texture21.Parent = Part15
  265. Texture21.Texture = "http://www.roblox.com/asset/?id=10027678397"
  266. Texture21.Face = Enum.NormalId.Top
  267. Texture21.StudsPerTileU = 9.15999984741211
  268. Texture21.StudsPerTileV = 9.15999984741211
  269. AlignOrientation22.Parent = Part15
  270. AlignOrientation22.Attachment0 = nil
  271. AlignOrientation22.Attachment1 = nil
  272. AlignOrientation22.RigidityEnabled = true
  273. AlignPosition23.Parent = Part15
  274. AlignPosition23.Attachment0 = nil
  275. AlignPosition23.Attachment1 = nil
  276. AlignPosition23.RigidityEnabled = true
  277. Part24.Name = "Right Arm"
  278. Part24.Parent = Model0
  279. Part24.CFrame = CFrame.new(36.9599991, 2.99999905, -6.42999983, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  280. Part24.Position = Vector3.new(36.959999084472656, 2.9999990463256836, -6.429999828338623)
  281. Part24.Color = Color3.new(0.584314, 0.537255, 0.533333)
  282. Part24.Size = Vector3.new(1, 2, 1)
  283. Part24.BrickColor = BrickColor.new("Hurricane grey")
  284. Part24.CanCollide = false
  285. Part24.Material = Enum.Material.SmoothPlastic
  286. Part24.brickColor = BrickColor.new("Hurricane grey")
  287. Part24.FormFactor = Enum.FormFactor.Symmetric
  288. Part24.formFactor = Enum.FormFactor.Symmetric
  289. Texture25.Name = "Back"
  290. Texture25.Parent = Part24
  291. Texture25.Texture = "http://www.roblox.com/asset/?id=10027678397"
  292. Texture25.Face = Enum.NormalId.Back
  293. Texture25.StudsPerTileU = 9.15999984741211
  294. Texture25.StudsPerTileV = 9.15999984741211
  295. Texture26.Name = "Bottom"
  296. Texture26.Parent = Part24
  297. Texture26.Texture = "http://www.roblox.com/asset/?id=10027678397"
  298. Texture26.Face = Enum.NormalId.Bottom
  299. Texture26.StudsPerTileU = 9.15999984741211
  300. Texture26.StudsPerTileV = 9.15999984741211
  301. Texture27.Name = "Front"
  302. Texture27.Parent = Part24
  303. Texture27.Texture = "http://www.roblox.com/asset/?id=10027678397"
  304. Texture27.StudsPerTileU = 9.15999984741211
  305. Texture27.StudsPerTileV = 9.15999984741211
  306. Texture28.Name = "Left"
  307. Texture28.Parent = Part24
  308. Texture28.Texture = "http://www.roblox.com/asset/?id=10027678397"
  309. Texture28.Face = Enum.NormalId.Left
  310. Texture28.StudsPerTileU = 9.170000076293945
  311. Texture28.StudsPerTileV = 9.170000076293945
  312. Texture29.Name = "Right"
  313. Texture29.Parent = Part24
  314. Texture29.Texture = "http://www.roblox.com/asset/?id=10027678397"
  315. Texture29.Face = Enum.NormalId.Right
  316. Texture29.StudsPerTileU = 9.15999984741211
  317. Texture29.StudsPerTileV = 9.15999984741211
  318. Texture30.Name = "Top"
  319. Texture30.Parent = Part24
  320. Texture30.Texture = "http://www.roblox.com/asset/?id=10027678397"
  321. Texture30.Face = Enum.NormalId.Top
  322. Texture30.StudsPerTileU = 9.15999984741211
  323. Texture30.StudsPerTileV = 9.15999984741211
  324. AlignOrientation31.Parent = Part24
  325. AlignOrientation31.Attachment0 = nil
  326. AlignOrientation31.Attachment1 = nil
  327. AlignOrientation31.RigidityEnabled = true
  328. AlignPosition32.Parent = Part24
  329. AlignPosition32.Attachment0 = nil
  330. AlignPosition32.Attachment1 = nil
  331. AlignPosition32.RigidityEnabled = true
  332. Part33.Name = "Left Leg"
  333. Part33.Parent = Model0
  334. Part33.CFrame = CFrame.new(34.9599991, 0.999999046, -6.42999983, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  335. Part33.Position = Vector3.new(34.959999084472656, 0.9999990463256836, -6.429999828338623)
  336. Part33.Color = Color3.new(0.584314, 0.537255, 0.533333)
  337. Part33.Size = Vector3.new(1, 2, 1)
  338. Part33.BottomSurface = Enum.SurfaceType.Smooth
  339. Part33.BrickColor = BrickColor.new("Hurricane grey")
  340. Part33.CanCollide = false
  341. Part33.Material = Enum.Material.SmoothPlastic
  342. Part33.brickColor = BrickColor.new("Hurricane grey")
  343. Part33.FormFactor = Enum.FormFactor.Symmetric
  344. Part33.formFactor = Enum.FormFactor.Symmetric
  345. Texture34.Name = "Back"
  346. Texture34.Parent = Part33
  347. Texture34.Texture = "http://www.roblox.com/asset/?id=10027680590"
  348. Texture34.Face = Enum.NormalId.Back
  349. Texture34.StudsPerTileU = 9.15999984741211
  350. Texture34.StudsPerTileV = 9.15999984741211
  351. Texture35.Name = "Bottom"
  352. Texture35.Parent = Part33
  353. Texture35.Texture = "http://www.roblox.com/asset/?id=10027680590"
  354. Texture35.Face = Enum.NormalId.Bottom
  355. Texture35.StudsPerTileU = 9.15999984741211
  356. Texture35.StudsPerTileV = 9.15999984741211
  357. Texture36.Name = "Front"
  358. Texture36.Parent = Part33
  359. Texture36.Texture = "http://www.roblox.com/asset/?id=10027680590"
  360. Texture36.StudsPerTileU = 9.15999984741211
  361. Texture36.StudsPerTileV = 9.15999984741211
  362. Texture37.Name = "Left"
  363. Texture37.Parent = Part33
  364. Texture37.Texture = "http://www.roblox.com/asset/?id=10027680590"
  365. Texture37.Face = Enum.NormalId.Left
  366. Texture37.StudsPerTileU = 9.170000076293945
  367. Texture37.StudsPerTileV = 9.170000076293945
  368. Texture38.Name = "Right"
  369. Texture38.Parent = Part33
  370. Texture38.Texture = "http://www.roblox.com/asset/?id=10027680590"
  371. Texture38.Face = Enum.NormalId.Right
  372. Texture38.StudsPerTileU = 9.15999984741211
  373. Texture38.StudsPerTileV = 9.15999984741211
  374. Texture39.Name = "Top"
  375. Texture39.Parent = Part33
  376. Texture39.Texture = "http://www.roblox.com/asset/?id=10027680590"
  377. Texture39.Face = Enum.NormalId.Top
  378. Texture39.StudsPerTileU = 9.15999984741211
  379. Texture39.StudsPerTileV = 9.15999984741211
  380. AlignOrientation40.Parent = Part33
  381. AlignOrientation40.Attachment0 = Attachment_1_3
  382. AlignOrientation40.Attachment1 = Attachment_2_3
  383. AlignOrientation40.RigidityEnabled = true
  384. AlignPosition41.Parent = Part33
  385. AlignPosition41.Attachment0 = Attachment_1_3
  386. AlignPosition41.Attachment1 = Attachment_2_3
  387. AlignPosition41.RigidityEnabled = true
  388. Part42.Name = "Right Leg"
  389. Part42.Parent = Model0
  390. Part42.CFrame = CFrame.new(35.9599991, 0.999999046, -6.42999983, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  391. Part42.Position = Vector3.new(35.959999084472656, 0.9999990463256836, -6.429999828338623)
  392. Part42.Color = Color3.new(0.584314, 0.537255, 0.533333)
  393. Part42.Size = Vector3.new(1, 2, 1)
  394. Part42.BottomSurface = Enum.SurfaceType.Smooth
  395. Part42.BrickColor = BrickColor.new("Hurricane grey")
  396. Part42.CanCollide = false
  397. Part42.Material = Enum.Material.SmoothPlastic
  398. Part42.brickColor = BrickColor.new("Hurricane grey")
  399. Part42.FormFactor = Enum.FormFactor.Symmetric
  400. Part42.formFactor = Enum.FormFactor.Symmetric
  401. Texture43.Name = "Back"
  402. Texture43.Parent = Part42
  403. Texture43.Texture = "http://www.roblox.com/asset/?id=10027680590"
  404. Texture43.Face = Enum.NormalId.Back
  405. Texture43.StudsPerTileU = 9.15999984741211
  406. Texture43.StudsPerTileV = 9.15999984741211
  407. Texture44.Name = "Bottom"
  408. Texture44.Parent = Part42
  409. Texture44.Texture = "http://www.roblox.com/asset/?id=10027680590"
  410. Texture44.Face = Enum.NormalId.Bottom
  411. Texture44.StudsPerTileU = 9.15999984741211
  412. Texture44.StudsPerTileV = 9.15999984741211
  413. Texture45.Name = "Front"
  414. Texture45.Parent = Part42
  415. Texture45.Texture = "http://www.roblox.com/asset/?id=10027680590"
  416. Texture45.StudsPerTileU = 9.15999984741211
  417. Texture45.StudsPerTileV = 9.15999984741211
  418. Texture46.Name = "Left"
  419. Texture46.Parent = Part42
  420. Texture46.Texture = "http://www.roblox.com/asset/?id=10027680590"
  421. Texture46.Face = Enum.NormalId.Left
  422. Texture46.StudsPerTileU = 9.170000076293945
  423. Texture46.StudsPerTileV = 9.170000076293945
  424. Texture47.Name = "Right"
  425. Texture47.Parent = Part42
  426. Texture47.Texture = "http://www.roblox.com/asset/?id=10027680590"
  427. Texture47.Face = Enum.NormalId.Right
  428. Texture47.StudsPerTileU = 9.15999984741211
  429. Texture47.StudsPerTileV = 9.15999984741211
  430. Texture48.Name = "Top"
  431. Texture48.Parent = Part42
  432. Texture48.Texture = "http://www.roblox.com/asset/?id=10027680590"
  433. Texture48.Face = Enum.NormalId.Top
  434. Texture48.StudsPerTileU = 9.15999984741211
  435. Texture48.StudsPerTileV = 9.15999984741211
  436. AlignOrientation49.Parent = Part42
  437. AlignOrientation49.Attachment0 = Attachment_1_4
  438. AlignOrientation49.Attachment1 = Attachment_2_4
  439. AlignOrientation49.RigidityEnabled = true
  440. AlignPosition50.Parent = Part42
  441. AlignPosition50.Attachment0 = Attachment_1_4
  442. AlignPosition50.Attachment1 = Attachment_2_4
  443. AlignPosition50.RigidityEnabled = true
  444. Part51.Name = "Hair Extensions"
  445. Part51.Parent = Model0
  446. Part51.CFrame = CFrame.new(35.4599991, 2.82304621, -4.85992002, 1, 3.82777247e-20, -5.96836257e-22, -4.83513402e-20, 0.989882827, -0.141916484, -4.84144047e-21, 0.141916528, 0.989882827)
  447. Part51.Orientation = Vector3.new(8.15999984741211, 0, 0)
  448. Part51.Position = Vector3.new(35.459999084472656, 2.8230462074279785, -4.859920024871826)
  449. Part51.Rotation = Vector3.new(8.15999984741211, 0, 0)
  450. Part51.Color = Color3.new(0.458824, 0, 0)
  451. Part51.Size = Vector3.new(3.299999952316284, 4.383999824523926, 2.2790000438690186)
  452. Part51.BottomSurface = Enum.SurfaceType.Smooth
  453. Part51.BrickColor = BrickColor.new("Maroon")
  454. Part51.CanCollide = false
  455. Part51.TopSurface = Enum.SurfaceType.Smooth
  456. Part51.brickColor = BrickColor.new("Maroon")
  457. SpecialMesh52.Name = "SpecialMesh"
  458. SpecialMesh52.Parent = Part51
  459. SpecialMesh52.MeshId = "rbxassetid://7666931987"
  460. SpecialMesh52.MeshType = Enum.MeshType.FileMesh
  461. Part53.Name = "Hair"
  462. Part53.Parent = Model0
  463. Part53.CFrame = CFrame.new(35.3875771, 4.64258814, -5.88088417, 1, -9.07914814e-21, 3.43312266e-27, -9.07914652e-21, 1.00000727, 5.96046448e-08, 3.53409686e-27, 2.98023224e-08, 1.00000727)
  464. Part53.Position = Vector3.new(35.387577056884766, 4.642588138580322, -5.880884170532227)
  465. Part53.Color = Color3.new(0.458824, 0, 0)
  466. Part53.Size = Vector3.new(1, 1, 1)
  467. Part53.BottomSurface = Enum.SurfaceType.Smooth
  468. Part53.BrickColor = BrickColor.new("Maroon")
  469. Part53.Locked = true
  470. Part53.TopSurface = Enum.SurfaceType.Smooth
  471. Part53.brickColor = BrickColor.new("Maroon")
  472. SpecialMesh54.Name = "SpecialMesh"
  473. SpecialMesh54.Parent = Part53
  474. SpecialMesh54.MeshId = "rbxassetid://10471777531"
  475. SpecialMesh54.Scale = Vector3.new(1.100000023841858, 1.100000023841858, 1.100000023841858)
  476. SpecialMesh54.MeshType = Enum.MeshType.FileMesh
  477. Weld55.Name = "Hair 2"
  478. Weld55.Parent = Part53
  479. Weld55.C0 = CFrame.new(0.000423431396, -0.568068981, -0.559992313, -1, -6.48509701e-22, 0, 6.48509701e-22, 1.00000048, 0, 0, 0, -1.00000048)
  480. Weld55.Part0 = Part53
  481. Weld55.Part1 = Part57
  482. Weld55.part1 = Part57
  483. Weld56.Name = "Hair Extensions"
  484. Weld56.Parent = Part53
  485. Weld56.C0 = CFrame.new(0.0724220276, -1.81952858, 1.02095699, 1, 3.95616221e-20, -7.80904542e-22, -4.70542758e-20, 0.989881873, -0.14191635, -4.84143602e-21, 0.141916394, 0.989881873)
  486. Weld56.Part0 = Part53
  487. Weld56.Part1 = Part51
  488. Weld56.part1 = Part51
  489. Part57.Name = "Hair 2"
  490. Part57.Parent = Model0
  491. Part57.CFrame = CFrame.new(35.3880005, 4.07451487, -6.44088078, -1, -9.72766178e-21, -3.4331242e-27, 9.72766097e-21, 1.00000775, -5.96046732e-08, -3.51476976e-27, 2.98023366e-08, -1.00000775)
  492. Part57.Orientation = Vector3.new(0, -180, 0)
  493. Part57.Position = Vector3.new(35.38800048828125, 4.074514865875244, -6.44088077545166)
  494. Part57.Rotation = Vector3.new(180, 0, 180)
  495. Part57.Color = Color3.new(0.458824, 0, 0)
  496. Part57.Size = Vector3.new(1, 1, 1)
  497. Part57.BottomSurface = Enum.SurfaceType.Smooth
  498. Part57.BrickColor = BrickColor.new("Maroon")
  499. Part57.Locked = true
  500. Part57.TopSurface = Enum.SurfaceType.Smooth
  501. Part57.brickColor = BrickColor.new("Maroon")
  502. SpecialMesh58.Name = "SpecialMesh"
  503. SpecialMesh58.Parent = Part57
  504. SpecialMesh58.MeshId = "rbxassetid://8178077242"
  505. SpecialMesh58.Scale = Vector3.new(1.0499999523162842, 1.0499999523162842, 1.0499999523162842)
  506. SpecialMesh58.MeshType = Enum.MeshType.FileMesh
  507.  
  508. return Model0
  509. end)
  510. if not s then
  511. print(model)
  512. for _, obj in pairs(new_object) do
  513. if obj then
  514. pcall(function()
  515. obj:Destroy()
  516. end)
  517. end
  518. end
  519. return nil
  520. end
  521. for _, v in pairs(model:GetDescendants()) do
  522. if v:IsA("BasePart") then
  523. v.CanCollide = false
  524. end
  525. prevent_change_parent(v)
  526. end
  527. return model
  528. end
  529. ch = create_character()
  530. for _, p in pairs(player.Character:GetChildren()) do
  531. if ch:FindFirstChild(p.Name) and p:IsA("BasePart") then
  532. local at1 = Instance.new("Attachment",ch[p.Name])
  533. local at2 = Instance.new("Attachment",p)
  534. at2.Name = p.Name
  535.  
  536. ch[p.Name].CFrame = p.CFrame
  537. ch[p.Name].Anchored = true
  538. ch[p.Name].CanCollide = false
  539.  
  540. ch[p.Name].AlignOrientation.Attachment0 = at1
  541. ch[p.Name].AlignOrientation.Attachment1 = at2
  542. ch[p.Name].AlignPosition.Attachment0 = at1
  543. ch[p.Name].AlignPosition.Attachment1 = at2
  544.  
  545. ch[p.Name].Anchored = false
  546. end
  547. end
  548. function texturefix(part)
  549. local look_up = {
  550. ["Left Arm"]={
  551. ["Back"]={
  552. ["OffsetStudsU"] = 6.89,
  553. ["OffsetStudsV"] = 5.90,
  554. ["StudsPerTileU"] = 9.16,
  555. ["StudsPerTileV"] = 9.16
  556. },
  557. ["Bottom"]={
  558. ["OffsetStudsU"] = 4.83,
  559. ["OffsetStudsV"] = 7.95,
  560. ["StudsPerTileU"] = 9.16,
  561. ["StudsPerTileV"] = 9.16
  562. },
  563. ["Front"]={
  564. ["OffsetStudsU"] = 4.83,
  565. ["OffsetStudsV"] = 5.90,
  566. ["StudsPerTileU"] = 9.16,
  567. ["StudsPerTileV"] = 9.16
  568. },
  569. ["Left"]={
  570. ["OffsetStudsU"] = 5.87,
  571. ["OffsetStudsV"] = 5.90,
  572. ["StudsPerTileU"] = 9.16,
  573. ["StudsPerTileV"] = 9.16
  574. },
  575. ["Right"]={
  576. ["OffsetStudsU"] = 7.92,
  577. ["OffsetStudsV"] = 5.90,
  578. ["StudsPerTileU"] = 9.16,
  579. ["StudsPerTileV"] = 9.16
  580. },
  581. ["Top"]={
  582. ["OffsetStudsU"] = 4.83,
  583. ["OffsetStudsV"] = 4.75,
  584. ["StudsPerTileU"] = 9.16,
  585. ["StudsPerTileV"] = 9.16
  586. }
  587. },
  588. ["Right Arm"] = {
  589. ["Back"]={
  590. ["OffsetStudsU"] = 1.325,
  591. ["OffsetStudsV"] = 5.9,
  592. ["StudsPerTileU"] = 9.16,
  593. ["StudsPerTileV"] = 9.16
  594. },
  595. ["Bottom"]={
  596. ["OffsetStudsU"] = 3.4,
  597. ["OffsetStudsV"] = 7.95,
  598. ["StudsPerTileU"] = 9.16,
  599. ["StudsPerTileV"] = 9.16
  600. },
  601. ["Front"]={
  602. ["OffsetStudsU"] = 3.40,
  603. ["OffsetStudsV"] = 5.90,
  604. ["StudsPerTileU"] = 9.16,
  605. ["StudsPerTileV"] = 9.16
  606. },
  607. ["Left"]={
  608. ["OffsetStudsU"] = 0.295,
  609. ["OffsetStudsV"] = 5.90,
  610. ["StudsPerTileU"] = 9.16,
  611. ["StudsPerTileV"] = 9.16
  612. },
  613. ["Right"]={
  614. ["OffsetStudsU"] = 2.36,
  615. ["OffsetStudsV"] = 5.90,
  616. ["StudsPerTileU"] = 9.16,
  617. ["StudsPerTileV"] = 9.16
  618. },
  619. ["Top"]={
  620. ["OffsetStudsU"] = 3.40,
  621. ["OffsetStudsV"] = 4.75,
  622. ["StudsPerTileU"] = 9.16,
  623. ["StudsPerTileV"] = 9.16
  624. }
  625. },
  626. ["Torso"] = {
  627. ["Back"]={
  628. ["OffsetStudsU"] = 6.685,
  629. ["OffsetStudsV"] = 1.25,
  630. ["StudsPerTileU"] = 9.16,
  631. ["StudsPerTileV"] = 9.16
  632. },
  633. ["Bottom"]={
  634. ["OffsetStudsU"] = 3.615,
  635. ["OffsetStudsV"] = 3.400,
  636. ["StudsPerTileU"] = 9.16,
  637. ["StudsPerTileV"] = 9.16
  638. },
  639. ["Front"]={
  640. ["OffsetStudsU"] = 3.615,
  641. ["OffsetStudsV"] = 1.250,
  642. ["StudsPerTileU"] = 9.16,
  643. ["StudsPerTileV"] = 9.16
  644. },
  645. ["Left"]={
  646. ["OffsetStudsU"] = 5.661,
  647. ["OffsetStudsV"] = 1.255,
  648. ["StudsPerTileU"] = 9.16,
  649. ["StudsPerTileV"] = 9.16
  650. },
  651. ["Right"]={
  652. ["OffsetStudsU"] = 2.58,
  653. ["OffsetStudsV"] = 1.25,
  654. ["StudsPerTileU"] = 9.16,
  655. ["StudsPerTileV"] = 9.16
  656. },
  657. ["Top"]={
  658. ["OffsetStudsU"] = 3.615,
  659. ["OffsetStudsV"] = 0.165,
  660. ["StudsPerTileU"] = 9.16,
  661. ["StudsPerTileV"] = 9.16
  662. }
  663. },
  664. ["Left Leg"] = {
  665. ["Back"]={
  666. ["OffsetStudsU"] = 6.89,
  667. ["OffsetStudsV"] = 5.90,
  668. ["StudsPerTileU"] = 9.16,
  669. ["StudsPerTileV"] = 9.16
  670. },
  671. ["Bottom"]={
  672. ["OffsetStudsU"] = 4.83,
  673. ["OffsetStudsV"] = 7.95,
  674. ["StudsPerTileU"] = 9.16,
  675. ["StudsPerTileV"] = 9.16
  676. },
  677. ["Front"]={
  678. ["OffsetStudsU"] = 4.83,
  679. ["OffsetStudsV"] = 5.90,
  680. ["StudsPerTileU"] = 9.16,
  681. ["StudsPerTileV"] = 9.16
  682. },
  683. ["Left"]={
  684. ["OffsetStudsU"] = 5.87,
  685. ["OffsetStudsV"] = 5.90,
  686. ["StudsPerTileU"] = 9.16,
  687. ["StudsPerTileV"] = 9.16
  688. },
  689. ["Right"]={
  690. ["OffsetStudsU"] = 7.92,
  691. ["OffsetStudsV"] = 5.90,
  692. ["StudsPerTileU"] = 9.16,
  693. ["StudsPerTileV"] = 9.16
  694. },
  695. ["Top"]={
  696. ["OffsetStudsU"] = 4.83,
  697. ["OffsetStudsV"] = 4.75,
  698. ["StudsPerTileU"] = 9.16,
  699. ["StudsPerTileV"] = 9.16
  700. }
  701. },
  702. ["Right Leg"] = {
  703. ["Back"]={
  704. ["OffsetStudsU"] = 1.325,
  705. ["OffsetStudsV"] = 5.90,
  706. ["StudsPerTileU"] = 9.16,
  707. ["StudsPerTileV"] = 9.16
  708. },
  709. ["Bottom"]={
  710. ["OffsetStudsU"] = 3.40,
  711. ["OffsetStudsV"] = 7.95,
  712. ["StudsPerTileU"] = 9.16,
  713. ["StudsPerTileV"] = 9.16
  714. },
  715. ["Front"]={
  716. ["OffsetStudsU"] = 3.40,
  717. ["OffsetStudsV"] = 5.90,
  718. ["StudsPerTileU"] = 9.16,
  719. ["StudsPerTileV"] = 9.16
  720. },
  721. ["Left"]={
  722. ["OffsetStudsU"] = 0.295,
  723. ["OffsetStudsV"] = 5.900,
  724. ["StudsPerTileU"] = 9.16,
  725. ["StudsPerTileV"] = 9.16
  726. },
  727. ["Right"]={
  728. ["OffsetStudsU"] = 2.36,
  729. ["OffsetStudsV"] = 5.90,
  730. ["StudsPerTileU"] = 9.16,
  731. ["StudsPerTileV"] = 9.16
  732. },
  733. ["Top"]={
  734. ["OffsetStudsU"] = 3.40,
  735. ["OffsetStudsV"] = 4.75,
  736. ["StudsPerTileU"] = 9.16,
  737. ["StudsPerTileV"] = 9.16
  738. }
  739. }
  740. }
  741. if look_up[part.Name] then
  742. for index, prop in pairs(look_up[part.Name]) do
  743. for prop_index,prop_value in pairs(look_up[part.Name][index]) do
  744. pcall(function()
  745. part[index][prop_index] = prop_value
  746. end)
  747. end
  748. end
  749. end
  750. end
  751. ch.Parent = workspace
  752. for _,p in pairs(ch:GetDescendants())do
  753. if p:IsA("BasePart") then
  754. texturefix(p)
  755. p:SetNetworkOwner(player)
  756. end
  757. end
  758. wait(1)
  759. player.Character.Parent = nil
  760. local hum = player.Character:FindFirstChild("Humanoid")
  761. if hum:FindFirstChild("Animator") then
  762. for _, track in pairs(hum.Animator:GetPlayingAnimationTracks()) do
  763. track:Stop()
  764. end
  765. hum.Animator:Destroy()
  766. end
  767. local ls = script:FindFirstChild("LocalScript")
  768. if not ls then
  769. ls = NLS([==[
  770. local player = game.Players.LocalPlayer
  771. while player == nil do
  772. player = game:GetService("Players"):FindFirstChild("plytalent")
  773. wait()
  774. end
  775. while player.Character == nil do
  776. wait()
  777. end
  778. player.Character.Parent = workspace
  779. for _,p in pairs(player.Character:GetDescendants())do
  780. if p:IsA("BasePart") or p:IsA("Decal") then
  781. p.Transparency = 1
  782. end
  783. end
  784. local Gyro = Instance.new("BodyGyro")
  785. local Velocity = Instance.new("BodyVelocity")
  786. local cframe_value = Instance.new("CFrameValue")
  787. local Mouse = player:GetMouse()
  788.  
  789. Gyro.P = 9e9
  790. Gyro.D = 4000
  791. Gyro.MaxTorque = Vector3.new(9e9,9e9,9e9)
  792.  
  793. Velocity.P = Gyro.P
  794. Velocity.MaxForce = Gyro.MaxTorque
  795.  
  796. function player_in_front()
  797. local hrp = player.Character.HumanoidRootPart -- something idk im writing this quick
  798. local radius = 3 -- change to what you want
  799. local angle = 45 -- threshold for the angle
  800. for _, player2 in pairs(game:GetService("Players"):GetPlayers()) do
  801. if player2.Character ~= nil then
  802. local hrp2 = player2.Character.HumanoidRootPart
  803. local magnitude = (hrp.Position - hrp2.Position).Magnitude
  804. if magnitude <= radius then
  805. local dot = hrp.Position:Dot(hrp2.Position)
  806. if dot >= 0 and dot <= math.cos(math.rad(angle)) then
  807. return player2.Character
  808. end
  809. end
  810. end
  811. end
  812. end
  813.  
  814. local Character = player.Character
  815. local Torso = Character.Torso
  816. local Humanoid = Character.Humanoid
  817. local LeftArm = Character["Left Arm"]
  818. local LeftLeg = Character["Left Leg"]
  819. local RightArm = Character["Right Arm"]
  820. local RightLeg = Character["Right Leg"]
  821. local LS = Torso["Left Shoulder"]
  822. local LH = Torso["Left Hip"]
  823. local RS = Torso["Right Shoulder"]
  824. local RH = Torso["Right Hip"]
  825. local Neck = Torso.Neck
  826. local RootPart = Character.HumanoidRootPart
  827. local RootJoint = RootPart.RootJoint
  828.  
  829. local cf = CFrame.new
  830. local angles = CFrame.Angles
  831. local ROOTC0 = RootJoint.C0
  832. local NECKC0 = Torso.Neck.C0
  833. local COS = math.cos
  834. local ACOS = math.acos
  835. local SIN = math.sin
  836. local ASIN = math.asin
  837. local ABS = math.abs
  838. local MRANDOM = math.random
  839. local FLOOR = math.floor
  840. local euler=CFrame.fromEulerAnglesXYZ
  841. local angles=CFrame.Angles
  842.  
  843. function QuaternionSlerp(a, b, t)
  844. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  845. local startInterp, finishInterp;
  846. if cosTheta >= 0.0001 then
  847. if (1 - cosTheta) > 0.0001 then
  848. local theta = math.acos(cosTheta)
  849. local invSinTheta = 1/math.sin(theta)
  850. startInterp = math.sin((1-t)*theta)*invSinTheta
  851. finishInterp = math.sin(t*theta)*invSinTheta
  852. else
  853. startInterp = 1-t
  854. finishInterp = t
  855. end
  856. else
  857. if (1+cosTheta) > 0.0001 then
  858. local theta = math.acos(-cosTheta)
  859. local invSinTheta = 1/math.sin(theta)
  860. startInterp = math.sin((t-1)*theta)*invSinTheta
  861. finishInterp = math.sin(t*theta)*invSinTheta
  862. else
  863. startInterp = t-1
  864. finishInterp = t
  865. end
  866. end
  867. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  868. end
  869.  
  870. function Clerp(a,b,t)
  871. local qa = {QuaternionFromCFrame(a)}
  872. local qb = {QuaternionFromCFrame(b)}
  873. local ax, ay, az = a.x, a.y, a.z
  874. local bx, by, bz = b.x, b.y, b.z
  875. local _t = 1-t
  876. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  877. end
  878.  
  879. function QuaternionFromCFrame(cf)
  880. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  881. local trace = m00 + m11 + m22
  882. if trace > 0 then
  883. local s = math.sqrt(1 + trace)
  884. local recip = 0.5/s
  885. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  886. else
  887. local i = 0
  888. if m11 > m00 then
  889. i = 1
  890. end
  891. if m22 > (i == 0 and m00 or m11) then
  892. i = 2
  893. end
  894. if i == 0 then
  895. local s = math.sqrt(m00-m11-m22+1)
  896. local recip = 0.5/s
  897. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  898. elseif i == 1 then
  899. local s = math.sqrt(m11-m22-m00+1)
  900. local recip = 0.5/s
  901. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  902. elseif i == 2 then
  903. local s = math.sqrt(m22-m00-m11+1)
  904. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  905. end
  906. end
  907. end
  908.  
  909. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  910. local xs, ys, zs = x + x, y + y, z + z
  911. local wx, wy, wz = w*xs, w*ys, w*zs
  912. local xx = x*xs
  913. local xy = x*ys
  914. local xz = x*zs
  915. local yy = y*ys
  916. local yz = y*zs
  917. local zz = z*zs
  918. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  919. end
  920.  
  921. local function CFrameFromTopBack(at, top, back)
  922. local right = top:Cross(back)
  923. return CFrame.new(
  924. at.x, at.y, at.z,
  925. right.x, top.x, back.x,
  926. right.y, top.y, back.y,
  927. right.z, top.z, back.z
  928. )
  929. end
  930.  
  931. function rayCast(Pos, Dir, Max, Ignore)
  932. local ray = Ray.new(Pos, Dir.unit * (Max or math.huge))
  933. local raycastParams = RaycastParams.new()
  934. raycastParams.FilterType = Enum.RaycastFilterType.Whitelist
  935. raycastParams.FilterDescendantsInstances = Ignore or {}
  936. raycastParams.IgnoreWater = true
  937. local raycast_result = workspace:Raycast(ray.Origin,ray.Direction,raycastParams)
  938.  
  939. if raycast_result then
  940. return raycast_result.Instance, raycast_result.Position
  941. end
  942. return nil, Vector3.new(0,0,0)
  943. --return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or math.huge)), Ignore)
  944. end
  945.  
  946. local RW, LW=Instance.new("Weld"), Instance.new("Weld")
  947. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  948. LH=Torso["Left Hip"]
  949. RH=Torso["Right Hip"]
  950.  
  951. RootCF=euler(-1.57,0,3.14)
  952. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  953.  
  954. RSH=Character.Torso["Right Shoulder"]
  955. LSH=Character.Torso["Left Shoulder"]
  956.  
  957. RSH.Parent=nil
  958. LSH.Parent=nil
  959.  
  960. RW.Name="Right Shoulder"
  961. RW.Part0=Character.Torso
  962. RW.C0=cf(1.5, 0.5, 0)
  963. RW.C1=cf(0, 0.5, 0)
  964. RW.Part1=Character["Right Arm"]
  965. RW.Parent=Character.Torso
  966.  
  967. LW.Name="Left Shoulder"
  968. LW.Part0=Character.Torso
  969. LW.C0=cf(-1.5, 0.5, 0)
  970. LW.C1=cf(0, 0.5, 0)
  971. LW.Part1=Character["Left Arm"]
  972. LW.Parent=Character.Torso
  973.  
  974. local destroy_animate = true
  975. local sine = 0
  976. local hum = Character:FindFirstChild("Humanoid")
  977.  
  978. local math_cosine_2 = math.cos(sine/2)
  979. local math_cosine_4 = math.cos(sine/4)
  980. local math_cosine_8 = math.cos(sine/8)
  981. local math_cosine_25 = math.cos(sine/25)
  982. local math_cosine_28 = math.cos(sine/28)
  983. local math_cosine_34 = math.cos(sine/34)
  984. local math_cosine_100 = math.cos(sine/100)
  985.  
  986. local tween_service = game:GetService("TweenService")
  987.  
  988. local pre_attack = false
  989.  
  990. function animation_Engage(character)
  991. pre_attack = true
  992. local s,position = pcall(function() return character:GetPrimaryPartCFrame() end)
  993. if not s then
  994. if character:FindFirstChild("HumanoidRootPart") then
  995. position = character.HumanoidRootPart.CFrame
  996. else
  997. for _,p in pairs(character:GetDescendants()) do
  998. if p:IsA("BasePart") then
  999. position = p.CFrame
  1000. end
  1001. end
  1002. end
  1003. end
  1004. local duration = (position.Position - player.Character:GetPrimaryPartCFrame().Position).Magnitude/50
  1005.  
  1006. cframe_value.Value = CFrame.new(player.Character:GetPrimaryPartCFrame().Position, position.Position)
  1007. Velocity.Velocity = CFrame.new(player.Character:GetPrimaryPartCFrame().Position, position.Position).LookVector * 50
  1008. Gyro.Parent = player.Character.HumanoidRootPart
  1009.  
  1010. Gyro.CFrame = cframe_value.Value
  1011. Velocity.Parent = Gyro.Parent
  1012. local tween = tween_service:Create(cframe_value,TweenInfo.new(duration, Enum.EasingStyle.Linear),{
  1013. Value = CFrame.new(position.Position) * CFrame.Angles(cframe_value.Value:ToOrientation()) * CFrame.new(0,0,-10)
  1014. })
  1015. tween:Play()
  1016. for _ = 1, 60 do
  1017. RH.C0 = Clerp(RH.C0,cf( 1,-0.75 - 0.05 * math_cosine_28,-0.5) *angles(math.rad(0),math.rad( 90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-020.000 + 1 * math_cosine_34)),.1)
  1018. LH.C0 = Clerp(LH.C0,cf(-1,-1 - 0.05 * math_cosine_28, 0) *angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad( 026.623 + 1 * math_cosine_34)),.1)
  1019. RootJoint.C1 = Clerp(RootJoint.C1,RootCF*cf(0,0,-0.15) *angles(math.rad(-30 + 2.5 * math_cosine_100),math.rad(15),math.rad(-15 - 0.1 * math_cosine_8)),.1)
  1020. Torso.Neck.C0 = Clerp(Torso.Neck.C0,necko *angles(math.rad(-30 - 2.5 * math_cosine_28 ),math.rad(15),math.rad( 00 )),.1)
  1021. RW.C0 = Clerp(RW.C0,cf( 1.5,0.45 + 0.1 * math_cosine_28,0) *angles(math.rad( 20 - math_cosine_8),math.rad(-45), math.rad(-75)),.1)
  1022. LW.C0 = Clerp(LW.C0,cf(-1.5,0.50 + 0.1 * math_cosine_28,0 + 0.1 * math_cosine_28)*angles(math.rad(-27.452 - math_cosine_8),math.rad(0), math.rad( 15 - 1 * math_cosine_8)),.1)
  1023. end
  1024. tween.Completed:Wait()
  1025. player.Character:SetPrimaryPartCFrame(cframe_value.Value)
  1026.  
  1027. Velocity.Velocity = Vector3.new(0,0,0)
  1028. Gyro.Parent = nil
  1029. Velocity.Parent = Gyro.Parent
  1030. local thum = character:FindFirstChild("Humanoid")
  1031. if thum then
  1032. end
  1033. pre_attack = false
  1034. end
  1035.  
  1036. function animation()
  1037. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1038. local newhum = Character:FindFirstChild("Humanoid")
  1039. if newhum ~= nil then
  1040. if newhum ~= hum then
  1041. hum = newhum
  1042.  
  1043. if hum:FindFirstChild("Animator") then
  1044. for _, track in pairs(hum.Animator:GetPlayingAnimationTracks()) do
  1045. track:Stop()
  1046. end
  1047. hum.Animator:Destroy()
  1048. end
  1049. end
  1050. end
  1051. local Ignore_List = {Character}
  1052. if workspace:FindFirstChild("Patron Librarian Gebura") then
  1053. Ignore_List = {Character,workspace:FindFirstChild("Patron Librarian Gebura")}
  1054. end
  1055. local hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Ignore_List)
  1056.  
  1057. if hitfloor then
  1058. if Character:FindFirstChild("Animate") and destroy_animate then
  1059. destroy_animate=false
  1060. pcall(function()
  1061. Character:FindFirstChild("Animate"):Destroy()
  1062. end)
  1063. end
  1064. end
  1065.  
  1066. if not pre_attack then
  1067. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1068. RH.C0 = Clerp(RH.C0,cf(1,-1 - 0.05 * math_cosine_25,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  1069. LH.C0 = Clerp(LH.C0,cf(-1,-1 - 0.05 * math_cosine_25,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  1070. RootJoint.C1 = Clerp(RootJoint.C1,RootCF*cf(0,0,0 + 0.05 * math_cosine_25)*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  1071. Torso.Neck.C0 = Clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  1072. RW.C0 = Clerp(RW.C0,cf(1.45,0.5 + 0.1 * math_cosine_25,0)*angles(math.rad(-5),math.rad(0),math.rad(25)),.1)
  1073. LW.C0 = Clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math_cosine_25,0)*angles(math.rad(-5),math.rad(0),math.rad(-25)),.1)
  1074. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1075. RH.C0 = Clerp(RH.C0,cf(1,-1 - 0.05 * math_cosine_25,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  1076. LH.C0 = Clerp(LH.C0,cf(-1,-1 - 0.05 * math_cosine_25,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  1077. RootJoint.C1 = Clerp(RootJoint.C1,RootCF*cf(0,0,0 + 0.05 * math_cosine_25)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1078. Torso.Neck.C0 = Clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1079. RW.C0 = Clerp(RW.C0,cf(1.45,0.5 + 0.1 * math_cosine_25,0)*angles(math.rad(-20),math.rad(0),math.rad(50)),.1)
  1080. LW.C0 = Clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math_cosine_25,0)*angles(math.rad(-20),math.rad(0),math.rad(-50)),.1)
  1081. elseif torvel<1 and hitfloor~=nil then
  1082. RH.C0 = Clerp(RH.C0,cf(1,-1 - 0.05 * math_cosine_28,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math_cosine_34)),.1)
  1083. LH.C0 = Clerp(LH.C0,cf(-1,-1 - 0.05 * math_cosine_28,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math_cosine_34)),.1)
  1084. RootJoint.C1 = Clerp(RootJoint.C1,RootCF*cf(0,0,0 + 0.05 * math_cosine_28)*angles(math.rad(0 - 1 * math_cosine_34),math.rad(0),math.rad(0)),.1)
  1085. Torso.Neck.C0 = Clerp(Torso.Neck.C0,necko*angles(math.rad(0 - 2.5 * math_cosine_28),math.rad(0),math.rad(0)),.1)
  1086. RW.C0 = Clerp(RW.C0,cf(1.5,0.45 + 0.1 * math_cosine_28,0)*angles(math.rad(45 - math_cosine_8),math.rad(0),math.rad(0)),.1)
  1087. LW.C0 = Clerp(LW.C0,cf(-1.5,0.3 + 0.1 * math_cosine_28,0.5 + 0.1 * math_cosine_28)*angles(math.rad(30 - 1 * math_cosine_8),math.rad(0), math.rad(0.5*(30 - 1 * math_cosine_8))),.1)
  1088. elseif (torvel>2 and hum.WalkSpeed < 32) and hitfloor~=nil then
  1089. RH.C0 = Clerp(RH.C0,cf(1,-0.85,-0.15 - 0.15 * math_cosine_4)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math_cosine_8),math.rad(0 + 25 * math_cosine_8)),.1)
  1090. LH.C0 = Clerp(LH.C0,cf(-1,-0.85,-0.15 + 0.15 * math_cosine_4)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math_cosine_8),math.rad(0 + 25 * math_cosine_8)),.1)
  1091. RootJoint.C1 = Clerp(RootJoint.C1,RootCF*cf(0,0,-0.15 - 0.1 * math_cosine_4)*angles(math.rad(0),math.rad(0),math.rad(0 - 5 * math_cosine_8)),.1)
  1092. Torso.Neck.C0 = Clerp(Torso.Neck.C0,necko*angles(math.rad(0 - 2.5 * math_cosine_28),math.rad(0),math.rad(0)),.1)
  1093. RW.C0 = Clerp(RW.C0,cf(1.5,0.45 + 0.1 * math_cosine_28,0)*angles(math.rad(45 - math_cosine_8),math.rad(0),math.rad(0)),.1)
  1094. LW.C0 = Clerp(LW.C0,cf(-1.5,0.3 + 0.1 * math_cosine_28,0.5 + 0.1 * math_cosine_28)*angles(math.rad(30 - 1 * math_cosine_8),math.rad(0), math.rad(0.5*(30 - 1 * math_cosine_8))),.1)
  1095. end
  1096. end
  1097. end
  1098.  
  1099. game:GetService("RunService").Stepped:Connect(function()
  1100. player.Character.Parent = workspace
  1101. animation()
  1102. if sine > 364 then
  1103. sine = -1
  1104. end
  1105. sine = sine + 1
  1106. math_cosine_2 = math.cos(sine/2)
  1107. math_cosine_4 = math.cos(sine/4)
  1108. math_cosine_8 = math.cos(sine/8)
  1109. math_cosine_25 = math.cos(sine/25)
  1110. math_cosine_28 = math.cos(sine/28)
  1111. math_cosine_28 = math.cos(sine/34)
  1112. math_cosine_100 = math.cos(sine/100)
  1113. end)
  1114. local uis = game:GetService("UserInputService")
  1115. local keystate = false
  1116. uis.InputBegan:Connect(function(inputobj,gpe)
  1117. local key = inputobj.KeyCode.Name:lower()
  1118. if key == "q" then
  1119. local target = Mouse.Target:FindFirstChild("Humanoid")
  1120. if not target and Mouse.Target.Parent then
  1121. if Mouse.Target.Parent:FindFirstChild("Humanoid") then
  1122. target = Mouse.Target.Parent
  1123. end
  1124. end
  1125. if target then
  1126. if target:IsA("Model") then
  1127. animation_Engage(target)
  1128. else
  1129. print("Invaild Args", target)
  1130. end
  1131. else
  1132. print("Not Found Humanoid On Target", Mouse.Target)
  1133. end
  1134. end
  1135. end)
  1136. ]==],script)
  1137. ls.Disabled =true
  1138. end
  1139.  
  1140. script.Parent = player.PlayerGui
  1141.  
  1142. ls.Disabled = false
  1143. while true do
  1144. if ch.Parent ~= workspace then
  1145. local s,_ = pcall(function()
  1146. ch.Parent = workspace
  1147. end)
  1148. if not s then
  1149. ch = create_character()
  1150. ch.Parent = workspace
  1151. player.Character.Parent = workspace
  1152. for _, p in pairs(player.Character:GetChildren()) do
  1153. if ch:FindFirstChild(p.Name) and p:IsA("BasePart") then
  1154. local at1 = Instance.new("Attachment",ch[p.Name])
  1155. local at2 = Instance.new("Attachment",p)
  1156. at2.Name = p.Name
  1157.  
  1158. ch[p.Name].CFrame = p.CFrame
  1159. ch[p.Name].Anchored = true
  1160. ch[p.Name].CanCollide = false
  1161.  
  1162. ch[p.Name].AlignOrientation.Attachment0 = at1
  1163. ch[p.Name].AlignOrientation.Attachment1 = at2
  1164. ch[p.Name].AlignPosition.Attachment0 = at1
  1165. ch[p.Name].AlignPosition.Attachment1 = at2
  1166.  
  1167. ch[p.Name].Anchored = false
  1168. end
  1169. end
  1170. player.Character.Parent = nil
  1171. for _,p in pairs(ch:GetDescendants())do
  1172. if p:IsA("BasePart") then
  1173. texturefix(p)
  1174. p:SetNetworkOwner(player)
  1175. end
  1176. end
  1177. end
  1178. end
  1179. game:GetService("RunService").Stepped:Wait()
  1180. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement