Guest User

Untitled

a guest
Oct 5th, 2023
563
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 96.57 KB | None | 0 0
  1. -- [[ Name: Commander CR by ??? ]] --
  2. -- [[ Converted: By Melon ]] --
  3. -- [[ Reanimate: By Emper ]] --
  4. -- [[ Description: nothing to put ]] --
  5.  
  6. -- [[ Hats ]] --
  7.  
  8. -- [[ Free ]] --
  9. -- [[ www.roblox.com/catalog/4819740796/Robox ]] --
  10. -- [[ www.roblox.com/catalog/3409612660/International-Fedora-USA ]] --
  11. -- [[ www.roblox.com/catalog/3398308134/International-Fedora-Canada ]] --
  12. -- [[ www.roblox.com/catalog/3033908130/International-Fedora-France ]] --
  13. -- [[ www.roblox.com/catalog/3033910400/International-Fedora-Germany ]] --
  14.  
  15. -- [[ Paid (1) ]] --
  16. -- [[ www.roblox.com/catalog/14255528083/Torso-Extension ]] --
  17. -- [[ www.roblox.com/catalog/14255556501/Extra-Right-White-Arm ]] --
  18. -- [[ www.roblox.com/catalog/14255554762/Extra-Left-White-Arm ]] --
  19. -- [[ www.roblox.com/catalog/14768693948/White-Extended-Right-Arm ]] --
  20. -- [[ www.roblox.com/catalog/14768701869/White-Extended-Left-Arm ]] --
  21.  
  22. -- [[ Paid (2) ]] --
  23. -- [[ www.roblox.com/catalog/14255528083/Torso-Extension ]] --
  24. -- [[ www.roblox.com/catalog/11159410305/Rectangle-Head-For-Headless ]] --
  25. -- [[ www.roblox.com/catalog/11263254795/Dummy-Head-For-Headless ]] --
  26. -- [[ www.roblox.com/catalog/12344545199/Extra-Left-hand-moving-Blocky-white ]] --
  27. -- [[ www.roblox.com/catalog/12344591101/Extra-Right-hand-moving-Blocky-white ]] --
  28.  
  29. -- [[ Guns ]] --
  30.  
  31. -- [[ www.roblox.com/catalog/13760686814/Classic-MARKA-17M-Valkan-Left ]] --
  32. -- [[ www.roblox.com/catalog/4623059912/Starslayer-Railgun ]] --
  33. -- [[ www.roblox.com/catalog/14683431575/Law-Enforcement-Beanbag ]] --
  34. -- [[ www.roblox.com/catalog/5136154487/DG-40-Archangel-Sniper-Rifle-Black ]] --
  35. -- [[ www.roblox.com/catalog/12830271515/White-Cyber-Heavy-Revolver-Left ]] --
  36. -- [[ * FREE * www.roblox.com/catalog/10775031176/The-Pogo ]] --
  37. -- [[ * FREE * www.roblox.com/catalog/5552252553/Kinetic-Staff ]] --
  38. -- [[ The list above is the supported hats. ]] --
  39.  
  40. game:GetService("StarterGui"):SetCore("SendNotification", {
  41. Title = "Melon's (FE) Converts/Scripts";
  42. Text = "Thanks for using!";
  43. Icon = "rbxthumb://type=Asset&id=11561641603&w=150&h=150"})
  44. Duration = 3;
  45.  
  46. if not game:IsLoaded() then
  47. game.Loaded:Wait()
  48. end
  49.  
  50. local function FindInstance(Parent, ClassName, Name)
  51. for _, Instance in pairs(Parent:GetChildren()) do
  52. if Instance:IsA(ClassName) and Instance.Name == Name then
  53. return Instance
  54. end
  55. end
  56. end
  57.  
  58. local function WaitForClass(Parent, ClassName)
  59. local Instance = Parent:FindFirstChildOfClass(ClassName)
  60.  
  61. while not Instance and Parent do
  62. Parent.ChildAdded:Wait()
  63. Instance = Parent:FindFirstChildOfClass(ClassName)
  64. end
  65.  
  66. return Instance
  67. end
  68.  
  69. local function WaitForClassOfName(Parent, ...)
  70. local Instance = FindInstance(Parent, ...)
  71.  
  72. while not Instance and Parent do
  73. Parent.ChildAdded:Wait()
  74. Instance = FindInstance(Parent, ...)
  75. end
  76.  
  77. return Instance
  78. end
  79.  
  80. local Fling = { }
  81. local Aligns = { }
  82. local Blacklist = { }
  83. local Accessories = { }
  84. local Attachments = { }
  85.  
  86. local Instancenew = Instance.new
  87.  
  88. local taskwait = task.wait
  89. local taskspawn = task.spawn
  90. local taskdefer = task.defer
  91.  
  92. local mathabs = math.abs
  93. local mathcos = math.cos
  94. local mathrandom = math.random
  95.  
  96. local stringmatch = string.match
  97.  
  98. local osclock = os.clock
  99.  
  100. local tableinsert = table.insert
  101. local tableclear = table.clear
  102. local tablefind = table.find
  103.  
  104. local CFramenew = CFrame.new
  105. local CFrameAngles = CFrame.Angles
  106. local CFrameidentity = CFrame.identity
  107.  
  108. local Vector3new = Vector3.new
  109. local Vector3zero = Vector3.zero
  110.  
  111. local Sleep = CFrameidentity
  112. local Velocity = Vector3new(0, 16384, 0)
  113. local Angular = 0
  114. local Linear = 0
  115.  
  116. local Workspace = game:FindFirstChildOfClass("Workspace")
  117. local CurrentCamera = Workspace.CurrentCamera
  118.  
  119. local Players = game:FindFirstChildOfClass("Players")
  120.  
  121. local LocalPlayer = Players.LocalPlayer
  122. local Mouse = LocalPlayer:GetMouse()
  123.  
  124. local PostSimulation = game:FindFirstChildOfClass("RunService").PostSimulation
  125.  
  126. local Character = LocalPlayer.Character
  127. local CharacterClone = Instancenew("Model")
  128.  
  129. local StarterGui = game:FindFirstChildOfClass("StarterGui")
  130. local BindableEvent = Instancenew("BindableEvent")
  131.  
  132. local UserInputService = game:FindFirstChildOfClass("UserInputService")
  133. local UserInputType = Enum.UserInputType
  134.  
  135. local MouseButton1 = UserInputType.MouseButton1
  136. local Touch = UserInputType.Touch
  137.  
  138. local InputBegan = UserInputService.InputBegan:Connect(function(Input, GameProcessed)
  139. local Type = Input.UserInputType
  140.  
  141. if not GameProcessed and ( Type == MouseButton1 or Type == Touch ) then
  142. local Target = Mouse.Target
  143. if Target and not Target.Anchored and not Target:IsDescendantOf(CharacterClone) and not Target:IsDescendantOf(Character) and not tablefind(Fling, Target) then
  144. local Parent = Target.Parent
  145.  
  146. if Parent:IsA("Model") and Parent ~= Character and Parent:FindFirstChildOfClass("Humanoid") then
  147. local HumanoidRootPart = FindInstance(Parent, "BasePart", "HumanoidRootPart") or FindInstance(Parent, "BasePart", "Torso") or FindInstance(Parent, "BasePart", "Head")
  148.  
  149. if HumanoidRootPart and not tablefind(Fling, HumanoidRootPart) then
  150. tableinsert(Fling, HumanoidRootPart)
  151. return
  152. end
  153. end
  154.  
  155. tableinsert(Fling, Target)
  156. end
  157. end
  158. end)
  159.  
  160. local function Part(Name, Size)
  161. local Part = Instancenew("Part")
  162. Part.Name = Name
  163. Part.Size = Size
  164. Part.Transparency = 1
  165. Part.Parent = CharacterClone
  166.  
  167. return Part
  168. end
  169.  
  170. local function Motor6D(Name, Part0, Part1, C0, C1)
  171. local Motor6D = Instancenew("Motor6D")
  172. Motor6D.Name = Name
  173. Motor6D.Part0 = Part0
  174. Motor6D.Part1 = Part1
  175. Motor6D.C0 = C0
  176. Motor6D.C1 = C1
  177. Motor6D.Parent = Part0
  178.  
  179. return Motor6D
  180. end
  181.  
  182. local function Attachment(Name, CFrame, Parent)
  183. local Attachment = Instancenew("Attachment")
  184. Attachment.Name = Name
  185. Attachment.CFrame = CFrame
  186. Attachment.Parent = Parent
  187.  
  188. tableinsert(Attachments, Attachment)
  189. return Attachment
  190. end
  191.  
  192. local LimbSize = Vector3new(1, 2, 1)
  193. local TorsoSize = Vector3new(2, 2, 1)
  194.  
  195. local Head = Part("Head", Vector3new(2, 1, 1))
  196. local Torso = Part("Torso", TorsoSize)
  197. local LeftArm = Part("Left Arm", LimbSize)
  198. local RightArm = Part("Right Arm", LimbSize)
  199. local LeftLeg = Part("Left Leg", LimbSize)
  200. local RightLeg = Part("Right Leg", LimbSize)
  201. local HumanoidRootPart = Part("HumanoidRootPart", TorsoSize)
  202.  
  203. local FakeRA = Instance.new("Part")
  204. FakeRA.Size = Vector3.new(1,2,1)
  205. FakeRA.Transparency = 1
  206. FakeRA.BrickColor = BrickColor.new("Institutional White")
  207. FakeRA.Parent = RightArm
  208.  
  209. local FRAW = Instance.new("Weld")
  210. FRAW.Part0 = RightArm
  211. FRAW.Part1 = FakeRA
  212. FRAW.C0 = CFrame.new(0, 0, 0)
  213. FRAW.Parent = RightArm
  214.  
  215. local FakeLA = Instance.new("Part")
  216. FakeLA.Size = Vector3.new(1,2,1)
  217. FakeLA.Transparency = 1
  218. FakeLA.BrickColor = BrickColor.new("Institutional White")
  219. FakeLA.Parent = LeftArm
  220.  
  221. local FLAW = Instance.new("Weld")
  222. FLAW.Part0 = LeftArm
  223. FLAW.Part1 = FakeLA
  224. FLAW.C0 = CFrame.new(0, 0, 0)
  225. FLAW.Parent = LeftArm
  226.  
  227. local Part = nil
  228.  
  229. if Character then
  230. Part = FindInstance(Character, "BasePart", "HumanoidRootPart") or FindInstance(Character, "BasePart", "Head") or FindInstance(Character, "BasePart", "Torso") or FindInstance(Character, "BasePart", "UpperTorso")
  231. end
  232.  
  233. if Part then
  234. HumanoidRootPart.CFrame = Part.CFrame
  235. else
  236. local SpawnLocations = { }
  237.  
  238. for _, SpawnLocation in pairs(Workspace:GetDescendants()) do
  239. if SpawnLocation:IsA("SpawnLocation") then
  240. tableinsert(SpawnLocations, SpawnLocation)
  241. end
  242. end
  243.  
  244. local Amount = # SpawnLocations
  245.  
  246. if Amount > 0 then
  247. local SpawnLocation = SpawnLocations[mathrandom(1, Amount)]
  248. HumanoidRootPart.CFrame = SpawnLocation.CFrame * CFramenew(0, SpawnLocation.Size.Y / 2 + 3, 0)
  249. else
  250. HumanoidRootPart.CFrame = CFrameidentity
  251. end
  252. end
  253.  
  254. local face = Instancenew("Decal")
  255. face.Name = "face"
  256. face.Parent = Head
  257.  
  258. local AccessoryTable = {
  259. -- Paid --
  260. { Mesh = "14241018198", Texture = "14251599953", Instance = Torso },
  261. { Mesh = "14255522247", Texture = "14255543546", Instance = RightArm, CFrame = CFrameAngles(0, 1.57, 1.57) },
  262. { Mesh = "14255522247", Texture = "14255543546", Instance = LeftArm, CFrame = CFrameAngles(0, - 1.57, 1.57) },
  263. { Mesh = "14768684979", Texture = "14768683674", Instance = RightLeg, CFrame = CFrameAngles(0, - 1.57, 1.57) },
  264. { Mesh = "14768684979", Texture = "14768683674", Instance = LeftLeg, CFrame = CFrameAngles(0, 1.57, 1.57) },
  265.  
  266. -- Paid (2) --
  267. { Mesh = "14241018198", Texture = "14251599953", Instance = Torso },
  268. { Mesh = "12344206657", Texture = "12344206675", Instance = RightArm, CFrame = CFrameAngles(-115, 0, 0) },
  269. { Mesh = "12344207333", Texture = "12344207341", Instance = LeftArm, CFrame = CFrameAngles(-115, 0, 0) },
  270. { Mesh = "11159370334", Texture = "11159284657", Instance = RightLeg, CFrame = CFrameAngles(0, - 1.57, 1.57) },
  271. { Mesh = "11263221350", Texture = "11263219250", Instance = LeftLeg, CFrame = CFrameAngles(0, 1.57, 1.57) },
  272.  
  273. -- Free --
  274. { Mesh = "4819720316", Texture = "4819722776", Instance = Torso, CFrame = CFrameAngles(0, 0, 105) },
  275. { Mesh = "3030546036", Texture = "3033903209", Instance = RightArm, CFrame = CFrameAngles(-90, 0, -89.5) },
  276. { Mesh = "3030546036", Texture = "3360978739", Instance = LeftArm, CFrame = CFrameAngles(-90, 0, 89.5) },
  277. { Mesh = "3030546036", Texture = "3409604993", Instance = RightLeg, CFrame = CFrameAngles(-90, 0, -89.5) },
  278. { Mesh = "3030546036", Texture = "3033898741", Instance = LeftLeg, CFrame = CFrameAngles(-90, 0, 89.5) },
  279.  
  280. -- DG 40 --
  281. { Mesh = "5135810417", Texture = "5135790044", Instance = FakeRA, CFrame = CFrameAngles(-0.10, -1.55, 1.45) * CFramenew(-2.55,0.35,0.15)},
  282. -- Cyber Heavy Revolver --
  283. { Mesh = "12830091831", Texture = "9990288940", Instance = FakeRA, CFrame = CFrameAngles(0.55, 0, 0) * CFramenew(0,-1.15,0.15)},
  284. -- Beanbag Shotgun --
  285. { Mesh = "14682184097", Texture = "14682167931", Instance = FakeRA, CFrame = CFrameAngles(0.05, 0, 3.15) * CFramenew(0,1.35,-0.25)},
  286. -- Starslayer Railgun --
  287. { Mesh = "4615369575", Texture = "4615393635", Instance = FakeRA, CFrame = CFrameAngles(-0.80, 1.55, 0) * CFramenew(1.45,-1,0)},
  288. -- MARKA-17M --
  289. { Mesh = "13753961447", Texture = "13760652946", Instance = FakeRA, CFrame = CFramenew(0,-1.45,-0.65) * CFrameAngles(0, -1.50, 0.75) },
  290. -- Pogo Stick --
  291. { Mesh = "10775011914", Texture = "10774853167", Instance = FakeRA, CFrame = CFramenew(0,-2.55,-0.65) * CFrameAngles(0, -1.55, 0.65) },
  292. -- Crystal Staff --
  293. { Mesh = "5548423017", Texture = "5548423938", Instance = FakeRA, CFrame = CFramenew(0,-1.65,-0) * CFrameAngles(0, -1.55, 0.60) },
  294.  
  295. }
  296.  
  297. for _, Table in pairs(AccessoryTable) do
  298. if type(Table.Mesh) ~= "string" then
  299. Table.Mesh = ""
  300. end
  301. if type(Table.Texture) ~= "string" then
  302. Table.Texture = ""
  303. end
  304. end
  305.  
  306. Motor6D("Right Shoulder", Torso, RightArm, CFramenew(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0), CFramenew(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0))
  307. Motor6D("Left Shoulder", Torso, LeftArm, CFramenew(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0), CFramenew(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0))
  308. Motor6D("Right Hip", Torso, RightLeg, CFramenew(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0), CFramenew(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0))
  309. Motor6D("Left Hip", Torso, LeftLeg, CFramenew(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0), CFramenew(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0))
  310. Motor6D("Neck", Torso, Head, CFramenew(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), CFramenew(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0))
  311. Motor6D("RootJoint", HumanoidRootPart, Torso, CFramenew(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), CFramenew(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0))
  312.  
  313. Attachment("HairAttachment", CFramenew(0, 0.600000024, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Head)
  314. Attachment("HatAttachment", CFramenew(0, 0.600000024, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Head)
  315. Attachment("FaceFrontAttachment", CFramenew(0, 0, -0.600000024, 1, 0, 0, 0, 1, 0, 0, 0, 1), Head)
  316. Attachment("FaceCenterAttachment", CFramenew(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Head)
  317. Attachment("NeckAttachment", CFramenew(0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
  318. Attachment("BodyFrontAttachment", CFramenew(0, 0, -0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
  319. Attachment("BodyBackAttachment", CFramenew(0, 0, 0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
  320. Attachment("LeftCollarAttachment", CFramenew(-1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
  321. Attachment("RightCollarAttachment", CFramenew(1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
  322. Attachment("WaistFrontAttachment", CFramenew(0, -1, -0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
  323. Attachment("WaistCenterAttachment", CFramenew(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
  324. Attachment("WaistBackAttachment", CFramenew(0, -1, 0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
  325. Attachment("LeftShoulderAttachment", CFramenew(0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), LeftArm)
  326. Attachment("LeftGripAttachment", CFramenew(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), LeftArm)
  327. Attachment("RightShoulderAttachment", CFramenew(0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), RightArm)
  328. Attachment("RightGripAttachment", CFramenew(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), RightArm)
  329. Attachment("LeftFootAttachment", CFramenew(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), LeftLeg)
  330. Attachment("RightFootAttachment", CFramenew(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), RightLeg)
  331. Attachment("RootAttachment", CFramenew(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), HumanoidRootPart)
  332.  
  333. local Humanoid = Instancenew("Humanoid", CharacterClone)
  334. Instancenew("Animator", Humanoid)
  335.  
  336. Instancenew("LocalScript", CharacterClone).Name = "Animate"
  337.  
  338. CharacterClone.PrimaryPart = Head
  339. CharacterClone.Parent = Workspace
  340.  
  341. local function DescendantAdded(Instance)
  342. if Instance:IsA("Accessory") then
  343. taskspawn(function()
  344. local Handle = WaitForClassOfName(Instance, "BasePart", "Handle")
  345. local Attachment = WaitForClass(Handle, "Attachment")
  346.  
  347. local Clone = Instance:Clone()
  348.  
  349. local CloneHandle = FindInstance(Clone, "BasePart", "Handle")
  350. CloneHandle.Transparency = 1
  351. CloneHandle:BreakJoints()
  352.  
  353. local AccessoryWeld = Instancenew("Weld")
  354. AccessoryWeld.Name = "AccessoryWeld"
  355. AccessoryWeld.Part0 = CloneHandle
  356. AccessoryWeld.C0 = Attachment.CFrame
  357.  
  358. local Name = Attachment.Name
  359.  
  360. for _, TableAttachment in pairs(Attachments) do
  361. if TableAttachment.Name == Name then
  362. AccessoryWeld.Part1 = TableAttachment.Parent
  363. AccessoryWeld.C1 = TableAttachment.CFrame
  364. end
  365. end
  366.  
  367. AccessoryWeld.Parent = CloneHandle
  368. Clone.Parent = CharacterClone
  369.  
  370. tableinsert(Accessories, Clone)
  371.  
  372. local IsAMeshPart = CloneHandle:IsA("MeshPart")
  373. local Mesh = IsAMeshPart and CloneHandle or WaitForClass(CloneHandle, "SpecialMesh")
  374. local Id = IsAMeshPart and "TextureID" or "TextureId"
  375.  
  376. for _, Table in pairs(AccessoryTable) do
  377. local Instance = Table.Instance
  378.  
  379. if Instance then
  380. if stringmatch(Mesh.MeshId, Table.Mesh) and stringmatch(Mesh[Id], Table.Texture) and not tablefind(Blacklist, Instance) then
  381. tableinsert(Blacklist, Instance)
  382. tableinsert(Aligns, { Handle, Instance, Table.CFrame or CFrameidentity })
  383. return
  384. end
  385. end
  386. end
  387.  
  388. tableinsert(Aligns, { Handle, CloneHandle, CFrameidentity })
  389. end)
  390. elseif Instance:IsA("JointInstance") then
  391. taskspawn(function()
  392. taskwait()
  393. Instance:Destroy()
  394. end)
  395. end
  396. end
  397.  
  398. local function CharacterAdded(Character)
  399. if Character ~= CharacterClone then
  400. PostSimulation:Wait()
  401.  
  402. local Backpack = LocalPlayer:FindFirstChildOfClass("Backpack")
  403.  
  404. if Backpack then
  405. Backpack:ClearAllChildren()
  406. end
  407.  
  408. tableclear(Aligns)
  409. tableclear(Blacklist)
  410.  
  411. for _, Accessory in pairs(Accessories) do
  412. Accessory:Destroy()
  413. end
  414.  
  415. local CurrentCameraCFrame = CurrentCamera.CFrame
  416.  
  417. LocalPlayer.Character = CharacterClone
  418. CurrentCamera.CameraSubject = CharacterClone.Head
  419.  
  420. taskspawn(function()
  421. CurrentCamera:GetPropertyChangedSignal("CFrame"):Wait()
  422. CurrentCamera.CFrame = CurrentCameraCFrame
  423. end)
  424.  
  425. local CharacterHumanoidRootPart = WaitForClassOfName(Character, "BasePart", "HumanoidRootPart")
  426.  
  427. for Index, Value in pairs(Fling) do
  428. local BasePart = nil
  429.  
  430. if typeof(Value) == "Instance" then
  431. if Value:IsA("BasePart") then
  432. BasePart = Value
  433. elseif Value:IsA("Humanoid") then
  434. local Model = Value.Parent
  435.  
  436. if Model ~= Character and Model:IsA("Model") then
  437. BasePart = FindInstance(Model, "BasePart", "HumanoidRootPart") or FindInstance(Model, "BasePart", "Head") or Model:FindFirstChildOfClass("BasePart")
  438. end
  439. elseif Value:IsA("Model") and Value ~= Character then
  440. BasePart = FindInstance(Value, "BasePart", "HumanoidRootPart") or FindInstance(Value, "BasePart", "Head") or Value:FindFirstChildOfClass("BasePart")
  441. end
  442. end
  443.  
  444. if BasePart then
  445. local clock = osclock()
  446.  
  447. while CharacterHumanoidRootPart and BasePart and osclock() - clock <= 1 and BasePart.AssemblyLinearVelocity.Magnitude <= 60 do
  448. CharacterHumanoidRootPart.AssemblyAngularVelocity = Velocity
  449. CharacterHumanoidRootPart.AssemblyLinearVelocity = Velocity
  450.  
  451. CharacterHumanoidRootPart.CFrame = BasePart.CFrame + Vector3new(0, - 1, 0)
  452. PostSimulation:Wait()
  453. end
  454. end
  455. end
  456.  
  457. tableclear(Fling)
  458.  
  459. if CharacterHumanoidRootPart then
  460. CharacterHumanoidRootPart.AssemblyAngularVelocity = Vector3zero
  461. CharacterHumanoidRootPart.AssemblyLinearVelocity = Vector3zero
  462.  
  463. CharacterHumanoidRootPart.CFrame = CFramenew(HumanoidRootPart.Position + Vector3new(mathrandom(- 32, 32), 0, mathrandom(- 32, 32)))
  464. PostSimulation:Wait()
  465. end
  466.  
  467. Character:BreakJoints()
  468.  
  469. for _, Instance in pairs(Character:GetDescendants()) do
  470. DescendantAdded(Instance)
  471. end
  472.  
  473. Character.DescendantAdded:Connect(DescendantAdded)
  474. end
  475. end
  476.  
  477. local function Align(Part0, Part1, CFrame)
  478. if Part0.ReceiveAge == 0 and not Part0.Anchored and # Part0:GetJoints() == 0 then
  479. Part0.AssemblyAngularVelocity = Vector3new(0, Angular, 0)
  480.  
  481. local Part1CFrame = Part1.CFrame
  482. local LinearVelocity = Part1.AssemblyLinearVelocity * Linear
  483. local Magnitude = LinearVelocity.Magnitude < Linear
  484.  
  485. if Magnitude then
  486. local LookVector = Part1CFrame.LookVector * Linear
  487. Part0.AssemblyLinearVelocity = Vector3new(LookVector.X, Linear, LookVector.Z)
  488. else
  489. Part0.AssemblyLinearVelocity = Vector3new(LinearVelocity.X, Linear, LinearVelocity.Z)
  490. end
  491.  
  492. Part0.CFrame = Part1CFrame * ( Magnitude and Sleep or CFrameidentity ) * CFrame
  493. end
  494. end
  495.  
  496. if Character then
  497. CharacterAdded(Character)
  498. end
  499.  
  500. local Added = LocalPlayer.CharacterAdded:Connect(CharacterAdded)
  501.  
  502. local Connection = game:FindFirstChildOfClass("RunService").PostSimulation:Connect(function()
  503. local osclock = osclock()
  504. local Axis = 0.004 * mathcos(osclock * 17.5)
  505.  
  506. Sleep = CFramenew(0, Axis, 0)
  507. Angular = mathcos(osclock)
  508. Linear = 26
  509.  
  510. for _, Table in pairs(Aligns) do
  511. Align(Table[1], Table[2], Table[3])
  512. end
  513.  
  514. if sethiddenproperty then
  515. sethiddenproperty(LocalPlayer, "SimulationRadius", 10000000)
  516. end
  517.  
  518. StarterGui:SetCore("ResetButtonCallback", BindableEvent) -- This is if it gets overriden, just like in MyWorld testing place.
  519. end)
  520.  
  521. local function Event()
  522. CharacterClone:Destroy()
  523. end
  524.  
  525. BindableEvent.Event:Connect(Event)
  526.  
  527. CharacterClone:GetPropertyChangedSignal("Parent"):Connect(function()
  528. if not CharacterClone.Parent then
  529. Added:Disconnect()
  530. Connection:Disconnect()
  531.  
  532. CharacterClone:Destroy()
  533.  
  534. if BindableEvent then
  535. BindableEvent:Destroy()
  536. end
  537.  
  538. StarterGui:SetCore("ResetButtonCallback", true)
  539. end
  540. end)
  541.  
  542. BindableEvent:GetPropertyChangedSignal("Parent"):Connect(Event)
  543.  
  544. game:GetService("StarterGui"):SetCore("SendNotification", {
  545. Title = "Melon's (FE) Converts/Scripts";
  546. Text = "Loaded successfully!";
  547. Icon = "rbxthumb://type=Asset&id=11561641603&w=150&h=150"})
  548. Duration = 3;
  549.  
  550. script = game:GetObjects("rbxassetid://13198284674")[1]
  551.  
  552. Player = game.Players.LocalPlayer
  553. lplr = Player
  554. Character = lplr.Character
  555. char = Character
  556. mouse = lplr:GetMouse()
  557. Mouse = mouse
  558.  
  559. --//===================================================\\
  560. --|| CREATED BY SHACKLUSTER, CONVERTED BY MELON
  561. --\\===================================================//
  562.  
  563. PlayerGui = Player.PlayerGui
  564. Cam = workspace.CurrentCamera
  565. Backpack = Player.Backpack
  566.  
  567.  
  568.  
  569. IT = Instance.new
  570. CF = CFrame.new
  571. VT = Vector3.new
  572. RAD = math.rad
  573. C3 = Color3.new
  574. UD2 = UDim2.new
  575. BRICKC = BrickColor.new
  576. BRICKCRNDM = BrickColor.Random
  577. ANGLES = CFrame.Angles
  578. EULER = CFrame.fromEulerAnglesXYZ
  579. COS = math.cos
  580. ACOS = math.acos
  581. SIN = math.sin
  582. ASIN = math.asin
  583. ABS = math.abs
  584. MRANDOM = math.random
  585. FLOOR = math.floor
  586.  
  587. -- Object Variables
  588.  
  589.  
  590.  
  591. Character.PrimaryPart = Character.HumanoidRootPart
  592. Character.Parent = workspace
  593. Humanoid = Character.Humanoid
  594. RootPart = Character["HumanoidRootPart"]
  595. Torso = Character["Torso"]
  596. Head = Character["Head"]
  597. RightArm = Character["Right Arm"]
  598. LeftArm = Character["Left Arm"]
  599. RightLeg = Character["Right Leg"]
  600. LeftLeg = Character["Left Leg"]
  601. RootJoint = RootPart["RootJoint"]
  602. Neck = Torso["Neck"]
  603. RightShoulder = Torso["Right Shoulder"]
  604. LeftShoulder = Torso["Left Shoulder"]
  605. RightHip = Torso["Right Hip"]
  606. LeftHip = Torso["Left Hip"]
  607. local TIME = 0
  608.  
  609. IT = Instance.new
  610. CF = CFrame.new
  611. VT = Vector3.new
  612. RAD = math.rad
  613. C3 = Color3.new
  614. UD2 = UDim2.new
  615. BRICKC = BrickColor.new
  616. ANGLES = CFrame.Angles
  617. EULER = CFrame.fromEulerAnglesXYZ
  618. COS = math.cos
  619. ACOS = math.acos
  620. SIN = math.sin
  621. ASIN = math.asin
  622. ABS = math.abs
  623. MRANDOM = math.random
  624. FLOOR = math.floor
  625.  
  626.  
  627. --Lunekoo's Code
  628. radian = math.rad
  629. random = math.random
  630. Vec3 = Vector3.new
  631. Inst = Instance.new
  632. cFrame = CFrame.new
  633. Euler = CFrame.fromEulerAnglesXYZ
  634. vt = Vector3.new
  635. bc = BrickColor.new
  636. br = BrickColor.random
  637. it = Instance.new
  638. cf = CFrame.new
  639. angles = CFrame.Angles
  640. CF = CFrame.new
  641. Cos = math.cos
  642. Sin = math.sin
  643. Abs = math.abs
  644. Rad = math.rad
  645. --EFFECTS--
  646. local Effects = IT("Model", Character)
  647. Effects.Name = "Effects"
  648. --MUSIC
  649. local SONG = 0
  650. local sick = Instance.new("Sound",Torso)
  651. sick.Parent = Torso
  652. sick:resume()
  653. sick.Volume = 10
  654. sick.Pitch = 1
  655. sick.Looped = true
  656. sick.SoundId = "rbxassetid://0"
  657. if sick.Parent ~= Character then
  658. sick = IT("Sound", Character)
  659. end
  660. --lol--
  661. local ROT = 1
  662. local SIZE = 1
  663. Animation_Speed = 2.5
  664. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  665. local Speed = 15
  666. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  667. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  668. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  669. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  670. local DAMAGEMULTIPLIER = 1
  671. local ANIM = "Idle"
  672. local ATTACK = false
  673. local EQUIPPED = false
  674. local HOLD = false
  675. local COMBO = 1
  676. local Rooted = false
  677. local SINE = 0
  678. local sine = 0
  679. local KEYHOLD = false
  680. local CHANGE = 2 / Animation_Speed
  681. local WALKINGANIM = false
  682. local VALUE1 = false
  683. local VALUE2 = false
  684. local ROBLOXIDLEANIMATION = IT("Animation")
  685. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  686. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  687. --ROBLOXIDLEANIMATION.Parent = Humanoid
  688. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  689. WEAPONGUI.Name = "BanishV3Gui"
  690. local Weapon = IT("Model")
  691. Weapon.Name = "Adds"
  692. local Effects = IT("Folder", Weapon)
  693. Effects.Name = "Effects"
  694. local UNANCHOR = true
  695. local Hue = 0
  696. local TOBANISH = {}
  697. local RunService = game:GetService("RunService")
  698. AntiBullet = true
  699. local color = C3(1,1,1)
  700. local CLOCKLOOP = 0
  701. local CLOCKTARGET = nil
  702. local CLOCKSPEED = 1
  703. local CLOCKCOLOR1 = C3(255/255, 255/255, 255/255)
  704. local CLOCKCOLOR2 = C3(255/255, 0/255, 0/255)
  705.  
  706. function Rainbowify(name)
  707. while RunService.Stepped:Wait() do
  708. for hue = 0, 1, 0.06 do
  709. name.Color = Color3.fromHSV(hue,1,1)
  710. wait(0.001)
  711. end
  712. end
  713. end
  714.  
  715.  
  716. -- Customization
  717.  
  718. Animation_Speed = 3
  719. local FORCERESET = false
  720. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  721.  
  722. -- Sazerenos' Artificial Heartbeat
  723.  
  724. ArtificialHB = Instance.new("BindableEvent", script)
  725. ArtificialHB.Name = "ArtificialHB"
  726.  
  727. script:WaitForChild("ArtificialHB")
  728.  
  729. frame = Frame_Speed
  730. tf = 0
  731. allowframeloss = false
  732. tossremainder = false
  733. lastframe = tick()
  734. script.ArtificialHB:Fire()
  735.  
  736. game:GetService("RunService").Heartbeat:connect(function(s, p)
  737. tf = tf + s
  738. if tf >= frame then
  739. if allowframeloss then
  740. script.ArtificialHB:Fire()
  741. lastframe = tick()
  742. else
  743. for i = 1, math.floor(tf / frame) do
  744. script.ArtificialHB:Fire()
  745. end
  746. lastframe = tick()
  747. end
  748. if tossremainder then
  749. tf = 0
  750. else
  751. tf = tf - frame * math.floor(tf / frame)
  752. end
  753. end
  754. end)
  755.  
  756. --//=================================\\
  757. --\\=================================//
  758.  
  759.  
  760. --//=================================\\
  761. --|| SOME FUNCTIONS
  762. --\\=================================//
  763. function ClockEffect(CFRAME, SIZE, TIME)
  764. coroutine.resume(coroutine.create(function()
  765. local PART = CreatePart(3, Effects, "Neon", 0, 1, "Mid gray", "Clock", VT(0, 0, 0), true)
  766. PART.CFrame = CFRAME
  767. local GUI = IT("BillboardGui", PART)
  768. GUI.Size = UD2(0, 0, 0, 0)
  769. local GUI2 = IT("ImageLabel", GUI)
  770. GUI2.BackgroundTransparency = 1
  771. GUI2.BorderSizePixel = 0
  772. GUI2.Size = UDim2.new(1, 0, 1, 0)
  773. GUI2.SizeConstraint = "RelativeYY"
  774. GUI.AlwaysOnTop = true
  775. GUI2.Image = "http://www.roblox.com/asset/?id=187884215"
  776. for i = 1, TIME do
  777. Swait()
  778. GUI.Size = GUI.Size + UD2(SIZE / TIME, 0, SIZE / TIME, 0)
  779. GUI2.ImageTransparency = GUI2.ImageTransparency + 1 / TIME
  780. end
  781. PART:Remove()
  782. end))
  783. end
  784.  
  785.  
  786. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  787. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  788. end
  789.  
  790. function PositiveAngle(NUMBER)
  791. if NUMBER >= 0 then
  792. NUMBER = 0
  793. end
  794. return NUMBER
  795. end
  796.  
  797. function NegativeAngle(NUMBER)
  798. if NUMBER <= 0 then
  799. NUMBER = 0
  800. end
  801. return NUMBER
  802. end
  803.  
  804. function Swait(NUMBER)
  805. if NUMBER == 0 or NUMBER == nil then
  806. ArtificialHB.Event:wait()
  807. else
  808. for i = 1, NUMBER do
  809. ArtificialHB.Event:wait()
  810. end
  811. end
  812. end
  813.  
  814. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  815. local NEWMESH = IT(MESH)
  816. if MESH == "SpecialMesh" then
  817. NEWMESH.MeshType = MESHTYPE
  818. if MESHID ~= "nil" and MESHID ~= "" then
  819. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  820. end
  821. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  822. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  823. end
  824. end
  825. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  826. NEWMESH.Scale = SCALE
  827. NEWMESH.Parent = PARENT
  828. return NEWMESH
  829. end
  830.  
  831. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  832. local NEWPART = IT("Part")
  833. NEWPART.formFactor = FORMFACTOR
  834. NEWPART.Reflectance = REFLECTANCE
  835. NEWPART.Transparency = TRANSPARENCY
  836. NEWPART.CanCollide = false
  837. NEWPART.Locked = true
  838. NEWPART.Anchored = true
  839. if ANCHOR == false then
  840. NEWPART.Anchored = false
  841. end
  842. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  843. NEWPART.Name = NAME
  844. NEWPART.Size = SIZE
  845. NEWPART.Position = Torso.Position
  846. NEWPART.Material = MATERIAL
  847. NEWPART:BreakJoints()
  848. NEWPART.Parent = PARENT
  849. return NEWPART
  850. end
  851.  
  852. local function weldBetween(a, b)
  853. local weldd = Instance.new("ManualWeld")
  854. weldd.Part0 = a
  855. weldd.Part1 = b
  856. weldd.C0 = CFrame.new()
  857. weldd.C1 = b.CFrame:inverse() * a.CFrame
  858. weldd.Parent = a
  859. return weldd
  860. end
  861.  
  862.  
  863. function QuaternionFromCFrame(cf)
  864. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  865. local trace = m00 + m11 + m22
  866. if trace > 0 then
  867. local s = math.sqrt(1 + trace)
  868. local recip = 0.5 / s
  869. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  870. else
  871. local i = 0
  872. if m11 > m00 then
  873. i = 1
  874. end
  875. if m22 > (i == 0 and m00 or m11) then
  876. i = 2
  877. end
  878. if i == 0 then
  879. local s = math.sqrt(m00 - m11 - m22 + 1)
  880. local recip = 0.5 / s
  881. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  882. elseif i == 1 then
  883. local s = math.sqrt(m11 - m22 - m00 + 1)
  884. local recip = 0.5 / s
  885. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  886. elseif i == 2 then
  887. local s = math.sqrt(m22 - m00 - m11 + 1)
  888. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  889. end
  890. end
  891. end
  892.  
  893. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  894. local xs, ys, zs = x + x, y + y, z + z
  895. local wx, wy, wz = w * xs, w * ys, w * zs
  896. local xx = x * xs
  897. local xy = x * ys
  898. local xz = x * zs
  899. local yy = y * ys
  900. local yz = y * zs
  901. local zz = z * zs
  902. 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))
  903. end
  904.  
  905. function QuaternionSlerp(a, b, t)
  906. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  907. local startInterp, finishInterp;
  908. if cosTheta >= 0.0001 then
  909. if (1 - cosTheta) > 0.0001 then
  910. local theta = ACOS(cosTheta)
  911. local invSinTheta = 1 / SIN(theta)
  912. startInterp = SIN((1 - t) * theta) * invSinTheta
  913. finishInterp = SIN(t * theta) * invSinTheta
  914. else
  915. startInterp = 1 - t
  916. finishInterp = t
  917. end
  918. else
  919. if (1 + cosTheta) > 0.0001 then
  920. local theta = ACOS(-cosTheta)
  921. local invSinTheta = 1 / SIN(theta)
  922. startInterp = SIN((t - 1) * theta) * invSinTheta
  923. finishInterp = SIN(t * theta) * invSinTheta
  924. else
  925. startInterp = t - 1
  926. finishInterp = t
  927. end
  928. end
  929. 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
  930. end
  931.  
  932. function Clerp(a, b, t)
  933. local qa = {QuaternionFromCFrame(a)}
  934. local qb = {QuaternionFromCFrame(b)}
  935. local ax, ay, az = a.x, a.y, a.z
  936. local bx, by, bz = b.x, b.y, b.z
  937. local _t = 1 - t
  938. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  939. end
  940.  
  941. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  942. local frame = IT("Frame")
  943. frame.BackgroundTransparency = TRANSPARENCY
  944. frame.BorderSizePixel = BORDERSIZEPIXEL
  945. frame.Position = POSITION
  946. frame.Size = SIZE
  947. frame.BackgroundColor3 = COLOR
  948. frame.BorderColor3 = BORDERCOLOR
  949. frame.Name = NAME
  950. frame.Parent = PARENT
  951. return frame
  952. end
  953.  
  954. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  955. local label = IT("TextLabel")
  956. label.BackgroundTransparency = 1
  957. label.Size = UD2(1, 0, 1, 0)
  958. label.Position = UD2(0, 0, 0, 0)
  959. label.TextColor3 = TEXTCOLOR
  960. label.TextStrokeTransparency = STROKETRANSPARENCY
  961. label.TextTransparency = TRANSPARENCY
  962. label.FontSize = TEXTFONTSIZE
  963. label.Font = TEXTFONT
  964. label.BorderSizePixel = BORDERSIZEPIXEL
  965. label.TextScaled = false
  966. label.Text = TEXT
  967. label.Name = NAME
  968. label.Parent = PARENT
  969. return label
  970. end
  971.  
  972. function NoOutlines(PART)
  973. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  974. end
  975.  
  976. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  977. local NEWWELD = IT(TYPE)
  978. NEWWELD.Part0 = PART0
  979. NEWWELD.Part1 = PART1
  980. NEWWELD.C0 = C0
  981. NEWWELD.C1 = C1
  982. NEWWELD.Parent = PARENT
  983. return NEWWELD
  984. end
  985.  
  986. local S = IT("Sound")
  987. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  988. local NEWSOUND = nil
  989. coroutine.resume(coroutine.create(function()
  990. NEWSOUND = S:Clone()
  991. NEWSOUND.Parent = PARENT
  992. NEWSOUND.Volume = VOLUME
  993. NEWSOUND.Pitch = PITCH
  994. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  995. NEWSOUND:play()
  996. if DOESLOOP == true then
  997. NEWSOUND.Looped = true
  998. else
  999. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  1000. NEWSOUND:remove()
  1001. end
  1002. end))
  1003. return NEWSOUND
  1004. end
  1005.  
  1006. function CFrameFromTopBack(at, top, back)
  1007. local right = top:Cross(back)
  1008. 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)
  1009. end
  1010.  
  1011. --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})
  1012. function WACKYEFFECT(Table)
  1013. local TYPE = (Table.EffectType or "Sphere")
  1014. local SIZE = (Table.Size or VT(1,1,1))
  1015. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  1016. local TRANSPARENCY = (Table.Transparency or 0)
  1017. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  1018. local CFRAME = (Table.CFrame or Torso.CFrame)
  1019. local MOVEDIRECTION = (Table.MoveToPos or nil)
  1020. local ROTATION1 = (Table.RotationX or 0)
  1021. local ROTATION2 = (Table.RotationY or 0)
  1022. local ROTATION3 = (Table.RotationZ or 0)
  1023. local MATERIAL = (Table.Material or "Neon")
  1024. local COLOR = (Table.Color or C3(1,1,1))
  1025. local TIME = (Table.Time or 45)
  1026. local SOUNDID = (Table.SoundID or nil)
  1027. local SOUNDPITCH = (Table.SoundPitch or nil)
  1028. local SOUNDVOLUME = (Table.SoundVolume or nil)
  1029. coroutine.resume(coroutine.create(function()
  1030. local PLAYSSOUND = false
  1031. local SOUND = nil
  1032. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  1033. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  1034. PLAYSSOUND = true
  1035. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  1036. end
  1037. EFFECT.Color = COLOR
  1038. local MSH = nil
  1039. if TYPE == "Sphere" then
  1040. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  1041. elseif TYPE == "Block" then
  1042. MSH = IT("BlockMesh",EFFECT)
  1043. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  1044. elseif TYPE == "Wave" then
  1045. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  1046. elseif TYPE == "Ring" then
  1047. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  1048. elseif TYPE == "Slash" then
  1049. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1050. elseif TYPE == "Round Slash" then
  1051. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1052. elseif TYPE == "Swirl" then
  1053. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  1054. elseif TYPE == "Skull" then
  1055. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  1056. elseif TYPE == "Crystal" then
  1057. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  1058. elseif TYPE == "Cylinder" then
  1059. MSH = CreateMesh("SpecialMesh", EFFECT, "Cylinder", "", "", SIZE, VT(0,0,-SIZE.X/8))
  1060. end
  1061. if MSH ~= nil then
  1062. local MOVESPEED = nil
  1063. if MOVEDIRECTION ~= nil then
  1064. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  1065. end
  1066. local GROWTH = SIZE - ENDSIZE
  1067. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  1068. if TYPE == "Block" then
  1069. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1070. else
  1071. EFFECT.CFrame = CFRAME
  1072. end
  1073. for LOOP = 1, TIME+1 do
  1074. Swait()
  1075. MSH.Scale = MSH.Scale - GROWTH/TIME
  1076. if TYPE == "Wave" then
  1077. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  1078. end
  1079. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  1080. if TYPE == "Block" then
  1081. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1082. else
  1083. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  1084. end
  1085. if MOVEDIRECTION ~= nil then
  1086. local ORI = EFFECT.Orientation
  1087. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  1088. EFFECT.Orientation = ORI
  1089. end
  1090. end
  1091. if PLAYSSOUND == false then
  1092. EFFECT:remove()
  1093. else
  1094. SOUND.Stopped:Connect(function()
  1095. EFFECT:remove()
  1096. end)
  1097. end
  1098. else
  1099. if PLAYSSOUND == false then
  1100. EFFECT:remove()
  1101. else
  1102. repeat Swait() until SOUND.Playing == false
  1103. EFFECT:remove()
  1104. end
  1105. end
  1106. end))
  1107. end
  1108.  
  1109. function MakeForm(PART,TYPE)
  1110. if TYPE == "Cyl" then
  1111. local MSH = IT("CylinderMesh",PART)
  1112. elseif TYPE == "Ball" then
  1113. local MSH = IT("SpecialMesh",PART)
  1114. MSH.MeshType = "Sphere"
  1115. elseif TYPE == "Wedge" then
  1116. local MSH = IT("SpecialMesh",PART)
  1117. MSH.MeshType = "Wedge"
  1118. end
  1119. end
  1120.  
  1121. function SpawnTrail(FROM,TO,BIG)
  1122. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Lily white", "Trail", VT(0,0,0))
  1123. MakeForm(TRAIL,"Cyl")
  1124. local DIST = (FROM - TO).Magnitude
  1125. if BIG == true then
  1126. TRAIL.Size = VT(0.5,DIST,0.5)
  1127. else
  1128. TRAIL.Size = VT(0.25,DIST,0.25)
  1129. end
  1130. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  1131. coroutine.resume(coroutine.create(function()
  1132. for i = 1, 5 do
  1133. Swait()
  1134. TRAIL.Transparency = TRAIL.Transparency + 0.1
  1135. end
  1136. TRAIL:remove()
  1137. end))
  1138. end
  1139.  
  1140. Debris = game:GetService("Debris")
  1141.  
  1142. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  1143. local DIRECTION = CF(StartPos,EndPos).lookVector
  1144. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  1145. end
  1146.  
  1147. function turnto(position)
  1148. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  1149. end
  1150.  
  1151. ---//=================================\\
  1152. --|| WEAPON CREATION
  1153. --\\=================================//
  1154.  
  1155.  
  1156. local GUN = script.MegaGunnModel
  1157. GUN.Parent = Character
  1158. for _, c in pairs(GUN:GetChildren()) do
  1159. if c:IsA("BasePart") then
  1160. c.Anchored = false
  1161. c.Transparency = 1
  1162. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1163. if c ~= GUN.PrimaryPart then
  1164. weldBetween(GUN.PrimaryPart,c)
  1165. end
  1166. c.Locked = true
  1167. end
  1168. end
  1169. local GunJoint = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, GUN.PrimaryPart, CFrame.new(0,-1,0), CFrame.new(0, 0, 0))
  1170. local Hole = GUN.Hole
  1171.  
  1172. function GatherAllInstances(Parent,ig)
  1173. local Instances = {}
  1174. local Ignore=nil
  1175. if ig ~= nil then
  1176. Ignore = ig
  1177. end
  1178.  
  1179. local function GatherInstances(Parent,Ignore)
  1180. for i, v in pairs(Parent:GetChildren()) do
  1181.  
  1182. if v ~= Ignore then
  1183. GatherInstances(v,Ignore)
  1184. table.insert(Instances, v) end
  1185. end
  1186. end
  1187. GatherInstances(Parent,Ignore)
  1188. return Instances
  1189. end
  1190.  
  1191. function weld(parent,part0,part1,c0)
  1192. local weld=it("Weld")
  1193. weld.Parent=parent
  1194. weld.Part0=part0
  1195. weld.Part1=part1
  1196. weld.C0=c0
  1197. return weld
  1198. end
  1199.  
  1200. function WeldAllTo(Part1,Part2,scan,Extra)
  1201. local EXCF = Part2.CFrame * Extra
  1202. for i, v3 in pairs(GatherAllInstances(scan)) do
  1203. if v3:isA("BasePart") then
  1204. local STW=weld(v3,v3,Part1,EXCF:toObjectSpace(v3.CFrame):inverse() )
  1205. v3.Anchored=false
  1206. --v3.Transparency=0
  1207. v3.CanCollide=false
  1208. v3.Parent = Part1
  1209. v3.Locked = true
  1210. end
  1211. end
  1212. Part2:Destroy()
  1213. end
  1214.  
  1215. function WeldAllTo(Part1,Part2,scan,Extra)
  1216. local EXCF = Part2.CFrame * Extra
  1217. for i, v3 in pairs(GatherAllInstances(scan)) do
  1218. if v3:isA("BasePart") then
  1219. local STW=weld(v3,v3,Part1,EXCF:toObjectSpace(v3.CFrame):inverse() )
  1220. v3.Anchored=false
  1221. --v3.Transparency=0
  1222. v3.CanCollide=false
  1223. v3.Parent = Part1
  1224. v3.Locked = true
  1225. end
  1226. end
  1227. Part2:Destroy()
  1228. end
  1229.  
  1230.  
  1231.  
  1232.  
  1233. --
  1234. local Particle = IT("ParticleEmitter",nil)
  1235. Particle.Enabled = false
  1236. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  1237. Particle.LightEmission = 0.5
  1238. Particle.Rate = 150
  1239. Particle.ZOffset = 0.2
  1240. Particle.Rotation = NumberRange.new(-180, 180)
  1241. Particle.RotSpeed = NumberRange.new(-180, 180)
  1242. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  1243. Particle.Color = ColorSequence.new(BrickColor.new("Lily white").Color,C3(0,0,3))
  1244.  
  1245. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  1246. function ParticleEmitter(Table)
  1247. local PRTCL = Particle:Clone()
  1248. local Speed = Table.Speed or 5
  1249. local Drag = Table.Drag or 0
  1250. local Size1 = Table.Size1 or 1
  1251. local Size2 = Table.Size2 or 5
  1252. local Lifetime1 = Table.Lifetime1 or 1
  1253. local Lifetime2 = Table.Lifetime2 or 1.5
  1254. local Parent = Table.Parent or Torso
  1255. local Emit = Table.Emit or 100
  1256. local Offset = Table.Offset or 360
  1257. local Acel = Table.Acel or VT(0,0,0)
  1258. local Enabled = Table.Enabled or false
  1259. PRTCL.Parent = Parent
  1260. PRTCL.Size = NumberSequence.new(Size1,Size2)
  1261. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  1262. PRTCL.Speed = NumberRange.new(Speed)
  1263. PRTCL.VelocitySpread = Offset
  1264. PRTCL.Drag = Drag
  1265. PRTCL.Acceleration = Acel
  1266. if Enabled == false then
  1267. PRTCL:Emit(Emit)
  1268. Debris:AddItem(PRTCL,Lifetime2)
  1269. else
  1270. PRTCL.Enabled = true
  1271. end
  1272. return PRTCL
  1273. end
  1274.  
  1275. local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  1276. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  1277. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  1278. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1279. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  1280. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  1281. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1282. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  1283. coroutine.resume(coroutine.create(function()
  1284. while wait() do
  1285. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  1286. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  1287. end
  1288. end))
  1289.  
  1290. for _, c in pairs(Weapon:GetDescendants()) do
  1291. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  1292. c.Material = "Neon"
  1293. c.Color = C3(0,0,0)
  1294. elseif c.ClassName == "Part" and c.Name == "Eye" then
  1295. c.Color = BrickColor.new("Lily white").Color
  1296. c.Material = "Marble"
  1297. end
  1298. end
  1299.  
  1300. Weapon.Parent = Character
  1301. for _, c in pairs(Weapon:GetChildren()) do
  1302. if c.ClassName == "Part" then
  1303. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1304. end
  1305. end
  1306.  
  1307. --local SKILLTEXTCOLOR = BrickColor.new("Lily white").Color
  1308. --local SKILLFONT = "Antique"
  1309. --local SKILLTEXTSIZE = 7
  1310.  
  1311.  
  1312. Humanoid.Died:connect(function()
  1313. ATTACK = true
  1314. end)
  1315.  
  1316. --local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  1317. --[[local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  1318. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.215, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  1319. local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.525, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  1320. local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  1321. ]]
  1322. --local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Banish Bullet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
  1323. --[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
  1324. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
  1325. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
  1326. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5")
  1327. ]]
  1328. function printbye(Name)
  1329. local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "}
  1330. warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  1331. end
  1332.  
  1333.  
  1334.  
  1335. --//=================================\\
  1336. --|| DAMAGING
  1337. --\\=================================//
  1338. function World(Foe)
  1339.  
  1340. end
  1341.  
  1342. function Banish(Foe)
  1343.  
  1344. end
  1345.  
  1346. function WACKYEFFECT2(Table)
  1347. local TYPE = Table.EffectType or "Sphere"
  1348. local SIZE = Table.Size or VT(1, 1, 1)
  1349. local ENDSIZE = Table.Size2 or VT(0, 0, 0)
  1350. local TRANSPARENCY = Table.Transparency or 0
  1351. local ENDTRANSPARENCY = Table.Transparency2 or 1
  1352. local CFRAME = Table.CFrame or Torso.CFrame
  1353. local MOVEDIRECTION = Table.MoveToPos or nil
  1354. local ROTATION1 = Table.RotationX or 0
  1355. local ROTATION2 = Table.RotationY or 0
  1356. local ROTATION3 = Table.RotationZ or 0
  1357. local MATERIAL = Table.Material --or "Neon"
  1358. local COLOR = Table.Color or C3(0, 0, 1)
  1359. local TIME = Table.Time or 45
  1360. local SOUNDID = Table.SoundID or nil
  1361. local SOUNDPITCH = Table.SoundPitch or nil
  1362. local SOUNDVOLUME = Table.SoundVolume or nil
  1363. local USEBOOMERANGMATH = Table.UseBoomerangMath or false
  1364. local BOOMERANG = Table.Boomerang or 0
  1365. local SIZEBOOMERANG = Table.SizeBoomerang or 0
  1366. coroutine.resume(coroutine.create(function()
  1367. local PLAYSSOUND = false
  1368. local SOUND
  1369. local EFFECT = CreatePart(3, Effects, "Marble", 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1, 1, 1), true)
  1370. EFFECT.Color = C3(1,1,1)
  1371. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  1372. PLAYSSOUND = true
  1373. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  1374. end
  1375. local MSH
  1376. if TYPE == "Sphere" then
  1377. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0, 0, 0))
  1378. elseif TYPE == "Block" or TYPE == "Box" then
  1379. MSH = IT("BlockMesh", EFFECT)
  1380. MSH.Scale = SIZE
  1381. elseif TYPE == "Wave" then
  1382. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8))
  1383. elseif TYPE == "Ring" then
  1384. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X, SIZE.X, 0.1), VT(0, 0, 0))
  1385. elseif TYPE == "Slash" then
  1386. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0))
  1387. elseif TYPE == "Round Slash" then
  1388. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0))
  1389. elseif TYPE == "Swirl" then
  1390. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "168892432", "", SIZE, VT(0, 0, 0))
  1391. elseif TYPE == "Skull" then
  1392. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0, 0, 0))
  1393. elseif TYPE == "Star" then
  1394. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "2760116123", "", SIZE, VT(0,0,0))
  1395. elseif TYPE == "Crystal" then
  1396. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "450656451", "", SIZE, VT(0, 0, 0))
  1397. end
  1398. coroutine.resume(coroutine.create(function()
  1399. if MSH ~= nil then
  1400. local BOOMR1 = 1 + BOOMERANG / 50
  1401. local BOOMR2 = 1 + SIZEBOOMERANG / 50
  1402. local MOVESPEED = nil
  1403. if MOVEDIRECTION ~= nil then
  1404. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  1405. end
  1406. local GROWTH
  1407. if USEBOOMERANGMATH == true then
  1408. GROWTH = (SIZE - ENDSIZE) * (BOOMR2 + 1)
  1409. else
  1410. GROWTH = SIZE - ENDSIZE
  1411. end
  1412. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  1413. if TYPE == "Block" then
  1414. EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
  1415. else
  1416. EFFECT.CFrame = CFRAME
  1417. end
  1418. if USEBOOMERANGMATH == true then
  1419. for LOOP = 1, TIME + 1 do
  1420. Swait()
  1421. 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
  1422. if TYPE == "Wave" then
  1423. MSH.Offset = VT(0, 0, -MSH.Scale.Z / 8)
  1424. end
  1425. EFFECT.Transparency = EFFECT.Transparency - TRANS / TIME
  1426. if TYPE == "Block" then
  1427. EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
  1428. else
  1429. EFFECT.CFrame = EFFECT.CFrame * ANGLES(RAD(ROTATION1), RAD(ROTATION2), RAD(ROTATION3))
  1430. end
  1431. if MOVEDIRECTION ~= nil then
  1432. local ORI = EFFECT.Orientation
  1433. EFFECT.CFrame = CF(EFFECT.Position, MOVEDIRECTION) * CF(0, 0, -MOVESPEED * (1 - LOOP / TIME * BOOMR1))
  1434. EFFECT.Orientation = ORI
  1435. end
  1436. end
  1437. else
  1438. for LOOP = 1, TIME + 1 do
  1439. Swait()
  1440. MSH.Scale = MSH.Scale - GROWTH / TIME
  1441. if TYPE == "Wave" then
  1442. MSH.Offset = VT(0, 0, -MSH.Scale.Z / 8)
  1443. end
  1444. EFFECT.Transparency = EFFECT.Transparency - TRANS / TIME
  1445. if TYPE == "Block" then
  1446. EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
  1447. else
  1448. EFFECT.CFrame = EFFECT.CFrame * ANGLES(RAD(ROTATION1), RAD(ROTATION2), RAD(ROTATION3))
  1449. end
  1450. if MOVEDIRECTION ~= nil then
  1451. local ORI = EFFECT.Orientation
  1452. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  1453. EFFECT.Orientation = ORI
  1454. end
  1455. end
  1456. end
  1457. EFFECT.Transparency = 1
  1458. if PLAYSSOUND == false then
  1459. EFFECT:remove()
  1460. else
  1461. repeat
  1462. Swait()
  1463. until EFFECT:FindFirstChildOfClass("Sound") == nil
  1464. EFFECT:remove()
  1465. end
  1466. elseif PLAYSSOUND == false then
  1467. EFFECT:remove()
  1468. else
  1469. repeat
  1470. Swait()
  1471. until EFFECT:FindFirstChildOfClass("Sound") == nil
  1472. EFFECT:remove()
  1473. end
  1474. end))
  1475. return EFFECT
  1476. end))
  1477. end
  1478.  
  1479. function Kill(MODEL)
  1480.  
  1481. end
  1482.  
  1483. function ApplyAoE2(POSITION,RANGE)
  1484.  
  1485. end
  1486.  
  1487. function ShakeCam(Length,Intensity)
  1488. coroutine.resume(coroutine.create(function()
  1489. local intensity = 1 * Intensity
  1490. local rotM = 0.01 * Intensity
  1491. for i = 0, Length, 0.1 do
  1492. Swait()
  1493. intensity = intensity - 0.05 * Intensity / Length
  1494. rotM = rotM - 5.0E-4 * Intensity / Length
  1495. Humanoid.CameraOffset = Vector3.new(RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity)))
  1496. Cam.CFrame = Cam.CFrame * CF(RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity))) * EULER(RAD(MRANDOM(-intensity, intensity)) * rotM, RAD(MRANDOM(-intensity, intensity)) * rotM, RAD(MRANDOM(-intensity, intensity)) * rotM)
  1497. end
  1498. Humanoid.CameraOffset = Vector3.new(0, 0, 0)
  1499. end))
  1500. end
  1501.  
  1502. function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  1503. local wave = CreatePart(3, Effects, "Marble", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  1504. local mesh = IT("SpecialMesh",wave)
  1505. mesh.MeshType = "FileMesh"
  1506. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1507. mesh.Scale = SIZE
  1508. mesh.Offset = VT(0,0,0)
  1509. wave.CFrame = CFRAME
  1510. wave.Color = C3(1,1,1)
  1511. coroutine.resume(coroutine.create(function(PART)
  1512. for i = 1, WAIT do
  1513. Swait()
  1514. mesh.Scale = mesh.Scale + GROW
  1515. local val = MRANDOM(1,255)
  1516. wave.Color = Color3.fromRGB(val,val,val)
  1517. if DOESROT == true then
  1518. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  1519. end
  1520. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1521. if wave.Transparency > 0.99 then
  1522. wave:remove()
  1523. end
  1524. end
  1525. end))
  1526. end
  1527.  
  1528. function ApplyAoE(POSITION,RANGE,ISBANISH)
  1529.  
  1530. end
  1531.  
  1532. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  1533. local wave = CreatePart(3, Effects, "Marble", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  1534. local mesh = IT("SpecialMesh",wave)
  1535. mesh.MeshType = "Sphere"
  1536. mesh.Scale = SIZE
  1537. mesh.Offset = VT(0,0,0)
  1538. wave.CFrame = CFRAME
  1539. coroutine.resume(coroutine.create(function(PART)
  1540. for i = 1, WAIT do
  1541. Swait()
  1542. mesh.Scale = mesh.Scale + GROW
  1543. wave.Transparency = wave.Transparency + (1/WAIT)
  1544. wave.Color = C3(1,1,1)
  1545. if wave.Transparency > 0.99 then
  1546. wave:remove()
  1547. end
  1548. end
  1549. end))
  1550. end
  1551.  
  1552. function SHAKECAM(POSITION,RANGE,INTENSITY,TIME)
  1553. local CHILDREN = workspace:GetDescendants()
  1554. for index, CHILD in pairs(CHILDREN) do
  1555. if CHILD.ClassName == "Model" then
  1556. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1557. if HUM then
  1558. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1559. if TORSO then
  1560. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1561. local CAMSHAKER = script.CamShake:Clone()
  1562. CAMSHAKER.Shake.Value = INTENSITY
  1563. CAMSHAKER.Timer.Value = TIME
  1564. CAMSHAKER.Parent = CHILD
  1565. CAMSHAKER.Disabled = false
  1566. end
  1567. end
  1568. end
  1569. end
  1570. end
  1571. end
  1572.  
  1573. abss = Instance.new("BillboardGui",Character)
  1574. abss.Size = UDim2.new(10,0,10,0)
  1575. abss.Enabled = false
  1576. img2 = Instance.new("ImageLabel",abss)
  1577. img2.Position = UDim2.new(0,0,0,0)
  1578. img2.Size = UDim2.new(1,0,1,0)
  1579. img2.Image = "rbxassetid://1490455495"
  1580. img2.BackgroundTransparency = 1
  1581. img2.ImageColor3 = Color3.new(.9,0,0)
  1582. function TargetSelect(person)
  1583. local dd=coroutine.wrap(function()
  1584. if targetted ~= person then
  1585. targetted = person
  1586. img2.Size = UDim2.new(1,0,1,0)
  1587. img2.ImageTransparency = 0
  1588. img2.Position = UDim2.new(0,0,0,0)
  1589. for i = 0, 7, 0.35 do
  1590. swait()
  1591. img2.Size = img2.Size + UDim2.new(.075,0,.075,0)
  1592. img2.Position = img2.Position + UDim2.new(-.0375,0,-.0375,0)
  1593. img2.ImageTransparency = img2.ImageTransparency + 0.05
  1594. end
  1595. end
  1596. end)
  1597. dd()
  1598. end
  1599.  
  1600. function dmg(dude)
  1601. end
  1602.  
  1603. function mdmg(Part,Magnitude)
  1604. end
  1605.  
  1606. function Lightning(Part0, Part1, Times, Offset, Color, Timer, sSize, eSize, Trans, Boomer, sBoomer)
  1607. local magz = (Part0 - Part1).magnitude
  1608. local curpos = Part0
  1609. local trz = {
  1610. -Offset,
  1611. Offset
  1612. }
  1613. for i = 1, Times do
  1614. local li = Instance.new("Part", Effects)
  1615. li.Name = "Lightning"
  1616. li.TopSurface = 0
  1617. li.Material = "Marble"
  1618. li.BottomSurface = 0
  1619. li.Anchored = true
  1620. li.Locked = true
  1621. li.Transparency = 0
  1622. li.BrickColor = Color
  1623. li.formFactor = "Custom"
  1624. li.CanCollide = false
  1625. li.Size = Vector3.new(0.1, 0.1, magz / Times)
  1626. local Offzet = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  1627. local trolpos = CFrame.new(curpos, Part1) * CFrame.new(0, 0, magz / Times).p + Offzet
  1628. if Times == i then
  1629. local magz2 = (curpos - Part1).magnitude
  1630. li.Size = Vector3.new(0.1, 0.1, magz2)
  1631. li.CFrame = CFrame.new(curpos, Part1) * CFrame.new(0, 0, -magz2 / 2)
  1632. else
  1633. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / Times / 2)
  1634. end
  1635. curpos = li.CFrame * CFrame.new(0, 0, magz / Times / 2).p
  1636. li:Destroy()
  1637. Effect({Time = Timer, EffectType = "Box", Size = Vector3.new(sSize,sSize,li.Size.Z), Size2 = Vector3.new(eSize,eSize,li.Size.Z), Transparency = Trans, Transparency2 = 1, CFrame = li.CFrame, MoveToPos = nil, RotationX = nil, RotationY = nil, RotationZ = nil, Material = "Neon", Color = li.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = Boomer, Boomerang = 0, SizeBoomerang = sBoomer})
  1638. end
  1639. end
  1640.  
  1641. function Effect(Table)
  1642. local TYPE = (Table.EffectType or "Sphere")
  1643. local SIZE = (Table.Size or Vector3.new(1,1,1))
  1644. local ENDSIZE = (Table.Size2 or Vector3.new(0,0,0))
  1645. local TRANSPARENCY = (Table.Transparency or 0)
  1646. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  1647. local CFRAME = (Table.CFrame or Torso.CFrame)
  1648. local MOVEDIRECTION = (Table.MoveToPos or nil)
  1649. local ROTATION1 = (Table.RotationX or 0)
  1650. local ROTATION2 = (Table.RotationY or 0)
  1651. local ROTATION3 = (Table.RotationZ or 0)
  1652. local MATERIAL = (Table.Material or "Neon")
  1653. local COLOR = (Table.Color or Color3.new(1,1,1))
  1654. local TIME = (Table.Time or 45)
  1655. local SOUNDID = (Table.SoundID or nil)
  1656. local SOUNDPITCH = (Table.SoundPitch or nil)
  1657. local SOUNDVOLUME = (Table.SoundVolume or nil)
  1658. local USEBOOMERANGMATH = (Table.UseBoomerangMath or false)
  1659. local BOOMERANG = (Table.Boomerang or 0)
  1660. local SIZEBOOMERANG = (Table.SizeBoomerang or 0)
  1661. coroutine.resume(coroutine.create(function()
  1662. local PLAYSSOUND = false
  1663. local SOUND = nil
  1664. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BrickColor.new("Pearl"), "Effect", Vector3.new(1,1,1), true)
  1665. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  1666. PLAYSSOUND = true
  1667. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  1668. end
  1669. EFFECT.Color = COLOR
  1670. local MSH = nil
  1671. if TYPE == "Sphere" then
  1672. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, Vector3.new(0,0,0))
  1673. elseif TYPE == "Block" or TYPE == "Box" then
  1674. MSH = Instance.new("BlockMesh",EFFECT)
  1675. MSH.Scale = SIZE
  1676. elseif TYPE == "Wave" then
  1677. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, Vector3.new(0,0,-SIZE.X/8))
  1678. elseif TYPE == "Ring" then
  1679. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", Vector3.new(SIZE.X,SIZE.X,0.1), Vector3.new(0,0,0))
  1680. elseif TYPE == "Slash" then
  1681. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", Vector3.new(SIZE.X/10,0,SIZE.X/10), Vector3.new(0,0,0))
  1682. elseif TYPE == "Round Slash" then
  1683. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", Vector3.new(SIZE.X/10,0,SIZE.X/10), Vector3.new(0,0,0))
  1684. elseif TYPE == "Swirl" then
  1685. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "168892432", "", SIZE, Vector3.new(0,0,0))
  1686. elseif TYPE == "Skull" then
  1687. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, Vector3.new(0,0,0))
  1688. elseif TYPE == "Crystal" then
  1689. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, Vector3.new(0,0,0))
  1690. end
  1691. if MSH ~= nil then
  1692. local BOOMR1 = 1+BOOMERANG/50
  1693. local BOOMR2 = 1+SIZEBOOMERANG/50
  1694. local MOVESPEED = nil
  1695. if MOVEDIRECTION ~= nil then
  1696. if USEBOOMERANGMATH == true then
  1697. MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)*BOOMR1
  1698. else
  1699. MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)
  1700. end
  1701. end
  1702. local GROWTH = nil
  1703. if USEBOOMERANGMATH == true then
  1704. GROWTH = (SIZE - ENDSIZE)*(BOOMR2+1)
  1705. else
  1706. GROWTH = (SIZE - ENDSIZE)
  1707. end
  1708. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  1709. if TYPE == "Block" then
  1710. EFFECT.CFrame = CFRAME*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1711. else
  1712. EFFECT.CFrame = CFRAME
  1713. end
  1714. if USEBOOMERANGMATH == true then
  1715. for LOOP = 1, TIME+1 do
  1716. swait()
  1717. MSH.Scale = MSH.Scale - (Vector3.new((GROWTH.X)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Y)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Z)*((1 - (LOOP/TIME)*BOOMR2)))*BOOMR2)/TIME
  1718. if TYPE == "Wave" then
  1719. MSH.Offset = Vector3.new(0,0,-MSH.Scale.Z/8)
  1720. end
  1721. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  1722. if TYPE == "Block" then
  1723. EFFECT.CFrame = CFRAME*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1724. else
  1725. EFFECT.CFrame = EFFECT.CFrame*CFrame.Angles(math.rad(ROTATION1),math.rad(ROTATION2),math.rad(ROTATION3))
  1726. end
  1727. if MOVEDIRECTION ~= nil then
  1728. local ORI = EFFECT.Orientation
  1729. EFFECT.CFrame = CFrame.new(EFFECT.Position,MOVEDIRECTION)*CFrame.new(0,0,-(MOVESPEED)*((1 - (LOOP/TIME)*BOOMR1)))
  1730. EFFECT.Orientation = ORI
  1731. end
  1732. end
  1733. else
  1734. for LOOP = 1, TIME+1 do
  1735. swait()
  1736. MSH.Scale = MSH.Scale - GROWTH/TIME
  1737. if TYPE == "Wave" then
  1738. MSH.Offset = Vector3.new(0,0,-MSH.Scale.Z/8)
  1739. end
  1740. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  1741. if TYPE == "Block" then
  1742. EFFECT.CFrame = CFRAME*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1743. else
  1744. EFFECT.CFrame = EFFECT.CFrame*CFrame.Angles(math.rad(ROTATION1),math.rad(ROTATION2),math.rad(ROTATION3))
  1745. end
  1746. if MOVEDIRECTION ~= nil then
  1747. local ORI = EFFECT.Orientation
  1748. EFFECT.CFrame = CFrame.new(EFFECT.Position,MOVEDIRECTION)*CFrame.new(0,0,-MOVESPEED)
  1749. EFFECT.Orientation = ORI
  1750. end
  1751. end
  1752. end
  1753. EFFECT.Transparency = 1
  1754. if PLAYSSOUND == false then
  1755. EFFECT:remove()
  1756. else
  1757. repeat swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  1758. EFFECT:remove()
  1759. end
  1760. else
  1761. if PLAYSSOUND == false then
  1762. EFFECT:remove()
  1763. else
  1764. repeat swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  1765. EFFECT:remove()
  1766. end
  1767. end
  1768. end))
  1769. end
  1770.  
  1771. --// Moves, Attacks, etc.. \\--
  1772.  
  1773. local B1 = GUN.B1
  1774. local B3 = GUN.B3
  1775.  
  1776. B1.Transparency = 1
  1777.  
  1778. B3.Transparency = 0
  1779.  
  1780.  
  1781. NewInstance = function(instance,parent,properties)
  1782. local inst = Instance.new(instance)
  1783. inst.Parent = parent
  1784. if(properties)then
  1785. for i,v in next, properties do
  1786. pcall(function() inst[i] = v end)
  1787. end
  1788. end
  1789. return inst;
  1790. end
  1791. local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
  1792. local Plrs = S.Players
  1793. local FXFolder = script.Effects
  1794. FXFolder.Parent = nil
  1795.  
  1796.  
  1797. local Plrs = S.Players
  1798.  
  1799. function CamShake(who,times,intense,origin)
  1800. coroutine.wrap(function()
  1801. if(FXFolder:FindFirstChild'CamShake')then
  1802. local cam = FXFolder.CamShake:Clone()
  1803. cam:WaitForChild'intensity'.Value = intense
  1804. cam:WaitForChild'times'.Value = times
  1805.  
  1806. if(origin)then NewInstance((typeof(origin) == 'Instance' and "ObjectValue" or typeof(origin) == 'Vector3' and 'Vector3Value'),cam,{Name='origin',Value=origin}) end
  1807. cam.Parent = who
  1808. wait()
  1809. cam.Disabled = false
  1810. end
  1811. end)()
  1812. end
  1813.  
  1814. function CamShakeAll(times,intense,origin)
  1815. for _,v in next, Plrs:players() do
  1816. CamShake(v:FindFirstChildOfClass'PlayerGui' or v:FindFirstChildOfClass'Backpack' or v.character,times,intense,origin)
  1817. end
  1818. end
  1819.  
  1820. --// Visualiser Thing \\--
  1821.  
  1822. local Sound = Instance.new("Sound", Workspace)
  1823. local SongName = "RIF.mp3"
  1824. if not isfile(SongName) then
  1825. writefile(SongName, game:HttpGet("https://download843.mediafire.com/t3em14z8rldgoA6knvjshFJMi-DISOBu-unpOL9-RPxA0f7TOIyJ-R752pnQX3yJ93oOVs_AD4ljjQR4sB3UYTv0GgKeOo2VQzKw5hxYHpMdJngf9TQFro8fC9t_2-yyf6EEIWvIMctrWK7oENa3fYV-juBa_yvCf8rHnsRyX5FA/h7oh8xte2zilz76/thats-what-i-spy-mashup.mp3"))
  1826. end
  1827. Sound.SoundId = syn and getsynasset(SongName) or getcustomasset(SongName)
  1828. Sound.Volume = "2.5"
  1829. Sound.Looped = true
  1830. Sound:Play()
  1831.  
  1832. local Music = 145033759
  1833. local gaysong = Instance.new("Sound", Torso)
  1834. gaysong.SoundId = "rbxassetid://"..Music
  1835. gaysong.Pitch = 1
  1836. gaysong.TimePosition = 0
  1837. gaysong.Volume = 10
  1838. gaysong.Parent = Torso
  1839. gaysong:Play()
  1840. gaysong.Looped = true
  1841.  
  1842. local outer = Instance.new("Part")
  1843. outer.Locked = true
  1844. outer.CanCollide = false
  1845. outer.Shape = Enum.PartType.Cylinder
  1846. outer.Size = Vector3.new(0.05, 1, 1)
  1847. outer.Material = Enum.Material.Marble
  1848. outer.Parent = Character
  1849.  
  1850. local outerm = Instance.new("SpecialMesh")
  1851. outerm.MeshType = Enum.MeshType.Cylinder
  1852. outerm.Parent = outer
  1853.  
  1854. local weld1 = Instance.new("Weld")
  1855. weld1.Part0 = outer
  1856. weld1.Part1 = Character["HumanoidRootPart"]
  1857. weld1.Parent = outer
  1858. weld1.C0 = CFrame.new(-2.95, 0, 0) * CFrame.Angles(0, 0, 1.571)
  1859. coroutine.resume(coroutine.create(function()
  1860. while true do
  1861. Swait()
  1862. outerm.Scale = Vector3.new(0, Sound.PlaybackLoudness / 25, Sound.PlaybackLoudness / 25)
  1863. end
  1864. end))
  1865. -----------------------
  1866.  
  1867. function Shot()
  1868. ATTACK = true
  1869. Rooted = false
  1870. repeat
  1871.  
  1872. for i=0, 1, 0.1 / Animation_Speed do
  1873. Swait()
  1874. turnto(Mouse.Hit.p)
  1875.  
  1876. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 - 0.1 * SIN(SINE / 15)) * ANGLES(RAD(0), RAD(0), RAD(-60)), 0.5 / Animation_Speed)
  1877. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(60)), 0.5 / Animation_Speed)
  1878. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.2, -0.8) * ANGLES(RAD(85), RAD(0), RAD(-70)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1879. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.4, -0.3) * ANGLES(RAD(90), RAD(70), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1880. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.1 * SIN(SINE / 15), -0.01) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1881. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 + 0.1 * SIN(SINE / 15), -0.01) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1882. end
  1883. B1.Transparency = 0
  1884. B3.Transparency = 1
  1885. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  1886. SpawnTrail(Hole.Position,POS)
  1887. if HIT ~= nil then
  1888. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  1889. Banish(HIT.Parent)
  1890. end
  1891. end
  1892. WACKYEFFECT({
  1893. Time = 5,
  1894. EffectType = "Round Slash",
  1895. Size = VT(0, 0, 0),
  1896. Size2 = VT(0.01, 0, 0.01),
  1897. Transparency = 0,
  1898. Transparency2 = 1,
  1899. CFrame = CF(Hole.Position) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))),
  1900. MoveToPos = nil,
  1901. RotationX = MRANDOM(-50, 50) / 10,
  1902. RotationY = MRANDOM(-50, 50) / 10,
  1903. RotationZ = MRANDOM(-50, 50) / 10,
  1904. Material = "Neon",
  1905. Color = C3(1, 1, 1),
  1906. SoundID = nil,
  1907. SoundPitch = 1.05,
  1908. SoundVolume = 5
  1909. })
  1910. WACKYEFFECT({
  1911. Time = 5,
  1912. EffectType = "Round Slash",
  1913. Size = VT(0, 0, 0),
  1914. Size2 = VT(0.01, 0, 0.01),
  1915. Transparency = 0,
  1916. Transparency2 = 1,
  1917. CFrame = CF(Hole.Position) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))),
  1918. MoveToPos = nil,
  1919. RotationX = MRANDOM(-50, 50) / 10,
  1920. RotationY = MRANDOM(-50, 50) / 10,
  1921. RotationZ = MRANDOM(-50, 50) / 10,
  1922. Material = "Neon",
  1923. Color = C3(1, 1, 1),
  1924. SoundID = nil,
  1925. SoundPitch = 1.05,
  1926. SoundVolume = 5
  1927. })
  1928. WACKYEFFECT({TIME = 30 ,EffectType = "Block", Size = VT(0,0,0), Size2 = VT(0.5,0.5,0.5), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1929. WACKYEFFECT({Time = 25, EffectType = "Block", Size = VT(0.5,0.5,0.5), Size2 = VT(0.5,0.5,0.5), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1930. WACKYEFFECT({Time = 25, EffectType = "Block", Size = VT(0.5,0.5,0.5), Size2 = VT(0.5,0.5,0.5), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1931. CreateSound(10209859, Hole, 3, 1, false)
  1932. CamShakeAll(3,5)
  1933. for i=0, 0.5, 0.1 / Animation_Speed do
  1934. Swait()
  1935. turnto(Mouse.Hit.p)
  1936.  
  1937. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.5, 0 - 0.1 * SIN(SINE / 15)) * ANGLES(RAD(-6), RAD(0), RAD(-60)), 0.5 / Animation_Speed)
  1938. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(60)), 0.5 / Animation_Speed)
  1939. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.2, -0.8) * ANGLES(RAD(85), RAD(0), RAD(-70)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1940. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.4, -0.3) * ANGLES(RAD(90), RAD(70), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1941. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.1 * SIN(SINE / 15), -0.01) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(-25)), 0.5 / Animation_Speed)
  1942. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 + 0.1 * SIN(SINE / 15), -0.01) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1943. end
  1944.  
  1945. B1.Transparency = 1
  1946. B3.Transparency =0
  1947.  
  1948. until KEYHOLD == false
  1949. ATTACK = false
  1950. Rooted = false
  1951. end
  1952.  
  1953. function CreateWave2(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  1954. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, COLOR, "Effect", VT(0,0,0))
  1955. local mesh = IT("SpecialMesh",wave)
  1956. mesh.MeshType = "FileMesh"
  1957. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1958. mesh.Scale = SIZE
  1959. wave.CFrame = CFRAME
  1960. coroutine.resume(coroutine.create(function(PART)
  1961. for i = 1, WAIT do
  1962. Swait()
  1963. mesh.Scale = mesh.Scale + GROW
  1964. wave.Color = C3(0,0,0)
  1965. if DOESROT == true then
  1966. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  1967. end
  1968. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1969. if wave.Transparency > 0.99 then
  1970. wave:remove()
  1971. end
  1972. end
  1973. end))
  1974. end
  1975.  
  1976. function Warp()
  1977. WACKYEFFECT({Time = MRANDOM(15,65),EffectType = "Slash", Size = VT(0,0.05,0), Size2 = VT(1,1,1)*MRANDOM(1,8), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,-2,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1978. WACKYEFFECT({Time = MRANDOM(15,65),EffectType = "Slash", Size = VT(0,0.05,0), Size2 = VT(1,1,1)*MRANDOM(1,8), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,-2,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1979. WACKYEFFECT({Time = MRANDOM(15,65),EffectType = "Slash", Size = VT(0,0.05,0), Size2 = VT(1,1,1)*MRANDOM(1,8), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,-2,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1980. local ORIGIN = RootPart.Position
  1981. CreateWave2(VT(1,1,1),25,CF(RootPart.Position)*CF(0,-3,0),false,2,"Lily white",VT(0.2,1,0.2))
  1982. CreateWave2(VT(1,1,1),25,CF(RootPart.Position)*CF(0,-3,0),false,2,"Really black",VT(0.2,1,0.2))
  1983. local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Lily white", "Sound", VT(0,0,0))
  1984. SOUNDPART.CFrame = RootPart.CFrame
  1985. Debris:AddItem(SOUNDPART,5)
  1986. CreateSound("1295446488", SOUNDPART, 2, 1)
  1987. RootPart.CFrame = CF(Mouse.Hit.p+VT(0,3,0),VT(ORIGIN.X,Mouse.Hit.p.Y,ORIGIN.Z))
  1988. Swait()
  1989. CreateWave2(VT(1,1,1),25,CF(RootPart.Position)*CF(0,-3,0),false,2,"Really black",VT(0.2,1,0.2))
  1990. CreateWave2(VT(1,1,1),25,CF(RootPart.Position)*CF(0,-3,0),false,2,"Lily white",VT(0.2,1,0.2))
  1991. local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Really black", "Sound", VT(0,0,0))
  1992. SOUNDPART.CFrame = RootPart.CFrame
  1993. Debris:AddItem(SOUNDPART,5)
  1994. CreateSound("1295446488", SOUNDPART, 2, 1)
  1995. WACKYEFFECT({Time = MRANDOM(15,65),EffectType = "Slash", Size = VT(0,0.05,0), Size2 = VT(1,1,1)*MRANDOM(1,8), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,-2,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1996. WACKYEFFECT({Time = MRANDOM(15,65),EffectType = "Slash", Size = VT(0,0.05,0), Size2 = VT(1,1,1)*MRANDOM(1,8), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,-2,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1997. WACKYEFFECT({Time = MRANDOM(15,65),EffectType = "Slash", Size = VT(0,0.05,0), Size2 = VT(1,1,1)*MRANDOM(1,8), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,-2,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1998. ATTACK = false
  1999. Rooted = false
  2000. end
  2001.  
  2002. function KillChildren(v)
  2003.  
  2004. end
  2005.  
  2006. function Death(POSITION,RANGE)
  2007.  
  2008. end
  2009.  
  2010. function spawnwave(POS)
  2011. local HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, Character)
  2012. local EMITPOS = HITPOS
  2013. if HITFLOOR ~= nil then
  2014. if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then
  2015. HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent)
  2016. EMITPOS = HITPOS
  2017. elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  2018. HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent.Parent)
  2019. EMITPOS = HITPOS
  2020. end
  2021. end
  2022. if HITFLOOR ~= nil then
  2023. Death(EMITPOS,55)
  2024. WACKYEFFECT({EffectType = "Sphere", Size = VT(55,100000,55), Size2 = VT(0,100000,0), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Marble", Color = C3(0,0,0), SoundID = 1079408535, SoundPitch = 1, SoundVolume = 1})
  2025. WACKYEFFECT({TIME = MRANDOM(0,44), EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(77 + 7 * COS(SINE/4),2 + 6 * COS(SINE/4),77 + 4 * COS(SINE/4)), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-22,22), RotationZ = 0, Material = "Marble", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2026. for i = 1, 5 do
  2027. local TOPOS = CF(EMITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,12)
  2028. WACKYEFFECT({TIME = MRANDOM(0,44), EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(77 + 7 * COS(SINE/4),2 + 6 * COS(SINE/4),77 + 4 * COS(SINE/4)), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS,TOPOS.p), MoveToPos = TOPOS.p, RotationX = 0, RotationY = MRANDOM(-22,22), RotationZ = 0, Material = "Marble", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2029. end
  2030. end
  2031. end
  2032.  
  2033.  
  2034. local PLAYANIMS = true
  2035. function Slash()
  2036. ATTACK = true
  2037. Rooted = true
  2038. PLAYANIMS = false
  2039. local STOPPP = false
  2040. MagicSphere(VT(0,0,0),15,RootPart.CFrame,"Really black",VT(2,2,2))
  2041. coroutine.wrap(function()
  2042. while wait() do
  2043. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,5,1), Size2 = VT(1,25,1), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,0,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Lily white".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2044. if STOPPP == true then
  2045. break
  2046. end
  2047. end
  2048. end)()
  2049. for i=0, 1, 0.1 / Animation_Speed do
  2050. Swait()
  2051. CreateRing(VT(0,0,0),false,0,5,CF(RootPart.Position-VT(0,3,0))*ANGLES(RAD(90),RAD(0),RAD(0)),"Really black",VT(1,1,0))
  2052. turnto(Mouse.Hit.p)
  2053. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, -0.5*SIZE) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.5 / Animation_Speed)
  2054. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0*SIZE + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(75)), 0.5 / Animation_Speed)
  2055. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(-45), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2056. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.2*SIZE, 0.5*SIZE, -1*SIZE) * ANGLES(RAD(0), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2057. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -0.5*SIZE, -0.5*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2058. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.01*SIZE) * ANGLES(RAD(-45), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2059. end
  2060. for i=0,0.1, 0.1 / Animation_Speed do
  2061. Swait()
  2062. turnto(Mouse.Hit.p)
  2063. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(75)), 0.5)
  2064. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0*SIZE + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.5)
  2065. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(-45), RAD(0)) * RIGHTSHOULDERC0, 0.5)
  2066. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, -1*SIZE) * ANGLES(RAD(90), RAD(0), RAD(75)) * LEFTSHOULDERC0, 0.5)
  2067. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.01*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5)
  2068. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.01*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5)
  2069. end
  2070. local SOUND = CreateSound("rbxasset://sounds/swordlunge.wav", Torso, 5, 0.6)
  2071. SOUND.SoundId = "rbxasset://sounds/swordlunge.wav"
  2072. CreateSound(62339698, Torso, 10, 0.4)
  2073. ApplyAoE(RootPart.Position,55)
  2074. ShakeCam(3,25)
  2075. WACKYEFFECT({Time = 25, EffectType = "Block", Size = VT(5,5,5), Size2 = VT(100,100,100)*MRANDOM(1000/1000,1750/1000), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,0,0)*ANGLES(RAD(MRANDOM(-5,5)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-5,5))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-100/1000,100/1000), RotationZ = 0, Material = "Marble", Color = C3(0,0,0), SoundID = 3923230963, SoundPitch = MRANDOM(1,1.1), SoundVolume = 10})
  2076. WACKYEFFECT({Time = 25, EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(1,0,1)*MRANDOM(1000/1000,1750/1000), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,-4,0)*ANGLES(RAD(MRANDOM(-5,5)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-5,5))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-100/100,100/100), RotationZ = 0, Material = "Marble", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2077. WACKYEFFECT({Time = 25, EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(1,0,1)*MRANDOM(1000/1000,1750/1000), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,-4,0)*ANGLES(RAD(MRANDOM(-5,5)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-5,5))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-100/100,100/100), RotationZ = 0, Material = "Marble", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2078. WACKYEFFECT({Time = 25, EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(1,0,1)*MRANDOM(1000/1000,1750/1000), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,-4,0)*ANGLES(RAD(MRANDOM(-5,5)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-5,5))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-100/100,100/100), RotationZ = 0, Material = "Marble", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2079. STOPPP = true
  2080. for i=0, 1, 0.1 / Animation_Speed do
  2081. Swait()
  2082. turnto(Mouse.Hit.p)
  2083. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(75)), 0.5)
  2084. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0*SIZE + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.5)
  2085. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*SIZE, 0.5*SIZE, -1*SIZE) * ANGLES(RAD(90), RAD(0), RAD(-75)) * RIGHTSHOULDERC0, 0.5)
  2086. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, -1*SIZE) * ANGLES(RAD(90), RAD(0), RAD(75)) * LEFTSHOULDERC0, 0.5)
  2087. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.01*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5)
  2088. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.01*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5)
  2089. end
  2090. PLAYANIMS = true
  2091. ATTACK = false
  2092. Rooted = false
  2093. end
  2094.  
  2095. function beam()
  2096. ATTACK = true
  2097. Rooted = false
  2098. for i=0,2,.5 / Animation_Speed do
  2099. spawnwave(Mouse.Hit.p)
  2100. end
  2101. ATTACK = false
  2102. Rooted = false
  2103. end
  2104.  
  2105.  
  2106. local rc0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(180))
  2107. local nc0 = CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(180))
  2108. local rscp = CFrame.new(-0.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0))
  2109. local lscp = CFrame.new(0.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0))
  2110. local walkspeed = 16
  2111. Humanoid.WalkSpeed = walkspeed
  2112. function hedshoot()
  2113. ATTACK = true
  2114. walkspeed = 16
  2115. CreateSound(235097614, RootPart, 6, 1.5, false)
  2116. for i = 0, 0.5, 0.05 do
  2117. wait(0)
  2118. RootJoint.C0 = Clerp(RootJoint.C0,rc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-60)), 1 / 3)
  2119. Neck.C0 = Clerp(Neck.C0, nc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(60)), 1 / 3)
  2120. RightShoulder.C0 = Clerp(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-60)) * rscp, 1 / 3)
  2121. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(40), math.rad(5), math.rad(5)) * lscp, 1 / 3)
  2122. RightHip.C0 = Clerp(RightHip.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-5), math.rad(75), math.rad(0)) * CFrame.Angles(math.rad(-4), math.rad(0), math.rad(0)), 1 / 3)
  2123. LeftHip.C0 = Clerp(LeftHip.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-65), math.rad(0)) * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), 1 / 3)
  2124. end
  2125. mdmg(RootPart.Position,14)
  2126. SHAKECAM(RootPart.Position,14,11,18)
  2127. for i = 1, 4 do
  2128. RootPart.CFrame = RootPart.CFrame * CFrame.new(0,0,-25)
  2129. mdmg(RootPart.Position,14)
  2130. SHAKECAM(RootPart.Position,14,11,18)
  2131. end
  2132. for i = 0, 0.5, 0.1 do
  2133. wait(0)
  2134.  
  2135. RootJoint.C0 = Clerp(RootJoint.C0,rc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)), 1 / 3)
  2136. Neck.C0 = Clerp(Neck.C0, nc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), 1 / 3)
  2137. RightShoulder.C0 = Clerp(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(90)) * rscp, 1 / 3)
  2138. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(40), math.rad(5), math.rad(5)) * lscp, 1 / 3)
  2139. RightHip.C0 = Clerp(RightHip.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-5), math.rad(75), math.rad(0)) * CFrame.Angles(math.rad(-4), math.rad(0), math.rad(0)), 1 / 3)
  2140. LeftHip.C0 = Clerp(LeftHip.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-65), math.rad(0)) * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), 1 / 3)
  2141. end
  2142. ATTACK = false
  2143. walkspeed = 16
  2144. end
  2145.  
  2146.  
  2147. function painlessrain()
  2148.  
  2149. ATTACK = true
  2150. walkspeed = 16
  2151. coroutine.wrap(function()
  2152. for i = 0, 2 do
  2153. wait(.2)
  2154. CreateSound(199145095, GUN, 6, 1)
  2155. end
  2156. end)()
  2157. wait(.01)
  2158. for i = 0, 2, 0.1 do
  2159. RootJoint.C0 = Clerp(RootJoint.C0,rc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 1 / 3)
  2160. Neck.C0 = Clerp(Neck.C0, nc0 * CFrame.new(0, 0, 0 + ((1) - 1)) * CFrame.Angles(math.rad(25), math.rad(0), math.rad(-20)), 1 / 3)
  2161. RightShoulder.C0 = Clerp(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(35), math.rad(-35), math.rad(20)) * rscp, 1 / 3)
  2162. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-20), math.rad(-5), math.rad(-10)) * lscp, 1 / 3)
  2163. RightHip.C0 = Clerp(RightHip.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-5), math.rad(80), math.rad(0)) * CFrame.Angles(math.rad(-4), math.rad(0), math.rad(0)), 1 / 3)
  2164. LeftHip.C0 = Clerp(LeftHip.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-70), math.rad(0)) * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), 1 / 3)
  2165. end
  2166. wait(.01)
  2167.  
  2168. for i = 0, 1.5, 0.1 do
  2169. RootJoint.C0 = Clerp(RootJoint.C0,rc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-5)), 1 / 3)
  2170. Neck.C0 = Clerp(Neck.C0, nc0 * CFrame.new(0, 0, 0 + ((1) - 1)) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(-5)), 1 / 3)
  2171. RightShoulder.C0 = Clerp(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(175), math.rad(-10), math.rad(10)) * rscp, 1 / 3)
  2172. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-10), math.rad(-10), math.rad(-5)) * lscp, 1 / 3)
  2173. RightHip.C0 = Clerp(RightHip.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-5), math.rad(80), math.rad(0)) * CFrame.Angles(math.rad(-4), math.rad(0), math.rad(0)), 1 / 3)
  2174. LeftHip.C0 = Clerp(LeftHip.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-70), math.rad(0)) * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), 1 / 3)
  2175. end
  2176. local Hole2 = Hole.CFrame*CFrame.new(-600,0,0)
  2177. for i = 0, 2 do
  2178. end
  2179. wait(.01)
  2180. for i = 0, .5, 0.1 do
  2181. RootJoint.C0 = Clerp(RootJoint.C0,rc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-5)), 1 / 3)
  2182. Neck.C0 = Clerp(Neck.C0, nc0 * CFrame.new(0, 0, 0 + ((1) - 1)) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(-5)), 1 / 3)
  2183. RightShoulder.C0 = Clerp(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(225), math.rad(-20), math.rad(20)) * rscp, 1 / 3)
  2184. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-5), math.rad(-5), math.rad(0)) * lscp, 1 / 3)
  2185. RightHip.C0 = Clerp(RightHip.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-5), math.rad(80), math.rad(0)) * CFrame.Angles(math.rad(-4), math.rad(0), math.rad(0)), 1 / 3)
  2186. LeftHip.C0 = Clerp(LeftHip.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-70), math.rad(0)) * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), 1 / 3)
  2187. end
  2188. wait(.01)
  2189.  
  2190. for i = 0, .5, 0.1 do
  2191. RootJoint.C0 = Clerp(RootJoint.C0,rc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-5)), 1 / 3)
  2192. Neck.C0 = Clerp(Neck.C0, nc0 * CFrame.new(0, 0, 0 + ((1) - 1)) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(-5)), 1 / 3)
  2193. RightShoulder.C0 = Clerp(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(175), math.rad(-10), math.rad(10)) * rscp, 1 / 3)
  2194. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-5), math.rad(-5), math.rad(0)) * lscp, 1 / 3)
  2195. RightHip.C0 = Clerp(RightHip.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-5), math.rad(80), math.rad(0)) * CFrame.Angles(math.rad(-4), math.rad(0), math.rad(0)), 1 / 3)
  2196. LeftHip.C0 = Clerp(LeftHip.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-70), math.rad(0)) * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), 1 / 3)
  2197. end
  2198. ATTACK = false
  2199. walkspeed = 16
  2200. wait(.6)
  2201. for i = 1, 75 do
  2202. local Sky = RootPart.CFrame*CFrame.new(0,600,0)
  2203. local MoPos = Mouse.Hit*CFrame.new(math.random(-18,18),0,math.random(-18,18)).p
  2204. local DISTANCE = (Sky.p - MoPos).Magnitude
  2205. local a = math.random(1,2)
  2206.  
  2207. mdmg(MoPos,12)
  2208. SHAKECAM(MoPos,27,11,11)
  2209. end
  2210. end
  2211.  
  2212. function AttackTemplate()
  2213. ATTACK = true
  2214. Rooted = false
  2215. for i=0, 1, 0.1 / Animation_Speed do
  2216. Swait()
  2217. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2218. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2219. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2220. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2221. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2222. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2223. end
  2224. ATTACK = false
  2225. Rooted = false
  2226. end
  2227.  
  2228. ---TAUNT---
  2229. function Taunt()
  2230. ATTACK = true
  2231. Rooted = true
  2232. CreateSound(159882303,Torso,25,1,false)
  2233. for i=0, 3.5,0.1 / Animation_Speed do
  2234. wait(0)
  2235. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2236. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(10), RAD(0)), 0.5 / Animation_Speed)
  2237. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(170), RAD(15 + 5.5 * COS(SINE /34)), RAD(-10 + 3.6 * COS(SINE /32))) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2238. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(10)) * LEFTSHOULDERC0, 0.8 / Animation_Speed)
  2239. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2240. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2241. end
  2242. ATTACK = false
  2243. Rooted = false
  2244. end
  2245.  
  2246. --//=================================\\
  2247. --|| ASSIGN THINGS TO KEY
  2248. --\\=================================//
  2249.  
  2250. Mouse.KeyDown:Connect(function(KEY)
  2251. KEYHOLD = true
  2252. if ATTACK == false then
  2253. if KEY == "z" then
  2254. Shot()
  2255. end
  2256.  
  2257. if KEY == "t" then
  2258. Taunt()
  2259. end
  2260.  
  2261. if KEY == "q" then
  2262. Warp()
  2263. end
  2264.  
  2265. if KEY == "e" then
  2266. hedshoot()
  2267. spawnwave(Mouse.Hit.p)
  2268. end
  2269.  
  2270. if KEY == "x" then
  2271. beam()
  2272. end
  2273.  
  2274. if KEY == "v" then
  2275. Slash()
  2276. end
  2277.  
  2278. if KEY == "c" then
  2279. painlessrain()
  2280. end
  2281.  
  2282. end
  2283. end)
  2284.  
  2285. Mouse.KeyUp:Connect(function(KEY)
  2286. KEYHOLD = false
  2287.  
  2288. end)
  2289.  
  2290. --// Changed, etc.. \\--
  2291.  
  2292. Humanoid.Changed:connect(function(Jump)
  2293. if Jump == "Jump" and (Disable_Jump == true) then
  2294. Humanoid.Jump = false
  2295. end
  2296. end)
  2297.  
  2298.  
  2299. --//=================================\\
  2300. --|| WRAP THE WHOLE SCRIPT UP
  2301. --\\=================================//
  2302.  
  2303.  
  2304. function unanchor()
  2305. if UNANCHOR == true then
  2306. g = Character:GetChildren()
  2307. for i = 1, #g do
  2308. if g[i].ClassName == "Part" then
  2309. g[i].Anchored = false
  2310. end
  2311. end
  2312. end
  2313. end
  2314.  
  2315. --// Anti Bullet Shield \\--
  2316.  
  2317. local Shield = IT("MeshPart", workspace)
  2318. Shield.Name = Player.Name.."'s Shield Anti Bullets"
  2319. Shield.CanCollide = false
  2320. Shield.Transparency = 1
  2321. Shield.Material = "Neon"
  2322. Shield.BrickColor = BrickColor.new("fat")
  2323. Shield.Size = Vector3.new(6,6.7,6)
  2324. Shield.CFrame = Torso.CFrame
  2325. local Wed = Instance.new("Weld", Shield)
  2326. Wed.Part0 = Shield
  2327. Wed.Part1 = Torso
  2328. -------------------
  2329.  
  2330. --//=================================\\
  2331. --|| ANTI-DEATH CREATION
  2332. --\\=================================//
  2333. local Regen = {}
  2334. delay(1,function()
  2335. local Descendants = Character:GetDescendants()
  2336.  
  2337. for i = 1,#Descendants do
  2338. local E = Descendants[i]
  2339. if E:IsA("BasePart") and not E:IsDescendantOf(Effects) then
  2340. E.CustomPhysicalProperties = PhysicalProperties.new(Enum.Material.Wood)
  2341. table.insert(Regen,{E,E.Parent,E.Color,E.Size,E.Material})
  2342. end
  2343. if E:IsA("JointInstance") then
  2344. table.insert(Regen,{E,E.Parent,nil,nil,nil})
  2345. end
  2346. end
  2347. end)
  2348.  
  2349. local BODY = {}
  2350.  
  2351. for e = 1, #BODY do
  2352. if BODY[e] ~= nil then
  2353. local STUFF = BODY[e]
  2354. local PART = STUFF[1]
  2355. local PARENT = STUFF[2]
  2356. local MATERIAL = STUFF[3]
  2357. local COLOR = STUFF[4]
  2358. local TRANSPARENCY = STUFF[5]
  2359. if PART.ClassName == "Part" and PART ~= RootPart then
  2360. PART.Material = MATERIAL
  2361. PART.Color = COLOR
  2362. PART.Transparency = TRANSPARENCY
  2363. end
  2364. --[[PART.AncestryChanged:Connect(function()
  2365. PART.Parent = PARENT
  2366. end)--]]
  2367. end
  2368. end
  2369.  
  2370. for e = 1, #Regen do
  2371. if Regen[e] ~= nil then
  2372. local STUFF = Regen[e]
  2373. local PART = STUFF[1]
  2374. local PARENT = STUFF[2]
  2375. local MATERIAL = STUFF[3]
  2376. local COLOR = STUFF[4]
  2377. local TRANSPARENCY = STUFF[5]
  2378. if PART.ClassName == "Part" and PART ~= BODY.RootPart then
  2379. PART.Material = MATERIAL
  2380. PART.Color = COLOR
  2381. PART.Transparency = TRANSPARENCY
  2382. end
  2383. --[[ PART.AncestryChanged:Connect(function()
  2384. PART.Parent = PARENT
  2385. end)--]]
  2386. end
  2387. end
  2388.  
  2389.  
  2390. --//=================================\\
  2391. --|| WRAP THE WHOLE SCRIPT UP
  2392. --\\=================================//
  2393. Humanoid.Changed:connect(function(Jump)
  2394. if Jump == "Jump" and (Disable_Jump == true) then
  2395. Humanoid.Jump = false
  2396. elseif Jump == "Jump" and (Disable_Jump == false) and DOUBLED == false then
  2397. wait(0.1)
  2398. READYTODOUBLE = true
  2399. end
  2400. end)
  2401.  
  2402.  
  2403. while true do
  2404. Swait()
  2405. if AntiBullet == true then
  2406. if workspace:FindFirstChild("EnCorrupt") == nil then
  2407. Shield = Instance.new("MeshPart",workspace)
  2408. Shield.Name = "EnCorrupt"
  2409. Shield.CanCollide = false
  2410. Shield.Transparency = 1
  2411. Shield.Material = "Neon"
  2412. Shield.Color = color
  2413. Shield.Size = Vector3.new(5,5,5)
  2414. Shield.CFrame = Torso.CFrame
  2415. local GlitchWeld = Instance.new("Weld",Shield)
  2416. GlitchWeld.Part0 = Shield
  2417. GlitchWeld.Part1 = Torso
  2418. end
  2419. end
  2420. if Character:FindFirstChild("Safety") == nil then
  2421. local Safety = IT("Script")
  2422. Safety.Name = "Safety"
  2423. Safety.Parent = Character
  2424. end
  2425. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  2426. v:Stop();
  2427. end
  2428. SINE = SINE + CHANGE
  2429. Hue = Hue + 1
  2430. if (Hue>360) then Hue = 0 end
  2431. TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  2432. TORSOVERTICALVELOCITY = RootPart.Velocity.y
  2433.  
  2434. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  2435. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  2436. --[[ if ANIM == "Walk" and TORSOVELOCITY > 1 then
  2437. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2438. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2439. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2440. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2441. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  2442. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2443. 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)
  2444. 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.2 / Animation_Speed)
  2445. 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.2 / Animation_Speed)
  2446. end]]
  2447. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  2448. ANIM = "Jump"
  2449. if ATTACK == false then
  2450. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2451. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2452. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2453. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2454. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  2455. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  2456. end
  2457. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  2458. ANIM = "Fall"
  2459. if ATTACK == false then
  2460. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2461. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2462. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2463. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2464. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  2465. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  2466. end
  2467. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  2468. ANIM = "Idle"
  2469. DOUBLED = false
  2470. READYTODOUBLE = false
  2471. if ATTACK == false then
  2472. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0 - 0.15 * COS(SINE / 12), 0 + 0.1 * COS(SINE / 6)) * ANGLES(RAD(3.5 * COS(SINE / 12)), RAD(0), RAD(-35)), 1 / Animation_Speed)
  2473. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(2.5 * SIN(SINE / 12)), RAD(-25 + 4 * COS(SINE / 6)), RAD(35)), 1 / Animation_Speed)
  2474. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, -0.25, 0.2) * ANGLES(RAD(170), RAD(15), RAD(5)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2475. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 - 0.15 * COS(SINE / 6), 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(-5 * SIN(SINE / 12)), RAD(15 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12) - 1.5 * COS(SINE / 6))) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2476. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 6), -0.01) * ANGLES(RAD(0), RAD(100), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  2477. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 6), -0.01) * ANGLES(RAD(3.5 + 3.5 * COS(SINE / 12)), RAD(-55), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  2478. end
  2479. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  2480. ANIM = "Walk"
  2481. DOUBLED = false
  2482. READYTODOUBLE = false
  2483. if ATTACK == false then
  2484. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.8 / Animation_Speed)
  2485. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(10 - 2* SIN(SINE / 6)), RAD(0+7.5* SIN(SINE / 12)), RAD(0)), 0.8 / Animation_Speed)
  2486. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0+50* SIN(SINE / 12)), RAD(0), RAD(-8+50* SIN(SINE / 12))) * LEFTSHOULDERC0, 0.8 / Animation_Speed)
  2487. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1+0.1* SIN(SINE / 6)) * ANGLES(RAD(-25+2.5* SIN(SINE / 6)), RAD(0+2.5* SIN(SINE / 12)), RAD(0)), 0.8 / Animation_Speed)
  2488. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(-20), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-5 + 50 * SIN(SINE / 12))), 0.8 / Animation_Speed)
  2489. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-20), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(5 + 50 * SIN(SINE / 12))), 0.8 / Animation_Speed)
  2490. end
  2491. end
  2492. unanchor()
  2493. Humanoid.MaxHealth = "inf"
  2494. Humanoid.Health = "inf"
  2495.  
  2496. Torso.Material = "Neon"
  2497. if MRANDOM(1,2)==1 then
  2498. WACKYEFFECT({Time = 25, EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(0.1,0,0.1)*MRANDOM(1000/1000,1750/1000), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,-3,0)*ANGLES(RAD(MRANDOM(-5,5)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-5,5))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-100/100,100/100), RotationZ = 0, Material = "Neon", SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2499. Torso.Color = C3(0,0,sick.PlaybackLoudness/3)
  2500. end
  2501.  
  2502.  
  2503. if Rooted == false then
  2504. Disable_Jump = false
  2505. Humanoid.WalkSpeed = Speed
  2506. elseif Rooted == true then
  2507. Disable_Jump = true
  2508. Humanoid.WalkSpeed = 0
  2509. end
  2510. end
  2511.  
  2512.  
Add Comment
Please, Sign In to add comment