Advertisement
ForkFullFight

Untitled

Oct 23rd, 2023
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- [[ Name: Commander CR by ??? ]] --
  2. -- [[ Converted: By Melon ]] --
  3. -- [[ Reanimate: By Emper ]] --
  4. -- [[ Description: nothing to put ]] --
  5.  
  6. -- [[ Hats ]] --
  7.  
  8. -- [[ Free ]] --
  9. -- [[ www.roblox.com/catalog/4819740796/Robox ]] --
  10. -- [[ www.roblox.com/catalog/3409612660/International-Fedora-USA ]] --
  11. -- [[ www.roblox.com/catalog/3398308134/International-Fedora-Canada ]] --
  12. -- [[ www.roblox.com/catalog/3033908130/International-Fedora-France ]] --
  13. -- [[ www.roblox.com/catalog/3033910400/International-Fedora-Germany ]] --
  14.  
  15. -- [[ Paid (1) ]] --
  16. -- [[ www.roblox.com/catalog/14255528083/Torso-Extension ]] --
  17. -- [[ www.roblox.com/catalog/14255556501/Extra-Right-White-Arm ]] --
  18. -- [[ www.roblox.com/catalog/14255554762/Extra-Left-White-Arm ]] --
  19. -- [[ www.roblox.com/catalog/14768693948/White-Extended-Right-Arm ]] --
  20. -- [[ www.roblox.com/catalog/14768701869/White-Extended-Left-Arm ]] --
  21.  
  22. -- [[ Paid (2) ]] --
  23. -- [[ www.roblox.com/catalog/14255528083/Torso-Extension ]] --
  24. -- [[ www.roblox.com/catalog/11159410305/Rectangle-Head-For-Headless ]] --
  25. -- [[ www.roblox.com/catalog/11263254795/Dummy-Head-For-Headless ]] --
  26. -- [[ www.roblox.com/catalog/12344545199/Extra-Left-hand-moving-Blocky-white ]] --
  27. -- [[ www.roblox.com/catalog/12344591101/Extra-Right-hand-moving-Blocky-white ]] --
  28.  
  29. -- [[ Guns ]] --
  30.  
  31. -- [[ www.roblox.com/catalog/13760686814/Classic-MARKA-17M-Valkan-Left ]] --
  32. -- [[ www.roblox.com/catalog/4623059912/Starslayer-Railgun ]] --
  33. -- [[ www.roblox.com/catalog/14683431575/Law-Enforcement-Beanbag ]] --
  34. -- [[ www.roblox.com/catalog/5136154487/DG-40-Archangel-Sniper-Rifle-Black ]] --
  35. -- [[ www.roblox.com/catalog/12830271515/White-Cyber-Heavy-Revolver-Left ]] --
  36. -- [[ * FREE * www.roblox.com/catalog/10775031176/The-Pogo ]] --
  37. -- [[ * FREE * www.roblox.com/catalog/5552252553/Kinetic-Staff ]] --
  38. -- [[ The list above is the supported hats. ]] --
  39.  
  40. game:GetService("StarterGui"):SetCore("SendNotification", {
  41. Title = "Melon's (FE) Converts/Scripts";
  42. Text = "Thanks for using!";
  43. Icon = "rbxthumb://type=Asset&id=11561641603&w=150&h=150"})
  44. Duration = 3;
  45.  
  46. if not game:IsLoaded() then
  47. game.Loaded:Wait()
  48. end
  49.  
  50. local function FindInstance(Parent, ClassName, Name)
  51. for _, Instance in pairs(Parent:GetChildren()) do
  52. if Instance:IsA(ClassName) and Instance.Name == Name then
  53. return Instance
  54. end
  55. end
  56. end
  57.  
  58. local function WaitForClass(Parent, ClassName)
  59. local Instance = Parent:FindFirstChildOfClass(ClassName)
  60.  
  61. while not Instance and Parent do
  62. Parent.ChildAdded:Wait()
  63. Instance = Parent:FindFirstChildOfClass(ClassName)
  64. end
  65.  
  66. return Instance
  67. end
  68.  
  69. local function WaitForClassOfName(Parent, ...)
  70. local Instance = FindInstance(Parent, ...)
  71.  
  72. while not Instance and Parent do
  73. Parent.ChildAdded:Wait()
  74. Instance = FindInstance(Parent, ...)
  75. end
  76.  
  77. return Instance
  78. end
  79.  
  80. local Fling = { }
  81. local Aligns = { }
  82. local Blacklist = { }
  83. local Accessories = { }
  84. local Attachments = { }
  85.  
  86. local Instancenew = Instance.new
  87.  
  88. local taskwait = task.wait
  89. local taskspawn = task.spawn
  90. local taskdefer = task.defer
  91.  
  92. local mathabs = math.abs
  93. local mathcos = math.cos
  94. local mathrandom = math.random
  95.  
  96. local stringmatch = string.match
  97.  
  98. local osclock = os.clock
  99.  
  100. local tableinsert = table.insert
  101. local tableclear = table.clear
  102. local tablefind = table.find
  103.  
  104. local CFramenew = CFrame.new
  105. local CFrameAngles = CFrame.Angles
  106. local CFrameidentity = CFrame.identity
  107.  
  108. local Vector3new = Vector3.new
  109. local Vector3zero = Vector3.zero
  110.  
  111. local Sleep = CFrameidentity
  112. local Velocity = Vector3new(0, 16384, 0)
  113. local Angular = 0
  114. local Linear = 0
  115.  
  116. local Workspace = game:FindFirstChildOfClass("Workspace")
  117. local CurrentCamera = Workspace.CurrentCamera
  118.  
  119. local Players = game:FindFirstChildOfClass("Players")
  120.  
  121. local LocalPlayer = Players.LocalPlayer
  122. local Mouse = LocalPlayer:GetMouse()
  123.  
  124. local PostSimulation = game:FindFirstChildOfClass("RunService").PostSimulation
  125.  
  126. local Character = LocalPlayer.Character
  127. local CharacterClone = Instancenew("Model")
  128.  
  129. local StarterGui = game:FindFirstChildOfClass("StarterGui")
  130. local BindableEvent = Instancenew("BindableEvent")
  131.  
  132. local UserInputService = game:FindFirstChildOfClass("UserInputService")
  133. local UserInputType = Enum.UserInputType
  134.  
  135. local MouseButton1 = UserInputType.MouseButton1
  136. local Touch = UserInputType.Touch
  137.  
  138. local InputBegan = UserInputService.InputBegan:Connect(function(Input, GameProcessed)
  139. local Type = Input.UserInputType
  140.  
  141. if not GameProcessed and ( Type == MouseButton1 or Type == Touch ) then
  142. local Target = Mouse.Target
  143. if Target and not Target.Anchored and not Target:IsDescendantOf(CharacterClone) and not Target:IsDescendantOf(Character) and not tablefind(Fling, Target) then
  144. local Parent = Target.Parent
  145.  
  146. if Parent:IsA("Model") and Parent ~= Character and Parent:FindFirstChildOfClass("Humanoid") then
  147. local HumanoidRootPart = FindInstance(Parent, "BasePart", "HumanoidRootPart") or FindInstance(Parent, "BasePart", "Torso") or FindInstance(Parent, "BasePart", "Head")
  148.  
  149. if HumanoidRootPart and not tablefind(Fling, HumanoidRootPart) then
  150. tableinsert(Fling, HumanoidRootPart)
  151. return
  152. end
  153. end
  154.  
  155. tableinsert(Fling, Target)
  156. end
  157. end
  158. end)
  159.  
  160. local function Part(Name, Size)
  161. local Part = Instancenew("Part")
  162. Part.Name = Name
  163. Part.Size = Size
  164. Part.Transparency = 1
  165. Part.Parent = CharacterClone
  166.  
  167. return Part
  168. end
  169.  
  170. local function Motor6D(Name, Part0, Part1, C0, C1)
  171. local Motor6D = Instancenew("Motor6D")
  172. Motor6D.Name = Name
  173. Motor6D.Part0 = Part0
  174. Motor6D.Part1 = Part1
  175. Motor6D.C0 = C0
  176. Motor6D.C1 = C1
  177. Motor6D.Parent = Part0
  178.  
  179. return Motor6D
  180. end
  181.  
  182. local function Attachment(Name, CFrame, Parent)
  183. local Attachment = Instancenew("Attachment")
  184. Attachment.Name = Name
  185. Attachment.CFrame = CFrame
  186. Attachment.Parent = Parent
  187.  
  188. tableinsert(Attachments, Attachment)
  189. return Attachment
  190. end
  191.  
  192. local LimbSize = Vector3new(1, 2, 1)
  193. local TorsoSize = Vector3new(2, 2, 1)
  194.  
  195. local Head = Part("Head", Vector3new(2, 1, 1))
  196. local Torso = Part("Torso", TorsoSize)
  197. local LeftArm = Part("Left Arm", LimbSize)
  198. local RightArm = Part("Right Arm", LimbSize)
  199. local LeftLeg = Part("Left Leg", LimbSize)
  200. local RightLeg = Part("Right Leg", LimbSize)
  201. local HumanoidRootPart = Part("HumanoidRootPart", TorsoSize)
  202.  
  203. local FakeRA = Instance.new("Part")
  204. FakeRA.Size = Vector3.new(1,2,1)
  205. FakeRA.Transparency = 1
  206. FakeRA.BrickColor = BrickColor.new("Institutional White")
  207. FakeRA.Parent = RightArm
  208.  
  209. local FRAW = Instance.new("Weld")
  210. FRAW.Part0 = RightArm
  211. FRAW.Part1 = FakeRA
  212. FRAW.C0 = CFrame.new(0, 0, 0)
  213. FRAW.Parent = RightArm
  214.  
  215. local FakeLA = Instance.new("Part")
  216. FakeLA.Size = Vector3.new(1,2,1)
  217. FakeLA.Transparency = 1
  218. FakeLA.BrickColor = BrickColor.new("Institutional White")
  219. FakeLA.Parent = LeftArm
  220.  
  221. local FLAW = Instance.new("Weld")
  222. FLAW.Part0 = LeftArm
  223. FLAW.Part1 = FakeLA
  224. FLAW.C0 = CFrame.new(0, 0, 0)
  225. FLAW.Parent = LeftArm
  226.  
  227. local Part = nil
  228.  
  229. if Character then
  230. Part = FindInstance(Character, "BasePart", "HumanoidRootPart") or FindInstance(Character, "BasePart", "Head") or FindInstance(Character, "BasePart", "Torso") or FindInstance(Character, "BasePart", "UpperTorso")
  231. end
  232.  
  233. if Part then
  234. HumanoidRootPart.CFrame = Part.CFrame
  235. else
  236. local SpawnLocations = { }
  237.  
  238. for _, SpawnLocation in pairs(Workspace:GetDescendants()) do
  239. if SpawnLocation:IsA("SpawnLocation") then
  240. tableinsert(SpawnLocations, SpawnLocation)
  241. end
  242. end
  243.  
  244. local Amount = # SpawnLocations
  245.  
  246. if Amount > 0 then
  247. local SpawnLocation = SpawnLocations[mathrandom(1, Amount)]
  248. HumanoidRootPart.CFrame = SpawnLocation.CFrame * CFramenew(0, SpawnLocation.Size.Y / 2 + 3, 0)
  249. else
  250. HumanoidRootPart.CFrame = CFrameidentity
  251. end
  252. end
  253.  
  254. local face = Instancenew("Decal")
  255. face.Name = "face"
  256. face.Parent = Head
  257.  
  258. local AccessoryTable = {
  259. -- Paid --
  260. { Mesh = "14241018198", Texture = "14251599953", Instance = Torso },
  261. { Mesh = "14255522247", Texture = "14255543546", Instance = RightArm, CFrame = CFrameAngles(0, 1.57, 1.57) },
  262. { Mesh = "14255522247", Texture = "14255543546", Instance = LeftArm, CFrame = CFrameAngles(0, - 1.57, 1.57) },
  263. { Mesh = "14768684979", Texture = "14768683674", Instance = RightLeg, CFrame = CFrameAngles(0, - 1.57, 1.57) },
  264. { Mesh = "14768684979", Texture = "14768683674", Instance = LeftLeg, CFrame = CFrameAngles(0, 1.57, 1.57) },
  265.  
  266. -- Paid (2) --
  267. { Mesh = "14241018198", Texture = "14251599953", Instance = Torso },
  268. { Mesh = "12344206657", Texture = "12344206675", Instance = RightArm, CFrame = CFrameAngles(-115, 0, 0) },
  269. { Mesh = "12344207333", Texture = "12344207341", Instance = LeftArm, CFrame = CFrameAngles(-115, 0, 0) },
  270. { Mesh = "11159370334", Texture = "11159284657", Instance = RightLeg, CFrame = CFrameAngles(0, - 1.57, 1.57) },
  271. { Mesh = "11263221350", Texture = "11263219250", Instance = LeftLeg, CFrame = CFrameAngles(0, 1.57, 1.57) },
  272.  
  273. -- Free --
  274. { Mesh = "4819720316", Texture = "4819722776", Instance = Torso, CFrame = CFrameAngles(0, 0, 105) },
  275. { Mesh = "3030546036", Texture = "3033903209", Instance = RightArm, CFrame = CFrameAngles(-90, 0, -89.5) },
  276. { Mesh = "3030546036", Texture = "3360978739", Instance = LeftArm, CFrame = CFrameAngles(-90, 0, 89.5) },
  277. { Mesh = "3030546036", Texture = "3409604993", Instance = RightLeg, CFrame = CFrameAngles(-90, 0, -89.5) },
  278. { Mesh = "3030546036", Texture = "3033898741", Instance = LeftLeg, CFrame = CFrameAngles(-90, 0, 89.5) },
  279.  
  280. -- DG 40 --
  281. { Mesh = "5135810417", Texture = "5135790044", Instance = FakeRA, CFrame = CFrameAngles(-0.10, -1.55, 1.45) * CFramenew(-2.55,0.35,0.15)},
  282. -- Cyber Heavy Revolver --
  283. { Mesh = "12830091831", Texture = "9990288940", Instance = FakeRA, CFrame = CFrameAngles(0.55, 0, 0) * CFramenew(0,-1.15,0.15)},
  284. -- Beanbag Shotgun --
  285. { Mesh = "14682184097", Texture = "14682167931", Instance = FakeRA, CFrame = CFrameAngles(0.05, 0, 3.15) * CFramenew(0,1.35,-0.25)},
  286. -- Starslayer Railgun --
  287. { Mesh = "4615369575", Texture = "4615393635", Instance = FakeRA, CFrame = CFrameAngles(-0.80, 1.55, 0) * CFramenew(1.45,-1,0)},
  288. -- MARKA-17M --
  289. { Mesh = "13753961447", Texture = "13760652946", Instance = FakeRA, CFrame = CFramenew(0,-1.45,-0.65) * CFrameAngles(0, -1.50, 0.75) },
  290. -- Pogo Stick --
  291. { Mesh = "10775011914", Texture = "10774853167", Instance = FakeRA, CFrame = CFramenew(0,-2.55,-0.65) * CFrameAngles(0, -1.55, 0.65) },
  292. -- Crystal Staff --
  293. { Mesh = "5548423017", Texture = "5548423938", Instance = FakeRA, CFrame = CFramenew(0,-1.65,-0) * CFrameAngles(0, -1.55, 0.60) },
  294.  
  295. }
  296.  
  297. for _, Table in pairs(AccessoryTable) do
  298. if type(Table.Mesh) ~= "string" then
  299. Table.Mesh = ""
  300. end
  301. if type(Table.Texture) ~= "string" then
  302. Table.Texture = ""
  303. end
  304. end
  305.  
  306. Motor6D("Right Shoulder", Torso, RightArm, CFramenew(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0), CFramenew(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0))
  307. Motor6D("Left Shoulder", Torso, LeftArm, CFramenew(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0), CFramenew(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0))
  308. Motor6D("Right Hip", Torso, RightLeg, CFramenew(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0), CFramenew(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0))
  309. Motor6D("Left Hip", Torso, LeftLeg, CFramenew(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0), CFramenew(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0))
  310. Motor6D("Neck", Torso, Head, CFramenew(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), CFramenew(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0))
  311. Motor6D("RootJoint", HumanoidRootPart, Torso, CFramenew(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), CFramenew(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0))
  312.  
  313. Attachment("HairAttachment", CFramenew(0, 0.600000024, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Head)
  314. Attachment("HatAttachment", CFramenew(0, 0.600000024, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Head)
  315. Attachment("FaceFrontAttachment", CFramenew(0, 0, -0.600000024, 1, 0, 0, 0, 1, 0, 0, 0, 1), Head)
  316. Attachment("FaceCenterAttachment", CFramenew(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Head)
  317. Attachment("NeckAttachment", CFramenew(0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
  318. Attachment("BodyFrontAttachment", CFramenew(0, 0, -0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
  319. Attachment("BodyBackAttachment", CFramenew(0, 0, 0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
  320. Attachment("LeftCollarAttachment", CFramenew(-1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
  321. Attachment("RightCollarAttachment", CFramenew(1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
  322. Attachment("WaistFrontAttachment", CFramenew(0, -1, -0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
  323. Attachment("WaistCenterAttachment", CFramenew(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
  324. Attachment("WaistBackAttachment", CFramenew(0, -1, 0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
  325. Attachment("LeftShoulderAttachment", CFramenew(0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), LeftArm)
  326. Attachment("LeftGripAttachment", CFramenew(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), LeftArm)
  327. Attachment("RightShoulderAttachment", CFramenew(0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), RightArm)
  328. Attachment("RightGripAttachment", CFramenew(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), RightArm)
  329. Attachment("LeftFootAttachment", CFramenew(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), LeftLeg)
  330. Attachment("RightFootAttachment", CFramenew(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), RightLeg)
  331. Attachment("RootAttachment", CFramenew(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), HumanoidRootPart)
  332.  
  333. local Humanoid = Instancenew("Humanoid", CharacterClone)
  334. Instancenew("Animator", Humanoid)
  335.  
  336. Instancenew("LocalScript", CharacterClone).Name = "Animate"
  337.  
  338. CharacterClone.PrimaryPart = Head
  339. CharacterClone.Parent = Workspace
  340.  
  341. local function DescendantAdded(Instance)
  342. if Instance:IsA("Accessory") then
  343. taskspawn(function()
  344. local Handle = WaitForClassOfName(Instance, "BasePart", "Handle")
  345. local Attachment = WaitForClass(Handle, "Attachment")
  346.  
  347. local Clone = Instance:Clone()
  348.  
  349. local CloneHandle = FindInstance(Clone, "BasePart", "Handle")
  350. CloneHandle.Transparency = 1
  351. CloneHandle:BreakJoints()
  352.  
  353. local AccessoryWeld = Instancenew("Weld")
  354. AccessoryWeld.Name = "AccessoryWeld"
  355. AccessoryWeld.Part0 = CloneHandle
  356. AccessoryWeld.C0 = Attachment.CFrame
  357.  
  358. local Name = Attachment.Name
  359.  
  360. for _, TableAttachment in pairs(Attachments) do
  361. if TableAttachment.Name == Name then
  362. AccessoryWeld.Part1 = TableAttachment.Parent
  363. AccessoryWeld.C1 = TableAttachment.CFrame
  364. end
  365. end
  366.  
  367. AccessoryWeld.Parent = CloneHandle
  368. Clone.Parent = CharacterClone
  369.  
  370. tableinsert(Accessories, Clone)
  371.  
  372. local IsAMeshPart = CloneHandle:IsA("MeshPart")
  373. local Mesh = IsAMeshPart and CloneHandle or WaitForClass(CloneHandle, "SpecialMesh")
  374. local Id = IsAMeshPart and "TextureID" or "TextureId"
  375.  
  376. for _, Table in pairs(AccessoryTable) do
  377. local Instance = Table.Instance
  378.  
  379. if Instance then
  380. if stringmatch(Mesh.MeshId, Table.Mesh) and stringmatch(Mesh[Id], Table.Texture) and not tablefind(Blacklist, Instance) then
  381. tableinsert(Blacklist, Instance)
  382. tableinsert(Aligns, { Handle, Instance, Table.CFrame or CFrameidentity })
  383. return
  384. end
  385. end
  386. end
  387.  
  388. tableinsert(Aligns, { Handle, CloneHandle, CFrameidentity })
  389. end)
  390. elseif Instance:IsA("JointInstance") then
  391. taskspawn(function()
  392. taskwait()
  393. Instance:Destroy()
  394. end)
  395. end
  396. end
  397.  
  398. local function CharacterAdded(Character)
  399. if Character ~= CharacterClone then
  400. PostSimulation:Wait()
  401.  
  402. local Backpack = LocalPlayer:FindFirstChildOfClass("Backpack")
  403.  
  404. if Backpack then
  405. Backpack:ClearAllChildren()
  406. end
  407.  
  408. tableclear(Aligns)
  409. tableclear(Blacklist)
  410.  
  411. for _, Accessory in pairs(Accessories) do
  412. Accessory:Destroy()
  413. end
  414.  
  415. local CurrentCameraCFrame = CurrentCamera.CFrame
  416.  
  417. LocalPlayer.Character = CharacterClone
  418. CurrentCamera.CameraSubject = CharacterClone.Head
  419.  
  420. taskspawn(function()
  421. CurrentCamera:GetPropertyChangedSignal("CFrame"):Wait()
  422. CurrentCamera.CFrame = CurrentCameraCFrame
  423. end)
  424.  
  425. local CharacterHumanoidRootPart = WaitForClassOfName(Character, "BasePart", "HumanoidRootPart")
  426.  
  427. for Index, Value in pairs(Fling) do
  428. local BasePart = nil
  429.  
  430. if typeof(Value) == "Instance" then
  431. if Value:IsA("BasePart") then
  432. BasePart = Value
  433. elseif Value:IsA("Humanoid") then
  434. local Model = Value.Parent
  435.  
  436. if Model ~= Character and Model:IsA("Model") then
  437. BasePart = FindInstance(Model, "BasePart", "HumanoidRootPart") or FindInstance(Model, "BasePart", "Head") or Model:FindFirstChildOfClass("BasePart")
  438. end
  439. elseif Value:IsA("Model") and Value ~= Character then
  440. BasePart = FindInstance(Value, "BasePart", "HumanoidRootPart") or FindInstance(Value, "BasePart", "Head") or Value:FindFirstChildOfClass("BasePart")
  441. end
  442. end
  443.  
  444. if BasePart then
  445. local clock = osclock()
  446.  
  447. while CharacterHumanoidRootPart and BasePart and osclock() - clock <= 1 and BasePart.AssemblyLinearVelocity.Magnitude <= 60 do
  448. CharacterHumanoidRootPart.AssemblyAngularVelocity = Velocity
  449. CharacterHumanoidRootPart.AssemblyLinearVelocity = Velocity
  450.  
  451. CharacterHumanoidRootPart.CFrame = BasePart.CFrame + Vector3new(0, - 1, 0)
  452. PostSimulation:Wait()
  453. end
  454. end
  455. end
  456.  
  457. tableclear(Fling)
  458.  
  459. if CharacterHumanoidRootPart then
  460. CharacterHumanoidRootPart.AssemblyAngularVelocity = Vector3zero
  461. CharacterHumanoidRootPart.AssemblyLinearVelocity = Vector3zero
  462.  
  463. CharacterHumanoidRootPart.CFrame = CFramenew(HumanoidRootPart.Position + Vector3new(mathrandom(- 32, 32), 0, mathrandom(- 32, 32)))
  464. PostSimulation:Wait()
  465. end
  466.  
  467. Character:BreakJoints()
  468.  
  469. for _, Instance in pairs(Character:GetDescendants()) do
  470. DescendantAdded(Instance)
  471. end
  472.  
  473. Character.DescendantAdded:Connect(DescendantAdded)
  474. end
  475. end
  476.  
  477. local function Align(Part0, Part1, CFrame)
  478. if Part0.ReceiveAge == 0 and not Part0.Anchored and # Part0:GetJoints() == 0 then
  479. Part0.AssemblyAngularVelocity = Vector3new(0, Angular, 0)
  480.  
  481. local Part1CFrame = Part1.CFrame
  482. local LinearVelocity = Part1.AssemblyLinearVelocity * Linear
  483. local Magnitude = LinearVelocity.Magnitude < Linear
  484.  
  485. if Magnitude then
  486. local LookVector = Part1CFrame.LookVector * Linear
  487. Part0.AssemblyLinearVelocity = Vector3new(LookVector.X, Linear, LookVector.Z)
  488. else
  489. Part0.AssemblyLinearVelocity = Vector3new(LinearVelocity.X, Linear, LinearVelocity.Z)
  490. end
  491.  
  492. Part0.CFrame = Part1CFrame * ( Magnitude and Sleep or CFrameidentity ) * CFrame
  493. end
  494. end
  495.  
  496. if Character then
  497. CharacterAdded(Character)
  498. end
  499.  
  500. local Added = LocalPlayer.CharacterAdded:Connect(CharacterAdded)
  501.  
  502. local Connection = game:FindFirstChildOfClass("RunService").PostSimulation:Connect(function()
  503. local osclock = osclock()
  504. local Axis = 0.004 * mathcos(osclock * 17.5)
  505.  
  506. Sleep = CFramenew(0, Axis, 0)
  507. Angular = mathcos(osclock)
  508. Linear = 26
  509.  
  510. for _, Table in pairs(Aligns) do
  511. Align(Table[1], Table[2], Table[3])
  512. end
  513.  
  514. if sethiddenproperty then
  515. sethiddenproperty(LocalPlayer, "SimulationRadius", 10000000)
  516. end
  517.  
  518. StarterGui:SetCore("ResetButtonCallback", BindableEvent) -- This is if it gets overriden, just like in MyWorld testing place.
  519. end)
  520.  
  521. local function Event()
  522. CharacterClone:Destroy()
  523. end
  524.  
  525. BindableEvent.Event:Connect(Event)
  526.  
  527. CharacterClone:GetPropertyChangedSignal("Parent"):Connect(function()
  528. if not CharacterClone.Parent then
  529. Added:Disconnect()
  530. Connection:Disconnect()
  531.  
  532. CharacterClone:Destroy()
  533.  
  534. if BindableEvent then
  535. BindableEvent:Destroy()
  536. end
  537.  
  538. StarterGui:SetCore("ResetButtonCallback", true)
  539. end
  540. end)
  541.  
  542. BindableEvent:GetPropertyChangedSignal("Parent"):Connect(Event)
  543. if not getgenv()["Animator"] then
  544. loadstring(game:HttpGet("https://raw.githubusercontent.com/xhayper/Animator/main/Source/Main.lua"))()
  545. end
  546.  
  547. -- Main --
  548. local Players = game:GetService("Players")
  549. local Player = Players.LocalPlayer
  550.  
  551. local currentAnim
  552.  
  553. -- UI --
  554.  
  555. local Material = HttpRequire("https://raw.githubusercontent.com/Kinlei/MaterialLua/master/Module.lua")
  556.  
  557. local UI = Material.Load({
  558. Title = "Animator",
  559. Style = 3,
  560. SizeX = 200,
  561. SizeY = 230,
  562. Theme = "Dark"
  563. })
  564.  
  565. -- MAIN --
  566.  
  567. local Main = UI.New({
  568. Title = "Animator"
  569. })
  570.  
  571. local Animation = Main.TextField({
  572. Text = "Animation"
  573. })
  574.  
  575. local Loop = Main.Toggle({
  576. Text = "Loop",
  577. Enabled = true
  578. })
  579.  
  580. local Play = Main.Button({
  581. Text = "Play",
  582. Callback = function()
  583. if currentAnim ~= nil and currentAnim.IsPlaying == true then
  584. currentAnim:Stop(0)
  585. currentAnim.Stopped:Wait()
  586. task.wait()
  587. end
  588. currentAnim = Animator.new(Player.Character or Player.CharacterAdded:Wait(), Animation:GetText())
  589. if getgenv()["NullwareAPI"] then -- Nullware Complatible
  590. currentAnim:IgnoreMotorIn(NullwareAPI:GetCharacter("MainChar"))
  591. currentAnim:IgnoreBoneIn(NullwareAPI:GetCharacter("MainChar"))
  592. end
  593. currentAnim.Looped = Loop:GetState()
  594. currentAnim:Play()
  595. task.spawn(function()
  596. currentAnim.Stopped:Wait()
  597. currentAnim:Destroy()
  598. end)
  599. end
  600. })
  601.  
  602. local Stop = Main.Button({
  603. Text = "Stop",
  604. Callback = function()
  605. if currentAnim and currentAnim.IsPlaying then
  606. currentAnim:Stop()
  607. end
  608. end
  609. })
  610.  
  611. -- REANIMATE --
  612.  
  613. local Nullware = UI.New({
  614. Title = "Nullware"
  615. })
  616.  
  617. local NullwareLink = Nullware.TextField({
  618. Text = "Nullware Reanimate Link",
  619. Type = "Password"
  620. })
  621.  
  622. local ReanimateConfiguration = Nullware.ChipSet({
  623. Text = "ReanimateConfiguration",
  624. Options = {
  625. ["Anti-Fling"] = true,
  626. ["Head Movement Without Godmode"] = true,
  627. ["Enable Limb Collisions"] = true,
  628. ["Disable Torso Collisions"] = false,
  629. ["R15 To R6"] = true,
  630. ["Godmode"] = false
  631. }
  632. })
  633.  
  634. Nullware.Button({
  635. Text = "Reanimate",
  636. Callback = function()
  637. if not getgenv()["NullwareAPI"] then
  638. local options = ReanimateConfiguration:GetOptions()
  639. options["Hats To Align"] = {"All"}
  640. options["Netless"] = true
  641. getgenv().Nullware_ReanimateConfiguration = options
  642. HttpRequire(NullwareLink:GetText())
  643. end
  644. end
  645. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement