Advertisement
Christoffer07700Extr

FE lust glove fixed

Aug 7th, 2019
323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 120.86 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("OH MY GOD DO YOU KNOW HOW TO USE A FE SCRIPT DO h/ INSTEND OF hl/ YOU DUMBASS.") end
  2. print("FE Compatibility: by WaverlyCole & Mokiros")
  3. InternalData = {}
  4. do
  5. script.Parent = owner.Character
  6. local Event = Instance.new("RemoteEvent")
  7. Event.Name = "UserInput"
  8. local function NewFakeEvent()
  9. local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
  10. return Fake
  11. end
  12. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  13. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  14. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  15. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  16. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  17. local function TriggerEvent(self,Event,...)
  18. local Trigger = Mouse[Event]
  19. if Trigger and Trigger.fakeEvent and Trigger.Function then
  20. Trigger.Function(...)
  21. end
  22. end
  23. Mouse.TrigEvent = TriggerEvent
  24. UserInputService.TrigEvent = TriggerEvent
  25. Event.OnServerEvent:Connect(function(FiredBy,Input)
  26. if FiredBy.Name ~= owner.Name then end
  27. if Input.MouseEvent then
  28. Mouse.Target = Input.Target
  29. Mouse.Hit = Input.Hit
  30. else
  31. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  32. if Input.UserInputType == Enum.UserInputType.MouseButton1 then
  33. return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up")
  34. end
  35. for _,Action in pairs(ContextActionService.Actions) do
  36. for _,Key in pairs(Action.Keys) do
  37. if Key==Input.KeyCode then
  38. Action.Function(Action.Name,Input.UserInputState,Input)
  39. end
  40. end
  41. end
  42. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  43. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  44. end
  45. end)
  46. InternalData["Mouse"] = Mouse
  47. InternalData["ContextActionService"] = ContextActionService
  48. InternalData["UserInputService"] = UserInputService
  49. Event.Parent = NLS([[
  50. local Player = owner
  51. local Event = script:WaitForChild("UserInput")
  52. local UserInputService = game:GetService("UserInputService")
  53. local Mouse = Player:GetMouse()
  54. local Input = function(Input,gameProcessedEvent)
  55. if gameProcessedEvent then return end
  56. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  57. end
  58. UserInputService.InputBegan:Connect(Input)
  59. UserInputService.InputEnded:Connect(Input)
  60. local Hit,Target
  61. while wait(1/30) do
  62. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  63. Hit,Target = Mouse.Hit,Mouse.Target
  64. Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  65. end
  66. end
  67. ]],owner.Character)
  68. end
  69. RealGame = game;game = setmetatable({},{
  70. __index = function (self,Index)
  71. local Sandbox = function (Thing)
  72. if Thing:IsA("Player") then
  73. local RealPlayer = Thing
  74. return setmetatable({},{
  75. __index = function (self,Index)
  76. local Type = type(RealPlayer[Index])
  77. if Type == "function" then
  78. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  79. return function (self)
  80. return InternalData["Mouse"]
  81. end
  82. end
  83. return function (self,...)
  84. return RealPlayer[Index](RealPlayer,...)
  85. end
  86. else
  87. return RealPlayer[Index]
  88. end
  89. end;
  90. __tostring = function(self)
  91. return RealPlayer.Name
  92. end
  93. })
  94. end
  95. end
  96. if RealGame[Index] then
  97. local Type = type(RealGame[Index])
  98. if Type == "function" then
  99. if Index:lower() == "getservice" or Index:lower() == "service" then
  100. return function (self,Service)
  101. if Service:lower() == "players" then
  102. return setmetatable({},{
  103. __index = function (self2,Index2)
  104. local RealService = RealGame:GetService(Service)
  105. local Type2 = type(Index2)
  106. if Type2 == "function" then
  107. return function (self,...)
  108. return RealService[Index2](RealService,...)
  109. end
  110. else
  111. if Index2:lower() == "localplayer" then
  112. return Sandbox(owner)
  113. end
  114. return RealService[Index2]
  115. end
  116. end;
  117. __tostring = function(self)
  118. return RealGame:GetService(Service).Name
  119. end
  120. })
  121. elseif Service:lower() == "contextactionservice" then
  122. return InternalData["ContextActionService"]
  123. elseif Service:lower() == "contextactionservice" then
  124. return InternalData["UserInputService"]
  125. elseif Service:lower() == "runservice" then
  126. return setmetatable({},{
  127. __index = function(self2,Index2)
  128. local RealService = RealGame:GetService(Service)
  129. local Type2 = type(Index2)
  130. if Type2 == "function" then
  131. return function (self,...)
  132. return RealService[Index2](RealService,...)
  133. end
  134. else
  135. if Index2:lower() == "bindtorenderstep" then
  136. return function (self,Name,Priority,Function)
  137. return RealGame:GetService("RunService").Stepped:Connect(Function)
  138. end
  139. end
  140. if Index2:lower() == "renderstepped" then
  141. return RealService["Stepped"]
  142. end
  143. return RealService[Index2]
  144. end
  145. end
  146. })
  147. else
  148. return RealGame:GetService(Service)
  149. end
  150. end
  151. end
  152. return function (self,...)
  153. return RealGame[Index](RealGame,...)
  154. end
  155. else
  156. if game:GetService(Index) then
  157. return game:GetService(Index)
  158. end
  159. return RealGame[Index]
  160. end
  161. else
  162. return nil
  163. end
  164. end
  165. });Game = game;owner = game:GetService("Players").LocalPlayer
  166. print("Complete! Running...")
  167.  
  168. Player = game.Players.LocalPlayer
  169. Character = Player.Character
  170. local txt = Instance.new("BillboardGui", Character)
  171. txt.Adornee = Character.Head
  172. txt.Name = "_status"
  173. txt.Size = UDim2.new(2, 0, 1.2, 0)
  174. txt.StudsOffset = Vector3.new(-9, 8, 0)
  175. local text = Instance.new("TextLabel", txt)
  176. text.Size = UDim2.new(10, 0, 7, 0)
  177. text.FontSize = "Size24"
  178. text.TextScaled = true
  179. text.TextTransparency = 0
  180. text.BackgroundTransparency = 1
  181. text.TextTransparency = 0
  182. text.TextStrokeTransparency = 0
  183. text.Font = "Antique"
  184. text.TextStrokeColor3 = Color3.new(255,0,191)
  185. text.Text = "wot the hel is going on"
  186.  
  187.  
  188. --- oh hello :)
  189. --- also dont leak ok
  190.  
  191.  
  192.  
  193. --//====================================================\\--------
  194. --|| CREATED BY SHACKLUSTER EDIT THIS STUPID GUY CHRISTOFFER077002
  195. --\\====================================================//--------
  196.  
  197. --//====================================================\\---------
  198. --|| IF U GET BANNED DONT BLAME ME BLAME YOURSELF FOR GETING BANNED
  199. --\\====================================================//---------
  200.  
  201. --//===============================\\--
  202. --|| ... why did i make this
  203. --\\===============================//--
  204.  
  205. wait(0.2)
  206.  
  207.  
  208.  
  209. Player = game:GetService("Players").LocalPlayer
  210. PlayerGui = Player.PlayerGui
  211. Cam = workspace.CurrentCamera
  212. Backpack = Player.Backpack
  213. Character = Player.Character
  214. Humanoid = Character.Humanoid
  215. Mouse = Player:GetMouse()
  216. RootPart = Character["HumanoidRootPart"]
  217. Torso = Character["Torso"]
  218. Head = Character["Head"]
  219. RightArm = Character["Right Arm"]
  220. LeftArm = Character["Left Arm"]
  221. RightLeg = Character["Right Leg"]
  222. LeftLeg = Character["Left Leg"]
  223. RootJoint = RootPart["RootJoint"]
  224. Neck = Torso["Neck"]
  225. RightShoulder = Torso["Right Shoulder"]
  226. LeftShoulder = Torso["Left Shoulder"]
  227. RightHip = Torso["Right Hip"]
  228. LeftHip = Torso["Left Hip"]
  229. local sick = Instance.new("Sound",Character)
  230. sick.SoundId = "rbxassetid://604886689"
  231. sick.Looped = true
  232. sick.Pitch = 1
  233. sick.Volume = 10
  234. sick:Play()
  235.  
  236.  
  237. IT = Instance.new
  238. CF = CFrame.new
  239. VT = Vector3.new
  240. RAD = math.rad
  241. C3 = Color3.new
  242. UD2 = UDim2.new
  243. BRICKC = BrickColor.new
  244. ANGLES = CFrame.Angles
  245. EULER = CFrame.fromEulerAnglesXYZ
  246. COS = math.cos
  247. ACOS = math.acos
  248. SIN = math.sin
  249. ASIN = math.asin
  250. ABS = math.abs
  251. MRANDOM = math.random
  252. FLOOR = math.floor
  253. local PLAYSONG = true
  254. local CLOCKLOOP = 0
  255. local CLOCKTARGET = nil
  256. local CLOCKSPEED = 0
  257.  
  258. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  259. local NEWMESH = IT(MESH)
  260. if MESH == "SpecialMesh" then
  261. NEWMESH.MeshType = MESHTYPE
  262. if MESHID ~= "nil" and MESHID ~= "" then
  263. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  264. end
  265. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  266. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  267. end
  268. end
  269. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  270. NEWMESH.Scale = SCALE
  271. NEWMESH.Parent = PARENT
  272. return NEWMESH
  273. end
  274.  
  275. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  276. local NEWPART = IT("Part")
  277. NEWPART.formFactor = FORMFACTOR
  278. NEWPART.Reflectance = REFLECTANCE
  279. NEWPART.Transparency = TRANSPARENCY
  280. NEWPART.CanCollide = false
  281. NEWPART.Locked = true
  282. NEWPART.Anchored = true
  283. if ANCHOR == false then
  284. NEWPART.Anchored = false
  285. end
  286. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  287. NEWPART.Name = NAME
  288. NEWPART.Size = SIZE
  289. NEWPART.Position = Torso.Position
  290. NEWPART.Material = MATERIAL
  291. NEWPART:BreakJoints()
  292. NEWPART.Parent = PARENT
  293. return NEWPART
  294. end
  295.  
  296. --//=================================\\
  297. --|| RAGDOLL STUFF
  298. --\\=================================//
  299.  
  300. function recurse(root,callback,i)
  301. i= i or 0
  302. for _,v in pairs(root:GetChildren()) do
  303. i = i + 1
  304. callback(i,v)
  305.  
  306. if #v:GetChildren() > 0 then
  307. i = recurse(v,callback,i)
  308. end
  309. end
  310.  
  311. return i
  312. end
  313.  
  314. function ragdollJoint(character, part0, part1, attachmentName, className, properties)
  315. attachmentName = attachmentName.."RigAttachment"
  316. local constraint = Instance.new(className.."Constraint")
  317. constraint.Attachment0 = part0:FindFirstChild(attachmentName)
  318. constraint.Attachment1 = part1:FindFirstChild(attachmentName)
  319. constraint.Name = "RagdollConstraint"..part1.Name
  320.  
  321. for _,propertyData in next,properties or {} do
  322. constraint[propertyData[1]] = propertyData[2]
  323. end
  324.  
  325. constraint.Parent = character
  326. end
  327.  
  328. function getAttachment0(character, attachmentName)
  329. for _,child in next,character:GetChildren() do
  330. local attachment = child:FindFirstChild(attachmentName)
  331. if attachment then
  332. return attachment
  333. end
  334. end
  335. end
  336.  
  337. function ArtificialHitbox(Part)
  338. local HITBOX = CreatePart(3, Part, "Metal", 0, 1, "Really black", "Hitbox", Part.Size/2, false)
  339. HITBOX.CanCollide = true
  340. HITBOX.CFrame = Part.CFrame
  341. weldBetween(Part,HITBOX)
  342. end
  343.  
  344. function R15Ragdoll(character,KeepArms)
  345. character:BreakJoints()
  346. coroutine.resume(coroutine.create(function()
  347. recurse(character, function(_,v)
  348. if v:IsA("Attachment") then
  349. v.Axis = Vector3.new(0, 1, 0)
  350. v.SecondaryAxis = Vector3.new(0, 0, 1)
  351. v.Rotation = Vector3.new(0, 0, 0)
  352. end
  353. end)
  354. for _,child in next,character:GetChildren() do
  355. if child:IsA("Accoutrement") then
  356. for _,part in next,child:GetChildren() do
  357. if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
  358. local attachment1 = part:FindFirstChildOfClass("Attachment")
  359. local attachment0 = getAttachment0(character,attachment1.Name)
  360. if attachment0 and attachment1 then
  361. local constraint = Instance.new("HingeConstraint")
  362. constraint.Attachment0 = attachment0
  363. constraint.Attachment1 = attachment1
  364. constraint.LimitsEnabled = true
  365. constraint.UpperAngle = 0
  366. constraint.LowerAngle = 0
  367. constraint.Parent = character
  368. end
  369. ArtificialHitbox(part)
  370. elseif part.Name == "HumanoidRootPart" then
  371. part:remove()
  372. end
  373. end
  374. end
  375. end
  376.  
  377. ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", {
  378. {"LimitsEnabled",true};
  379. {"UpperAngle",5};
  380. })
  381. if character:FindFirstChild("Head") then
  382. ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "BallSocket", {
  383. {"LimitsEnabled",true};
  384. {"UpperAngle",15};
  385. })
  386. end
  387.  
  388. local handProperties = {
  389. {"LimitsEnabled", true};
  390. {"UpperAngle",0};
  391. {"LowerAngle",0};
  392. }
  393. ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties)
  394. ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties)
  395.  
  396. local shinProperties = {
  397. {"LimitsEnabled", true};
  398. {"UpperAngle", 0};
  399. {"LowerAngle", -75};
  400. }
  401. ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties)
  402. ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties)
  403.  
  404. local footProperties = {
  405. {"LimitsEnabled", true};
  406. {"UpperAngle", 15};
  407. {"LowerAngle", -45};
  408. }
  409. ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties)
  410. ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties)
  411. if KeepArms == true then
  412. ragdollJoint(character,character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket")
  413. ragdollJoint(character,character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket")
  414. ragdollJoint(character,character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket")
  415. ragdollJoint(character,character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket")
  416. end
  417. ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket")
  418. ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket")
  419. Debris:AddItem(character,5)
  420. end))
  421. end
  422.  
  423. function Ragdoll(Character2,CharTorso,KeepArms)
  424. coroutine.resume(coroutine.create(function()
  425. Character2:BreakJoints()
  426. local hum = Character2:findFirstChild("Humanoid")
  427. hum:remove()
  428. local function Scan(ch)
  429. local e
  430. for e = 1,#ch do
  431. Scan(ch[e]:GetChildren())
  432. if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  433. ch[e]:remove()
  434. end
  435. end
  436. end
  437. local NEWHUM = IT("Humanoid")
  438. NEWHUM.Name = "Corpse"
  439. NEWHUM.Health = 0
  440. NEWHUM.MaxHealth = 0
  441. NEWHUM.PlatformStand = true
  442. NEWHUM.Parent = Character2
  443. NEWHUM.DisplayDistanceType = "None"
  444.  
  445. local ch = Character2:GetChildren()
  446. local i
  447. for i = 1,#ch do
  448. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  449. ch[i]:remove()
  450. end
  451. end
  452.  
  453. local Torso2 = Character2.Torso
  454. local movevector = Vector3.new()
  455.  
  456. if Torso2 then
  457. movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector
  458. local Head = Character2:FindFirstChild("Head")
  459. if Head then
  460. local Neck = Instance.new("Weld")
  461. Neck.Name = "Neck"
  462. Neck.Part0 = Torso2
  463. Neck.Part1 = Head
  464. Neck.C0 = CFrame.new(0, 1.5, 0)
  465. Neck.C1 = CFrame.new()
  466. Neck.Parent = Torso2
  467.  
  468. end
  469. local Limb = Character2:FindFirstChild("Right Arm")
  470. if Limb and KeepArms == true then
  471.  
  472. Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
  473. local Joint = Instance.new("Glue")
  474. Joint.Name = "RightShoulder"
  475. Joint.Part0 = Torso2
  476. Joint.Part1 = Limb
  477. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  478. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  479. Joint.Parent = Torso2
  480.  
  481. local B = Instance.new("Part")
  482. B.TopSurface = 0
  483. B.BottomSurface = 0
  484. B.formFactor = "Symmetric"
  485. B.Size = Vector3.new(1, 1, 1)
  486. B.Transparency = 1
  487. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  488. B.Parent = Character2
  489. local W = Instance.new("Weld")
  490. W.Part0 = Limb
  491. W.Part1 = B
  492. W.C0 = CFrame.new(0, -0.5, 0)
  493. W.Parent = Limb
  494.  
  495. end
  496. local Limb = Character2:FindFirstChild("Left Arm")
  497. if Limb and KeepArms == true then
  498.  
  499. Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
  500. local Joint = Instance.new("Glue")
  501. Joint.Name = "LeftShoulder"
  502. Joint.Part0 = Torso2
  503. Joint.Part1 = Limb
  504. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  505. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  506. Joint.Parent = Torso2
  507.  
  508. local B = Instance.new("Part")
  509. B.TopSurface = 0
  510. B.BottomSurface = 0
  511. B.formFactor = "Symmetric"
  512. B.Size = Vector3.new(1, 1, 1)
  513. B.Transparency = 1
  514. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  515. B.Parent = Character2
  516. local W = Instance.new("Weld")
  517. W.Part0 = Limb
  518. W.Part1 = B
  519. W.C0 = CFrame.new(0, -0.5, 0)
  520. W.Parent = Limb
  521.  
  522. end
  523. local Limb = Character2:FindFirstChild("Right Leg")
  524. if Limb then
  525.  
  526. Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
  527. local Joint = Instance.new("Glue")
  528. Joint.Name = "RightHip"
  529. Joint.Part0 = Torso2
  530. Joint.Part1 = Limb
  531. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  532. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  533. Joint.Parent = Torso2
  534.  
  535. local B = Instance.new("Part")
  536. B.TopSurface = 0
  537. B.BottomSurface = 0
  538. B.formFactor = "Symmetric"
  539. B.Size = Vector3.new(1, 1, 1)
  540. B.Transparency = 1
  541. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  542. B.Parent = Character2
  543. local W = Instance.new("Weld")
  544. W.Part0 = Limb
  545. W.Part1 = B
  546. W.C0 = CFrame.new(0, -0.5, 0)
  547. W.Parent = Limb
  548.  
  549. end
  550. local Limb = Character2:FindFirstChild("Left Leg")
  551. if Limb then
  552.  
  553. Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
  554. local Joint = Instance.new("Glue")
  555. Joint.Name = "LeftHip"
  556. Joint.Part0 = Torso2
  557. Joint.Part1 = Limb
  558. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  559. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  560. Joint.Parent = Torso2
  561.  
  562. local B = Instance.new("Part")
  563. B.TopSurface = 0
  564. B.BottomSurface = 0
  565. B.formFactor = "Symmetric"
  566. B.Size = Vector3.new(1, 1, 1)
  567. B.Transparency = 1
  568. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  569. B.Parent = Character2
  570. local W = Instance.new("Weld")
  571. W.Part0 = Limb
  572. W.Part1 = B
  573. W.C0 = CFrame.new(0, -0.5, 0)
  574. W.Parent = Limb
  575.  
  576. end
  577. --[
  578. local Bar = Instance.new("Part")
  579. Bar.TopSurface = 0
  580. Bar.BottomSurface = 0
  581. Bar.formFactor = "Symmetric"
  582. Bar.Size = Vector3.new(1, 1, 1)
  583. Bar.Transparency = 1
  584. Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
  585. Bar.Parent = Character2
  586. local Weld = Instance.new("Weld")
  587. Weld.Part0 = Torso2
  588. Weld.Part1 = Bar
  589. Weld.C0 = CFrame.new(0, 0.5, 0)
  590. Weld.Parent = Torso2
  591. --]]
  592. end
  593. Character2.Parent = workspace
  594. Debris:AddItem(Character2,5)
  595.  
  596. return Character2,Torso2
  597. end))
  598. end
  599.  
  600.  
  601. --//=================================\\
  602. --|| CUSTOMIZATION
  603. --\\=================================//
  604.  
  605.  
  606. Player_Size = 1 --Size of the player.
  607. Animation_Speed = 3
  608. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  609.  
  610. local Speed = 27
  611. local Effects2 = {}
  612.  
  613. ---//=================================\\
  614. --|| END OF CUSTOMIZATION
  615. --\\=================================//
  616.  
  617. local function weldBetween(a, b)
  618. local weldd = Instance.new("ManualWeld")
  619. weldd.Part0 = a
  620. weldd.Part1 = b
  621. weldd.C0 = CFrame.new()
  622. weldd.C1 = b.CFrame:inverse() * a.CFrame
  623. weldd.Parent = a
  624. return weldd
  625. end
  626.  
  627. --//=================================\\
  628. --|| USEFUL VALUES
  629. --\\=================================//
  630.  
  631. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  632. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  633. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  634. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  635. local CHANGEDEFENSE = 0
  636. local CHANGEDAMAGE = 0
  637. local CHANGEMOVEMENT = 0
  638. local ANIM = "Idle"
  639. local ATTACK = false
  640. local EQUIPPED = false
  641. local HOLD = false
  642. local COMBO = 1
  643. local Rooted = false
  644. local SINE = 0
  645. local KEYHOLD = false
  646. local CHANGE = 2 / Animation_Speed
  647. local WALKINGANIM = false
  648. local WALK = 0
  649. local VALUE1 = false
  650. local VALUE2 = false
  651. local ROBLOXIDLEANIMATION = IT("Animation")
  652. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  653. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  654. --ROBLOXIDLEANIMATION.Parent = Humanoid
  655. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  656. WEAPONGUI.Name = "Weapon GUI"
  657. local Weapon = IT("Model")
  658. Weapon.Name = "Adds"
  659. local HITFLOOR = nil
  660. local Effects = IT("Folder", Weapon)
  661. Effects.Name = "Effects"
  662. local ANIMATOR = Humanoid.Animator
  663. local ANIMATE = Character.Animate
  664. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  665. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  666. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  667. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  668. local UNANCHOR = true
  669.  
  670. local SKILLTEXTCOLOR = C3(255, 0, 191)
  671.  
  672.  
  673. --//=================================\\
  674. --\\=================================//
  675.  
  676.  
  677. --//=================================\\
  678. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  679. --\\=================================//
  680.  
  681. ArtificialHB = Instance.new("BindableEvent", script)
  682. ArtificialHB.Name = "ArtificialHB"
  683.  
  684. script:WaitForChild("ArtificialHB")
  685.  
  686. frame = Frame_Speed
  687. tf = 0
  688. allowframeloss = false
  689. tossremainder = false
  690. lastframe = tick()
  691. script.ArtificialHB:Fire()
  692.  
  693. game:GetService("RunService").Heartbeat:connect(function(s, p)
  694. tf = tf + s
  695. if tf >= frame then
  696. if allowframeloss then
  697. script.ArtificialHB:Fire()
  698. lastframe = tick()
  699. else
  700. for i = 1, math.floor(tf / frame) do
  701. script.ArtificialHB:Fire()
  702. end
  703. lastframe = tick()
  704. end
  705. if tossremainder then
  706. tf = 0
  707. else
  708. tf = tf - frame * math.floor(tf / frame)
  709. end
  710. end
  711. end)
  712.  
  713. --//=================================\\
  714. --\\=================================//
  715.  
  716.  
  717.  
  718.  
  719.  
  720. --//=================================\\
  721. --|| SOME FUNCTIONS
  722. --\\=================================//
  723.  
  724. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  725. local type = type
  726. local rng = Instance.new("Part", char)
  727. rng.Anchored = true
  728. rng.BrickColor = color
  729. rng.CanCollide = false
  730. rng.FormFactor = 3
  731. rng.Name = "Ring"
  732. rng.Material = "Neon"
  733. rng.Size = Vector3.new(1, 1, 1)
  734. rng.Transparency = 0
  735. rng.TopSurface = 0
  736. rng.BottomSurface = 0
  737. rng.CFrame = pos
  738. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  739. local rngm = Instance.new("SpecialMesh", rng)
  740. rngm.MeshType = "Brick"
  741. rngm.Scale = VT(x1,y1,z1)
  742. if rainbowmode == true then
  743. rng.Color = Color3.new(r/255,g/255,b/255)
  744. end
  745. local scaler2 = 1
  746. local speeder = FastSpeed/10
  747. if type == "Add" then
  748. scaler2 = 1*value
  749. elseif type == "Divide" then
  750. scaler2 = 1/value
  751. end
  752. coroutine.resume(coroutine.create(function()
  753. for i = 0,10/bonuspeed,0.1 do
  754. Swait()
  755. if rainbowmode == true then
  756. rng.Color = Color3.new(r/255,g/255,b/255)
  757. end
  758. if type == "Add" then
  759. scaler2 = scaler2 - 0.01*value/bonuspeed
  760. elseif type == "Divide" then
  761. scaler2 = scaler2 - 0.01/value*bonuspeed
  762. end
  763. if chaosmode == true then
  764. rng.BrickColor = BrickColor.random()
  765. end
  766. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  767. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  768. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  769. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  770. end
  771. rng:Destroy()
  772. end))
  773. end
  774.  
  775. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  776. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  777. end
  778.  
  779. function PositiveAngle(NUMBER)
  780. if NUMBER >= 0 then
  781. NUMBER = 0
  782. end
  783. return NUMBER
  784. end
  785.  
  786. function NegativeAngle(NUMBER)
  787. if NUMBER <= 0 then
  788. NUMBER = 0
  789. end
  790. return NUMBER
  791. end
  792.  
  793. function Swait(NUMBER)
  794. if NUMBER == 0 or NUMBER == nil then
  795. ArtificialHB.Event:wait()
  796. else
  797. for i = 1, NUMBER do
  798. ArtificialHB.Event:wait()
  799. end
  800. end
  801. end
  802.  
  803. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  804. local NEWMESH = IT(MESH)
  805. if MESH == "SpecialMesh" then
  806. NEWMESH.MeshType = MESHTYPE
  807. if MESHID ~= "nil" and MESHID ~= "" then
  808. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  809. end
  810. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  811. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  812. end
  813. end
  814. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  815. NEWMESH.Scale = SCALE
  816. NEWMESH.Parent = PARENT
  817. return NEWMESH
  818. end
  819.  
  820. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  821. local NEWPART = IT("Part")
  822. NEWPART.formFactor = FORMFACTOR
  823. NEWPART.Reflectance = REFLECTANCE
  824. NEWPART.Transparency = TRANSPARENCY
  825. NEWPART.CanCollide = false
  826. NEWPART.Locked = true
  827. NEWPART.Anchored = true
  828. if ANCHOR == false then
  829. NEWPART.Anchored = false
  830. end
  831. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  832. NEWPART.Name = NAME
  833. NEWPART.Size = SIZE
  834. NEWPART.Position = Torso.Position
  835. NEWPART.Material = MATERIAL
  836. NEWPART:BreakJoints()
  837. NEWPART.Parent = PARENT
  838. return NEWPART
  839. end
  840.  
  841. local function weldBetween(a, b)
  842. local weldd = Instance.new("ManualWeld")
  843. weldd.Part0 = a
  844. weldd.Part1 = b
  845. weldd.C0 = CFrame.new()
  846. weldd.C1 = b.CFrame:inverse() * a.CFrame
  847. weldd.Parent = a
  848. return weldd
  849. end
  850.  
  851.  
  852. function QuaternionFromCFrame(cf)
  853. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  854. local trace = m00 + m11 + m22
  855. if trace > 0 then
  856. local s = math.sqrt(1 + trace)
  857. local recip = 0.5 / s
  858. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  859. else
  860. local i = 0
  861. if m11 > m00 then
  862. i = 1
  863. end
  864. if m22 > (i == 0 and m00 or m11) then
  865. i = 2
  866. end
  867. if i == 0 then
  868. local s = math.sqrt(m00 - m11 - m22 + 1)
  869. local recip = 0.5 / s
  870. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  871. elseif i == 1 then
  872. local s = math.sqrt(m11 - m22 - m00 + 1)
  873. local recip = 0.5 / s
  874. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  875. elseif i == 2 then
  876. local s = math.sqrt(m22 - m00 - m11 + 1)
  877. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  878. end
  879. end
  880. end
  881.  
  882. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  883. local xs, ys, zs = x + x, y + y, z + z
  884. local wx, wy, wz = w * xs, w * ys, w * zs
  885. local xx = x * xs
  886. local xy = x * ys
  887. local xz = x * zs
  888. local yy = y * ys
  889. local yz = y * zs
  890. local zz = z * zs
  891. 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))
  892. end
  893.  
  894. function QuaternionSlerp(a, b, t)
  895. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  896. local startInterp, finishInterp;
  897. if cosTheta >= 0.0001 then
  898. if (1 - cosTheta) > 0.0001 then
  899. local theta = ACOS(cosTheta)
  900. local invSinTheta = 1 / SIN(theta)
  901. startInterp = SIN((1 - t) * theta) * invSinTheta
  902. finishInterp = SIN(t * theta) * invSinTheta
  903. else
  904. startInterp = 1 - t
  905. finishInterp = t
  906. end
  907. else
  908. if (1 + cosTheta) > 0.0001 then
  909. local theta = ACOS(-cosTheta)
  910. local invSinTheta = 1 / SIN(theta)
  911. startInterp = SIN((t - 1) * theta) * invSinTheta
  912. finishInterp = SIN(t * theta) * invSinTheta
  913. else
  914. startInterp = t - 1
  915. finishInterp = t
  916. end
  917. end
  918. 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
  919. end
  920.  
  921. function Clerp(a, b, t)
  922. local qa = {QuaternionFromCFrame(a)}
  923. local qb = {QuaternionFromCFrame(b)}
  924. local ax, ay, az = a.x, a.y, a.z
  925. local bx, by, bz = b.x, b.y, b.z
  926. local _t = 1 - t
  927. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  928. end
  929.  
  930. function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  931. local CHILDREN = workspace:GetDescendants()
  932. for index, CHILD in pairs(CHILDREN) do
  933. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  934. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  935. if HUM then
  936. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  937. if TORSO then
  938. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  939. if INSTAKILL == true then
  940. CHILD:BreakJoints()
  941. else
  942. local DMG = MRANDOM(MINDMG,MAXDMG)
  943. ApplyDamage(HUM,DMG,TORSO)
  944. end
  945. if FLING > 0 then
  946. for _, c in pairs(CHILD:GetChildren()) do
  947. if c:IsA("BasePart") then
  948. local bv = Instance.new("BodyVelocity")
  949. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  950. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  951. bv.Parent = c
  952. Debris:AddItem(bv,0.05)
  953. end
  954. end
  955. end
  956. end
  957. end
  958. end
  959. end
  960. end
  961. end
  962.  
  963. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  964. local frame = IT("Frame")
  965. frame.BackgroundTransparency = TRANSPARENCY
  966. frame.BorderSizePixel = BORDERSIZEPIXEL
  967. frame.Position = POSITION
  968. frame.Size = SIZE
  969. frame.BackgroundColor3 = COLOR
  970. frame.BorderColor3 = BORDERCOLOR
  971. frame.Name = NAME
  972. frame.Parent = PARENT
  973. return frame
  974. end
  975.  
  976. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  977. local label = IT("TextLabel")
  978. label.BackgroundTransparency = 1
  979. label.Size = UD2(1, 0, 1, 0)
  980. label.Position = UD2(0, 0, 0, 0)
  981. label.TextColor3 = TEXTCOLOR
  982. label.TextStrokeTransparency = STROKETRANSPARENCY
  983. label.TextTransparency = TRANSPARENCY
  984. label.FontSize = TEXTFONTSIZE
  985. label.Font = TEXTFONT
  986. label.BorderSizePixel = BORDERSIZEPIXEL
  987. label.TextStrokeColor3 = C3(1,1,1)
  988. label.TextScaled = false
  989. label.Text = TEXT
  990. label.Name = NAME
  991. label.Parent = PARENT
  992. return label
  993. end
  994.  
  995. function NoOutlines(PART)
  996. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  997. end
  998.  
  999. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  1000. local NEWWELD = IT(TYPE)
  1001. NEWWELD.Part0 = PART0
  1002. NEWWELD.Part1 = PART1
  1003. NEWWELD.C0 = C0
  1004. NEWWELD.C1 = C1
  1005. NEWWELD.Parent = PARENT
  1006. return NEWWELD
  1007. end
  1008.  
  1009. local S = IT("Sound")
  1010. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  1011. local NEWSOUND = nil
  1012. coroutine.resume(coroutine.create(function()
  1013. NEWSOUND = S:Clone()
  1014. NEWSOUND.Parent = PARENT
  1015. NEWSOUND.Volume = VOLUME
  1016. NEWSOUND.Pitch = PITCH
  1017. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  1018. NEWSOUND:play()
  1019. if DOESLOOP == true then
  1020. NEWSOUND.Looped = true
  1021. else
  1022. repeat wait(1) until NEWSOUND.Playing == false
  1023. NEWSOUND:remove()
  1024. end
  1025. end))
  1026. return NEWSOUND
  1027. end
  1028.  
  1029. function CFrameFromTopBack(at, top, back)
  1030. local right = top:Cross(back)
  1031. 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)
  1032. end
  1033.  
  1034. --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})
  1035. function WACKYEFFECT(Table)
  1036. local TYPE = (Table.EffectType or "Sphere")
  1037. local SIZE = (Table.Size or VT(1,1,1))
  1038. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  1039. local TRANSPARENCY = (Table.Transparency or 0)
  1040. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  1041. local CFRAME = (Table.CFrame or Torso.CFrame)
  1042. local MOVEDIRECTION = (Table.MoveToPos or nil)
  1043. local ROTATION1 = (Table.RotationX or 0)
  1044. local ROTATION2 = (Table.RotationY or 0)
  1045. local ROTATION3 = (Table.RotationZ or 0)
  1046. local MATERIAL = (Table.Material or "Neon")
  1047. local COLOR = (Table.Color or C3(1,1,1))
  1048. local TIME = (Table.Time or 45)
  1049. local SOUNDID = (Table.SoundID or nil)
  1050. local SOUNDPITCH = (Table.SoundPitch or nil)
  1051. local SOUNDVOLUME = (Table.SoundVolume or nil)
  1052. coroutine.resume(coroutine.create(function()
  1053. local PLAYSSOUND = false
  1054. local SOUND = nil
  1055. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  1056. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  1057. PLAYSSOUND = true
  1058. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  1059. end
  1060. EFFECT.Color = COLOR
  1061. local MSH = nil
  1062. if TYPE == "Sphere" then
  1063. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  1064. elseif TYPE == "Block" or TYPE == "Box" then
  1065. MSH = IT("BlockMesh",EFFECT)
  1066. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  1067. elseif TYPE == "Wave" then
  1068. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  1069. elseif TYPE == "Ring" then
  1070. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  1071. elseif TYPE == "Slash" then
  1072. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1073. elseif TYPE == "Round Slash" then
  1074. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1075. elseif TYPE == "Swirl" then
  1076. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  1077. elseif TYPE == "Skull" then
  1078. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  1079. elseif TYPE == "Crystal" then
  1080. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  1081. end
  1082. if MSH ~= nil then
  1083. local MOVESPEED = nil
  1084. if MOVEDIRECTION ~= nil then
  1085. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  1086. end
  1087. local GROWTH = SIZE - ENDSIZE
  1088. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  1089. if TYPE == "Block" then
  1090. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1091. else
  1092. EFFECT.CFrame = CFRAME
  1093. end
  1094. for LOOP = 1, TIME+1 do
  1095. Swait()
  1096. MSH.Scale = MSH.Scale - GROWTH/TIME
  1097. if TYPE == "Wave" then
  1098. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  1099. end
  1100. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  1101. if TYPE == "Block" then
  1102. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1103. else
  1104. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  1105. end
  1106. if MOVEDIRECTION ~= nil then
  1107. local ORI = EFFECT.Orientation
  1108. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  1109. EFFECT.Orientation = ORI
  1110. end
  1111. end
  1112. if PLAYSSOUND == false then
  1113. EFFECT:remove()
  1114. else
  1115. repeat Swait() until SOUND.Playing == false
  1116. EFFECT:remove()
  1117. end
  1118. else
  1119. if PLAYSSOUND == false then
  1120. EFFECT:remove()
  1121. else
  1122. repeat Swait() until SOUND.Playing == false
  1123. EFFECT:remove()
  1124. end
  1125. end
  1126. end))
  1127. end
  1128.  
  1129. function MakeForm(PART,TYPE)
  1130. if TYPE == "Cyl" then
  1131. local MSH = IT("CylinderMesh",PART)
  1132. elseif TYPE == "Ball" then
  1133. local MSH = IT("SpecialMesh",PART)
  1134. MSH.MeshType = "Sphere"
  1135. elseif TYPE == "Wedge" then
  1136. local MSH = IT("SpecialMesh",PART)
  1137. MSH.MeshType = "Wedge"
  1138. end
  1139. end
  1140.  
  1141. Debris = game:GetService("Debris")
  1142.  
  1143. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  1144. local DIRECTION = CF(StartPos,EndPos).lookVector
  1145. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  1146. end
  1147.  
  1148. function turnto(position)
  1149. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  1150. end
  1151.  
  1152. function MagicSphere2(size,waitt,cframe,color)
  1153. local wave = CreatePart(3, Effects, "Neon", 0, 1, BRICKC(color), "Effect", VT(1,1,1))
  1154. local mesh = IT("SpecialMesh",wave)
  1155. mesh.MeshType = "Sphere"
  1156. mesh.Scale = VT(size,size,size)
  1157. mesh.Offset = VT(0,0,0)
  1158. wave.CFrame = cframe
  1159. coroutine.resume(coroutine.create(function(PART)
  1160. for i = 1, waitt do
  1161. Swait()
  1162. mesh.Scale = mesh.Scale - VT(size/waitt,size/waitt,size/waitt)
  1163. wave.Transparency = wave.Transparency - (1/waitt)
  1164. end
  1165. wave:remove()
  1166. end))
  1167. end
  1168.  
  1169. Humanoid.Died:connect(function()
  1170. refit()
  1171. end)
  1172.  
  1173. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  1174. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  1175. end
  1176.  
  1177. function PositiveAngle(NUMBER)
  1178. if NUMBER >= 0 then
  1179. NUMBER = 0
  1180. end
  1181. return NUMBER
  1182. end
  1183.  
  1184. function NegativeAngle(NUMBER)
  1185. if NUMBER <= 0 then
  1186. NUMBER = 0
  1187. end
  1188. return NUMBER
  1189. end
  1190.  
  1191. function Swait(NUMBER)
  1192. if NUMBER == 0 or NUMBER == nil then
  1193. ArtificialHB.Event:wait()
  1194. else
  1195. for i = 1, NUMBER do
  1196. ArtificialHB.Event:wait()
  1197. end
  1198. end
  1199. end
  1200.  
  1201. function QuaternionFromCFrame(cf)
  1202. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1203. local trace = m00 + m11 + m22
  1204. if trace > 0 then
  1205. local s = math.sqrt(1 + trace)
  1206. local recip = 0.5 / s
  1207. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  1208. else
  1209. local i = 0
  1210. if m11 > m00 then
  1211. i = 1
  1212. end
  1213. if m22 > (i == 0 and m00 or m11) then
  1214. i = 2
  1215. end
  1216. if i == 0 then
  1217. local s = math.sqrt(m00 - m11 - m22 + 1)
  1218. local recip = 0.5 / s
  1219. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  1220. elseif i == 1 then
  1221. local s = math.sqrt(m11 - m22 - m00 + 1)
  1222. local recip = 0.5 / s
  1223. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  1224. elseif i == 2 then
  1225. local s = math.sqrt(m22 - m00 - m11 + 1)
  1226. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  1227. end
  1228. end
  1229. end
  1230.  
  1231. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1232. local xs, ys, zs = x + x, y + y, z + z
  1233. local wx, wy, wz = w * xs, w * ys, w * zs
  1234. local xx = x * xs
  1235. local xy = x * ys
  1236. local xz = x * zs
  1237. local yy = y * ys
  1238. local yz = y * zs
  1239. local zz = z * zs
  1240. 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))
  1241. end
  1242.  
  1243. function QuaternionSlerp(a, b, t)
  1244. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  1245. local startInterp, finishInterp;
  1246. if cosTheta >= 0.0001 then
  1247. if (1 - cosTheta) > 0.0001 then
  1248. local theta = ACOS(cosTheta)
  1249. local invSinTheta = 1 / SIN(theta)
  1250. startInterp = SIN((1 - t) * theta) * invSinTheta
  1251. finishInterp = SIN(t * theta) * invSinTheta
  1252. else
  1253. startInterp = 1 - t
  1254. finishInterp = t
  1255. end
  1256. else
  1257. if (1 + cosTheta) > 0.0001 then
  1258. local theta = ACOS(-cosTheta)
  1259. local invSinTheta = 1 / SIN(theta)
  1260. startInterp = SIN((t - 1) * theta) * invSinTheta
  1261. finishInterp = SIN(t * theta) * invSinTheta
  1262. else
  1263. startInterp = t - 1
  1264. finishInterp = t
  1265. end
  1266. end
  1267. 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
  1268. end
  1269.  
  1270. function Clerp(a, b, t)
  1271. local qa = {QuaternionFromCFrame(a)}
  1272. local qb = {QuaternionFromCFrame(b)}
  1273. local ax, ay, az = a.x, a.y, a.z
  1274. local bx, by, bz = b.x, b.y, b.z
  1275. local _t = 1 - t
  1276. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  1277. end
  1278.  
  1279. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  1280. local frame = IT("Frame")
  1281. frame.BackgroundTransparency = TRANSPARENCY
  1282. frame.BorderSizePixel = BORDERSIZEPIXEL
  1283. frame.Position = POSITION
  1284. frame.Size = SIZE
  1285. frame.BackgroundColor3 = COLOR
  1286. frame.BorderColor3 = BORDERCOLOR
  1287. frame.Name = NAME
  1288. frame.Parent = PARENT
  1289. return frame
  1290. end
  1291.  
  1292. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  1293. local label = IT("TextLabel")
  1294. label.BackgroundTransparency = 1
  1295. label.Size = UD2(1, 0, 1, 0)
  1296. label.Position = UD2(0, 0, 0, 0)
  1297. label.TextColor3 = TEXTCOLOR
  1298. label.TextStrokeTransparency = STROKETRANSPARENCY
  1299. label.TextTransparency = TRANSPARENCY
  1300. label.FontSize = TEXTFONTSIZE
  1301. label.Font = TEXTFONT
  1302. label.BorderSizePixel = BORDERSIZEPIXEL
  1303. label.TextScaled = false
  1304. label.Text = TEXT
  1305. label.Name = NAME
  1306. label.Parent = PARENT
  1307. return label
  1308. end
  1309.  
  1310. function NoOutlines(PART)
  1311. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  1312. end
  1313.  
  1314.  
  1315. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  1316. local NEWWELD = IT(TYPE)
  1317. NEWWELD.Part0 = PART0
  1318. NEWWELD.Part1 = PART1
  1319. NEWWELD.C0 = C0
  1320. NEWWELD.C1 = C1
  1321. NEWWELD.Parent = PARENT
  1322. return NEWWELD
  1323. end
  1324.  
  1325.  
  1326. function CreateSound(ID, PARENT, VOLUME, PITCH)
  1327. local NEWSOUND = nil
  1328. coroutine.resume(coroutine.create(function()
  1329. NEWSOUND = IT("Sound", PARENT)
  1330. NEWSOUND.Volume = VOLUME
  1331. NEWSOUND.Pitch = PITCH
  1332. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  1333. Swait()
  1334. NEWSOUND:play()
  1335. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  1336. end))
  1337. return NEWSOUND
  1338. end
  1339.  
  1340. function CFrameFromTopBack(at, top, back)
  1341. local right = top:Cross(back)
  1342. 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)
  1343. end
  1344.  
  1345. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  1346. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  1347. local mesh = IT("SpecialMesh",wave)
  1348. mesh.MeshType = "FileMesh"
  1349. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1350. mesh.Scale = SIZE
  1351. mesh.Offset = VT(0,0,-SIZE.X/8)
  1352. wave.CFrame = CFRAME
  1353. coroutine.resume(coroutine.create(function(PART)
  1354. for i = 1, WAIT do
  1355. Swait()
  1356. mesh.Scale = mesh.Scale + GROW
  1357. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  1358. if DOESROT == true then
  1359. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  1360. end
  1361. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1362. if wave.Transparency > 0.99 then
  1363. wave:remove()
  1364. end
  1365. end
  1366. end))
  1367. end
  1368.  
  1369. function CreateCrown(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  1370. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  1371. local mesh = IT("SpecialMesh",wave)
  1372. mesh.MeshType = "FileMesh"
  1373. mesh.MeshId = "http://www.roblox.com/asset/?id=1078075"
  1374. mesh.Scale = SIZE
  1375. mesh.Offset = VT(0,0,-SIZE.X/8)
  1376. wave.CFrame = CFRAME
  1377. coroutine.resume(coroutine.create(function(PART)
  1378. for i = 1, WAIT do
  1379. Swait()
  1380. mesh.Scale = mesh.Scale + GROW
  1381. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  1382. if DOESROT == true then
  1383. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  1384. end
  1385. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1386. if wave.Transparency > 0.99 then
  1387. wave:remove()
  1388. end
  1389. end
  1390. end))
  1391. end
  1392.  
  1393. function clerp(a, b, t)
  1394. return a:lerp(b, t)
  1395. end
  1396.  
  1397. function newBezier(startpos, pos2, pos3, endpos, t)
  1398. local A = clerp(startpos, pos2, t)
  1399. local B = clerp(pos2, pos3, t)
  1400. local C = clerp(pos3, endpos, t)
  1401. local lerp1 = clerp(A, B, t)
  1402. local lerp2 = clerp(B, C, t)
  1403. local cubic = clerp(lerp1, lerp2, t)
  1404. return cubic
  1405. end
  1406.  
  1407. function CreateIceCrown(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  1408. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  1409. local mesh = IT("SpecialMesh",wave)
  1410. mesh.MeshType = "FileMesh"
  1411. mesh.MeshId = "http://www.roblox.com/asset/?id=1323306"
  1412. mesh.Scale = SIZE
  1413. mesh.Offset = VT(0,0,-SIZE.X/8)
  1414. wave.CFrame = CFRAME
  1415. coroutine.resume(coroutine.create(function(PART)
  1416. for i = 1, WAIT do
  1417. Swait()
  1418. mesh.Scale = mesh.Scale + GROW
  1419. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  1420. if DOESROT == true then
  1421. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  1422. end
  1423. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1424. if wave.Transparency > 0.99 then
  1425. wave:remove()
  1426. end
  1427. end
  1428. end))
  1429. end
  1430.  
  1431. function CreateSpikeball(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  1432. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  1433. local mesh = IT("SpecialMesh",wave)
  1434. mesh.MeshType = "FileMesh"
  1435. mesh.MeshId = "http://www.roblox.com/asset/?id=9982590"
  1436. mesh.Scale = SIZE
  1437. mesh.Offset = VT(0,0,-SIZE.X/8)
  1438. wave.CFrame = CFRAME
  1439. coroutine.resume(coroutine.create(function(PART)
  1440. for i = 1, WAIT do
  1441. Swait()
  1442. mesh.Scale = mesh.Scale + GROW
  1443. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  1444. if DOESROT == true then
  1445. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  1446. end
  1447. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1448. if wave.Transparency > 0.99 then
  1449. wave:remove()
  1450. end
  1451. end
  1452. end))
  1453. end
  1454.  
  1455. function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  1456. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  1457. local mesh = IT("SpecialMesh",wave)
  1458. mesh.MeshType = "FileMesh"
  1459. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  1460. mesh.Scale = SIZE
  1461. wave.CFrame = CFRAME
  1462. coroutine.resume(coroutine.create(function(PART)
  1463. for i = 1, WAIT do
  1464. Swait()
  1465. mesh.Scale = mesh.Scale + GROW
  1466. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  1467. if DOESROT == true then
  1468. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  1469. end
  1470. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1471. if wave.Transparency > 0.99 then
  1472. wave:remove()
  1473. end
  1474. end
  1475. end))
  1476. end
  1477.  
  1478. function CreateTornado(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  1479. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  1480. local mesh = IT("SpecialMesh",wave)
  1481. mesh.MeshType = "FileMesh"
  1482. mesh.MeshId = "http://www.roblox.com/asset/?id=102638417"
  1483. mesh.Scale = SIZE
  1484. wave.CFrame = CFRAME
  1485. coroutine.resume(coroutine.create(function(PART)
  1486. for i = 1, WAIT do
  1487. Swait()
  1488. mesh.Scale = mesh.Scale + GROW
  1489. if DOESROT == true then
  1490. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  1491. end
  1492. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1493. if wave.Transparency > 0.99 then
  1494. wave:remove()
  1495. end
  1496. end
  1497. end))
  1498. end
  1499.  
  1500. function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  1501. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  1502. local mesh = IT("SpecialMesh",wave)
  1503. mesh.MeshType = "FileMesh"
  1504. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1505. mesh.Scale = SIZE
  1506. mesh.Offset = VT(0,0,0)
  1507. wave.CFrame = CFRAME
  1508. coroutine.resume(coroutine.create(function(PART)
  1509. for i = 1, WAIT do
  1510. Swait()
  1511. mesh.Scale = mesh.Scale + GROW
  1512. if DOESROT == true then
  1513. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  1514. end
  1515. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1516. if wave.Transparency > 0.99 then
  1517. wave:remove()
  1518. end
  1519. end
  1520. end))
  1521. end
  1522.  
  1523. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  1524. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  1525. local mesh = IT("SpecialMesh",wave)
  1526. mesh.MeshType = "Sphere"
  1527. mesh.Scale = SIZE
  1528. mesh.Offset = VT(0,0,0)
  1529. wave.CFrame = CFRAME
  1530. coroutine.resume(coroutine.create(function(PART)
  1531. for i = 1, WAIT do
  1532. Swait()
  1533. mesh.Scale = mesh.Scale + GROW
  1534. wave.Transparency = wave.Transparency + (1/WAIT)
  1535. if wave.Transparency > 0.99 then
  1536. wave:remove()
  1537. end
  1538. end
  1539. end))
  1540. end
  1541.  
  1542. function Slice(SIZE,WAIT,CFRAME,COLOR,GROW)
  1543. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  1544. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
  1545. wave.CFrame = CFRAME
  1546. coroutine.resume(coroutine.create(function(PART)
  1547. for i = 1, WAIT do
  1548. Swait()
  1549. mesh.Scale = mesh.Scale * GROW
  1550. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1551. if wave.Transparency > 0.99 then
  1552. wave:remove()
  1553. end
  1554. end
  1555. end))
  1556. end
  1557.  
  1558. function MagicBlock(SIZE,WAIT,CFRAME,COLOR,GROW)
  1559. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(SIZE,SIZE,SIZE), true)
  1560. local mesh = IT("BlockMesh",wave)
  1561. wave.CFrame = CFRAME
  1562. coroutine.resume(coroutine.create(function(PART)
  1563. for i = 1, WAIT do
  1564. Swait()
  1565. mesh.Scale = mesh.Scale + GROW
  1566. wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360)))
  1567. wave.Transparency = wave.Transparency + (1/WAIT)
  1568. if wave.Transparency > 0.99 then
  1569. wave:remove()
  1570. end
  1571. end
  1572. end))
  1573. end
  1574.  
  1575. function MakeForm(PART,TYPE)
  1576. if TYPE == "Cyl" then
  1577. local MSH = IT("CylinderMesh",PART)
  1578. elseif TYPE == "Ball" then
  1579. local MSH = IT("SpecialMesh",PART)
  1580. MSH.MeshType = "Sphere"
  1581. elseif TYPE == "Wedge" then
  1582. local MSH = IT("SpecialMesh",PART)
  1583. MSH.MeshType = "Wedge"
  1584. end
  1585. end
  1586.  
  1587. function CheckTableForString(Table, String)
  1588. for i, v in pairs(Table) do
  1589. if string.find(string.lower(String), string.lower(v)) then
  1590. return true
  1591. end
  1592. end
  1593. return false
  1594. end
  1595.  
  1596. function CheckIntangible(Hit)
  1597. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  1598. if Hit and Hit.Parent then
  1599. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  1600. return true
  1601. end
  1602. end
  1603. return false
  1604. end
  1605.  
  1606. Debris = game:GetService("Debris")
  1607.  
  1608. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  1609. local Direction = CFrame.new(StartPos, Vec).lookVector
  1610. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  1611. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  1612. if RayHit and CheckIntangible(RayHit) then
  1613. if DelayIfHit then
  1614. wait()
  1615. end
  1616. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  1617. end
  1618. return RayHit, RayPos, RayNormal
  1619. end
  1620.  
  1621. function turnto(position)
  1622. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  1623. end
  1624.  
  1625. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  1626. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  1627. end
  1628.  
  1629. function PositiveAngle(NUMBER)
  1630. if NUMBER >= 0 then
  1631. NUMBER = 0
  1632. end
  1633. return NUMBER
  1634. end
  1635.  
  1636. function NegativeAngle(NUMBER)
  1637. if NUMBER <= 0 then
  1638. NUMBER = 0
  1639. end
  1640. return NUMBER
  1641. end
  1642.  
  1643. function Swait(NUMBER)
  1644. if NUMBER == 0 or NUMBER == nil then
  1645. ArtificialHB.Event:wait()
  1646. else
  1647. for i = 1, NUMBER do
  1648. ArtificialHB.Event:wait()
  1649. end
  1650. end
  1651. end
  1652.  
  1653. function QuaternionFromCFrame(cf)
  1654. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1655. local trace = m00 + m11 + m22
  1656. if trace > 0 then
  1657. local s = math.sqrt(1 + trace)
  1658. local recip = 0.5 / s
  1659. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  1660. else
  1661. local i = 0
  1662. if m11 > m00 then
  1663. i = 1
  1664. end
  1665. if m22 > (i == 0 and m00 or m11) then
  1666. i = 2
  1667. end
  1668. if i == 0 then
  1669. local s = math.sqrt(m00 - m11 - m22 + 1)
  1670. local recip = 0.5 / s
  1671. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  1672. elseif i == 1 then
  1673. local s = math.sqrt(m11 - m22 - m00 + 1)
  1674. local recip = 0.5 / s
  1675. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  1676. elseif i == 2 then
  1677. local s = math.sqrt(m22 - m00 - m11 + 1)
  1678. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  1679. end
  1680. end
  1681. end
  1682.  
  1683. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1684. local xs, ys, zs = x + x, y + y, z + z
  1685. local wx, wy, wz = w * xs, w * ys, w * zs
  1686. local xx = x * xs
  1687. local xy = x * ys
  1688. local xz = x * zs
  1689. local yy = y * ys
  1690. local yz = y * zs
  1691. local zz = z * zs
  1692. 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))
  1693. end
  1694.  
  1695. function QuaternionSlerp(a, b, t)
  1696. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  1697. local startInterp, finishInterp;
  1698. if cosTheta >= 0.0001 then
  1699. if (1 - cosTheta) > 0.0001 then
  1700. local theta = ACOS(cosTheta)
  1701. local invSinTheta = 1 / SIN(theta)
  1702. startInterp = SIN((1 - t) * theta) * invSinTheta
  1703. finishInterp = SIN(t * theta) * invSinTheta
  1704. else
  1705. startInterp = 1 - t
  1706. finishInterp = t
  1707. end
  1708. else
  1709. if (1 + cosTheta) > 0.0001 then
  1710. local theta = ACOS(-cosTheta)
  1711. local invSinTheta = 1 / SIN(theta)
  1712. startInterp = SIN((t - 1) * theta) * invSinTheta
  1713. finishInterp = SIN(t * theta) * invSinTheta
  1714. else
  1715. startInterp = t - 1
  1716. finishInterp = t
  1717. end
  1718. end
  1719. 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
  1720. end
  1721.  
  1722. function Clerp(a, b, t)
  1723. local qa = {QuaternionFromCFrame(a)}
  1724. local qb = {QuaternionFromCFrame(b)}
  1725. local ax, ay, az = a.x, a.y, a.z
  1726. local bx, by, bz = b.x, b.y, b.z
  1727. local _t = 1 - t
  1728. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  1729. end
  1730.  
  1731. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  1732. local frame = IT("Frame")
  1733. frame.BackgroundTransparency = TRANSPARENCY
  1734. frame.BorderSizePixel = BORDERSIZEPIXEL
  1735. frame.Position = POSITION
  1736. frame.Size = SIZE
  1737. frame.BackgroundColor3 = COLOR
  1738. frame.BorderColor3 = BORDERCOLOR
  1739. frame.Name = NAME
  1740. frame.Parent = PARENT
  1741. return frame
  1742. end
  1743.  
  1744. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  1745. local label = IT("TextLabel")
  1746. label.BackgroundTransparency = 1
  1747. label.Size = UD2(1, 0, 1, 0)
  1748. label.Position = UD2(0, 0, 0, 0)
  1749. label.TextColor3 = TEXTCOLOR
  1750. label.TextStrokeTransparency = STROKETRANSPARENCY
  1751. label.TextTransparency = TRANSPARENCY
  1752. label.FontSize = TEXTFONTSIZE
  1753. label.Font = TEXTFONT
  1754. label.BorderSizePixel = BORDERSIZEPIXEL
  1755. label.TextScaled = false
  1756. label.Text = TEXT
  1757. label.Name = NAME
  1758. label.Parent = PARENT
  1759. return label
  1760. end
  1761.  
  1762. function NoOutlines(PART)
  1763. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  1764. end
  1765.  
  1766. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  1767. local NEWWELD = IT(TYPE)
  1768. NEWWELD.Part0 = PART0
  1769. NEWWELD.Part1 = PART1
  1770. NEWWELD.C0 = C0
  1771. NEWWELD.C1 = C1
  1772. NEWWELD.Parent = PARENT
  1773. return NEWWELD
  1774. end
  1775.  
  1776. function CreateSound(ID, PARENT, VOLUME, PITCH)
  1777. local NEWSOUND = nil
  1778. coroutine.resume(coroutine.create(function()
  1779. NEWSOUND = IT("Sound", PARENT)
  1780. NEWSOUND.Volume = VOLUME
  1781. NEWSOUND.Pitch = PITCH
  1782. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  1783. Swait()
  1784. NEWSOUND:play()
  1785. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  1786. end))
  1787. return NEWSOUND
  1788. end
  1789.  
  1790. function CFrameFromTopBack(at, top, back)
  1791. local right = top:Cross(back)
  1792. 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)
  1793. end
  1794.  
  1795. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  1796. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("Hot pink"), "Effect", VT(0,0,0))
  1797. local mesh = IT("SpecialMesh",wave)
  1798. mesh.MeshType = "FileMesh"
  1799. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1800. mesh.Scale = SIZE
  1801. mesh.Offset = VT(0,0,-SIZE.X/8)
  1802. wave.CFrame = CFRAME
  1803. coroutine.resume(coroutine.create(function(PART)
  1804. for i = 1, WAIT do
  1805. Swait()
  1806. mesh.Scale = mesh.Scale + GROW
  1807. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  1808. if DOESROT == true then
  1809. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  1810. end
  1811. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1812. if wave.Transparency > 0.99 then
  1813. wave:remove()
  1814. end
  1815. end
  1816. end))
  1817. end
  1818.  
  1819. function CreateWave2(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  1820. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("Hot pink"), "Effect", VT(0,0,0))
  1821. local mesh = IT("SpecialMesh",wave)
  1822. mesh.MeshType = "FileMesh"
  1823. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1824. mesh.Scale = SIZE
  1825. --mesh.Offset = VT(0,0,-SIZE.X/8)
  1826. wave.CFrame = CFRAME
  1827. coroutine.resume(coroutine.create(function(PART)
  1828. for i = 1, WAIT do
  1829. Swait()
  1830. mesh.Scale = mesh.Scale + GROW
  1831. --mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  1832. if DOESROT == true then
  1833. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  1834. end
  1835. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1836. if wave.Transparency > 0.99 then
  1837. wave:remove()
  1838. end
  1839. end
  1840. end))
  1841. end
  1842.  
  1843. function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  1844. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("Hot pink"), "Effect", VT(0,0,0))
  1845. local mesh = IT("SpecialMesh",wave)
  1846. mesh.MeshType = "FileMesh"
  1847. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  1848. mesh.Scale = SIZE
  1849. wave.CFrame = CFRAME
  1850. coroutine.resume(coroutine.create(function(PART)
  1851. for i = 1, WAIT do
  1852. Swait()
  1853. mesh.Scale = mesh.Scale + GROW
  1854. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  1855. if DOESROT == true then
  1856. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  1857. end
  1858. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1859. if wave.Transparency > 0.99 then
  1860. wave:remove()
  1861. end
  1862. end
  1863. end))
  1864. end
  1865.  
  1866.  
  1867. function Slice(SIZE,WAIT,CFRAME,COLOR,GROW)
  1868. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("Hot pink"), "Effect", VT(1,1,1), true)
  1869. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
  1870. wave.CFrame = CFRAME
  1871. coroutine.resume(coroutine.create(function(PART)
  1872. for i = 1, WAIT do
  1873. Swait()
  1874. mesh.Scale = mesh.Scale * GROW
  1875. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1876. if wave.Transparency > 0.99 then
  1877. wave:remove()
  1878. end
  1879. end
  1880. end))
  1881. end
  1882.  
  1883. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  1884. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Hot pink"), "Effect", VT(1,1,1), true)
  1885. local mesh = IT("SpecialMesh",wave)
  1886. mesh.MeshType = "Sphere"
  1887. mesh.Scale = SIZE
  1888. mesh.Offset = VT(0,0,0)
  1889. wave.CFrame = CFRAME
  1890. coroutine.resume(coroutine.create(function(PART)
  1891. for i = 1, WAIT do
  1892. Swait()
  1893. mesh.Scale = mesh.Scale + GROW
  1894. wave.Transparency = wave.Transparency + (1/WAIT)
  1895. if wave.Transparency > 0.99 then
  1896. wave:remove()
  1897. end
  1898. end
  1899. end))
  1900. end
  1901.  
  1902. function MakeForm(PART,TYPE)
  1903. if TYPE == "Cyl" then
  1904. local MSH = IT("CylinderMesh",PART)
  1905. elseif TYPE == "Ball" then
  1906. local MSH = IT("SpecialMesh",PART)
  1907. MSH.MeshType = "Sphere"
  1908. elseif TYPE == "Wedge" then
  1909. local MSH = IT("SpecialMesh",PART)
  1910. MSH.MeshType = "Wedge"
  1911. end
  1912. end
  1913.  
  1914. function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
  1915. if FLOOR ~= nil then
  1916. coroutine.resume(coroutine.create(function()
  1917. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
  1918. PART.CFrame = CF(POSITION)
  1919. for i = 1, 45 do
  1920. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
  1921. RingPiece.Material = FLOOR.Material
  1922. RingPiece.Color = FLOOR.Color
  1923. RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  1924. Debris:AddItem(RingPiece,SWAIT/100)
  1925. end
  1926. PART:remove()
  1927. end))
  1928. end
  1929. end
  1930.  
  1931. function CheckTableForString(Table, String)
  1932. for i, v in pairs(Table) do
  1933. if string.find(string.lower(String), string.lower(v)) then
  1934. return true
  1935. end
  1936. end
  1937. return false
  1938. end
  1939.  
  1940. function CheckIntangible(Hit)
  1941. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  1942. if Hit and Hit.Parent then
  1943. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  1944. return true
  1945. end
  1946. end
  1947. return false
  1948. end
  1949.  
  1950. Debris = game:GetService("Debris")
  1951.  
  1952. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  1953. local Direction = CFrame.new(StartPos, Vec).lookVector
  1954. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  1955. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  1956. if RayHit and CheckIntangible(RayHit) then
  1957. if DelayIfHit then
  1958. wait()
  1959. end
  1960. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  1961. end
  1962. return RayHit, RayPos, RayNormal
  1963. end
  1964.  
  1965. function turnto(position)
  1966. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  1967. end
  1968. --//=================================\\
  1969. --|| WEAPON CREATION
  1970. --\\=================================//
  1971.  
  1972. local FIST = CreatePart(3, Weapon, "Neon", 0, 0, "Hot pink", "Neon Gauntlet Part", VT(1.01*Player_Size,1.4*Player_Size,1.01*Player_Size),false)
  1973. local weld = CreateWeldOrSnapOrMotor("Weld", FIST, RightArm, FIST, CF(0 * Player_Size, -0.25 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1974. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Hot pink", "Gauntlet Part", VT(1.2*Player_Size,0.3*Player_Size,1.2*Player_Size),false)
  1975. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.6 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1976.  
  1977. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Hot pink", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
  1978. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1979. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Hot pink", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
  1980. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.2 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1981. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Hot pink", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
  1982. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1983. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Hot pink", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
  1984. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.4 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1985.  
  1986. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Hot pink", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,1.1*Player_Size),false)
  1987. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, -0.35 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1988. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Hot pink", "Neon Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,1*Player_Size),false)
  1989. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.05 * Player_Size, -0.375 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1990. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Hot pink", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false)
  1991. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.1 * Player_Size, -0.4 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1992. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Hot pink", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false)
  1993. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.1 * Player_Size, -0.4 * Player_Size, 0.33 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1994. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Hot pink", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false)
  1995. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.1 * Player_Size, -0.4 * Player_Size, -0.33 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1996.  
  1997.  
  1998. local FIST = CreatePart(3, Weapon, "Neon", 0, 0, "Hot pink", "Neon Gauntlet Part", VT(1.01*Player_Size,1.4*Player_Size,1.01*Player_Size),false)
  1999. local weld = CreateWeldOrSnapOrMotor("Weld", FIST, LeftArm, FIST, CF(0 * Player_Size, -0.25 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  2000. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Hot pink", "Gauntlet Part", VT(1.2*Player_Size,0.3*Player_Size,1.2*Player_Size),false)
  2001. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.6 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  2002.  
  2003. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Hot pink", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
  2004. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  2005. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Hot pink", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
  2006. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.2 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  2007. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Hot pink", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
  2008. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  2009. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Hot pink", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
  2010. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.4 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  2011.  
  2012. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Hot pink", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,1.1*Player_Size),false)
  2013. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, -0.35 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  2014. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Hot pink", "Neon Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,1*Player_Size),false)
  2015. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.05 * Player_Size, -0.375 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  2016. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Hot pink", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false)
  2017. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.1 * Player_Size, -0.4 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  2018. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Hot pink", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false)
  2019. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.1 * Player_Size, -0.4 * Player_Size, 0.33 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  2020. local part = CreatePart(3, Weapon, "Granite", 0, 0, "Hot pink", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false)
  2021. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.1 * Player_Size, -0.4 * Player_Size, -0.33 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  2022.  
  2023. for _, c in pairs(Weapon:GetChildren()) do
  2024. if c.ClassName == "Part" then
  2025. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  2026. end
  2027. end
  2028.  
  2029. Weapon.Parent = Character
  2030.  
  2031. Humanoid.Died:connect(function()
  2032. ATTACK = true
  2033. end)
  2034.  
  2035. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.13, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(255, 0, 191), "Skill 1 Frame")
  2036. local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.60, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(255, 0, 191), "Skill 2 Frame")
  2037. local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(255, 0, 191), "Skill 3 Frame")
  2038. local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.7, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(255, 0, 191), "Skill 4 Frame")
  2039.  
  2040. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] A Lovely Friend(No Damage)", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 1")
  2041. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[E] Kiss Someone", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 2")
  2042. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Teleporty", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 3")
  2043. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[Q] Raep That Boi Up", SKILLTEXTCOLOR, 6, "SciFi", 0, 2, 1, "Text4")
  2044.  
  2045. --//=================================\\
  2046. --|| DAMAGE FUNCTIONS
  2047. --\\=================================//
  2048.  
  2049. function ApplyDamage(Humanoid,Damage,TorsoPart)
  2050. local defence = Instance.new("BoolValue",Humanoid.Parent)
  2051. defence.Name = ("HitBy"..Player.Name)
  2052. game:GetService("Debris"):AddItem(defence, 0.001)
  2053. Damage = Damage * DAMAGEMULTIPLIER
  2054. if Humanoid.Health ~= 0 then
  2055. local CritChance = MRANDOM(1,100)
  2056. if Damage > Humanoid.Health then
  2057. Damage = math.ceil(Humanoid.Health)
  2058. if Damage == 0 then
  2059. Damage = 0.1
  2060. end
  2061. end
  2062. Humanoid.Health = Humanoid.Health - Damage
  2063. end
  2064. end
  2065.  
  2066. function Kill(Char)
  2067. local NewCharacter = IT("Model",Effects)
  2068. NewCharacter.Name = "Dead No Big Surpise"
  2069. for _, c in pairs(Char:GetDescendants()) do
  2070. if c:IsA("BasePart") and c.Transparency == 0 then
  2071. c:BreakJoints()
  2072. c.Material = "Glass"
  2073. c.Color = C3(1,0,0)
  2074. c.CanCollide = true
  2075. c.Transparency = 0.3
  2076. if c:FindFirstChildOfClass("SpecialMesh") then
  2077. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  2078. end
  2079. if c.Name == "Head" then
  2080. c:ClearAllChildren()
  2081. c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
  2082. end
  2083. if c.ClassName == "MeshPart" then
  2084. c.TextureID = ""
  2085. end
  2086. if c:FindFirstChildOfClass("BodyPosition") then
  2087. c:FindFirstChildOfClass("BodyPosition"):remove()
  2088. end
  2089. if c:FindFirstChildOfClass("ParticleEmitter") then
  2090. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  2091. end
  2092. c.Parent = NewCharacter
  2093. c.Name = "DeadPart"
  2094. c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
  2095. c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
  2096. end
  2097. end
  2098. Char:remove()
  2099. Debris:AddItem(NewCharacter,5)
  2100. end
  2101.  
  2102.  
  2103. local asd = Instance.new("ParticleEmitter")
  2104. asd.Color = ColorSequence.new(Color3.new(1,1,1), Color3.new(1,1,1))
  2105. asd.LightEmission = .1
  2106. asd.Texture = "http://www.roblox.com/asset/?ID=284205403"
  2107. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
  2108. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  2109. asd.Transparency = bbb
  2110. asd.Size = aaa
  2111. asd.ZOffset = .9
  2112. asd.Acceleration = Vector3.new(0, -15, 0)
  2113. asd.LockedToPart = false
  2114. asd.EmissionDirection = "Back"
  2115. asd.Lifetime = NumberRange.new(1, 2)
  2116. asd.Rotation = NumberRange.new(-100, 100)
  2117. asd.RotSpeed = NumberRange.new(-100, 100)
  2118. asd.Speed = NumberRange.new(10)
  2119. asd.Enabled = false
  2120. asd.VelocitySpread = 999
  2121.  
  2122. function getohyeah(victim,amount)
  2123. local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Milk", victim.Size)
  2124. PART.CFrame = victim.CFrame
  2125. Debris:AddItem(PART,5)
  2126. local prtcl = asd:Clone()
  2127. prtcl.Parent = PART
  2128. prtcl:Emit(amount*10)
  2129. end
  2130.  
  2131. function ApplyDamage3(Humanoid,Damage,TorsoPart)
  2132. local defence = Instance.new("BoolValue",Humanoid.Parent)
  2133. defence.Name = ("HitBy"..Player.Name)
  2134. game:GetService("Debris"):AddItem(defence, 0.001)
  2135. Damage = Damage * DAMAGEMULTIPLIER
  2136. if Humanoid.Health ~= 0 then
  2137. local CritChance = MRANDOM(1,100)
  2138. if Damage > Humanoid.Health then
  2139. Damage = math.ceil(Humanoid.Health)
  2140. if Damage == 0 then
  2141. Damage = 0.1
  2142. end
  2143. end
  2144. Humanoid.Health = Humanoid.Health - Damage
  2145. end
  2146. end
  2147.  
  2148. function ApplyDamage3(Humanoid,Damage,TorsoPart)
  2149. local defence = Instance.new("BoolValue",Humanoid.Parent)
  2150. defence.Name = ("HitBy"..Player.Name)
  2151. game:GetService("Debris"):AddItem(defence, 0.001)
  2152. Damage = Damage * DAMAGEMULTIPLIER
  2153. if Humanoid.Health ~= 0 then
  2154. local CritChance = MRANDOM(1,100)
  2155. if Damage > Humanoid.Health then
  2156. Damage = math.ceil(Humanoid.Health)
  2157. if Damage == 0 then
  2158. Damage = 0.1
  2159. end
  2160. end
  2161. Humanoid.Health = Humanoid.Health - Damage
  2162. end
  2163. end
  2164.  
  2165. function ApplyAoE3(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  2166. local CHILDREN = workspace:GetDescendants()
  2167. for index, CHILD in pairs(CHILDREN) do
  2168. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  2169. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2170. if HUM then
  2171. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2172. if TORSO then
  2173. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  2174. if INSTAKILL == true then
  2175. CHILD:BreakJoints()
  2176. else
  2177. local DMG = MRANDOM(MINDMG,MAXDMG)
  2178. ApplyDamage(HUM,DMG,TORSO)
  2179. end
  2180. if FLING > 0 then
  2181. for _, c in pairs(CHILD:GetChildren()) do
  2182. if c:IsA("BasePart") then
  2183. local bv = Instance.new("BodyVelocity")
  2184. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2185. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  2186. bv.Parent = c
  2187. Debris:AddItem(bv,0.05)
  2188. end
  2189. end
  2190. end
  2191. end
  2192. end
  2193. end
  2194. end
  2195. end
  2196. end
  2197.  
  2198.  
  2199. function ApplyAoE4(POSITION,RANGE,BRUTAL)
  2200. local CHILDREN = workspace:GetDescendants()
  2201. for index, CHILD in pairs(CHILDREN) do
  2202. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2203. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2204. if HUM then
  2205. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2206. if TORSO then
  2207. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  2208. if BRUTAL == true then
  2209. Kill(CHILD)
  2210. else
  2211. CHILD:BreakJoints()
  2212. end
  2213. end
  2214. end
  2215. end
  2216. end
  2217. end
  2218. end
  2219.  
  2220. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  2221. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  2222. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  2223. local BODYGYRO = IT("BodyGyro", STATPART)
  2224. local BODYPOSITION = IT("BodyPosition", STATPART)
  2225. BODYPOSITION.P = 2000
  2226. BODYPOSITION.D = 100
  2227. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  2228. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  2229. game:GetService("Debris"):AddItem(STATPART ,5)
  2230. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  2231. BILLBOARDGUI.Adornee = STATPART
  2232. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  2233. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  2234. BILLBOARDGUI.AlwaysOnTop = false
  2235. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  2236. TEXTLABEL.BackgroundTransparency = 1
  2237. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  2238. TEXTLABEL.Text = TEXT
  2239. TEXTLABEL.Font = "SciFi"
  2240. TEXTLABEL.FontSize="Size42"
  2241. TEXTLABEL.TextColor3 = COLOR
  2242. TEXTLABEL.TextStrokeTransparency = 1
  2243. TEXTLABEL.TextScaled = true
  2244. TEXTLABEL.TextWrapped = true
  2245. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  2246. if LABELTYPE == "Normal" then
  2247. for i = 1, 30 do
  2248. Swait()
  2249. STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0)
  2250. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  2251. end
  2252. elseif LABELTYPE == "Debuff" then
  2253. for i = 1, 30 do
  2254. Swait()
  2255. STATPART.Position = STATPART.Position - VT(0, i/10 ,0)
  2256. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  2257. end
  2258. elseif LABELTYPE == "Shock" then
  2259. local ORIGIN = STATPART.Position
  2260. for i = 1, 30 do
  2261. Swait()
  2262. STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2))
  2263. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  2264. end
  2265. end
  2266. THEPART.Parent = nil
  2267. end),STATPART, BODYPOSITION, TEXTLABEL)
  2268. end
  2269.  
  2270. --//=================================\\
  2271. --|| DAMAGING
  2272. --\\=================================//
  2273.  
  2274. function killnearest(position,range,maxstrength,direction)
  2275. for i,v in ipairs(workspace:GetChildren()) do
  2276. local body = v:GetChildren()
  2277. for part = 1, #body do
  2278. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  2279. if(body[part].Position - position).Magnitude < range then
  2280. if v.ClassName == "Model" then
  2281. --v:BreakJoints()
  2282. end
  2283. local POS = position
  2284. coroutine.resume(coroutine.create(function()
  2285. body[part].Anchored = true
  2286. body[part].Parent = Effects
  2287. body[part].CanCollide = true
  2288. local SIZE = body[part].Size
  2289. body[part].Material = "Neon"
  2290. CreateSound("952306739", body[part], 2, MRANDOM(7, 12) / 10)
  2291. for i = 1, 75 do
  2292. Swait()
  2293. body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  2294. body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  2295. end
  2296. coroutine.resume(coroutine.create(function()
  2297. while true do
  2298. Swait()
  2299. body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  2300. body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  2301. end
  2302. end))
  2303. body[part].Anchored = false
  2304. body[part].Velocity = direction.lookVector*maxstrength
  2305. end))
  2306. end
  2307. end
  2308. end
  2309. if v.ClassName == "Part" then
  2310. if v.Anchored == false and (v.Position - position).Magnitude < range then
  2311. local POS = position
  2312. coroutine.resume(coroutine.create(function()
  2313. v.Anchored = true
  2314. v.Parent = Effects
  2315. local SIZE = v.Size
  2316. v.Material = "Neon"
  2317. CreateSound("952306739", v, 2, MRANDOM(7, 12) / 10)
  2318. for i = 1, 75 do
  2319. Swait()
  2320. v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  2321. v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  2322. end
  2323. coroutine.resume(coroutine.create(function()
  2324. while true do
  2325. Swait()
  2326. v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  2327. v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  2328. end
  2329. end))
  2330. v.Anchored = false
  2331. v.Velocity = direction.lookVector*maxstrength
  2332. end))
  2333. end
  2334. end
  2335. end
  2336. end
  2337.  
  2338. --//=================================\\
  2339. --|| ATTACK FUNCTIONS AND STUFF
  2340. --\\=================================//
  2341.  
  2342. function AttackTemplate()
  2343. ATTACK = true
  2344. Rooted = false
  2345. for i=0, 1, 0.1 / Animation_Speed do
  2346. Swait()
  2347. 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)
  2348. 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)
  2349. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2350. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2351. 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)
  2352. 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)
  2353. end
  2354. ATTACK = false
  2355. Rooted = false
  2356. end
  2357.  
  2358. function sux()
  2359. local TARGET = Mouse.Target
  2360. if TARGET ~= nil then
  2361. if TARGET.Parent:FindFirstChildOfClass("Humanoid") then
  2362. local HUM = TARGET.Parent:FindFirstChildOfClass("Humanoid")
  2363. local ROOT = TARGET.Parent:FindFirstChild("HumanoidRootPart") or TARGET.Parent:FindFirstChild("Torso")
  2364. if ROOT and HUM.Health > 0 then
  2365. local FOE = Mouse.Target.Parent
  2366. ATTACK = true
  2367. Rooted = true
  2368. RootPart.CFrame = ROOT.CFrame*CF(-1.35,0,4)
  2369. ROOT.Anchored = true
  2370. local LENNY = {"836796971","1430568042","429400881"}
  2371. CreateSound(670796769, Torso, 9999, 0.6, false)
  2372. CreateSound(291394633, Torso, 5, 1, false)
  2373. for i=0, 0.4, 0.1 / Animation_Speed do
  2374. Swait()
  2375. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2376. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2377. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2378. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2379. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2380. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2381. end
  2382. HUM.PlatformStand = true
  2383. ROOT.CFrame = ROOT.CFrame * CF(0,-2*ROOT.Size.Z,0) * ANGLES(RAD(-90), RAD(0), RAD(0))
  2384. coroutine.resume(coroutine.create(function()
  2385. Swait()
  2386. ROOT.Anchored = true
  2387. end))
  2388. RootPart.CFrame = RootPart.CFrame*CF(1.3,0,-3.8)
  2389. local times = 0
  2390. repeat
  2391. Swait()
  2392. times = times + 1
  2393. for i= 0, 0.5, 0.1 / Animation_Speed do
  2394. Swait()
  2395. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -2) * ANGLES(RAD(90), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2396. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2397. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0 ) * ANGLES(RAD(90), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2398. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0 ) * ANGLES(RAD(90), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.5/ Animation_Speed)
  2399. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(20)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2400. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(-20)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2401. end
  2402. for i= 0, 0.5, 0.1 / Animation_Speed do
  2403. Swait()
  2404. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -2) * ANGLES(RAD(60), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2405. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2406. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0 ) * ANGLES(RAD(60), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2407. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0 ) * ANGLES(RAD(60), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2408. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(-10)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2409. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(10)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2410. end
  2411. CreateSound(LENNY[1],FOE,10,1,false)
  2412. getohyeah(ROOT,10)
  2413. until times == 5
  2414. getohyeah(ROOT,20)
  2415. CreateSound(LENNY[2],FOE,10,.75,false)
  2416. CreateSound(LENNY[3],FOE,2,1,false)
  2417. Ragdoll(FOE,ROOT,true)
  2418. end
  2419. end
  2420. end
  2421. ATTACK = false
  2422. end
  2423.  
  2424.  
  2425. function DeathAgreement()
  2426. ATTACK = true
  2427. Rooted = false
  2428. local SPEED = Speed
  2429. Speed = 27
  2430. CreateSound("357202141", RightArm, 10, 1.1)
  2431. for i=0, 0, 0.1 / Animation_Speed do
  2432. Swait()
  2433. turnto(Mouse.Hit.p)
  2434. MagicSphere(VT(1,1,1),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Hot pink",VT(-1/15,-1/15,-1/15))
  2435. MagicSphere(VT(2,2,2),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Hot pink",VT(-2/15,-2/15,-2/15))
  2436. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-85)), 0.15 / Animation_Speed)
  2437. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(85)), 0.2 / Animation_Speed)
  2438. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90+(MRANDOM(-45,45)/10)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
  2439. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2440. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2441. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2442. end
  2443. for i=0, 0.15, 0.1 / Animation_Speed do
  2444. Swait()
  2445. turnto(Mouse.Hit.p)
  2446. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(65)), 1 / Animation_Speed)
  2447. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 1 / Animation_Speed)
  2448. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2449. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2450. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2451. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2452. end
  2453. local PART = CreatePart(3, Effects, "Neon", 0, 0.8, "Hot pink", "Punch", VT(50,50,50),false)
  2454. PART.CFrame = RootPart.CFrame * CF(0,0,-25)
  2455. PART.Shape = "Ball"
  2456. local bv = Instance.new("BodyVelocity")
  2457. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2458. bv.velocity = RootPart.CFrame.lookVector*600
  2459. bv.Parent = PART
  2460. bv.Name = "PROJECTILEVELOCITY"
  2461. CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Hot pink",VT(2.5,0.2,2.5))
  2462. CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Hot pink",VT(3,0.2,3))
  2463. CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Hot pink",VT(2,0.6,2))
  2464. CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Hot pink",VT(2.2,0.6,2.2))
  2465. CreateSound("414517163", Effects, 10, MRANDOM(7, 12) / 10)
  2466. coroutine.resume(coroutine.create(function()
  2467. for i = 1, 10 do
  2468. Swait()
  2469. PART.Transparency = PART.Transparency + 0.2/10
  2470. PART.Size = PART.Size + VT(5,5,5)
  2471. killnearest(PART.Position,PART.Size.Y/2+15,100,RootPart.CFrame)
  2472. end
  2473. PART:Destroy()
  2474. end))
  2475. for i=0, 1, 0.1 / Animation_Speed do
  2476. Swait()
  2477. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(95)), 2 / Animation_Speed)
  2478. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 3 / Animation_Speed)
  2479. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
  2480. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-70), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 3 / Animation_Speed)
  2481. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 3 / Animation_Speed)
  2482. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 3 / Animation_Speed)
  2483. end
  2484. ATTACK = false
  2485. Rooted = false
  2486. end
  2487.  
  2488. function MaxSpeed()
  2489. local ORIGIN = RootPart.Position
  2490. CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3,0.4))
  2491. CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3.1,0.6))
  2492. local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Hot pink", "Sound", VT(0,0,0))
  2493. SOUNDPART.CFrame = RootPart.CFrame
  2494. Debris:AddItem(SOUNDPART,5)
  2495. CreateSound("", SOUNDPART, 2, 1)
  2496. RootPart.CFrame = CF(Mouse.Hit.p+VT(0,3,0),VT(ORIGIN.X,Mouse.Hit.p.Y,ORIGIN.Z))
  2497. Swait()
  2498. CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3,0.4))
  2499. CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3.1,0.6))
  2500. local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Hot pink", "Sound", VT(0,0,0))
  2501. SOUNDPART.CFrame = RootPart.CFrame
  2502. Debris:AddItem(SOUNDPART,5)
  2503. CreateSound("1295446488", SOUNDPART, 2, 1)
  2504. if MRANDOM(1,8) == 1 then
  2505. ATTACK = true
  2506. Rooted = true
  2507. local FRUITSTABLE = {
  2508. {MeshId = "16190555", TextureId = "16190577", Color = "Really red"},
  2509. {MeshId = "119574562", TextureId = "64374853", Color = "New Yeller"},
  2510. {MeshId = "24394186", TextureId = "24394178", Color = "Brown"}
  2511. }
  2512. local FRUIT = FRUITSTABLE[MRANDOM(1, #FRUITSTABLE)]
  2513. local FRUITMODEL = CreatePart(3, Effects, "Neon", 0, 0, FRUIT.Color, "Fruit", VT(0,0,0),false)
  2514. CreateMesh("SpecialMesh", FRUITMODEL, "FileMesh", FRUIT.MeshId, FRUIT.TextureId, VT(2,2,2), VT(0,0,0))
  2515. FRUITMODEL.CFrame = RightArm.CFrame * CF(0,-1.5,0)
  2516. weldBetween(RightArm,FRUITMODEL)
  2517. for i=0, 4, 0.1 / Animation_Speed do
  2518. Swait()
  2519. 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)
  2520. 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)
  2521. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(190), RAD(-145)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2522. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2523. 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)
  2524. 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)
  2525. end
  2526. CreateSound("414517163", RightArm, 10, MRANDOM(7, 12) / 10)
  2527. FRUITMODEL:remove()
  2528. for i = 1, 15 do
  2529. Slice(0.1,15,RightArm.CFrame*CF(0,-1,0) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),FRUIT.Color, 1 + MRANDOM(1,10)/15)
  2530. end
  2531. for i=0, 0.5, 0.1 / Animation_Speed do
  2532. Swait()
  2533. 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)
  2534. 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)
  2535. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(190), RAD(-175)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2536. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2537. 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)
  2538. 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)
  2539. end
  2540. ATTACK = false
  2541. Rooted = false
  2542. end
  2543. end
  2544.  
  2545. function friend()
  2546. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  2547. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  2548. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  2549. local ARM = HUM.Parent:FindFirstChild("Right Arm") or HUM.Parent:FindFirstChild("RightUpperArm")
  2550. if TORSO and ARM then
  2551. ATTACK = true
  2552. local FAKECHARACTER = IT("Model",Effects)
  2553. FAKECHARACTER.Name = "NeonDoll"
  2554. local TORS = CreatePart(3, FAKECHARACTER, "Neon", 0, 0.4, "Alder", "Part", VT(0.3,0.3,0.15),false)
  2555. CreateWeldOrSnapOrMotor("Weld", HUM, ARM, TORS, CF(0,1.2,0), CF(0,0,0))
  2556. local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 0.4, "Alder", "Part", VT(0.15,0.3,0.15),false)
  2557. CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(0.15/2,-0.15,0) * ANGLES(RAD(90), RAD(0), RAD(15)), CF(0,0.15,0))
  2558. local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 0.4, "Alder", "Part", VT(0.15,0.3,0.15),false)
  2559. CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(-0.15/2,-0.15,0) * ANGLES(RAD(90), RAD(0), RAD(-15)), CF(0,0.15,0))
  2560. local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 0.4, "Alder", "Part", VT(0.15,0.3,0.15),false)
  2561. CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(30)), CF(0,0.15,0))
  2562. local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 0.4, "Alder", "Part", VT(0.15,0.3,0.15),false)
  2563. CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(-0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(-30)), CF(0,0.15,0))
  2564. local HEAD = CreatePart(3, FAKECHARACTER, "Neon", 0, 0.4, "Alder", "Part", VT(0.15,0.15,0.15),false)
  2565. CreateWeldOrSnapOrMotor("Weld", TORS, TORS, HEAD, CF(0,0.225,0), CF(0,0,0))
  2566. ATTACK = false
  2567. repeat
  2568. wait(1)
  2569. ApplyDamage(HUM,5,5,2,5)
  2570. until HUM.health == 0
  2571. end
  2572. end
  2573. end
  2574.  
  2575. function Debree(POS, SWAIT)
  2576. coroutine.resume(coroutine.create(function()
  2577. local HOLDER = IT("Model", Effects)
  2578. HOLDER.Name = "Debree"
  2579. local HITFLOOR = Raycast(POS, CF(POS, POS + VT(0, -1, 0)).lookVector, 4 * Player_Size, Character)
  2580. MagicSphere(VT(15, 1, 15), SWAIT, CF(POS), "Really red", VT(0, 0, 0))
  2581. MagicSphere(VT(13, 1, 13), SWAIT, CF(POS), "Really red", VT(0, 0, 0))
  2582. MagicSphere(VT(12, 1, 12), SWAIT, CF(POS), "Really red", VT(0, 0, 0))
  2583. repeat
  2584. Swait()
  2585. until HITFLOOR ~= nil
  2586. local O = 0
  2587. for i = 1, 18 do
  2588. do
  2589. local Part = CreatePart(3, HOLDER, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Debree", VT(3, 3, 3))
  2590. Part.CFrame = CF(CF(POS) * CF(10 - i, 0, O).p) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)))
  2591. O = O - 2.25 + i / 4
  2592. coroutine.resume(coroutine.create(function()
  2593. Swait(SWAIT)
  2594. for i = 1, 60 do
  2595. Swait()
  2596. local RayHit, Way = CastProperRay(Part.Position, POS, 0.1, workspace)
  2597. Part.CFrame = CF(Way) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)))
  2598. end
  2599. for i = 1, 50 do
  2600. Swait()
  2601. Part.Size = Part.Size * 0.9
  2602. end
  2603. end))
  2604. end
  2605. end
  2606. local O = 0
  2607. for i = 1, 18 do
  2608. do
  2609. local Part = CreatePart(3, HOLDER, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Debree", VT(3, 3, 3))
  2610. Part.CFrame = CF(CF(POS) * CF(10 - i, 0, O).p) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)))
  2611. O = O + 2.25 - i / 4
  2612. coroutine.resume(coroutine.create(function()
  2613. Swait(SWAIT)
  2614. for i = 1, 60 do
  2615. Swait()
  2616. local RayHit, Way = CastProperRay(Part.Position, POS, 0.1, workspace)
  2617. Part.CFrame = CF(Way) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)))
  2618. end
  2619. for i = 1, 50 do
  2620. Swait()
  2621. Part.Size = Part.Size * 0.9
  2622. end
  2623. end))
  2624. end
  2625. end
  2626. Swait(SWAIT + 110)
  2627. HOLDER:remove()
  2628. end))
  2629. end
  2630.  
  2631.  
  2632.  
  2633. function kiss()
  2634. ATTACK = true
  2635. Rooted = false
  2636. local HASGRABBED = false
  2637. local GRABTARGET = nil
  2638. local TORS = nil
  2639. local WELD = nil
  2640. for i=0, 1, 0.1 / Animation_Speed do
  2641. Swait()
  2642. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.25, -0.25 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(22.5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2643. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-17.5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2644. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2645. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2646. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2647. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2648. end
  2649. local GRAB1 = RightArm.Touched:Connect(function(hit)
  2650. if hit.Parent:FindFirstChild("Humanoid") then
  2651. if hit.Parent.Humanoid.Health ~= 0 then
  2652. UNANCHOR = false
  2653. RootPart.Anchored = true
  2654. TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  2655. TORS.CFrame = RootPart.CFrame * CF(0,0,-1.8) * ANGLES(RAD(0),RAD(180),RAD(0))
  2656. WELD = weldBetween(RootPart,TORS)
  2657. HASGRABBED = true
  2658. Rooted = true
  2659. end
  2660. end
  2661. end)
  2662. local GRAB2 = LeftArm.Touched:Connect(function(hit)
  2663. if hit.Parent:FindFirstChild("Humanoid") then
  2664. if hit.Parent.Humanoid.Health ~= 0 then
  2665. UNANCHOR = false
  2666. RootPart.Anchored = true
  2667. TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  2668. TORS.CFrame = RootPart.CFrame * CF(0,0,-1.8) * ANGLES(RAD(0),RAD(180),RAD(0))
  2669. WELD = weldBetween(RootPart,TORS)
  2670. HASGRABBED = true
  2671. Rooted = true
  2672. end
  2673. end
  2674. end)
  2675. for i=0, 1, 0.1 / Animation_Speed do
  2676. Swait()
  2677. if HASGRABBED == true then
  2678. break
  2679. end
  2680. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.25, -0.25 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(22.5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2681. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-17.5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2682. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(110), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2683. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(110), RAD(0), RAD(35)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2684. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2685. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2686. end
  2687. GRAB1:disconnect()
  2688. GRAB2:disconnect()
  2689. if HASGRABBED == true then
  2690. TORS.Anchored = false
  2691. GRABTARGET = TORS.Parent
  2692. HED = GRABTARGET:FindFirstChild("Head")
  2693. for i=0, 2, 0.1 / Animation_Speed do
  2694. Swait()
  2695. 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)
  2696. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2697. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2698. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2699. 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)
  2700. 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)
  2701. end
  2702. local heart = CreatePart(1, HED, "SmoothPlastic", 0, 0, "Carnation pink", "Heart", VT(1,1,1), false)
  2703. local msh = CreateMesh("SpecialMesh", heart, "FileMesh", "431221914", "", VT(0.3, 0.3, 0.3), VT(0,0,0))
  2704. CreateWeldOrSnapOrMotor("Weld", HED, heart, HED,CF(0, -2, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  2705. local ECH = 0
  2706. CreateSound("247269322", Head, 10, 0.8)
  2707. for i=0, 8, 0.1 / Animation_Speed do
  2708. Swait()
  2709. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.25, -0.25 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(22.5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2710. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-17.5 - 2.5 * SIN(SINE / 12)), RAD(25 * SIN(SINE / 3)), RAD(0)), 0.5 / Animation_Speed)
  2711. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -1) * ANGLES(RAD(110), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2712. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35, 0.5, -1) * ANGLES(RAD(110), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2713. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2714. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2715. end
  2716. WELD:remove()
  2717. end
  2718. UNANCHOR = true
  2719. ATTACK = false
  2720. Rooted = false
  2721. end
  2722.  
  2723. --//=================================\\
  2724. --|| ASSIGN THINGS TO KEYS
  2725. --\\=================================//
  2726.  
  2727. function MouseDown(Mouse)
  2728. if ATTACK == false then
  2729. end
  2730. end
  2731.  
  2732. function MouseUp(Mouse)
  2733. HOLD = false
  2734. end
  2735.  
  2736. function KeyDown(Key)
  2737. KEYHOLD = true
  2738. if Key == "z" and ATTACK == false then
  2739. friend()
  2740. end
  2741.  
  2742. if Key == "q" and ATTACK == false then
  2743. sux()
  2744. end
  2745.  
  2746. if Key == "e" and ATTACK == false then
  2747. kiss()
  2748. end
  2749.  
  2750. if Key == "c" and ATTACK == false then
  2751. MaxSpeed()
  2752. end
  2753.  
  2754.  
  2755. if Key == "p" and ATTACK == false then
  2756. if Speed == 27 then
  2757. Speed = 150
  2758. elseif Speed == 150 then
  2759. Speed = 27
  2760. end
  2761. end
  2762. end
  2763.  
  2764. function KeyUp(Key)
  2765. KEYHOLD = false
  2766. end
  2767.  
  2768. Mouse.Button1Down:connect(function(NEWKEY)
  2769. MouseDown(NEWKEY)
  2770. end)
  2771. Mouse.Button1Up:connect(function(NEWKEY)
  2772. MouseUp(NEWKEY)
  2773. end)
  2774. Mouse.KeyDown:connect(function(NEWKEY)
  2775. KeyDown(NEWKEY)
  2776. end)
  2777. Mouse.KeyUp:connect(function(NEWKEY)
  2778. KeyUp(NEWKEY)
  2779. end)
  2780.  
  2781. --//=================================\\
  2782. --\\=================================//
  2783.  
  2784.  
  2785. function unanchor()
  2786. if UNANCHOR == true then
  2787. g = Character:GetChildren()
  2788. for i = 1, #g do
  2789. if g[i].ClassName == "Part" then
  2790. g[i].Anchored = false
  2791. end
  2792. end
  2793. end
  2794. end
  2795.  
  2796.  
  2797. --//=================================\\
  2798. --|| WRAP THE WHOLE SCRIPT UP
  2799. --\\=================================//
  2800.  
  2801. Humanoid.Changed:connect(function(Jump)
  2802. if Jump == "Jump" and (Disable_Jump == true) then
  2803. Humanoid.Jump = false
  2804. end
  2805. end)
  2806.  
  2807. while true do
  2808. Swait()
  2809. ANIMATE.Parent = nil
  2810. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  2811. IDLEANIMATION:Play()
  2812. SINE = SINE + CHANGE
  2813. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  2814. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  2815. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  2816. HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  2817. local WALKSPEEDVALUE = 0
  2818. if Speed < 35 then
  2819. WALKSPEEDVALUE = 6
  2820. else
  2821. WALKSPEEDVALUE = 3
  2822. end
  2823. if ANIM == "Walk" and TORSOVELOCITY > 1 and Rooted == false then
  2824. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (1) / Animation_Speed)
  2825. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * 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)
  2826. if Speed < 35 then
  2827. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(56 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed)
  2828. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(56 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed)
  2829. else
  2830. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed)
  2831. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed)
  2832. end
  2833. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or Rooted == true then
  2834. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2835. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2836. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2837. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2838. end
  2839. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  2840. ANIM = "Jump"
  2841. if ATTACK == false then
  2842. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2843. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2844. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2845. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2846. 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)
  2847. 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)
  2848. end
  2849. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  2850. ANIM = "Fall"
  2851. if ATTACK == false then
  2852. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2853. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2854. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2855. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2856. 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)
  2857. 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)
  2858. end
  2859. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  2860. if ATTACK == false then
  2861. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.15 / Animation_Speed)
  2862. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.15 / Animation_Speed)
  2863. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(5+5*SIN(SINE/16))) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  2864. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(15), RAD(0), RAD(20)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  2865. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2866. 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)
  2867. end
  2868. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil and Rooted == false then
  2869. ANIM = "Walk"
  2870. WALK = WALK + 1 / Animation_Speed
  2871. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  2872. WALK = 0
  2873. if WALKINGANIM == true then
  2874. WALKINGANIM = false
  2875. elseif WALKINGANIM == false then
  2876. WALKINGANIM = true
  2877. end
  2878. end
  2879. --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2880. --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2881. if ATTACK == false then
  2882. if Speed < 35 then
  2883. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2884. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2885. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2886. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2887. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  2888. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  2889. else
  2890. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2891. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2892. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(80 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-30 * COS(SINE / WALKSPEEDVALUE))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2893. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-80 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-30 * COS(SINE / WALKSPEEDVALUE))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2894. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  2895. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  2896. end
  2897. end
  2898. end
  2899. unanchor()
  2900. Humanoid.MaxHealth = "inf"
  2901. Humanoid.Health = "inf"
  2902. if Rooted == false then
  2903. Disable_Jump = false
  2904. Humanoid.WalkSpeed = Speed
  2905. elseif Rooted == true then
  2906. Disable_Jump = true
  2907. Humanoid.WalkSpeed = 0
  2908. end
  2909. local MATHS = {"0","1"}
  2910. Humanoid.Name = MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]
  2911. Humanoid.PlatformStand = false
  2912. end
  2913.  
  2914. --//=================================\\
  2915. --\\=================================//
  2916.  
  2917.  
  2918.  
  2919.  
  2920.  
  2921. --//====================================================\\--
  2922. --|| END OF SCRIPT
  2923. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement