Advertisement
Guest User

Untitled

a guest
Sep 30th, 2023
636
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 83.31 KB | None | 0 0
  1.  
  2. --[[
  3. Paid:
  4. https://www.roblox.com/catalog/14255556501/Extra-Right-White-Arm
  5. https://www.roblox.com/catalog/14255554762/Extra-Left-White-Arm
  6. https://www.roblox.com/catalog/14768693948/White-Extended-Right-Arm
  7. https://www.roblox.com/catalog/14768701869/White-Extended-Left-Arm
  8. https://www.roblox.com/catalog/14255528083/Torso-Extension
  9. or
  10. https://www.roblox.com/catalog/13779879140/Black-Fluffy-Fur-Body
  11. (ANYTHING CAN BE USED FOR THE TORSO SUCH AS A VEST.)
  12.  
  13. Paid (2):
  14. https://www.roblox.com/catalog/11159410305/Rectangle-Head-For-Headless
  15. https://www.roblox.com/catalog/11263254795/Dummy-Head-For-Headless
  16. https://www.roblox.com/catalog/12344545199/Extra-Left-hand-moving-Blocky-white
  17. https://www.roblox.com/catalog/12344591101/Extra-Right-hand-moving-Blocky-white
  18. https://www.roblox.com/catalog/14255528083/Torso-Extension
  19. or
  20. https://www.roblox.com/catalog/13779879140/Black-Fluffy-Fur-Body
  21. (ANYTHING CAN BE USED FOR THE TORSO SUCH AS A VEST.)
  22.  
  23. Free:
  24. https://www.roblox.com/catalog/3033908130/International-Fedora-France
  25. https://www.roblox.com/catalog/3033910400/International-Fedora-Germany
  26. https://www.roblox.com/catalog/3409612660/International-Fedora-USA
  27. https://www.roblox.com/catalog/3398308134/International-Fedora-Canada
  28. https://www.roblox.com/catalog/4819740796/Robox
  29.  
  30. Weapons:
  31. https://www.roblox.com/catalog/13760686814/Classic-MARKA-17M-Valkan-Left
  32. ]]--
  33.  
  34. game:GetService("StarterGui"):SetCore("SendNotification", {
  35. Title = "Melon's (FE) Scripts";
  36. Text = "Have fun!";
  37. Icon = "rbxthumb://type=Asset&id=13446503788&w=150&h=150"})
  38. Duration = 16;
  39.  
  40. if not game:IsLoaded() then
  41. game.Loaded:Wait()
  42. end
  43.  
  44. local function FindInstance(Parent, ClassName, Name)
  45. for _, Instance in pairs(Parent:GetChildren()) do
  46. if Instance:IsA(ClassName) and Instance.Name == Name then
  47. return Instance
  48. end
  49. end
  50. end
  51.  
  52. local function WaitForClass(Parent, ClassName)
  53. local Instance = Parent:FindFirstChildOfClass(ClassName)
  54.  
  55. while not Instance and Parent do
  56. Parent.ChildAdded:Wait()
  57. Instance = Parent:FindFirstChildOfClass(ClassName)
  58. end
  59.  
  60. return Instance
  61. end
  62.  
  63. local function WaitForClassOfName(Parent, ...)
  64. local Instance = FindInstance(Parent, ...)
  65.  
  66. while not Instance and Parent do
  67. Parent.ChildAdded:Wait()
  68. Instance = FindInstance(Parent, ...)
  69. end
  70.  
  71. return Instance
  72. end
  73.  
  74. local Fling = { }
  75. local Aligns = { }
  76. local Blacklist = { }
  77. local Accessories = { }
  78. local Attachments = { }
  79.  
  80. local Instancenew = Instance.new
  81.  
  82. local taskwait = task.wait
  83. local taskspawn = task.spawn
  84. local taskdefer = task.defer
  85.  
  86. local mathabs = math.abs
  87. local mathcos = math.cos
  88. local mathrandom = math.random
  89.  
  90. local stringmatch = string.match
  91.  
  92. local osclock = os.clock
  93.  
  94. local tableinsert = table.insert
  95. local tableclear = table.clear
  96. local tablefind = table.find
  97.  
  98. local CFramenew = CFrame.new
  99. local CFrameAngles = CFrame.Angles
  100. local CFrameidentity = CFrame.identity
  101.  
  102. local Vector3new = Vector3.new
  103. local Vector3zero = Vector3.zero
  104.  
  105. local Sleep = CFrameidentity
  106. local Velocity = Vector3new(0, 16384, 0)
  107. local Angular = 0
  108. local Linear = 0
  109.  
  110. local Workspace = game:FindFirstChildOfClass("Workspace")
  111. local CurrentCamera = Workspace.CurrentCamera
  112.  
  113. local Players = game:FindFirstChildOfClass("Players")
  114.  
  115. local LocalPlayer = Players.LocalPlayer
  116. local Mouse = LocalPlayer:GetMouse()
  117.  
  118. local PostSimulation = game:FindFirstChildOfClass("RunService").PostSimulation
  119.  
  120. local Character = LocalPlayer.Character
  121. local CharacterClone = Instancenew("Model")
  122.  
  123. local StarterGui = game:FindFirstChildOfClass("StarterGui")
  124. local BindableEvent = Instancenew("BindableEvent")
  125.  
  126. local UserInputService = game:FindFirstChildOfClass("UserInputService")
  127. local UserInputType = Enum.UserInputType
  128.  
  129. local MouseButton1 = UserInputType.MouseButton1
  130. local Touch = UserInputType.Touch
  131.  
  132. local InputBegan = UserInputService.InputBegan:Connect(function(Input, GameProcessed)
  133. local Type = Input.UserInputType
  134.  
  135. if not GameProcessed and ( Type == MouseButton1 or Type == Touch ) then
  136. local Target = Mouse.Target
  137. if Target and not Target.Anchored and not Target:IsDescendantOf(CharacterClone) and not Target:IsDescendantOf(Character) and not tablefind(Fling, Target) then
  138. local Parent = Target.Parent
  139.  
  140. if Parent:IsA("Model") and Parent ~= Character and Parent:FindFirstChildOfClass("Humanoid") then
  141. local HumanoidRootPart = FindInstance(Parent, "BasePart", "HumanoidRootPart") or FindInstance(Parent, "BasePart", "Torso") or FindInstance(Parent, "BasePart", "Head")
  142.  
  143. if HumanoidRootPart and not tablefind(Fling, HumanoidRootPart) then
  144. tableinsert(Fling, HumanoidRootPart)
  145. return
  146. end
  147. end
  148.  
  149. tableinsert(Fling, Target)
  150. end
  151. end
  152. end)
  153.  
  154. local function Part(Name, Size)
  155. local Part = Instancenew("Part")
  156. Part.Name = Name
  157. Part.Size = Size
  158. Part.Transparency = 1
  159. Part.Parent = CharacterClone
  160.  
  161. return Part
  162. end
  163.  
  164. local function Motor6D(Name, Part0, Part1, C0, C1)
  165. local Motor6D = Instancenew("Motor6D")
  166. Motor6D.Name = Name
  167. Motor6D.Part0 = Part0
  168. Motor6D.Part1 = Part1
  169. Motor6D.C0 = C0
  170. Motor6D.C1 = C1
  171. Motor6D.Parent = Part0
  172.  
  173. return Motor6D
  174. end
  175.  
  176. local function Attachment(Name, CFrame, Parent)
  177. local Attachment = Instancenew("Attachment")
  178. Attachment.Name = Name
  179. Attachment.CFrame = CFrame
  180. Attachment.Parent = Parent
  181.  
  182. tableinsert(Attachments, Attachment)
  183. return Attachment
  184. end
  185.  
  186. local LimbSize = Vector3new(1, 2, 1)
  187. local TorsoSize = Vector3new(2, 2, 1)
  188.  
  189. local Head = Part("Head", Vector3new(2, 1, 1))
  190. local Torso = Part("Torso", TorsoSize)
  191. local LeftArm = Part("Left Arm", LimbSize)
  192. local RightArm = Part("Right Arm", LimbSize)
  193. local LeftLeg = Part("Left Leg", LimbSize)
  194. local RightLeg = Part("Right Leg", LimbSize)
  195. local HumanoidRootPart = Part("HumanoidRootPart", TorsoSize)
  196.  
  197. local FakeRA = Instance.new("Part")
  198. FakeRA.Size = Vector3.new(1,2,1)
  199. FakeRA.Transparency = 1
  200. FakeRA.BrickColor = BrickColor.new("Institutional White")
  201. FakeRA.Parent = RightArm
  202.  
  203. local FRAW = Instance.new("Weld")
  204. FRAW.Part0 = RightArm
  205. FRAW.Part1 = FakeRA
  206. FRAW.C0 = CFrame.new(0, 0, 0)
  207. FRAW.Parent = RightArm
  208.  
  209. local FakeLA = Instance.new("Part")
  210. FakeLA.Size = Vector3.new(1,2,1)
  211. FakeLA.Transparency = 1
  212. FakeLA.BrickColor = BrickColor.new("Institutional White")
  213. FakeLA.Parent = LeftArm
  214.  
  215. local FLAW = Instance.new("Weld")
  216. FLAW.Part0 = LeftArm
  217. FLAW.Part1 = FakeLA
  218. FLAW.C0 = CFrame.new(0, 0, 0)
  219. FLAW.Parent = LeftArm
  220.  
  221. local Part = nil
  222.  
  223. if Character then
  224. Part = FindInstance(Character, "BasePart", "HumanoidRootPart") or FindInstance(Character, "BasePart", "Head") or FindInstance(Character, "BasePart", "Torso") or FindInstance(Character, "BasePart", "UpperTorso")
  225. end
  226.  
  227. if Part then
  228. HumanoidRootPart.CFrame = Part.CFrame
  229. else
  230. local SpawnLocations = { }
  231.  
  232. for _, SpawnLocation in pairs(Workspace:GetDescendants()) do
  233. if SpawnLocation:IsA("SpawnLocation") then
  234. tableinsert(SpawnLocations, SpawnLocation)
  235. end
  236. end
  237.  
  238. local Amount = # SpawnLocations
  239.  
  240. if Amount > 0 then
  241. local SpawnLocation = SpawnLocations[mathrandom(1, Amount)]
  242. HumanoidRootPart.CFrame = SpawnLocation.CFrame * CFramenew(0, SpawnLocation.Size.Y / 2 + 3, 0)
  243. else
  244. HumanoidRootPart.CFrame = CFrameidentity
  245. end
  246. end
  247.  
  248. local face = Instancenew("Decal")
  249. face.Name = "face"
  250. face.Parent = Head
  251.  
  252. local AccessoryTable = {
  253. -- Paid --
  254. { Mesh = "14241018198", Texture = "14251599953", Instance = Torso },
  255. { Mesh = "14255522247", Texture = "14255543546", Instance = RightArm, CFrame = CFrameAngles(0, 1.57, 1.57) },
  256. { Mesh = "14255522247", Texture = "14255543546", Instance = LeftArm, CFrame = CFrameAngles(0, - 1.57, 1.57) },
  257. { Mesh = "14768684979", Texture = "14768683674", Instance = RightLeg, CFrame = CFrameAngles(0, - 1.57, 1.57) },
  258. { Mesh = "14768684979", Texture = "14768683674", Instance = LeftLeg, CFrame = CFrameAngles(0, 1.57, 1.57) },
  259.  
  260. -- Paid (2) --
  261. { Mesh = "14241018198", Texture = "14251599953", Instance = Torso },
  262. { Mesh = "12344206657", Texture = "12344206675", Instance = RightArm, CFrame = CFrameAngles(-115, 0, 0) },
  263. { Mesh = "12344207333", Texture = "12344207341", Instance = LeftArm, CFrame = CFrameAngles(-115, 0, 0) },
  264. { Mesh = "11159370334", Texture = "11159284657", Instance = RightLeg, CFrame = CFrameAngles(0, - 1.57, 1.57) },
  265. { Mesh = "11263221350", Texture = "11263219250", Instance = LeftLeg, CFrame = CFrameAngles(0, 1.57, 1.57) },
  266.  
  267. -- Free --
  268. { Mesh = "4819720316", Texture = "4819722776", Instance = Torso, CFrame = CFrameAngles(0, 0, 105) },
  269. { Mesh = "3030546036", Texture = "3033903209", Instance = RightArm, CFrame = CFrameAngles(-90, 0, -89.5) },
  270. { Mesh = "3030546036", Texture = "3360978739", Instance = LeftArm, CFrame = CFrameAngles(-90, 0, 89.5) },
  271. { Mesh = "3030546036", Texture = "3409604993", Instance = RightLeg, CFrame = CFrameAngles(-90, 0, -89.5) },
  272. { Mesh = "3030546036", Texture = "3033898741", Instance = LeftLeg, CFrame = CFrameAngles(-90, 0, 89.5) },
  273.  
  274. -- Temporary --
  275. { Mesh = "14833036921", Texture = "14833036785", Instance = FakeRA, CFrame = CFramenew(0,-2.35, -0.80) * CFrameAngles(1.85, 0, 3.15) },
  276. }
  277.  
  278. for _, Table in pairs(AccessoryTable) do
  279. if type(Table.Mesh) ~= "string" then
  280. Table.Mesh = ""
  281. end
  282. if type(Table.Texture) ~= "string" then
  283. Table.Texture = ""
  284. end
  285. end
  286.  
  287. 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))
  288. 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))
  289. 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))
  290. 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))
  291. 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))
  292. 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))
  293.  
  294. Attachment("HairAttachment", CFramenew(0, 0.600000024, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Head)
  295. Attachment("HatAttachment", CFramenew(0, 0.600000024, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Head)
  296. Attachment("FaceFrontAttachment", CFramenew(0, 0, -0.600000024, 1, 0, 0, 0, 1, 0, 0, 0, 1), Head)
  297. Attachment("FaceCenterAttachment", CFramenew(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Head)
  298. Attachment("NeckAttachment", CFramenew(0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
  299. Attachment("BodyFrontAttachment", CFramenew(0, 0, -0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
  300. Attachment("BodyBackAttachment", CFramenew(0, 0, 0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
  301. Attachment("LeftCollarAttachment", CFramenew(-1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
  302. Attachment("RightCollarAttachment", CFramenew(1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
  303. Attachment("WaistFrontAttachment", CFramenew(0, -1, -0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
  304. Attachment("WaistCenterAttachment", CFramenew(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
  305. Attachment("WaistBackAttachment", CFramenew(0, -1, 0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
  306. Attachment("LeftShoulderAttachment", CFramenew(0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), LeftArm)
  307. Attachment("LeftGripAttachment", CFramenew(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), LeftArm)
  308. Attachment("RightShoulderAttachment", CFramenew(0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), RightArm)
  309. Attachment("RightGripAttachment", CFramenew(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), RightArm)
  310. Attachment("LeftFootAttachment", CFramenew(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), LeftLeg)
  311. Attachment("RightFootAttachment", CFramenew(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), RightLeg)
  312. Attachment("RootAttachment", CFramenew(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), HumanoidRootPart)
  313.  
  314. local Humanoid = Instancenew("Humanoid", CharacterClone)
  315. Instancenew("Animator", Humanoid)
  316.  
  317. Instancenew("LocalScript", CharacterClone).Name = "Animate"
  318.  
  319. CharacterClone.PrimaryPart = Head
  320. CharacterClone.Parent = Workspace
  321.  
  322. local function DescendantAdded(Instance)
  323. if Instance:IsA("Accessory") then
  324. taskspawn(function()
  325. local Handle = WaitForClassOfName(Instance, "BasePart", "Handle")
  326. local Attachment = WaitForClass(Handle, "Attachment")
  327.  
  328. local Clone = Instance:Clone()
  329.  
  330. local CloneHandle = FindInstance(Clone, "BasePart", "Handle")
  331. CloneHandle.Transparency = 1
  332. CloneHandle:BreakJoints()
  333.  
  334. local AccessoryWeld = Instancenew("Weld")
  335. AccessoryWeld.Name = "AccessoryWeld"
  336. AccessoryWeld.Part0 = CloneHandle
  337. AccessoryWeld.C0 = Attachment.CFrame
  338.  
  339. local Name = Attachment.Name
  340.  
  341. for _, TableAttachment in pairs(Attachments) do
  342. if TableAttachment.Name == Name then
  343. AccessoryWeld.Part1 = TableAttachment.Parent
  344. AccessoryWeld.C1 = TableAttachment.CFrame
  345. end
  346. end
  347.  
  348. AccessoryWeld.Parent = CloneHandle
  349. Clone.Parent = CharacterClone
  350.  
  351. tableinsert(Accessories, Clone)
  352.  
  353. local IsAMeshPart = CloneHandle:IsA("MeshPart")
  354. local Mesh = IsAMeshPart and CloneHandle or WaitForClass(CloneHandle, "SpecialMesh")
  355. local Id = IsAMeshPart and "TextureID" or "TextureId"
  356.  
  357. for _, Table in pairs(AccessoryTable) do
  358. local Instance = Table.Instance
  359.  
  360. if Instance then
  361. if stringmatch(Mesh.MeshId, Table.Mesh) and stringmatch(Mesh[Id], Table.Texture) and not tablefind(Blacklist, Instance) then
  362. tableinsert(Blacklist, Instance)
  363. tableinsert(Aligns, { Handle, Instance, Table.CFrame or CFrameidentity })
  364. return
  365. end
  366. end
  367. end
  368.  
  369. tableinsert(Aligns, { Handle, CloneHandle, CFrameidentity })
  370. end)
  371. elseif Instance:IsA("JointInstance") then
  372. taskspawn(function()
  373. taskwait()
  374. Instance:Destroy()
  375. end)
  376. end
  377. end
  378.  
  379. local function CharacterAdded(Character)
  380. if Character ~= CharacterClone then
  381. PostSimulation:Wait()
  382.  
  383. local Backpack = LocalPlayer:FindFirstChildOfClass("Backpack")
  384.  
  385. if Backpack then
  386. Backpack:ClearAllChildren()
  387. end
  388.  
  389. tableclear(Aligns)
  390. tableclear(Blacklist)
  391.  
  392. for _, Accessory in pairs(Accessories) do
  393. Accessory:Destroy()
  394. end
  395.  
  396. local CurrentCameraCFrame = CurrentCamera.CFrame
  397.  
  398. LocalPlayer.Character = CharacterClone
  399. CurrentCamera.CameraSubject = CharacterClone.Head
  400.  
  401. taskspawn(function()
  402. CurrentCamera:GetPropertyChangedSignal("CFrame"):Wait()
  403. CurrentCamera.CFrame = CurrentCameraCFrame
  404. end)
  405.  
  406. local CharacterHumanoidRootPart = WaitForClassOfName(Character, "BasePart", "HumanoidRootPart")
  407.  
  408. for Index, Value in pairs(Fling) do
  409. local BasePart = nil
  410.  
  411. if typeof(Value) == "Instance" then
  412. if Value:IsA("BasePart") then
  413. BasePart = Value
  414. elseif Value:IsA("Humanoid") then
  415. local Model = Value.Parent
  416.  
  417. if Model ~= Character and Model:IsA("Model") then
  418. BasePart = FindInstance(Model, "BasePart", "HumanoidRootPart") or FindInstance(Model, "BasePart", "Head") or Model:FindFirstChildOfClass("BasePart")
  419. end
  420. elseif Value:IsA("Model") and Value ~= Character then
  421. BasePart = FindInstance(Value, "BasePart", "HumanoidRootPart") or FindInstance(Value, "BasePart", "Head") or Value:FindFirstChildOfClass("BasePart")
  422. end
  423. end
  424.  
  425. if BasePart then
  426. local clock = osclock()
  427.  
  428. while CharacterHumanoidRootPart and BasePart and osclock() - clock <= 1 and BasePart.AssemblyLinearVelocity.Magnitude <= 60 do
  429. CharacterHumanoidRootPart.AssemblyAngularVelocity = Velocity
  430. CharacterHumanoidRootPart.AssemblyLinearVelocity = Velocity
  431.  
  432. CharacterHumanoidRootPart.CFrame = BasePart.CFrame + Vector3new(0, - 1, 0)
  433. PostSimulation:Wait()
  434. end
  435. end
  436. end
  437.  
  438. tableclear(Fling)
  439.  
  440. if CharacterHumanoidRootPart then
  441. CharacterHumanoidRootPart.AssemblyAngularVelocity = Vector3zero
  442. CharacterHumanoidRootPart.AssemblyLinearVelocity = Vector3zero
  443.  
  444. CharacterHumanoidRootPart.CFrame = CFramenew(HumanoidRootPart.Position + Vector3new(mathrandom(- 32, 32), 0, mathrandom(- 32, 32)))
  445. PostSimulation:Wait()
  446. end
  447.  
  448. Character:BreakJoints()
  449.  
  450. for _, Instance in pairs(Character:GetDescendants()) do
  451. DescendantAdded(Instance)
  452. end
  453.  
  454. Character.DescendantAdded:Connect(DescendantAdded)
  455. end
  456. end
  457.  
  458. local function Align(Part0, Part1, CFrame)
  459. if Part0.ReceiveAge == 0 and not Part0.Anchored and # Part0:GetJoints() == 0 then
  460. Part0.AssemblyAngularVelocity = Vector3new(0, Angular, 0)
  461.  
  462. local Part1CFrame = Part1.CFrame
  463. local LinearVelocity = Part1.AssemblyLinearVelocity * Linear
  464. local Magnitude = LinearVelocity.Magnitude < Linear
  465.  
  466. if Magnitude then
  467. local LookVector = Part1CFrame.LookVector * Linear
  468. Part0.AssemblyLinearVelocity = Vector3new(LookVector.X, Linear, LookVector.Z)
  469. else
  470. Part0.AssemblyLinearVelocity = Vector3new(LinearVelocity.X, Linear, LinearVelocity.Z)
  471. end
  472.  
  473. Part0.CFrame = Part1CFrame * ( Magnitude and Sleep or CFrameidentity ) * CFrame
  474. end
  475. end
  476.  
  477. if Character then
  478. CharacterAdded(Character)
  479. end
  480.  
  481. local Added = LocalPlayer.CharacterAdded:Connect(CharacterAdded)
  482.  
  483. local Connection = game:FindFirstChildOfClass("RunService").PostSimulation:Connect(function()
  484. local osclock = osclock()
  485. local Axis = 0.004 * mathcos(osclock * 17.5)
  486.  
  487. Sleep = CFramenew(0, Axis, 0)
  488. Angular = mathcos(osclock)
  489. Linear = 26
  490.  
  491. for _, Table in pairs(Aligns) do
  492. Align(Table[1], Table[2], Table[3])
  493. end
  494.  
  495. if sethiddenproperty then
  496. sethiddenproperty(LocalPlayer, "SimulationRadius", 10000000)
  497. end
  498.  
  499. StarterGui:SetCore("ResetButtonCallback", BindableEvent) -- This is if it gets overriden, just like in MyWorld testing place.
  500. end)
  501.  
  502. local function Event()
  503. CharacterClone:Destroy()
  504. end
  505.  
  506. BindableEvent.Event:Connect(Event)
  507.  
  508. CharacterClone:GetPropertyChangedSignal("Parent"):Connect(function()
  509. if not CharacterClone.Parent then
  510. Added:Disconnect()
  511. Connection:Disconnect()
  512.  
  513. CharacterClone:Destroy()
  514.  
  515. if BindableEvent then
  516. BindableEvent:Destroy()
  517. end
  518.  
  519. StarterGui:SetCore("ResetButtonCallback", true)
  520. end
  521. end)
  522.  
  523. BindableEvent:GetPropertyChangedSignal("Parent"):Connect(Event)
  524.  
  525. Player = game.Players.LocalPlayer
  526. PlayerGui = Player.PlayerGui
  527. Cam = workspace.CurrentCamera
  528. Character = Player.Character
  529. Humanoid = Character.Humanoid
  530. RootPart = Character.HumanoidRootPart
  531. Torso = Character["Torso"]
  532. Head = Character["Head"]
  533. RightArm = Character["Right Arm"]
  534. LeftArm = Character["Left Arm"]
  535. RightLeg = Character["Right Leg"]
  536. LeftLeg = Character["Left Leg"]
  537. RootJoint = RootPart["RootJoint"]
  538. Neck = Torso["Neck"]
  539. RightShoulder = Torso["Right Shoulder"]
  540. LeftShoulder = Torso["Left Shoulder"]
  541. RightHip = Torso["Right Hip"]
  542. LeftHip = Torso["Left Hip"]
  543. Mouse = Player:GetMouse()
  544.  
  545. IT = Instance.new
  546. CF = CFrame.new
  547. VT = Vector3.new
  548. RAD = math.rad
  549. C3 = Color3.new
  550. UD2 = UDim2.new
  551. BRICKC = BrickColor.new
  552. ANGLES = CFrame.Angles
  553. EULER = CFrame.fromEulerAnglesXYZ
  554. COS = math.cos
  555. ACOS = math.acos
  556. SIN = math.sin
  557. ASIN = math.asin
  558. ABS = math.abs
  559. MRANDOM = math.random
  560. FLOOR = math.floor
  561.  
  562. --//=================================\\
  563. --|| USEFUL VALUES
  564. --\\=================================//
  565.  
  566. Animation_Speed = 3
  567. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  568. local Speed = 16
  569. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  570. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  571. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  572. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  573. local DAMAGEMULTIPLIER = 1
  574. local ANIM = "Idle"
  575. local ATTACK = false
  576. local EQUIPPED = false
  577. local HOLD = false
  578. local COMBO = 1
  579. local Rooted = false
  580. local SINE = 0
  581. local KEYHOLD = false
  582. local CHANGE = 2 / Animation_Speed
  583. local WALKINGANIM = false
  584. local VALUE1 = false
  585. local VALUE2 = false
  586. local ROBLOXIDLEANIMATION = IT("Animation")
  587. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  588. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  589. --ROBLOXIDLEANIMATION.Parent = Humanoid
  590. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  591. WEAPONGUI.Name = "Weapon GUI"
  592. local Effects = IT("Folder", Character)
  593. Effects.Name = "Effects"
  594. local ANIMATOR = Humanoid.Animator
  595. local ANIMATE = Character.Animate
  596. local UNANCHOR = true
  597. local SC = false
  598.  
  599. --//=================================\\
  600. --\\=================================//
  601.  
  602.  
  603. --//=================================\\
  604. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  605. --\\=================================//
  606.  
  607. ArtificialHB = Instance.new("BindableEvent", script)
  608. ArtificialHB.Name = "ArtificialHB"
  609.  
  610. script:WaitForChild("ArtificialHB")
  611.  
  612. frame = Frame_Speed
  613. tf = 0
  614. allowframeloss = false
  615. tossremainder = false
  616. lastframe = tick()
  617. script.ArtificialHB:Fire()
  618.  
  619. game:GetService("RunService").Heartbeat:connect(function(s, p)
  620. tf = tf + s
  621. if tf >= frame then
  622. if allowframeloss then
  623. ArtificialHB:Fire()
  624. lastframe = tick()
  625. else
  626. for i = 1, math.floor(tf / frame) do
  627. ArtificialHB:Fire()
  628. end
  629. lastframe = tick()
  630. end
  631. if tossremainder then
  632. tf = 0
  633. else
  634. tf = tf - frame * math.floor(tf / frame)
  635. end
  636. end
  637. end)
  638.  
  639. --//=================================\\
  640. --\\=================================//
  641.  
  642. --//=================================\\
  643. --|| SOME FUNCTIONS
  644. --\\=================================//
  645.  
  646. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  647. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  648. end
  649.  
  650. function PositiveAngle(NUMBER)
  651. if NUMBER >= 0 then
  652. NUMBER = 0
  653. end
  654. return NUMBER
  655. end
  656.  
  657. function NegativeAngle(NUMBER)
  658. if NUMBER <= 0 then
  659. NUMBER = 0
  660. end
  661. return NUMBER
  662. end
  663.  
  664. function Swait(NUMBER)
  665. if NUMBER == 0 or NUMBER == nil then
  666. ArtificialHB.Event:wait()
  667. else
  668. for i = 1, NUMBER do
  669. ArtificialHB.Event:wait()
  670. end
  671. end
  672. end
  673.  
  674. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  675. local NEWMESH = IT(MESH)
  676. if MESH == "SpecialMesh" then
  677. NEWMESH.MeshType = MESHTYPE
  678. if MESHID ~= "nil" and MESHID ~= "" then
  679. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  680. end
  681. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  682. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  683. end
  684. end
  685. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  686. NEWMESH.Scale = SCALE
  687. NEWMESH.Parent = PARENT
  688. return NEWMESH
  689. end
  690.  
  691. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  692. local NEWPART = IT("Part")
  693. NEWPART.formFactor = FORMFACTOR
  694. NEWPART.Reflectance = REFLECTANCE
  695. NEWPART.Transparency = TRANSPARENCY
  696. NEWPART.CanCollide = false
  697. NEWPART.Locked = true
  698. NEWPART.Anchored = true
  699. if ANCHOR == false then
  700. NEWPART.Anchored = false
  701. end
  702. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  703. NEWPART.Name = NAME
  704. NEWPART.Size = SIZE
  705. NEWPART.Position = Torso.Position
  706. NEWPART.Material = MATERIAL
  707. NEWPART:BreakJoints()
  708. NEWPART.Parent = PARENT
  709. return NEWPART
  710. end
  711.  
  712. local function weldBetween(a, b)
  713. local weldd = Instance.new("ManualWeld")
  714. weldd.Part0 = a
  715. weldd.Part1 = b
  716. weldd.C0 = CFrame.new()
  717. weldd.C1 = b.CFrame:inverse() * a.CFrame
  718. weldd.Parent = a
  719. return weldd
  720. end
  721.  
  722.  
  723. function QuaternionFromCFrame(cf)
  724. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  725. local trace = m00 + m11 + m22
  726. if trace > 0 then
  727. local s = math.sqrt(1 + trace)
  728. local recip = 0.5 / s
  729. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  730. else
  731. local i = 0
  732. if m11 > m00 then
  733. i = 1
  734. end
  735. if m22 > (i == 0 and m00 or m11) then
  736. i = 2
  737. end
  738. if i == 0 then
  739. local s = math.sqrt(m00 - m11 - m22 + 1)
  740. local recip = 0.5 / s
  741. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  742. elseif i == 1 then
  743. local s = math.sqrt(m11 - m22 - m00 + 1)
  744. local recip = 0.5 / s
  745. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  746. elseif i == 2 then
  747. local s = math.sqrt(m22 - m00 - m11 + 1)
  748. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  749. end
  750. end
  751. end
  752.  
  753. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  754. local xs, ys, zs = x + x, y + y, z + z
  755. local wx, wy, wz = w * xs, w * ys, w * zs
  756. local xx = x * xs
  757. local xy = x * ys
  758. local xz = x * zs
  759. local yy = y * ys
  760. local yz = y * zs
  761. local zz = z * zs
  762. 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))
  763. end
  764.  
  765. function QuaternionSlerp(a, b, t)
  766. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  767. local startInterp, finishInterp;
  768. if cosTheta >= 0.0001 then
  769. if (1 - cosTheta) > 0.0001 then
  770. local theta = ACOS(cosTheta)
  771. local invSinTheta = 1 / SIN(theta)
  772. startInterp = SIN((1 - t) * theta) * invSinTheta
  773. finishInterp = SIN(t * theta) * invSinTheta
  774. else
  775. startInterp = 1 - t
  776. finishInterp = t
  777. end
  778. else
  779. if (1 + cosTheta) > 0.0001 then
  780. local theta = ACOS(-cosTheta)
  781. local invSinTheta = 1 / SIN(theta)
  782. startInterp = SIN((t - 1) * theta) * invSinTheta
  783. finishInterp = SIN(t * theta) * invSinTheta
  784. else
  785. startInterp = t - 1
  786. finishInterp = t
  787. end
  788. end
  789. 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
  790. end
  791.  
  792. function Clerp(a, b, t)
  793. local qa = {QuaternionFromCFrame(a)}
  794. local qb = {QuaternionFromCFrame(b)}
  795. local ax, ay, az = a.x, a.y, a.z
  796. local bx, by, bz = b.x, b.y, b.z
  797. local _t = 1 - t
  798. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  799. end
  800.  
  801. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  802. local frame = IT("Frame")
  803. frame.BackgroundTransparency = TRANSPARENCY
  804. frame.BorderSizePixel = BORDERSIZEPIXEL
  805. frame.Position = POSITION
  806. frame.Size = SIZE
  807. frame.BackgroundColor3 = COLOR
  808. frame.BorderColor3 = BORDERCOLOR
  809. frame.Name = NAME
  810. frame.Parent = PARENT
  811. return frame
  812. end
  813.  
  814. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  815. local label = IT("TextLabel")
  816. label.BackgroundTransparency = 1
  817. label.Size = UD2(1, 0, 1, 0)
  818. label.Position = UD2(0, 0, 0, 0)
  819. label.TextColor3 = TEXTCOLOR
  820. label.TextStrokeTransparency = STROKETRANSPARENCY
  821. label.TextTransparency = TRANSPARENCY
  822. label.FontSize = TEXTFONTSIZE
  823. label.Font = TEXTFONT
  824. label.BorderSizePixel = BORDERSIZEPIXEL
  825. label.TextScaled = false
  826. label.Text = TEXT
  827. label.Name = NAME
  828. label.Parent = PARENT
  829. return label
  830. end
  831.  
  832. function NoOutlines(PART)
  833. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  834. end
  835.  
  836. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  837. local NEWWELD = IT(TYPE)
  838. NEWWELD.Part0 = PART0
  839. NEWWELD.Part1 = PART1
  840. NEWWELD.C0 = C0
  841. NEWWELD.C1 = C1
  842. NEWWELD.Parent = PARENT
  843. return NEWWELD
  844. end
  845.  
  846. local S = IT("Sound")
  847. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  848. local NEWSOUND = nil
  849. coroutine.resume(coroutine.create(function()
  850. NEWSOUND = S:Clone()
  851. NEWSOUND.Parent = PARENT
  852. NEWSOUND.Volume = VOLUME
  853. NEWSOUND.Pitch = PITCH
  854. NEWSOUND.SoundId = "rbxassetid://"..ID
  855. NEWSOUND:play()
  856. if DOESLOOP == true then
  857. NEWSOUND.Looped = true
  858. else
  859. repeat wait(1) until NEWSOUND.Playing == false
  860. NEWSOUND:remove()
  861. end
  862. end))
  863. return NEWSOUND
  864. end
  865.  
  866. function CFrameFromTopBack(at, top, back)
  867. local right = top:Cross(back)
  868. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  869. end
  870.  
  871. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
  872. function WACKYEFFECT(Table)
  873. local TYPE = (Table.EffectType or "Sphere")
  874. local SIZE = (Table.Size or VT(1,1,1))
  875. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  876. local TRANSPARENCY = (Table.Transparency or 0)
  877. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  878. local CFRAME = (Table.CFrame or Torso.CFrame)
  879. local MOVEDIRECTION = (Table.MoveToPos or nil)
  880. local ROTATION1 = (Table.RotationX or 0)
  881. local ROTATION2 = (Table.RotationY or 0)
  882. local ROTATION3 = (Table.RotationZ or 0)
  883. local MATERIAL = (Table.Material or "Neon")
  884. local COLOR = (Table.Color or C3(1,1,1))
  885. local TIME = (Table.Time or 45)
  886. local SOUNDID = (Table.SoundID or nil)
  887. local SOUNDPITCH = (Table.SoundPitch or nil)
  888. local SOUNDVOLUME = (Table.SoundVolume or nil)
  889. local USEBOOMERANGMATH = (Table.UseBoomerangMath or false)
  890. local BOOMERANG = (Table.Boomerang or 0)
  891. local SIZEBOOMERANG = (Table.SizeBoomerang or 0)
  892. coroutine.resume(coroutine.create(function()
  893. local PLAYSSOUND = false
  894. local SOUND = nil
  895. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  896. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  897. PLAYSSOUND = true
  898. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  899. end
  900. EFFECT.Color = COLOR
  901. local MSH = nil
  902. if TYPE == "Sphere" then
  903. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  904. elseif TYPE == "Block" or TYPE == "Box" then
  905. MSH = IT("BlockMesh",EFFECT)
  906. MSH.Scale = SIZE
  907. elseif TYPE == "Wave" then
  908. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  909. elseif TYPE == "Ring" then
  910. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  911. elseif TYPE == "Slash" then
  912. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  913. elseif TYPE == "Round Slash" then
  914. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  915. elseif TYPE == "Swirl" then
  916. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "168892432", "", SIZE, VT(0,0,0))
  917. elseif TYPE == "Skull" then
  918. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  919. elseif TYPE == "Crystal" then
  920. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  921. end
  922. if MSH ~= nil then
  923. local BOOMR1 = 1+BOOMERANG/50
  924. local BOOMR2 = 1+SIZEBOOMERANG/50
  925. local MOVESPEED = nil
  926. if MOVEDIRECTION ~= nil then
  927. if USEBOOMERANGMATH == true then
  928. MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)*BOOMR1
  929. else
  930. MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)
  931. end
  932. end
  933. local GROWTH = nil
  934. if USEBOOMERANGMATH == true then
  935. GROWTH = (SIZE - ENDSIZE)*(BOOMR2+1)
  936. else
  937. GROWTH = (SIZE - ENDSIZE)
  938. end
  939. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  940. if TYPE == "Block" then
  941. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  942. else
  943. EFFECT.CFrame = CFRAME
  944. end
  945. if USEBOOMERANGMATH == true then
  946. for LOOP = 1, TIME+1 do
  947. Swait()
  948. MSH.Scale = MSH.Scale - (VT((GROWTH.X)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Y)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Z)*((1 - (LOOP/TIME)*BOOMR2)))*BOOMR2)/TIME
  949. if TYPE == "Wave" then
  950. MSH.Offset = VT(0,0,-MSH.Scale.Z/8)
  951. end
  952. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  953. if TYPE == "Block" then
  954. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  955. else
  956. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  957. end
  958. if MOVEDIRECTION ~= nil then
  959. local ORI = EFFECT.Orientation
  960. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-(MOVESPEED)*((1 - (LOOP/TIME)*BOOMR1)))
  961. EFFECT.CFrame = CF(EFFECT.Position)*ANGLES(RAD(ORI.X),RAD(ORI.Y),RAD(ORI.Z))
  962. end
  963. end
  964. else
  965. for LOOP = 1, TIME+1 do
  966. Swait()
  967. MSH.Scale = MSH.Scale - GROWTH/TIME
  968. if TYPE == "Wave" then
  969. MSH.Offset = VT(0,0,-MSH.Scale.Z/8)
  970. end
  971. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  972. if TYPE == "Block" then
  973. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  974. else
  975. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  976. end
  977. if MOVEDIRECTION ~= nil then
  978. local ORI = EFFECT.Orientation
  979. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  980. EFFECT.CFrame = CF(EFFECT.Position)*ANGLES(RAD(ORI.X),RAD(ORI.Y),RAD(ORI.Z))
  981. end
  982. end
  983. end
  984. EFFECT.Transparency = 1
  985. if PLAYSSOUND == false then
  986. EFFECT:remove()
  987. else
  988. repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  989. EFFECT:remove()
  990. end
  991. else
  992. if PLAYSSOUND == false then
  993. EFFECT:remove()
  994. else
  995. repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  996. EFFECT:remove()
  997. end
  998. end
  999. end))
  1000. end
  1001.  
  1002. function MakeForm(PART,TYPE)
  1003. if TYPE == "Cyl" then
  1004. local MSH = IT("CylinderMesh",PART)
  1005. elseif TYPE == "Ball" then
  1006. local MSH = IT("SpecialMesh",PART)
  1007. MSH.MeshType = "Sphere"
  1008. elseif TYPE == "Wedge" then
  1009. local MSH = IT("SpecialMesh",PART)
  1010. MSH.MeshType = "Wedge"
  1011. end
  1012. end
  1013.  
  1014. Debris = game:GetService("Debris")
  1015.  
  1016. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  1017. local DIRECTION = CF(StartPos,EndPos).lookVector
  1018. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  1019. return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, DIRECTION * Distance), Ignore)
  1020. end
  1021.  
  1022. --Debree({Delay = 1.5,Variant = "",Location = Torso.Position,Color = C3(1,1,1),Size = 1,Distance = 1,Material = "Slate",Scatter = 1,Amount = 1,DebreeCount = 1})
  1023. function Debree(Table)
  1024. local KindOf = (Table.Variant or "Ring")
  1025. local Position = (Table.Location or Torso.Position)
  1026. local Coloration = (Table.Color or C3(1,1,1))
  1027. local Texture = (Table.Material or "Slate")
  1028. local Fling = (Table.Scatter or 1)
  1029. local Number = (Table.Amount or 1)
  1030. local Rocks = (Table.DebreeCount or 1)
  1031. local Range = (Table.Distance or 1)
  1032. local Scale = (Table.Size or 1)
  1033. local Timer = (Table.Delay or 1.5)
  1034. coroutine.resume(coroutine.create(function()
  1035. local ScaleVector = VT(Scale,Scale,Scale)
  1036. local Boulders = {}
  1037. Position = CF(Position)
  1038. if KindOf == "Ring" or KindOf == "Both" then
  1039. for RockValue = 1, Number do
  1040. local LOCATION = Position * ANGLES(RAD(0), RAD((360/Number)*RockValue), RAD(0))*CF(0,MRANDOM(-math.ceil(Scale/4),math.ceil(Scale/4)),Range)
  1041. local BOULDER = CreatePart(3, workspace, Texture, 0, 0, BRICKC("Pearl"), "Debree", ScaleVector, true)
  1042. BOULDER.CanCollide = true
  1043. BOULDER.CFrame = LOCATION*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1044. BOULDER.Color = Coloration
  1045. table.insert(Boulders,BOULDER)
  1046. end
  1047. end
  1048. if KindOf == "Loose" or KindOf == "Both" then
  1049. for RockValue = 1, Rocks do
  1050. local LOCATION = Position * ANGLES(RAD(0), RAD((360/Number)*RockValue), RAD(0))*CF(0,MRANDOM(-math.ceil(Scale-(Scale/2)),math.ceil(Scale-(Scale/2))),0.7)
  1051. local BOULDER = CreatePart(3, workspace, Texture, 0, 0, BRICKC("Pearl"), "Debree", ScaleVector, false)
  1052. BOULDER.CanCollide = true
  1053. BOULDER.CFrame = LOCATION*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1054. BOULDER.Velocity = CF(BOULDER.Position-VT(0,4,0),BOULDER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,5,0).p).lookVector*MRANDOM(Fling-(Fling/1.5),Fling+(Fling/1.5))
  1055. BOULDER.Color = Coloration
  1056. table.insert(Boulders,BOULDER)
  1057. end
  1058. end
  1059. if KindOf == "Random" then
  1060. for RockValue = 1, Number do
  1061. local LOCATION = Position * ANGLES(RAD(0), RAD((360/Number)*RockValue), RAD(0))*CF(0,MRANDOM(-math.ceil(Scale/4),math.ceil(Scale/4)),MRANDOM(0,Range))
  1062. local BOULDER = CreatePart(3, workspace, Texture, 0, 0, BRICKC("Pearl"), "Debree", ScaleVector, true)
  1063. BOULDER.CanCollide = true
  1064. BOULDER.CFrame = LOCATION*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1065. BOULDER.Color = Coloration
  1066. table.insert(Boulders,BOULDER)
  1067. end
  1068. end
  1069. wait(Timer)
  1070. for E = 1, 45 do
  1071. Swait()
  1072. for A = 1, #Boulders do
  1073. Boulders[A].Transparency = Boulders[A].Transparency + 1/45
  1074. end
  1075. end
  1076. for A = 1, #Boulders do
  1077. Boulders[A]:Destroy()
  1078. end
  1079. end))
  1080. end
  1081.  
  1082. --//=================================\\
  1083. --|| MUSIC AND COLORS
  1084. --\\=================================//
  1085.  
  1086. local BASECOLOR = C3(0,0,0)
  1087. local BMUSIC = IT("Sound",RootPart)
  1088. local VOLUME = 1
  1089. local PITCH = 1
  1090. local SONGID = 1442022177
  1091. local PLAYING = false
  1092. local INTRO = false
  1093. local SCREENS = {}
  1094. local SCREENWELDS = {}
  1095. local GUISTEXT = {}
  1096.  
  1097. --//=================================\\
  1098. --|| DAMAGING
  1099. --\\=================================//
  1100.  
  1101. function ApplyDamage(Humanoid,Damage)
  1102. end
  1103.  
  1104. function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  1105. end
  1106.  
  1107. --//=================================\\
  1108. --|| ATTACK FUNCTIONS AND STUFF
  1109. --\\=================================//
  1110.  
  1111. local GLASSESWLD = nil
  1112. function IntroThing()
  1113. ATTACK = true
  1114. Rooted = true
  1115. RootJoint.C0 = CF(0,250,0)
  1116. CONNECT = Mouse.KeyDown:connect(function(NEWKEY)
  1117. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1118. if HITFLOOR then
  1119. CONNECT:Disconnect()
  1120. local SOUND = CreateSound(606241996, Effects, 5, 1)
  1121. coroutine.resume(coroutine.create(function()
  1122. repeat Swait() SOUND.Parent = Effects until SOUND.Playing == false
  1123. PLAYING = true
  1124. end))
  1125. for i=0, 0.4, 0.1 / Animation_Speed do
  1126. Swait()
  1127. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.31, -0.65 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(60), RAD(0), RAD(0)), 1 / Animation_Speed)
  1128. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1129. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -1.4) * ANGLES(RAD(65), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1130. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(5), RAD(-35)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1131. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 - 0.05 * COS(SINE / 12), -0.4) * ANGLES(RAD(20), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1132. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.1 - 0.05 * COS(SINE / 12), -0.4) * ANGLES(RAD(60), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1133. end
  1134. for i = 1, 3 do
  1135. WACKYEFFECT({EffectType = "Wave", Size = VT(0,5,0), Size2 = VT(i*12,5,i*12), Transparency = 0.6, Transparency2 = 1, CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(MRANDOM(-5,5))), MoveToPos = nil, RotationX = 0.1, RotationY = 1, RotationZ = -0.1, Material = "Neon", Color = C3(1,1,1), SoundID = 765590102, SoundPitch = MRANDOM(5,15)/10, SoundVolume = 5, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
  1136. end
  1137. Debree({Delay = 4,Variant = "Ring",Location = HITPOS,Color = HITFLOOR.Color,Size = 3,Distance = 15,Material = HITFLOOR.Material,Scatter = 1,Amount = 30,DebreeCount = 8})
  1138. for i=0, 0.85, 0.1 / Animation_Speed do
  1139. Swait()
  1140. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.31, -0.65 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(60), RAD(0), RAD(0)), 1 / Animation_Speed)
  1141. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1142. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -1.4) * ANGLES(RAD(65), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1143. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(5), RAD(-35)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1144. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 - 0.05 * COS(SINE / 12), -0.4) * ANGLES(RAD(20), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1145. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.1 - 0.05 * COS(SINE / 12), -0.4) * ANGLES(RAD(60), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1146. end
  1147. for i=0, 1, 0.1 / Animation_Speed do
  1148. Swait()
  1149. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.31, -0.65 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(60), RAD(0), RAD(0)), 1 / Animation_Speed)
  1150. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-50 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1151. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -1.4) * ANGLES(RAD(65), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1152. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(5), RAD(-35)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1153. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 - 0.05 * COS(SINE / 12), -0.4) * ANGLES(RAD(20), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1154. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.1 - 0.05 * COS(SINE / 12), -0.4) * ANGLES(RAD(60), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1155. end
  1156. for i=0, 1, 0.1 / Animation_Speed do
  1157. Swait()
  1158. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1159. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(45), RAD(0), RAD(-45)), 1 / Animation_Speed)
  1160. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, 0.7) * ANGLES(RAD(-45), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1161. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(5), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1162. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1163. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1164. end
  1165. local GLASSES = CreatePart(3, Character, "Fabric", 0, 0, BRICKC("Pearl"), "Glasses", VT(0,0,0), false)
  1166. CreateMesh("SpecialMesh", GLASSES, "FileMesh", "1577360", "1577349", VT(1, 1.3, 1), VT(0,0,0))
  1167. local HELDWELD = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, GLASSES, CF(0,-1.4,0) * ANGLES(RAD(90), RAD(0), RAD(180)), CF(0,0,0))
  1168. CreateSound(147722227, GLASSES, 2, 1.3, false)
  1169. for i=0, 0.25, 0.1 / Animation_Speed do
  1170. Swait()
  1171. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1172. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(45), RAD(0), RAD(-35)), 1 / Animation_Speed)
  1173. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45, -0.1) * ANGLES(RAD(30), RAD(-5), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1174. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(5), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1175. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1176. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1177. end
  1178. for i=0, 0.3, 0.1 / Animation_Speed do
  1179. Swait()
  1180. HELDWELD.C1 = Clerp(HELDWELD.C1, CF(0,0,0) * ANGLES(RAD(0),RAD(0),RAD(-35)), 0.1)
  1181. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1182. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1183. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.2, -0.8) * ANGLES(RAD(160), RAD(-5), RAD(-46)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1184. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.15, -0.3) * ANGLES(RAD(160), RAD(5), RAD(12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1185. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1186. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1187. end
  1188. HELDWELD.Part0 = Head
  1189. HELDWELD.Parent = Head
  1190. HELDWELD.C0 = CF(0,0.1,-0.15)
  1191. HELDWELD.C1 = CF(0,0,0)
  1192. for i = 1, 3 do
  1193. for i=0, 0.4, 0.1 / Animation_Speed do
  1194. Swait()
  1195. HELDWELD.C1 = Clerp(HELDWELD.C1, CF(0,0,0) * ANGLES(RAD(0),RAD(0),RAD(-5)), 0.25)
  1196. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1197. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1198. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.2, -0.3) * ANGLES(RAD(160), RAD(-5), RAD(-12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1199. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.1, -0.3) * ANGLES(RAD(160), RAD(5), RAD(12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1200. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1201. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1202. end
  1203. for i=0, 0.4, 0.1 / Animation_Speed do
  1204. Swait()
  1205. HELDWELD.C1 = Clerp(HELDWELD.C1, CF(0,0,0) * ANGLES(RAD(0),RAD(0),RAD(5)), 0.25)
  1206. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1207. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1208. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.1, -0.3) * ANGLES(RAD(160), RAD(-5), RAD(-12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1209. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.2, -0.3) * ANGLES(RAD(160), RAD(5), RAD(12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1210. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1211. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1212. end
  1213. end
  1214. for i = 1, 4 do
  1215. Swait()
  1216. local SCREEN = CreatePart(3, Effects, "Neon", 0, 1, BRICKC("Cyan"), "SCREEN", VT(2.5,0.8,0)*2, false)
  1217. local SCREENWELD = CreateWeldOrSnapOrMotor("Weld", RootPart, RootPart, SCREEN, CF(0,0,0) * ANGLES(RAD(0),RAD((360/6)*i),RAD(0)) * CF(0,0,3+(i/1.5)), CF(0,0,0))
  1218. table.insert(SCREENS,SCREEN)
  1219. table.insert(SCREENWELDS,SCREENWELD)
  1220. local GUI = IT("SurfaceGui",SCREEN)
  1221. for i = 1, 5 do
  1222. local SCREENFRAME = CreateFrame(GUI, 1, 2, UD2(0, 0, ((1/5)*i)-1/5, 0), UD2(1, 0, 1/5, 0), C3(0,0,0), C3(0,0,0), "TESTING.exe")
  1223. local TEXT = CreateLabel(SCREENFRAME, "[BOOTING UP...]", C3(1,1,1), Enum.FontSize.Size48, "Code", 0.5, 1, 1, "RunningTests")
  1224. TEXT.TextXAlignment = "Left"
  1225. TEXT.TextWrapped = true
  1226. table.insert(GUISTEXT,TEXT)
  1227. end
  1228. end
  1229. for i=0, 1, 0.1 / Animation_Speed do
  1230. Swait()
  1231. HELDWELD.C1 = Clerp(HELDWELD.C1, CF(0,0,0) * ANGLES(RAD(0),RAD(0),RAD(0)), 0.4)
  1232. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1233. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1234. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.15, -0.25) * ANGLES(RAD(160), RAD(-5), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1235. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35, 0.15, -0.25) * ANGLES(RAD(160), RAD(5), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1236. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1237. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1238. end
  1239. for i=0, 0.1, 0.1 / Animation_Speed do
  1240. Swait()
  1241. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1242. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1243. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-5), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1244. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(5), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1245. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1246. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1247. end
  1248. GLASSESWLD = HELDWELD
  1249. ATTACK = false
  1250. Rooted = false
  1251. end
  1252. end)
  1253. end
  1254. function Screening(Text,FinishesMoveEnd,WaitTillFinished)
  1255. local SCREEN = CreatePart(3, Effects, "Neon", 0, 1, BRICKC("Cyan"), "SCREEN", VT(2.5,0.8,0)*1.5, false)
  1256. local SCREENWELD = CreateWeldOrSnapOrMotor("Weld", RootPart, RootPart, SCREEN, CF(0,0,0) * ANGLES(RAD(-12),RAD(180),RAD(0)) * CF(0,0,1.5), CF(0,0,0))
  1257. local GUI = IT("SurfaceGui",SCREEN)
  1258. local SCREENFRAME = CreateFrame(GUI, 1, 2, UD2(0, 0, 0, 0), UD2(1, 0, 1, 0), C3(0,0,0), C3(0,0,0), "TESTING.exe")
  1259. local TEXT = CreateLabel(SCREENFRAME, Text, C3(1,1,1), Enum.FontSize.Size48, "Code", 0.5, 1, 1, "RunningTests")
  1260. TEXT.TextScaled = true
  1261. coroutine.resume(coroutine.create(function()
  1262. coroutine.resume(coroutine.create(function()
  1263. for i = 1, 5 do
  1264. Swait()
  1265. SCREEN.Transparency = SCREEN.Transparency - 0.1/5
  1266. end
  1267. end))
  1268. if WaitTillFinished == false then
  1269. for i=0, 1.7, 0.1 / Animation_Speed do
  1270. Swait()
  1271. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * COS(SINE / 24), 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0 - 2.5 * COS(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  1272. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 7 * COS(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1273. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.3, 0.45 + 0.1 * COS(SINE / 12), -0.2) * ANGLES(RAD(45), RAD(0), RAD(-15)) * ANGLES(RAD(0), RAD(15), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1274. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.35 + 0.1 * COS(SINE / 12), 0.2) * ANGLES(RAD(-44 - 1.5 * COS(SINE / 12)), RAD(0), RAD(45)) * ANGLES(RAD(0), RAD(-25), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1275. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.035 * COS(SINE / 24) - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-2 - 2.5 * COS(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1276. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.035 * COS(SINE / 24) - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-2 + 2.5 * COS(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1277. end
  1278. elseif WaitTillFinished == true then
  1279. repeat
  1280. Swait()
  1281. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * COS(SINE / 24), 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0 - 2.5 * COS(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  1282. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 7 * COS(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1283. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.3, 0.45 + 0.1 * COS(SINE / 12), -0.2) * ANGLES(RAD(45), RAD(0), RAD(-15)) * ANGLES(RAD(0), RAD(15), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1284. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.35 + 0.1 * COS(SINE / 12), 0.2) * ANGLES(RAD(-44 - 1.5 * COS(SINE / 12)), RAD(0), RAD(45)) * ANGLES(RAD(0), RAD(-25), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1285. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.035 * COS(SINE / 24) - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-2 - 2.5 * COS(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1286. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.035 * COS(SINE / 24) - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-2 + 2.5 * COS(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1287. until ATTACK == false
  1288. end
  1289. coroutine.resume(coroutine.create(function()
  1290. SCREENWELD:Remove()
  1291. SCREEN.Anchored = true
  1292. for i = 1, 5 do
  1293. Swait()
  1294. SCREEN.Transparency = SCREEN.Transparency + 0.1/5
  1295. end
  1296. SCREEN:Remove()
  1297. end))
  1298. if FinishesMoveEnd == true then
  1299. ATTACK = false
  1300. Rooted = false
  1301. end
  1302. end))
  1303. return SCREEN,TEXT
  1304. end
  1305. local Fling = function()
  1306. ATTACK = true
  1307. Rooted = false
  1308. Screening(";Fling",true,false)
  1309. wait(0.25)
  1310. RightShoulder.C0 = RightShoulder.C0 * CF(0,-0.12,0)
  1311. CreateSound(138204323, RightArm, 2, 1.3, false)
  1312. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1313. if HITFLOOR then
  1314. Debree({Delay = 4,Variant = "Ring",Location = HITPOS,Color = HITFLOOR.Color,Size = 4,Distance = 75,Material = HITFLOOR.Material,Scatter = 1,Amount = MRANDOM(75,85),DebreeCount = 8})
  1315. end
  1316. ApplyAoE(RootPart.Position-VT(0,4,0),75,5,12,550,false)
  1317. WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(150,150,150), Transparency = 0.75, Transparency2 = 1, CFrame = CF(RootPart.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 610359590, SoundPitch = 1, SoundVolume = 6, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 5})
  1318. end
  1319. local TpTo = function()
  1320. ATTACK = true
  1321. Rooted = true
  1322. local SCR, TEXT = Screening("",false,true)
  1323. for i = 1, 35 do
  1324. Swait()
  1325. local TPSPOT = "TPTO: ["..math.ceil(Mouse.Hit.p.X).."."..math.ceil(Mouse.Hit.p.Y+3.15).."."..math.ceil(Mouse.Hit.p.Z).."]"
  1326. TEXT.Text = TPSPOT
  1327. end
  1328. RightShoulder.C0 = RightShoulder.C0 * CF(0,-0.12,0)
  1329. CreateSound(138204323, RightArm, 2, 1.3, false)
  1330. CreateSound(1127492102, Torso, 2, 1, false)
  1331. RootPart.CFrame = CF(Mouse.Hit.p+VT(0,3.15,0)) * ANGLES(RAD(0), RAD(RootPart.Orientation.Y), RAD(0))
  1332. wait(0.1)
  1333. ATTACK = false
  1334. Rooted = false
  1335. end
  1336. local Hurl = function()
  1337. ATTACK = true
  1338. Rooted = false
  1339. local SCREEN = CreatePart(3, Effects, "Neon", 0, 1, BRICKC("Cyan"), "SCREEN", VT(2.5,0.8,0)*1.5, false)
  1340. local SCREENWELD = CreateWeldOrSnapOrMotor("Weld", RootPart, RootPart, SCREEN, CF(0,0,0) * ANGLES(RAD(-12),RAD(180),RAD(0)) * CF(0,0,1.5), CF(0,0,0))
  1341. local GUI = IT("SurfaceGui",SCREEN)
  1342. local SCREENFRAME = CreateFrame(GUI, 1, 2, UD2(0, 0, 0, 0), UD2(1, 0, 1, 0), C3(0,0,0), C3(0,0,0), "TESTING.exe")
  1343. local TEXT = CreateLabel(SCREENFRAME, "[COLLECTING DEBREE]", C3(1,1,1), Enum.FontSize.Size48, "Code", 0.5, 1, 1, "RunningTests")
  1344. local ROCKS = {}
  1345. coroutine.resume(coroutine.create(function()
  1346. for i = 1, 5 do
  1347. Swait()
  1348. SCREEN.Transparency = SCREEN.Transparency - 0.1/5
  1349. end
  1350. end))
  1351. for i = 1, 12 do
  1352. local SPOT = CF(RootPart.Position) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)) * CF(0,0,MRANDOM(4,15))
  1353. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1354. if HITFLOOR then
  1355. coroutine.resume(coroutine.create(function()
  1356. local BOULDER = CreatePart(3, Effects, HITFLOOR.Material, 0, 0, BRICKC("Cyan"), "Debree", VT(1,1,1)*(MRANDOM(5,25)/10), true)
  1357. BOULDER.Color = HITFLOOR.Color
  1358. BOULDER.CFrame = CF(HITPOS-VT(0,5,0)) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))
  1359. local CFRAME = SPOT*CF(0,MRANDOM(7,12),0)
  1360. table.insert(ROCKS,BOULDER)
  1361. for i = 1, 35 do
  1362. Swait()
  1363. BOULDER.CFrame = Clerp(BOULDER.CFrame,CFRAME,0.1)
  1364. end
  1365. end))
  1366. end
  1367. end
  1368. for i=0, 1.7, 0.1 / Animation_Speed do
  1369. Swait()
  1370. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * COS(SINE / 24), 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0 - 2.5 * COS(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  1371. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 7 * COS(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1372. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.3, 0.75 + 0.1 * COS(SINE / 12), -0.1) * ANGLES(RAD(145), RAD(0), RAD(-15)) * ANGLES(RAD(0), RAD(15), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1373. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.35 + 0.1 * COS(SINE / 12), 0.2) * ANGLES(RAD(-44 - 1.5 * COS(SINE / 12)), RAD(0), RAD(45)) * ANGLES(RAD(0), RAD(-25), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1374. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.035 * COS(SINE / 24) - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-2 - 2.5 * COS(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1375. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.035 * COS(SINE / 24) - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-2 + 2.5 * COS(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1376. end
  1377. if #ROCKS > 0 then
  1378. TEXT.Text = "[HURLING DEBREE]"
  1379. local GYRO = IT("BodyGyro",RootPart)
  1380. GYRO.D = 2
  1381. GYRO.P = 20000
  1382. GYRO.MaxTorque = VT(0,4000000,0)
  1383. GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p)
  1384. coroutine.resume(coroutine.create(function()
  1385. repeat
  1386. Swait()
  1387. GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p)
  1388. until ATTACK == false
  1389. GYRO:Remove()
  1390. end))
  1391. local THROWING = true
  1392. coroutine.resume(coroutine.create(function()
  1393. repeat
  1394. Swait()
  1395. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * COS(SINE / 24), 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0 - 2.5 * COS(SINE / 24)), RAD(25)), 1 / Animation_Speed)
  1396. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 7 * COS(SINE / 12)), RAD(0), RAD(-25)), 1 / Animation_Speed)
  1397. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.3, 0.45 + 0.1 * COS(SINE / 12), -0.2) * ANGLES(RAD(90), RAD(0), RAD(25)) * ANGLES(RAD(0), RAD(15), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1398. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.3, 0.45 + 0.1 * COS(SINE / 12), -0.2) * ANGLES(RAD(44 - 1.5 * COS(SINE / 12)), RAD(0), RAD(25)) * ANGLES(RAD(0), RAD(-25), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1399. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.035 * COS(SINE / 24) - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(50), RAD(0)) * ANGLES(RAD(-2 - 2.5 * COS(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1400. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.035 * COS(SINE / 24) - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-100), RAD(0)) * ANGLES(RAD(-2 + 2.5 * COS(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1401. until THROWING == false
  1402. end))
  1403. for E = 1, #ROCKS do
  1404. wait(0.05)
  1405. local ROCK = ROCKS[E]
  1406. coroutine.resume(coroutine.create(function()
  1407. ROCK.CFrame = CF(ROCK.Position,Mouse.Hit.p)
  1408. CreateSound(147722227, ROCK, 2, 1.3, false)
  1409. local KILL = false
  1410. for i = 1, 70 do
  1411. Swait()
  1412. for i = 1, 4 do
  1413. ROCK.CFrame = ROCK.CFrame * CF(0,0,-ROCK.Size.Z/2)
  1414. local HIT,POS,NORMAL = Raycast(ROCK.Position,ROCK.CFrame.lookVector,ROCK.Size.Z/1.5,Character)
  1415. if HIT then
  1416. KILL = true
  1417. CreateSound(174580476, ROCK, 2, 1.6, false)
  1418. ApplyAoE(ROCK.Position,6*ROCK.Size.Z,25,35,12,false)
  1419. for E = 1, 2 do
  1420. for i = 1, 4 do
  1421. WACKYEFFECT({Time = 50, EffectType = "Round Slash", Size = VT(0,0,0), Size2 = (VT(E,0,E)/15)*ROCK.Size.Z, Transparency = 0.8, Transparency2 = 1, CFrame = CF(ROCK.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 10})
  1422. end
  1423. end
  1424. Debree({Delay = 0.8,Variant = "Loose",Location = ROCK.Position,Color = ROCK.Color,Size = ROCK.Size.Z/3,Distance = 75,Material = ROCK.Material,Scatter = 35,Amount = MRANDOM(75,85),DebreeCount = 8})
  1425. break
  1426. else
  1427. WACKYEFFECT({Time = 6, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(3,1,3)*ROCK.Size.Z, Transparency = 0.97, Transparency2 = 1, CFrame = ROCK.CFrame*CF(0,0,-ROCK.Size.Z/2) * ANGLES(RAD(90), RAD(MRANDOM(0,360)), RAD(MRANDOM(-5,5))), MoveToPos = nil, RotationX = MRANDOM(-1,1), RotationY = MRANDOM(-1,1), RotationZ = MRANDOM(-1,1), Material = "Neon", Color = BRICKC"Cyan".Color, SoundID = nil, SoundPitch = MRANDOM(5,15)/10, SoundVolume = 5, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 25})
  1428. end
  1429. end
  1430. if KILL == true then
  1431. break
  1432. end
  1433. end
  1434. ROCK.Transparency = 1
  1435. Debris:AddItem(ROCK,5)
  1436. end))
  1437. wait(0.05)
  1438. end
  1439. THROWING = false
  1440. end
  1441. coroutine.resume(coroutine.create(function()
  1442. SCREENWELD:Remove()
  1443. SCREEN.Anchored = true
  1444. for i = 1, 5 do
  1445. Swait()
  1446. SCREEN.Transparency = SCREEN.Transparency + 0.1/5
  1447. end
  1448. SCREEN:Remove()
  1449. end))
  1450. ATTACK = false
  1451. Rooted = false
  1452. end
  1453. local Kill = function()
  1454. local TARGET = Mouse.Target
  1455. if TARGET ~= nil then
  1456. if TARGET.Parent:FindFirstChildOfClass("Humanoid") then
  1457. local HUM = TARGET.Parent:FindFirstChildOfClass("Humanoid")
  1458. local ROOT = HUM.Parent:FindFirstChild("HumanoidRootPart") or HUM.Parent:FindFirstChild("Torso")
  1459. if ROOT and HUM.Health > 0 then
  1460. local FOE = ROOT.Parent
  1461. ATTACK = true
  1462. Rooted = false
  1463. Screening(";Kill",true,false)
  1464. wait(0.25)
  1465. RightShoulder.C0 = RightShoulder.C0 * CF(0,-0.12,0)
  1466. CreateSound(138204323, RightArm, 2, 1.3, false)
  1467. for index, CHILD in pairs(FOE:GetChildren()) do
  1468. if CHILD:IsA("BasePart") then
  1469. if CHILD.Name == "Head" then
  1470. WACKYEFFECT({Time = MRANDOM(10,30), EffectType = "Box", Size = VT(CHILD.Size.Z,CHILD.Size.Y,CHILD.Size.Z), Size2 = VT(CHILD.Size.Z,CHILD.Size.Y,CHILD.Size.Z)*2, Transparency = CHILD.Transparency, Transparency2 = 1, CFrame = CHILD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, SizeBoomerang = 0, Boomerang = 50})
  1471. elseif CHILD.Name ~= "HumanoidRootPart" then
  1472. WACKYEFFECT({Time = MRANDOM(10,30), EffectType = "Box", Size = CHILD.Size, Size2 = CHILD.Size*2, Transparency = CHILD.Transparency, Transparency2 = 1, CFrame = CHILD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, SizeBoomerang = 0, Boomerang = 35})
  1473. end
  1474. end
  1475. end
  1476. end
  1477. end
  1478. end
  1479. end
  1480. local ATTAC = function()
  1481. ATTACK = true
  1482. Rooted = false
  1483. for i=0, 1, 0.1 / Animation_Speed do
  1484. Swait()
  1485. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1486. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1487. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-5), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1488. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(5), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1489. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1490. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1491. end
  1492. ATTACK = false
  1493. Rooted = false
  1494. end
  1495. local LITTLEIDLE = false
  1496. function UniqueIdleAnimation()
  1497. coroutine.resume(coroutine.create(function()
  1498. for i=0, 0.1, 0.1 / Animation_Speed do
  1499. Swait()
  1500. if ATTACK == true or ANIM ~= "Idle" then
  1501. break
  1502. end
  1503. GLASSESWLD.C1 = Clerp(GLASSESWLD.C1, CF(0,0,0) * ANGLES(RAD(0),RAD(0),RAD(0)), 0.25)
  1504. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * COS(SINE / 24), 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0 - 2.5 * COS(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  1505. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1506. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.35 + 0.1 * COS(SINE / 12), 0.2) * ANGLES(RAD(-45 - 1.5 * COS(SINE / 12)), RAD(0), RAD(-45)) * ANGLES(RAD(0), RAD(25), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1507. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.1, -0.3) * ANGLES(RAD(80), RAD(5), RAD(12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1508. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.035 * COS(SINE / 24) - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-2 - 2.5 * COS(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1509. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.035 * COS(SINE / 24) - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-2 + 2.5 * COS(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1510. end
  1511. for i=0, 0.4, 0.1 / Animation_Speed do
  1512. Swait()
  1513. if ATTACK == true or ANIM ~= "Idle" then
  1514. break
  1515. end
  1516. GLASSESWLD.C1 = Clerp(GLASSESWLD.C1, CF(0,0,0) * ANGLES(RAD(0),RAD(0),RAD(0)), 0.25)
  1517. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * COS(SINE / 24), 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0 - 2.5 * COS(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  1518. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1519. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.35 + 0.1 * COS(SINE / 12), 0.2) * ANGLES(RAD(-45 - 1.5 * COS(SINE / 12)), RAD(0), RAD(-45)) * ANGLES(RAD(0), RAD(25), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1520. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.1, -0.3) * ANGLES(RAD(160), RAD(5), RAD(12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1521. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.035 * COS(SINE / 24) - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-2 - 2.5 * COS(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1522. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.035 * COS(SINE / 24) - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-2 + 2.5 * COS(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1523. end
  1524. for i=0, 1.3, 0.1 / Animation_Speed do
  1525. Swait()
  1526. if ATTACK == true or ANIM ~= "Idle" then
  1527. break
  1528. end
  1529. GLASSESWLD.C1 = Clerp(GLASSESWLD.C1, CF(0,0,0) * ANGLES(RAD(0),RAD(0),RAD(5)), 0.2 / Animation_Speed)
  1530. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * COS(SINE / 24), 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0 - 2.5 * COS(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  1531. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1532. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.35 + 0.1 * COS(SINE / 12), 0.2) * ANGLES(RAD(-45 - 1.5 * COS(SINE / 12)), RAD(0), RAD(-45)) * ANGLES(RAD(0), RAD(25), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1533. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.15, -0.3) * ANGLES(RAD(160), RAD(5), RAD(12)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1534. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.035 * COS(SINE / 24) - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-2 - 2.5 * COS(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1535. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.035 * COS(SINE / 24) - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-2 + 2.5 * COS(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1536. end
  1537. for i=0, 0.3, 0.1 / Animation_Speed do
  1538. Swait()
  1539. if ATTACK == true or ANIM ~= "Idle" then
  1540. break
  1541. end
  1542. GLASSESWLD.C1 = Clerp(GLASSESWLD.C1, CF(0,0,0) * ANGLES(RAD(0),RAD(0),RAD(0)), 1 / Animation_Speed)
  1543. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * COS(SINE / 24), 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0 - 2.5 * COS(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  1544. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1545. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.35 + 0.1 * COS(SINE / 12), 0.2) * ANGLES(RAD(-45 - 1.5 * COS(SINE / 12)), RAD(0), RAD(-45)) * ANGLES(RAD(0), RAD(25), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1546. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.05, -0.3) * ANGLES(RAD(160), RAD(5), RAD(12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1547. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.035 * COS(SINE / 24) - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-2 - 2.5 * COS(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1548. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.035 * COS(SINE / 24) - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-2 + 2.5 * COS(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1549. end
  1550. for i=0, 0.1, 0.1 / Animation_Speed do
  1551. Swait()
  1552. if ATTACK == true or ANIM ~= "Idle" then
  1553. break
  1554. end
  1555. GLASSESWLD.C1 = Clerp(GLASSESWLD.C1, CF(0,0,0) * ANGLES(RAD(0),RAD(0),RAD(0)), 0.25)
  1556. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * COS(SINE / 24), 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0 - 2.5 * COS(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  1557. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1558. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.35 + 0.1 * COS(SINE / 12), 0.2) * ANGLES(RAD(-45 - 1.5 * COS(SINE / 12)), RAD(0), RAD(-45)) * ANGLES(RAD(0), RAD(25), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1559. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.1, -0.3) * ANGLES(RAD(80), RAD(5), RAD(12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1560. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.035 * COS(SINE / 24) - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-2 - 2.5 * COS(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1561. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.035 * COS(SINE / 24) - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-2 + 2.5 * COS(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1562. end
  1563. LITTLEIDLE = false
  1564. end))
  1565. end
  1566.  
  1567. local COLOR = C3(1,1,1)
  1568. local SKILLFONT = "Legacy"
  1569. local SIZE = 2.5
  1570. local MOUSE = 2097542191
  1571. local MELEE = 2097543015
  1572. local BODY = 2097543382
  1573. local PROJECTILE = 2097544084
  1574. local AOE = 2097544884
  1575. local ULTIMATE = 2097545381
  1576.  
  1577. local ATTACKS = {{"Switch ScreenBehaviour","m"},{";Fling","z",AOE,Fling},{";TpTo","x",BODY,TpTo},{";Hurl","c",PROJECTILE,Hurl},{";Kill","v",MOUSE,Kill}}
  1578. local GUIS = {}
  1579.  
  1580. for i = 1, #ATTACKS do
  1581. local SKILLFRAME = CreateFrame(WEAPONGUI, 0.8, 2, UD2(1-(0.3*(SIZE/5)), 0, 1-((0.08*(SIZE/5))*i), 0), UD2(0.3*(SIZE/5), 0, 0.06*(SIZE/4), 0), C3(0,0,0), COLOR, "Skill Frame")
  1582. local SKILLTEXT = CreateLabel(SKILLFRAME, "["..ATTACKS[i][1].."]", COLOR, SIZE, SKILLFONT, 0, 2, 0, "Skill text")
  1583. SKILLTEXT.TextXAlignment = "Right"
  1584. local BUTTONDISPLAY = CreateLabel(SKILLFRAME, "["..string.upper(ATTACKS[i][2]).."]", COLOR, SIZE-1, SKILLFONT, 0, 2, 0, "Skill text")
  1585. BUTTONDISPLAY.TextXAlignment = "Left"
  1586. if ATTACKS[i][3] then
  1587. local IMAGETODISPLAY = IT("ImageLabel",SKILLFRAME)
  1588. IMAGETODISPLAY.Image = "rbxassetid://"..ATTACKS[i][3]
  1589. IMAGETODISPLAY.Size = UD2(0.2,0,1,0)
  1590. IMAGETODISPLAY.Position = UD2(0.065,0,0,0)
  1591. IMAGETODISPLAY.BackgroundTransparency = 1
  1592. IMAGETODISPLAY.ZIndex = 0
  1593. end
  1594. table.insert(GUIS,SKILLTEXT)
  1595. end
  1596.  
  1597. Mouse.Button1Down:connect(function(NEWKEY)
  1598.  
  1599. end)
  1600. Mouse.Button1Up:connect(function(NEWKEY)
  1601.  
  1602. end)
  1603. Mouse.KeyDown:connect(function(NEWKEY)
  1604. KEYHOLD = true
  1605. if NEWKEY == "m" then
  1606. if SC == false then
  1607. SC = true
  1608. else
  1609. SC = false
  1610. end
  1611. end
  1612. if ATTACK == false then
  1613. for E = 1, #ATTACKS do
  1614. if ATTACKS[E][4] ~= nil then
  1615. if NEWKEY == ATTACKS[E][2] then
  1616. ATTACKS[E][4]()
  1617. end
  1618. end
  1619. end
  1620. end
  1621. end)
  1622. Mouse.KeyUp:connect(function(NEWKEY)
  1623. KEYHOLD = false
  1624. end)
  1625.  
  1626. function unanchor()
  1627. for _, c in pairs(Character:GetChildren()) do
  1628. if c:IsA("BasePart") and c ~= RootPart then
  1629. c.Anchored = false
  1630. end
  1631. end
  1632. if UNANCHOR == true then
  1633. RootPart.Anchored = false
  1634. else
  1635. RootPart.Anchored = true
  1636. end
  1637. end
  1638.  
  1639. Humanoid.Changed:connect(function(Jump)
  1640. if Jump == "Jump" and (Disable_Jump == true) then
  1641. Humanoid.Jump = false
  1642. end
  1643. end)
  1644.  
  1645. local MOVINGSCREENS = false
  1646. local TIMESTAMP = 0
  1647. while true do
  1648. Swait()
  1649. ANIMATE.Parent = nil
  1650. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1651. v:Stop();
  1652. end
  1653. SINE = SINE + CHANGE
  1654. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1655. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1656. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1657. local WALKSPEEDVALUE = 8 / (Humanoid.WalkSpeed / 16)
  1658. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1659. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0.1 * COS(SINE / (WALKSPEEDVALUE/2))) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1660. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1661. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.25 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10+50 * COS(SINE / WALKSPEEDVALUE))), 0.6 / Animation_Speed)
  1662. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.25 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-10+50 * COS(SINE / WALKSPEEDVALUE))), 0.6 / Animation_Speed)
  1663. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1664. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1665. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1666. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.7 / Animation_Speed)
  1667. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.7 / Animation_Speed)
  1668. end
  1669. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1670. ANIM = "Jump"
  1671. if ATTACK == false then
  1672. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1673. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed)
  1674. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(25 + 10 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1675. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(-25 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1676. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4, -0.6) * ANGLES(RAD(1), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1677. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1678. end
  1679. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1680. ANIM = "Fall"
  1681. if ATTACK == false then
  1682. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1683. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1684. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(35 - 4 * COS(SINE / 6)), RAD(0), RAD(45 + 10 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1685. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(35 - 4 * COS(SINE / 6)), RAD(0), RAD(-45 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1686. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.7) * ANGLES(RAD(-25 + 5 * SIN(SINE / 12)), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1687. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8, -0.3) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1688. end
  1689. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1690. ANIM = "Idle"
  1691. if ATTACK == false then
  1692. if MRANDOM(1,650) == 1 and LITTLEIDLE == false then
  1693. LITTLEIDLE = true
  1694. UniqueIdleAnimation()
  1695. end
  1696. if LITTLEIDLE == false then
  1697. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * COS(SINE / 24), 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0 - 2.5 * COS(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  1698. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(3 - 7 * COS(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1699. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.35 + 0.1 * COS(SINE / 12), 0.2) * ANGLES(RAD(-45 - 1.5 * COS(SINE / 12)), RAD(0), RAD(-45)) * ANGLES(RAD(0), RAD(25), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1700. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.35 + 0.1 * COS(SINE / 12), 0.2) * ANGLES(RAD(-44 - 1.5 * COS(SINE / 12)), RAD(0), RAD(45)) * ANGLES(RAD(0), RAD(-25), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1701. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.035 * COS(SINE / 24) - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-2 - 2.5 * COS(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1702. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.035 * COS(SINE / 24) - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-2 + 2.5 * COS(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1703. end
  1704. end
  1705. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1706. ANIM = "Walk"
  1707. if ATTACK == false then
  1708. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.05) * ANGLES(RAD(5), RAD(0), RAD(-7 * COS(SINE / (WALKSPEEDVALUE)))), 1 / Animation_Speed)
  1709. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 1 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(7 * COS(SINE / (WALKSPEEDVALUE)))), 1 / Animation_Speed)
  1710. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE)), RAD(-5), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1711. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(5), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1712. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1713. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1714. end
  1715. end
  1716. if Rooted == false then
  1717. Disable_Jump = false
  1718. Humanoid.WalkSpeed = Speed
  1719. elseif Rooted == true then
  1720. Disable_Jump = true
  1721. Humanoid.WalkSpeed = 0
  1722. end
  1723. BMUSIC.SoundId = "rbxassetid://"..SONGID
  1724. BMUSIC.Looped = true
  1725. BMUSIC.Pitch = PITCH
  1726. BMUSIC.Volume = VOLUME
  1727. BMUSIC.Playing = PLAYING
  1728. BMUSIC.EmitterSize = 50
  1729. if BMUSIC.Parent ~= RootPart then
  1730. print("Fixing music")
  1731. BMUSIC = IT("Sound",RootPart)
  1732. BMUSIC.SoundId = "rbxassetid://"..SONGID
  1733. BMUSIC.Looped = true
  1734. BMUSIC.Pitch = PITCH
  1735. BMUSIC.Volume = VOLUME
  1736. BMUSIC.Playing = true
  1737. BMUSIC.EmitterSize = 50
  1738. BMUSIC.TimePosition = TIMESTAMP
  1739. FIXING = true
  1740. else
  1741. if FIXING == false then
  1742. TIMESTAMP = BMUSIC.TimePosition
  1743. else
  1744. FIXING = false
  1745. end
  1746. end
  1747. if Head:FindFirstChild("face") then
  1748. Head.face.Texture = "rbxassetid://62682458"
  1749. end
  1750. if INTRO == false and ATTACK == false then
  1751. INTRO = true
  1752. coroutine.resume(coroutine.create(function()
  1753. IntroThing()
  1754. end))
  1755. end
  1756. if #SCREENS > 0 then
  1757. for E = 1, #SCREENS do
  1758. SCREENS[E].Transparency = MRANDOM(90,99)/100
  1759. end
  1760. end
  1761. if #SCREENWELDS > 0 then
  1762. if SC == true then
  1763. if MRANDOM(1,75) == 1 and MOVINGSCREENS == false then
  1764. MOVINGSCREENS = true
  1765. coroutine.resume(coroutine.create(function()
  1766. wait(1)
  1767. MOVINGSCREENS = false
  1768. end))
  1769. for E = 1, #SCREENWELDS do
  1770. coroutine.resume(coroutine.create(function()
  1771. local MATH1 = MRANDOM(-25,25)/10+1
  1772. local MATH2 = MRANDOM(-45,45)
  1773. for i = 1, 55 do
  1774. Swait()
  1775. SCREENWELDS[E].C0 = Clerp(SCREENWELDS[E].C0, CF(0,MATH1,0) * ANGLES(RAD(0), RAD(MATH2+180), RAD(0)) * CF(0,0,3+(E/1.5)),0.1)
  1776. end
  1777. end))
  1778. end
  1779. end
  1780. elseif SC == false then
  1781. for E = 1, #SCREENWELDS do
  1782. if E == 1 then
  1783. SCREENWELDS[E].C0 = Clerp(SCREENWELDS[E].C0, CF(0,-1 + 0.05 * COS(SINE / 12),0) * ANGLES(RAD(0), RAD(-40+180), RAD(0)) * CF(0,0,3.4),0.1)
  1784. elseif E == 2 then
  1785. SCREENWELDS[E].C0 = Clerp(SCREENWELDS[E].C0, CF(0,-1 + 0.05 * SIN(SINE / 12),0) * ANGLES(RAD(0), RAD(40+180), RAD(0)) * CF(0,0,3.4),0.1)
  1786. elseif E == 3 then
  1787. SCREENWELDS[E].C0 = Clerp(SCREENWELDS[E].C0, CF(0,1.3 + 0.05 * SIN(SINE / 12),0) * ANGLES(RAD(0), RAD(-38+180), RAD(0)) * CF(0,0,3.4),0.1)
  1788. elseif E == 4 then
  1789. SCREENWELDS[E].C0 = Clerp(SCREENWELDS[E].C0, CF(0,1.3 + 0.05 * COS(SINE / 12),0) * ANGLES(RAD(0), RAD(38+180), RAD(0)) * CF(0,0,3.4),0.1)
  1790. end
  1791. end
  1792. end
  1793. end
  1794. local SECONDS = math.floor(workspace.DistributedGameTime)
  1795. local MINUTES = math.floor(workspace.DistributedGameTime/60)
  1796. local HOURS = math.floor(workspace.DistributedGameTime/60/60)
  1797. local SECONDS = SECONDS - (MINUTES * 60)
  1798. local MINUTES = MINUTES - (HOURS * 60)
  1799. if #GUISTEXT > 0 then
  1800. for E = 1, #GUISTEXT do
  1801. local TXT = GUISTEXT[E]
  1802. if E == 1 then
  1803. TXT.Text = "SERVER STATS;"
  1804. elseif E == 2 then
  1805. TXT.Text = "SERVER TIME = ["..SECONDS..":"..MINUTES..":"..HOURS.."]"
  1806. elseif E == 3 then
  1807. TXT.Text = "WORKSPACE GRAVITY = ["..workspace.Gravity.."]"
  1808. elseif E == 4 then
  1809. TXT.Text = "SERVER JOBID = ["..game.JobId.."]"
  1810. elseif E == 5 then
  1811. TXT.Text = "SERVER VERSION = ["..game.PlaceVersion.."]"
  1812. end
  1813. end
  1814. end
  1815. local SPACEJECTS = {}
  1816. for index, CHILD in pairs(workspace:GetChildren()) do
  1817. table.insert(SPACEJECTS,CHILD)
  1818. end
  1819. table.insert(SPACEJECTS,game.Lighting)
  1820. table.insert(SPACEJECTS,game.Workspace)
  1821. local MALWARE = {"BlurEffect","BloomEffect","Fire","ParticleEmitter","Smoke"}
  1822. if #GUISTEXT > 0 then
  1823. if MRANDOM(1,125) == 1 then
  1824. for E = 1, #GUISTEXT do
  1825. local TXT = GUISTEXT[E]
  1826. local TEXT = ""
  1827. local DOINGS = {"MONITORING","CHECKING"}
  1828. local OLDTEXT = string.sub(TXT.Text,3)
  1829. if E > 5 then
  1830. if E <= 15 then
  1831. if MRANDOM(1,3) == 1 then
  1832. repeat
  1833. local MONITORME = SPACEJECTS[MRANDOM(1,#SPACEJECTS)]
  1834. if MRANDOM(1,2) == 1 then
  1835. TEXT = DOINGS[MRANDOM(1,#DOINGS)].."; ["..MONITORME.Name.."]..."
  1836. for Z = 1, #MALWARE do
  1837. if MONITORME:FindFirstChildOfClass(MALWARE[Z]) then
  1838. TEXT = "!FOUND MALICIOUS CONTENT IN ["..MONITORME.Name.."]; FOUND: ["..MALWARE[Z].."]"
  1839. if TEXT ~= OLDTEXT then
  1840. CreateSound(136075117, TXT.Parent.Parent, 0.6, MRANDOM(8,12)/10)
  1841. end
  1842. TXT.TextColor3 = C3(1,0,0)
  1843. break
  1844. else
  1845. TXT.TextColor3 = C3(1,1,1)
  1846. end
  1847. end
  1848. break
  1849. end
  1850. if MRANDOM(1,6) == 1 and TXT.TextColor3 == C3(1,1,1) then
  1851. local ES = {"SUCCES.","!FAILURE!"}
  1852. TEXT = "TESTING FILE #"..MRANDOM(100,999).." ["..ES[MRANDOM(1,#ES)].."]"
  1853. end
  1854. until TEXT ~= ""
  1855. local DESIREDTEXT = ">>"..TEXT
  1856. TXT.Text = DESIREDTEXT
  1857. end
  1858. elseif E > 15 then
  1859. local N = E-15
  1860. local POP = 0
  1861. repeat
  1862. for index, CHILD in pairs(game:GetService("Players"):GetChildren()) do
  1863. POP = POP + 1
  1864. if POP == N then
  1865. TEXT = "MONITORING USER; ".."["..CHILD.Name.."]..."
  1866. break
  1867. else
  1868. TEXT = "NOP"
  1869. end
  1870. end
  1871. until TEXT ~= ""
  1872. if TEXT ~= "NOP" then
  1873. local DESIREDTEXT = ">>"..TEXT
  1874. TXT.Text = DESIREDTEXT
  1875. else
  1876. TXT.Text = ""
  1877. end
  1878. end
  1879. end
  1880. end
  1881. end
  1882. end
  1883. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement