Advertisement
Mediakiller7Cool

Heheh

Apr 26th, 2019
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 76.63 KB | None | 0 0
  1. wait()
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. do
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = game:GetService("Players").LocalPlayer
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 30 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/30) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83.  
  84. --Gentlemen. -Spy
  85. local Player = owner
  86. local Character = Player.Character
  87. local Humanoid = Character.Humanoid
  88. local LeftArm = Character["Left Arm"]
  89. local RightArm = Character["Right Arm"]
  90. local LeftLeg = Character["Left Leg"]
  91. local RightLeg = Character["Right Leg"]
  92. local Head = Character.Head
  93. local Torso = Character.Torso
  94. local Camera = game.Workspace.CurrentCamera
  95. local RootPart = Character.HumanoidRootPart
  96. local RootJoint = RootPart.RootJoint
  97. local ALLOW = false
  98. local attack = false
  99. local allow = false
  100. local Anim = 'Idle'
  101. local Lighty = game:GetService"Lighting"
  102. local attacktype = 1
  103. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  104. local velocity = RootPart.Velocity.y
  105. local sine = 0
  106. local change = 1
  107. local bored = {666529034,1199646708,549231151,537510365,1408629209,363110445}
  108. local Create = LoadLibrary("RbxUtility").Create
  109. function swait(num)
  110. if num == 0 or num == nil then
  111. ArtificialHB.Event:wait()
  112. else
  113. for i = 0, num do
  114. ArtificialHB.Event:wait()
  115. end
  116. end
  117. end
  118.  
  119. wait(0.2)
  120.  
  121. Player = owner
  122. PlayerGui = Player.PlayerGui
  123. Cam = workspace.CurrentCamera
  124. Backpack = Player.Backpack
  125. Character = Player.Character
  126. Humanoid = Character.Humanoid
  127. RootPart = Character["HumanoidRootPart"]
  128. Torso = Character["Torso"]
  129. Head = Character["Head"]
  130. RightArm = Character["Right Arm"]
  131. LeftArm = Character["Left Arm"]
  132. RightLeg = Character["Right Leg"]
  133. LeftLeg = Character["Left Leg"]
  134. RootJoint = RootPart["RootJoint"]
  135. Neck = Torso["Neck"]
  136. RightShoulder = Torso["Right Shoulder"]
  137. LeftShoulder = Torso["Left Shoulder"]
  138. RightHip = Torso["Right Hip"]
  139. LeftHip = Torso["Left Hip"]
  140. Character.Archivable = true
  141. Player:ClearCharacterAppearance()
  142.  
  143. IT = Instance.new
  144. CF = CFrame.new
  145. VT = Vector3.new
  146. RAD = math.rad
  147. C3 = Color3.new
  148. UD2 = UDim2.new
  149. BRICKC = BrickColor.new
  150. ANGLES = CFrame.Angles
  151. EULER = CFrame.fromEulerAnglesXYZ
  152. COS = math.cos
  153. ACOS = math.acos
  154. SIN = math.sin
  155. ASIN = math.asin
  156. ABS = math.abs
  157. MRANDOM = math.random
  158. FLOOR = math.floor
  159. local CHOICE = MRANDOM(1,6)
  160. local CHOICE = MRANDOM(1,6)
  161. --//=================================\\
  162. --|| USEFUL VALUES
  163. --\\=================================//
  164.  
  165. Player_Size = 1 --Size of the player.
  166. Animation_Speed = 3
  167. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  168.  
  169. local Speed = 16
  170. local Effects2 = {}
  171. local Speed = 20
  172. local SIZE = 1.4
  173. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  174. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  175. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  176. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  177. local DAMAGEMULTIPLIER = "inf"
  178. local ANIM = "Idle"
  179. local ATTACK = false
  180. local EQUIPPED = false
  181. local HOLD = false
  182. local COMBO = 1
  183. local Rooted = false
  184. local SINE = 0
  185. local KEYHOLD = false
  186. local CHANGE = 2 / Animation_Speed
  187. local WALKINGANIM = false
  188. local VALUE1 = false
  189. local VALUE2 = false
  190. local ROBLOXIDLEANIMATION = IT("Animation")
  191. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  192. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  193. local ATANIM = IT("Animation")
  194. ATANIM.Name = "Attack Animation"
  195. ATANIM.AnimationId = "http://www.roblox.com/asset/?id=74894663"
  196. --ROBLOXIDLEANIMATION.Parent = Humanoid
  197. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  198. WEAPONGUI.Name = "Weapon GUI"
  199. local Weapon = IT("Model")
  200. Weapon.Name = "Adds"
  201. local Effects = IT("Folder", Weapon)
  202. Effects.Name = "Effects"
  203. local ANIMATOR = Humanoid.Animator
  204. local ANIMATE = Character.Animate
  205. local UNANCHOR = true
  206. local CLOCKLOOP = 0
  207. local SONG = 492070484
  208. local CLOCKTARGET = nil
  209. local CLOCKSPEED = 4
  210. script.Parent = WEAPONGUI
  211. local CLONE = Character:Clone()
  212. CLONE.Parent = nil
  213. Character.Archivable = false
  214. local sick = Instance.new("Sound",Torso)
  215. sick.Volume = 50999
  216. sick.SoundId = "rbxassetid://"..bored[CHOICE]
  217. sick:Play()
  218. Character.Archivable = true
  219. Player:ClearCharacterAppearance()
  220. Character.Archivable = false
  221.  
  222.  
  223. --//=================================\\
  224. --\\=================================//
  225.  
  226.  
  227. --//=================================\\
  228. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  229. --\\=================================//
  230.  
  231. ArtificialHB = Instance.new("BindableEvent", script)
  232. ArtificialHB.Name = "ArtificialHB"
  233.  
  234. script:WaitForChild("ArtificialHB")
  235.  
  236. frame = Frame_Speed
  237. tf = 0
  238. allowframeloss = false
  239. tossremainder = false
  240. lastframe = tick()
  241. script.ArtificialHB:Fire()
  242.  
  243. game:GetService("RunService").Heartbeat:connect(function(s, p)
  244. tf = tf + s
  245. if tf >= frame then
  246. if allowframeloss then
  247. script.ArtificialHB:Fire()
  248. lastframe = tick()
  249. else
  250. for i = 1, math.floor(tf / frame) do
  251. script.ArtificialHB:Fire()
  252. end
  253. lastframe = tick()
  254. end
  255. if tossremainder then
  256. tf = 0
  257. else
  258. tf = tf - frame * math.floor(tf / frame)
  259. end
  260. end
  261. end)
  262.  
  263. --//=================================\\
  264. --\\=================================//
  265.  
  266. --//=================================\\
  267. --|| SOME FUNCTIONS
  268. --\\=================================//
  269.  
  270. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  271. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  272. end
  273.  
  274. function PositiveAngle(NUMBER)
  275. if NUMBER >= 0 then
  276. NUMBER = 0
  277. end
  278. return NUMBER
  279. end
  280.  
  281. function NegativeAngle(NUMBER)
  282. if NUMBER <= 0 then
  283. NUMBER = 0
  284. end
  285. return NUMBER
  286. end
  287.  
  288. function Swait(NUMBER)
  289. if NUMBER == 0 or NUMBER == nil then
  290. ArtificialHB.Event:wait()
  291. else
  292. for i = 1, NUMBER do
  293. ArtificialHB.Event:wait()
  294. end
  295. end
  296. end
  297.  
  298. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  299. local NEWMESH = IT(MESH)
  300. if MESH == "SpecialMesh" then
  301. NEWMESH.MeshType = MESHTYPE
  302. if MESHID ~= "nil" and MESHID ~= "" then
  303. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  304. end
  305. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  306. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  307. end
  308. end
  309. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  310. NEWMESH.Scale = SCALE
  311. NEWMESH.Parent = PARENT
  312. return NEWMESH
  313. end
  314.  
  315. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  316. local NEWPART = IT("Part")
  317. NEWPART.formFactor = FORMFACTOR
  318. NEWPART.Reflectance = REFLECTANCE
  319. NEWPART.Transparency = TRANSPARENCY
  320. NEWPART.CanCollide = false
  321. NEWPART.Locked = true
  322. NEWPART.Anchored = true
  323. if ANCHOR == false then
  324. NEWPART.Anchored = false
  325. end
  326. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  327. NEWPART.Name = NAME
  328. NEWPART.Size = SIZE
  329. NEWPART.Position = Torso.Position
  330. NEWPART.Material = MATERIAL
  331. NEWPART:BreakJoints()
  332. NEWPART.Parent = PARENT
  333. return NEWPART
  334. end
  335.  
  336. local function weldBetween(a, b)
  337. local weldd = Instance.new("ManualWeld")
  338. weldd.Part0 = a
  339. weldd.Part1 = b
  340. weldd.C0 = CFrame.new()
  341. weldd.C1 = b.CFrame:inverse() * a.CFrame
  342. weldd.Parent = a
  343. return weldd
  344. end
  345.  
  346.  
  347. function QuaternionFromCFrame(cf)
  348. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  349. local trace = m00 + m11 + m22
  350. if trace > 0 then
  351. local s = math.sqrt(1 + trace)
  352. local recip = 0.5 / s
  353. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  354. else
  355. local i = 0
  356. if m11 > m00 then
  357. i = 1
  358. end
  359. if m22 > (i == 0 and m00 or m11) then
  360. i = 2
  361. end
  362. if i == 0 then
  363. local s = math.sqrt(m00 - m11 - m22 + 1)
  364. local recip = 0.5 / s
  365. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  366. elseif i == 1 then
  367. local s = math.sqrt(m11 - m22 - m00 + 1)
  368. local recip = 0.5 / s
  369. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  370. elseif i == 2 then
  371. local s = math.sqrt(m22 - m00 - m11 + 1)
  372. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  373. end
  374. end
  375. end
  376.  
  377. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  378. local xs, ys, zs = x + x, y + y, z + z
  379. local wx, wy, wz = w * xs, w * ys, w * zs
  380. local xx = x * xs
  381. local xy = x * ys
  382. local xz = x * zs
  383. local yy = y * ys
  384. local yz = y * zs
  385. local zz = z * zs
  386. 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))
  387. end
  388.  
  389. function QuaternionSlerp(a, b, t)
  390. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  391. local startInterp, finishInterp;
  392. if cosTheta >= 0.0001 then
  393. if (1 - cosTheta) > 0.0001 then
  394. local theta = ACOS(cosTheta)
  395. local invSinTheta = 1 / SIN(theta)
  396. startInterp = SIN((1 - t) * theta) * invSinTheta
  397. finishInterp = SIN(t * theta) * invSinTheta
  398. else
  399. startInterp = 1 - t
  400. finishInterp = t
  401. end
  402. else
  403. if (1 + cosTheta) > 0.0001 then
  404. local theta = ACOS(-cosTheta)
  405. local invSinTheta = 1 / SIN(theta)
  406. startInterp = SIN((t - 1) * theta) * invSinTheta
  407. finishInterp = SIN(t * theta) * invSinTheta
  408. else
  409. startInterp = t - 1
  410. finishInterp = t
  411. end
  412. end
  413. 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
  414. end
  415.  
  416. function Clerp(a, b, t)
  417. local qa = {QuaternionFromCFrame(a)}
  418. local qb = {QuaternionFromCFrame(b)}
  419. local ax, ay, az = a.x, a.y, a.z
  420. local bx, by, bz = b.x, b.y, b.z
  421. local _t = 1 - t
  422. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  423. end
  424.  
  425. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  426. local frame = IT("Frame")
  427. frame.BackgroundTransparency = TRANSPARENCY
  428. frame.BorderSizePixel = BORDERSIZEPIXEL
  429. frame.Position = POSITION
  430. frame.Size = SIZE
  431. frame.BackgroundColor3 = COLOR
  432. frame.BorderColor3 = BORDERCOLOR
  433. frame.Name = NAME
  434. frame.Parent = PARENT
  435. return frame
  436. end
  437.  
  438. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  439. local label = IT("TextLabel")
  440. label.BackgroundTransparency = 1
  441. label.Size = UD2(1, 0, 1, 0)
  442. label.Position = UD2(0, 0, 0, 0)
  443. label.TextColor3 = TEXTCOLOR
  444. label.TextStrokeTransparency = STROKETRANSPARENCY
  445. label.TextTransparency = TRANSPARENCY
  446. label.FontSize = TEXTFONTSIZE
  447. label.Font = TEXTFONT
  448. label.BorderSizePixel = BORDERSIZEPIXEL
  449. label.TextStrokeColor3 = C3(1,1,1)
  450. label.TextScaled = false
  451. label.Text = TEXT
  452. label.Name = NAME
  453. label.Parent = PARENT
  454. return label
  455. end
  456.  
  457. function NoOutlines(PART)
  458. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  459. end
  460.  
  461. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  462. local NEWWELD = IT(TYPE)
  463. NEWWELD.Part0 = PART0
  464. NEWWELD.Part1 = PART1
  465. NEWWELD.C0 = C0
  466. NEWWELD.C1 = C1
  467. NEWWELD.Parent = PARENT
  468. return NEWWELD
  469. end
  470.  
  471. local S = IT("Sound")
  472. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  473. local NEWSOUND = nil
  474. coroutine.resume(coroutine.create(function()
  475. NEWSOUND = S:Clone()
  476. NEWSOUND.Parent = PARENT
  477. NEWSOUND.Volume = VOLUME
  478. NEWSOUND.Pitch = PITCH
  479. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  480. NEWSOUND:play()
  481. if DOESLOOP == true then
  482. NEWSOUND.Looped = true
  483. else
  484. repeat wait(1) until NEWSOUND.Playing == false
  485. NEWSOUND:remove()
  486. end
  487. end))
  488. return NEWSOUND
  489. end
  490.  
  491. function CFrameFromTopBack(at, top, back)
  492. local right = top:Cross(back)
  493. 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)
  494. end
  495.  
  496. --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})
  497. function WACKYEFFECT(Table)
  498. local TYPE = (Table.EffectType or "Sphere")
  499. local SIZE = (Table.Size or VT(1,1,1))
  500. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  501. local TRANSPARENCY = (Table.Transparency or 0)
  502. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  503. local CFRAME = (Table.CFrame or Torso.CFrame)
  504. local MOVEDIRECTION = (Table.MoveToPos or nil)
  505. local ROTATION1 = (Table.RotationX or 0)
  506. local ROTATION2 = (Table.RotationY or 0)
  507. local ROTATION3 = (Table.RotationZ or 0)
  508. local MATERIAL = (Table.Material or "Neon")
  509. local COLOR = (Table.Color or C3(66/255, 0/255, 127/2551))
  510. local TIME = (Table.Time or 45)
  511. local SOUNDID = (Table.SoundID or nil)
  512. local SOUNDPITCH = (Table.SoundPitch or nil)
  513. local SOUNDVOLUME = (Table.SoundVolume or nil)
  514. coroutine.resume(coroutine.create(function()
  515. local PLAYSSOUND = false
  516. local SOUND = nil
  517. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Dark indigo"), "Effect", VT(1,1,1), true)
  518. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  519. PLAYSSOUND = true
  520. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  521. end
  522. EFFECT.Color = COLOR
  523. local MSH = nil
  524. if TYPE == "Sphere" then
  525. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  526. elseif TYPE == "Block" then
  527. MSH = IT("BlockMesh",EFFECT)
  528. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  529. elseif TYPE == "Wave" then
  530. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  531. elseif TYPE == "Ring" then
  532. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  533. elseif TYPE == "Slash" then
  534. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  535. elseif TYPE == "Round Slash" then
  536. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  537. elseif TYPE == "Swirl" then
  538. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  539. elseif TYPE == "Skull" then
  540. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  541. elseif TYPE == "Crystal" then
  542. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  543. end
  544. if MSH ~= nil then
  545. local MOVESPEED = nil
  546. if MOVEDIRECTION ~= nil then
  547. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  548. end
  549. local GROWTH = SIZE - ENDSIZE
  550. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  551. if TYPE == "Block" then
  552. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  553. else
  554. EFFECT.CFrame = CFRAME
  555. end
  556. for LOOP = 1, TIME+1 do
  557. Swait()
  558. MSH.Scale = MSH.Scale - GROWTH/TIME
  559. if TYPE == "Wave" then
  560. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  561. end
  562. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  563. if TYPE == "Block" then
  564. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  565. else
  566. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  567. end
  568. if MOVEDIRECTION ~= nil then
  569. local ORI = EFFECT.Orientation
  570. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  571. EFFECT.Orientation = ORI
  572. end
  573. end
  574. if PLAYSSOUND == false then
  575. EFFECT:remove()
  576. else
  577. repeat Swait() until SOUND.Playing == false
  578. EFFECT:remove()
  579. end
  580. else
  581. if PLAYSSOUND == false then
  582. EFFECT:remove()
  583. else
  584. repeat Swait() until SOUND.Playing == false
  585. EFFECT:remove()
  586. end
  587. end
  588. end))
  589. end
  590.  
  591. function MakeForm(PART,TYPE)
  592. if TYPE == "Cyl" then
  593. local MSH = IT("CylinderMesh",PART)
  594. elseif TYPE == "Ball" then
  595. local MSH = IT("SpecialMesh",PART)
  596. MSH.MeshType = "Sphere"
  597. elseif TYPE == "Wedge" then
  598. local MSH = IT("SpecialMesh",PART)
  599. MSH.MeshType = "Wedge"
  600. end
  601. end
  602.  
  603. Debris = game:GetService("Debris")
  604.  
  605. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  606. local DIRECTION = CF(StartPos,EndPos).lookVector
  607. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  608. end
  609.  
  610. function turnto(position)
  611. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  612. end
  613. -------------------------------------
  614. Humanoid.DisplayDistanceType = "None"
  615. local naeeym2 = IT("BillboardGui",Character)
  616. naeeym2.AlwaysOnTop = true
  617. naeeym2.Size = UDim2.new(5,35,2,15)
  618. naeeym2.StudsOffset = Vector3.new(0,2,0)
  619. naeeym2.MaxDistance = 75
  620. naeeym2.Adornee = Character.Head
  621. naeeym2.Name = "Name"
  622. local tecks2 = IT("TextLabel",naeeym2)
  623. tecks2.BackgroundTransparency = 1
  624. tecks2.TextScaled = true
  625. tecks2.BorderSizePixel = 0
  626. tecks2.Text = "The Gentleman."
  627. tecks2.Font = "Code"
  628. tecks2.TextSize = 30
  629. tecks2.TextStrokeTransparency = 0
  630. tecks2.TextColor3 = C3(0,0,0)
  631. tecks2.TextStrokeColor3 = C3(135/135, 135/135, 0/135)
  632. tecks2.Size = UDim2.new(1,0,0.5,0)
  633. tecks2.Parent = naeeym2
  634. local top = Instance.new("Shirt")
  635. top.ShirtTemplate = "rbxassetid://45695443"
  636. top.Parent = Character
  637. top.Name = "Cloth"
  638. local bottom = Instance.new("Pants")
  639. bottom.PantsTemplate = "rbxassetid://45696190"
  640. bottom.Parent = Character
  641. bottom.Name = "Cloth"
  642. Hat=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Medium stone grey","Hat",Vector3.new(2, 2, 2))
  643. HatWeld=CFuncs.Weld.Create(m,Character["Head"],Hat,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0365142822, -0.719758511, 0.0314178467, -1.00000834, 4.61186464e-05, -2.77473146e-06, 4.86522331e-05, 1, 5.23036442e-06, 2.92961045e-06, 5.51708399e-06, -1))
  644. meh=CFuncs.Mesh.Create("SpecialMesh",Hat,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=2711178",Vector3.new(0, 0, 0),Vector3.new(2, 2, 2))
  645. meh.TextureId = "http://www.roblox.com/asset/?id=32935396"
  646. ------------------------
  647. TalkSound = Instance.new("Sound",Character,"Music",{SoundId = "rbxassetid://615716445",Volume = 5,Looped = false})
  648. TalkSound.Pitch = 1.7
  649.  
  650. function Chat(msg) -- Credit to jillmiles1, kthxbye
  651. local Gui = Instance.new('BillboardGui', Head)
  652. Gui.Name = "Satanic Chat Gui"
  653. Gui.ExtentsOffset = Vector3.new(0,3,0)
  654. Gui.Size = UDim2.new(0,200,0,300)
  655. local Frame = Instance.new('Frame',Gui)
  656. Frame.BackgroundTransparency = 1
  657. Frame.Size = UDim2.new(1,0,1,0)
  658. local Txt = Instance.new('TextLabel',Frame)
  659. Txt.BackgroundTransparency = 1
  660. Txt.Size = UDim2.new(1,0,1,0)
  661. Txt.Font = 'Antique'
  662. Txt.Name = "ChatGui"
  663. Txt.FontSize = 'Size24'
  664. Txt.Text = ''
  665. Txt.TextColor3 = BrickColor.new("Really black").Color
  666. Txt.TextStrokeColor3 = Color3.new(.5,0,0)
  667. Txt.TextStrokeTransparency = .5
  668. Txt.TextWrapped = true
  669. Txt.TextScaled = false
  670.  
  671. delay(wait(),function()
  672. for v = 1, #msg do
  673. Txt.Text=string.sub(msg,1,v)
  674. TalkSound:Play()
  675. Gui.ExtentsOffset = Vector3.new(.1,2.9,0)
  676. wait(.009)
  677. Gui.ExtentsOffset = Vector3.new(0,3,-0.1)
  678. wait(.009)
  679. Gui.ExtentsOffset = Vector3.new(0,3,0)
  680. end;
  681.  
  682.  
  683.  
  684. Gui.ExtentsOffset = Vector3.new(.1,2.9,0)
  685. wait(.03)
  686. Gui.ExtentsOffset = Vector3.new(0,3,-0.1)
  687. wait(.03)
  688. Gui.ExtentsOffset = Vector3.new(0,3,0)
  689. wait(.03)
  690. Gui.ExtentsOffset = Vector3.new(.1,2.9,0)
  691. wait(.03)
  692. Gui.ExtentsOffset = Vector3.new(0,3,-0.1)
  693. wait(.03)
  694. Gui.ExtentsOffset = Vector3.new(0,3,0)
  695. wait(.03)
  696. Gui.ExtentsOffset = Vector3.new(.1,2.9,0)
  697. wait(.03)
  698. Gui.ExtentsOffset = Vector3.new(0,3,-0.1)
  699. wait(.03)
  700. Gui.ExtentsOffset = Vector3.new(0,3,0)
  701. wait(.03)
  702. Gui.ExtentsOffset = Vector3.new(.1,2.9,0)
  703. wait(.03)
  704. Gui.ExtentsOffset = Vector3.new(0,3,-0.1)
  705. wait(.03)
  706. Gui.ExtentsOffset = Vector3.new(0,3,0)
  707. wait(.03)
  708. Gui.ExtentsOffset = Vector3.new(.1,2.9,0)
  709. wait(.03)
  710. Gui.ExtentsOffset = Vector3.new(0,3,-0.1)
  711. wait(.03)
  712. Gui.ExtentsOffset = Vector3.new(0,3,0)
  713. wait(.03)
  714. Gui.ExtentsOffset = Vector3.new(.1,2.9,0)
  715. wait(.03)
  716. Gui.ExtentsOffset = Vector3.new(0,3,-0.1)
  717. wait(.03)
  718. Gui.ExtentsOffset = Vector3.new(0,3,0)
  719. wait(.03)
  720.  
  721. Txt.TextStrokeTransparency = .6
  722. wait()
  723. Txt.TextStrokeTransparency = .7
  724. wait()
  725. Txt.TextStrokeTransparency = .8
  726. wait()
  727. Txt.TextStrokeTransparency = .9
  728. wait()
  729. Txt.TextStrokeTransparency = 1
  730. wait()
  731.  
  732. for v = 1, #Txt.Text do
  733. Txt.Text=string.sub(msg,-1,v)
  734.  
  735.  
  736.  
  737.  
  738.  
  739.  
  740.  
  741. end;
  742. Gui:remove()
  743. end)
  744. end
  745. ------------------------
  746. local BODY = {}
  747. for _, c in pairs(Character:GetDescendants()) do
  748. if c:IsA("BasePart") and c.Name ~= "Handle" then
  749. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  750. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  751. end
  752. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
  753. elseif c:IsA("JointInstance") then
  754. table.insert(BODY,{c,c.Parent,nil,nil,nil})
  755. end
  756. end
  757. for e = 1, #BODY do
  758. if BODY[e] ~= nil then
  759. local STUFF = BODY[e]
  760. local PART = STUFF[1]
  761. local PARENT = STUFF[2]
  762. local MATERIAL = STUFF[3]
  763. local COLOR = STUFF[4]
  764. local TRANSPARENCY = STUFF[5]
  765. if PART.ClassName == "Part" and PART ~= RootPart then
  766. PART.Material = MATERIAL
  767. PART.Color = COLOR
  768. PART.Transparency = TRANSPARENCY
  769. end
  770. PART.AncestryChanged:Connect(function()
  771. PART.Parent = PARENT
  772. end)
  773. end
  774. end
  775. function refit()
  776. Character.Parent = workspace
  777. for e = 1, #BODY do
  778. if BODY[e] ~= nil then
  779. local STUFF = BODY[e]
  780. local PART = STUFF[1]
  781. local PARENT = STUFF[2]
  782. local MATERIAL = STUFF[3]
  783. local COLOR = STUFF[4]
  784. local TRANSPARENCY = STUFF[5]
  785. if PART.ClassName == "Part" and PART ~= RootPart then
  786. PART.Material = MATERIAL
  787. PART.Color = COLOR
  788. PART.Transparency = TRANSPARENCY
  789. end
  790. if PART.Parent ~= PARENT then
  791. Humanoid:remove()
  792. PART.Parent = PARENT
  793. Humanoid = IT("Humanoid",Character)
  794. end
  795. end
  796. end
  797. end
  798.  
  799. Humanoid.Died:connect(function()
  800. refit()
  801. end)
  802. ------------------------
  803. function Taunt()
  804. ALLOW = true
  805. wait()
  806. local A = math.random(1,2)
  807. if A == 1 then
  808. LAUGH = CreateSound(151795884, Character, 8099999, 1, false)
  809. Chat("Let's settle this like gentlemen!")
  810. wait(2)
  811. ALLOW = false
  812. end
  813. if A == 2 then
  814. LAUGH = CreateSound(130927686, Character, 8099999, 1, false)
  815. Chat("Gentlemen...")
  816. wait(2)
  817. ALLOW = false
  818. end
  819. end
  820. function Warp()
  821. ALLOW = true
  822. wait()
  823. CreateRing(0,2,true,-0.2,35,RootPart,0,0.3,0.3)
  824. CreateRing(0,2.5,true,-0.2,35,RootPart,0,-0.3,0.3)
  825. CreateRing(0,3,true,-0.2,35,RootPart,0,0.3,-0.3)
  826. CreateRing(0,3.5,true,-0.2,35,RootPart,0,-0.3,-0.3)
  827. local originalcframe = RootPart.CFrame
  828. RootPart.CFrame = CF(VT(Mouse.Hit.p.X,Mouse.Hit.p.Y+(RootPart.Size.Y/2),Mouse.Hit.Z),originalcframe.p)
  829. local penta = CreatePentagram(15,false,0,45,CF(RootPart.Position),-1)
  830. CreateSound("3264923", Head, 2, 2)
  831. ALLOW = false
  832. end
  833. function Attack1()
  834. ALLOW = true
  835. wait()
  836. Rooted = true
  837. Chat("roar")
  838. for i=0, 2, 0.1 / Animation_Speed do
  839. Swait()
  840. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1.2 * Player_Size) * ANGLES(RAD(65), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  841. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  842. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  843. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  844. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed*5)
  845. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed*5)
  846. end
  847. if Head ~= nil then
  848. local roar = CreateSound("577131694", Head, 10, 1)
  849. repeat
  850. for i=0, 1.3, 0.1 / Animation_Speed do
  851. Swait()
  852. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(-15)), 0.15 / Animation_Speed)
  853. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  854. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(70)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  855. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-120)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  856. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(120), RAD(-35)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  857. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(35)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  858. end
  859. killnearest(Head.Position,25,25)
  860. CreateRing(0,6,true,-0.2,35,Head,0,0.3,-0.3)
  861. CreateRing(0,6,true,-0.2,35,Head,0,0.3,0.3)
  862. CreateWave(0,5.5,true,0.05,45,RootPart,-4)
  863. if roar.Playing == true then
  864. for i=0, 1.3, 0.1 / Animation_Speed do
  865. Swait()
  866. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(15)), 0.15 / Animation_Speed)
  867. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  868. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(120)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  869. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-70)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  870. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(-35)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  871. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-120), RAD(35)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  872. end
  873. killnearest(Head.Position,25,25)
  874. CreateRing(0,6,true,-0.2,35,Head,0,-0.3,-0.3)
  875. CreateRing(0,6,true,-0.2,35,Head,0,-0.3,0.3)
  876. CreateWave(0,5.5,true,-0.05,45,RootPart,-4)
  877. end
  878. until roar.Playing == false
  879. end
  880. Rooted = false
  881. ALLOW = false
  882. end
  883. function killnearest(position,range,maxstrength)
  884. for i,v in ipairs(workspace:GetChildren()) do
  885. local body = v:GetChildren()
  886. for part = 1, #body do
  887. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  888. if(body[part].Position - position).Magnitude < range then
  889. if v.ClassName == "Model" then
  890. v:BreakJoints()
  891. end
  892. --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  893. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  894. end
  895. end
  896. end
  897. if v.ClassName == "Part" then
  898. if v.Anchored == false and (v.Position - position).Magnitude < range then
  899. --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  900. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  901. end
  902. end
  903. end
  904. end
  905. function TrailEffect(BRICKCOLOR, MATERIAL, CURRENTCFRAME, OLDCFRAME, MESHTYPE, REFLECTANCE, SIZE, ROTATION, X, Y, Z, delay)
  906. local MAGNITUDECFRAME = (CURRENTCFRAME.p - OLDCFRAME.p).magnitude
  907. if MAGNITUDECFRAME > (1 / 100) then
  908. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT(1, MAGNITUDECFRAME, 1))
  909. EFFECTPART.Anchored = true
  910. EFFECTPART.CFrame = CF((CURRENTCFRAME.p + OLDCFRAME.p) / 2, OLDCFRAME.p) * ANGLES(RAD(90), 0, 0)
  911. local THEMESHTYPE = "BlockMesh"
  912. if MESHTYPE == "Cylinder" then
  913. THEMESHTYPE = "CylinderMesh"
  914. end
  915. local EFFECTMESH = CreateMesh(THEMESHTYPE, EFFECTPART, "", "", "", VT(0 + SIZE * Player_Size, 1, 0 + SIZE * Player_Size), VT(0, 0, 0))
  916. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  917. coroutine.resume(coroutine.create(function(PART, MESH)
  918. for i = 0, 1, delay do
  919. Swait()
  920. PART.CFrame = PART.CFrame * ROTATION
  921. PART.Transparency = i
  922. MESH.Scale = MESH.Scale + VT(X * Player_Size, Y * Player_Size, Z * Player_Size)
  923. end
  924. PART.Parent = nil
  925. end), EFFECTPART, EFFECTMESH)
  926. end
  927. end
  928.  
  929. function ClangEffect(BRICKCOLOR, MATERIAL, CFRAME, ANGLE, DURATION, SIZE, POWER, REFLECTANCE, X, Y, Z, delay)
  930. local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 1, BRICKCOLOR, "Effect", VT())
  931. EFFECTPART.Anchored = true
  932. EFFECTPART.CFrame = CFRAME
  933. local EFFECTMESH = CreateMesh("BlockMesh", EFFECTPART, "", "", "", VT(0, 0, 0), VT(0, 0, 0))
  934. game:GetService("Debris"):AddItem(EFFECTPART, 10)
  935. local THELASTPOINT = CFRAME
  936. coroutine.resume(coroutine.create(function(PART)
  937. for i = 1, DURATION do
  938. Swait()
  939. PART.CFrame = PART.CFrame * ANGLES(RAD(ANGLE), 0, 0) * CF(0, POWER * Player_Size, 0)
  940. TrailEffect(BRICKCOLOR, MATERIAL, PART.CFrame, THELASTPOINT, "Cylinder", REFLECTANCE, SIZE * Player_Size, ANGLES(0, 0, 0), X * Player_Size, Y * Player_Size, Z * Player_Size, delay)
  941. THELASTPOINT = PART.CFrame
  942. end
  943. PART.Parent = nil
  944. end), EFFECTPART)
  945. end
  946.  
  947. function CreateWave(inair,size,doesrotate,rotatedirection,waitt,part,offset)
  948. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, Torso.BrickColor, "Effect", VT(0,0,0))
  949. local mesh = IT("SpecialMesh",wave)
  950. mesh.MeshType = "FileMesh"
  951. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  952. mesh.Scale = VT(size,size,size)
  953. mesh.Offset = VT(0,0,-size/8)
  954. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
  955. coroutine.resume(coroutine.create(function(PART)
  956. for i = 1, waitt do
  957. Swait()
  958. mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
  959. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  960. if doesrotate == true then
  961. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  962. end
  963. wave.Transparency = wave.Transparency + (0.5/waitt)
  964. if wave.Transparency > 0.99 then
  965. wave:remove()
  966. end
  967. end
  968. end))
  969. end
  970.  
  971. function CreateRing(inair,size,doesrotate,rotatedirection,waitt,part,offset,spin1,spin2)
  972. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, Torso.BrickColor, "Effect", VT(0,0,0))
  973. local mesh = IT("SpecialMesh",wave)
  974. mesh.MeshType = "FileMesh"
  975. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  976. mesh.Scale = VT(size,size,size)
  977. mesh.Offset = VT(0,0,0)
  978. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
  979. coroutine.resume(coroutine.create(function(PART)
  980. for i = 1, waitt do
  981. Swait()
  982. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  983. if doesrotate == true then
  984. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(spin2, rotatedirection, spin1)
  985. end
  986. wave.Transparency = wave.Transparency + (0.5/waitt)
  987. if wave.Transparency > 0.99 then
  988. wave:remove()
  989. end
  990. end
  991. end))
  992. end
  993.  
  994. function CreatePentagram(size,doesrotate,rotatedirection,waitt,cframe,offset)
  995. local sinkhole = IT("Part",Effects)
  996. sinkhole.Size = VT(size,0,size)
  997. sinkhole.CFrame = cframe * CF(0,offset,0)
  998. sinkhole.Material = "Neon"
  999. sinkhole.Color = C3(170, 0, 170)
  1000. sinkhole.Anchored = true
  1001. sinkhole.CanCollide = false
  1002. sinkhole.Transparency = 1
  1003. local decal = IT("Decal",sinkhole)
  1004. decal.Face = "Top"
  1005. decal.Texture = "http://www.roblox.com/asset/?id=177470914"
  1006. coroutine.resume(coroutine.create(function(PART)
  1007. for i = 1, waitt do
  1008. Swait()
  1009. if doesrotate == true then
  1010. sinkhole.CFrame = sinkhole.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  1011. end
  1012. if i > waitt-11 then
  1013. decal.Transparency = decal.Transparency + 0.1
  1014. end
  1015. end
  1016. sinkhole:remove()
  1017. end))
  1018. return sinkhole
  1019. end
  1020.  
  1021. --local list={}
  1022. function Triangle(Color, Material, a, b, c, delay)
  1023. local edge1 = (c - a):Dot((b - a).unit)
  1024. local edge2 = (a - b):Dot((c - b).unit)
  1025. local edge3 = (b - c):Dot((a - c).unit)
  1026. if edge1 <= (b - a).magnitude and edge1 >= 0 then
  1027. a, b, c=a, b, c
  1028. elseif edge2 <= (c - b).magnitude and edge2 >= 0 then
  1029. a, b, c=b, c, a
  1030. elseif edge3 <= (a - c).magnitude and edge3 >= 0 then
  1031. a, b, c=c, a, b
  1032. else
  1033. assert(false, "unreachable")
  1034. end
  1035. local len1 = (c - a):Dot((b - a).unit)
  1036. local len2 = (b - a).magnitude - len1
  1037. local width = (a + (b - a).unit * len1 - c).magnitude
  1038. local maincf = CFrameFromTopBack(a, (b - a):Cross(c - b).unit, - (b - a).unit)
  1039. if len1 > 1 / 100 then
  1040. local sz = VT(0.2, width, len1)
  1041. local w1 = CreatePart(3, Effects, Material, 0, 0.5, Color, "Trail", sz)
  1042. local sp = CreateMesh("SpecialMesh", w1, "Wedge", "", "", VT(0, 1, 1) * sz / w1.Size, VT(0, 0, 0))
  1043. w1.Anchored = true
  1044. w1.CFrame = maincf * ANGLES(math.pi, 0, math.pi / 2) * CF(0, width / 2, len1 / 2)
  1045. coroutine.resume(coroutine.create(function()
  1046. for i = 0.5, 1, delay * (2 / Animation_Speed) do
  1047. Swait()
  1048. w1.Transparency = i
  1049. end
  1050. w1.Parent = nil
  1051. end))
  1052. game:GetService("Debris"):AddItem(w1, 10)
  1053. --table.insert(list, w1)
  1054. end
  1055. if len2 > 1 / 100 then
  1056. local sz = VT(0.2, width, len2)
  1057. local w2 = CreatePart(3, Effects, Material, 0, 0.5, Color, "Trail", sz)
  1058. local sp = CreateMesh("SpecialMesh", w2, "Wedge", "", "", VT(0, 1, 1) * sz / w2.Size, VT(0, 0, 0))
  1059. w2.Anchored = true
  1060. w2.CFrame = maincf * ANGLES(math.pi, math.pi, -math.pi / 2) * CF(0, width / 2, -len1 - len2 / 2)
  1061. coroutine.resume(coroutine.create(function()
  1062. for i = 0.5, 1, delay * (2 / Animation_Speed) do
  1063. Swait()
  1064. w2.Transparency = i
  1065. end
  1066. w2.Parent = nil
  1067. end))
  1068. game:GetService("Debris"):AddItem(w2, 10)
  1069. --table.insert(list, w2)
  1070. end
  1071. --return unpack(list)
  1072. end
  1073.  
  1074. --[[Usage:
  1075. local Pos = Part
  1076. local Offset = Part.CFrame * CF(0, 0, 0)
  1077. local Color = "Institutional white"
  1078. local Material = "Neon"
  1079. local TheDelay = 0.01
  1080. local Height = 4
  1081. BLCF = Offset
  1082. if SCFR and (Pos.Position - SCFR.p).magnitude > 0.1 then
  1083. local a, b = Triangle(Color, Material, (SCFR * CF(0, Height / 2,0)).p, (SCFR * CF(0, -Height / 2, 0)).p, (BLCF * CF(0, Height / 2,0)).p, TheDelay)
  1084. if a then game:GetService("Debris"):AddItem(a, 1) end
  1085. if b then game:GetService("Debris"):AddItem(b, 1) end
  1086. local a, b = Triangle(Color, Material, (BLCF * CF(0, Height / 2, 0)).p, (BLCF * CF(0, -Height / 2, 0)).p, (SCFR * CF(0, -Height / 2, 0)).p, TheDelay)
  1087. if a then game:GetService("Debris"):AddItem(a, 1) end
  1088. if b then game:GetService("Debris"):AddItem(b, 1) end
  1089. SCFR = BLCF
  1090. elseif not SCFR then
  1091. SCFR = BLCF
  1092. end
  1093. --
  1094. BLCF = nil
  1095. SCFR = nil
  1096. --]]
  1097. local SKILLTEXTCOLOR = C3(0, 0, 0)
  1098. local SKILLFONT = "SciFi"
  1099. local SKILLTEXTSIZE = 7
  1100. function StatLabel(CFRAME, TEXT, COLOR)
  1101. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  1102. STATPART.CFrame = CF(CFRAME.p, CFRAME.p + VT(MRANDOM(-5, 5), MRANDOM(0, 5), MRANDOM(-5, 5)))
  1103. local BODYGYRO = IT("BodyGyro", STATPART)
  1104. game:GetService("Debris"):AddItem(STATPART, 5)
  1105. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  1106. BILLBOARDGUI.Adornee = STATPART
  1107. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5, 0)
  1108. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  1109. BILLBOARDGUI.AlwaysOnTop = false
  1110. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  1111. TEXTLABEL.BackgroundTransparency = 1
  1112. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  1113. TEXTLABEL.Text = TEXT
  1114. TEXTLABEL.Font = SKILLFONT
  1115. TEXTLABEL.FontSize = "Size42"
  1116. TEXTLABEL.TextColor3 = COLOR
  1117. TEXTLABEL.TextStrokeTransparency = 0
  1118. TEXTLABEL.TextScaled = true
  1119. TEXTLABEL.TextWrapped = true
  1120. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  1121. for i = 1, 50 do
  1122. Swait()
  1123. STATPART.CFrame = STATPART.CFrame * CF(0, 0, -0.2)
  1124. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + 0.02
  1125. TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency
  1126. end
  1127. THEPART.Parent = nil
  1128. end), STATPART, TEXTLABEL)
  1129. end
  1130. function ApplyDamage(Humanoid, Damage, TorsoPart)
  1131. local defence = Instance.new("BoolValue", Humanoid.Parent)
  1132. defence.Name = "HitBy" .. Player.Name
  1133. game:GetService("Debris"):AddItem(defence, 0.001)
  1134. Damage = Damage * DAMAGEMULTIPLIER
  1135. if Humanoid.Health ~= 0 then
  1136. local CritChance = MRANDOM(1, 100)
  1137. if Damage > Humanoid.Health then
  1138. Damage = math.ceil(Humanoid.Health)
  1139. if Damage == 0 then
  1140. Damage = 0.1
  1141. end
  1142. end
  1143. Humanoid.Health = Humanoid.Health - Damage
  1144. StatLabel(TorsoPart.CFrame * CF(0, 0 + (TorsoPart.Size.z - 1), 0), Damage, C3(0, 0, 0))
  1145. end
  1146. end
  1147. function ApplyAoE(POSITION, RANGE, MINDMG, MAXDMG, FLING, INSTAKILL)
  1148. local CHILDREN = workspace:GetDescendants()
  1149. for index, CHILD in pairs(CHILDREN) do
  1150. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1151. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1152. if HUM then
  1153. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1154. if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then
  1155. if INSTAKILL == true then
  1156. CHILD:BreakJoints()
  1157. else
  1158. local DMG = MRANDOM(MINDMG, MAXDMG)
  1159. ApplyDamage(HUM, DMG, TORSO)
  1160. end
  1161. if FLING > 0 then
  1162. for _, c in pairs(CHILD:GetChildren()) do
  1163. if c:IsA("BasePart") then
  1164. local bv = Instance.new("BodyVelocity")
  1165. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  1166. bv.velocity = CF(POSITION, TORSO.Position).lookVector * FLING
  1167. bv.Parent = c
  1168. Debris:AddItem(bv, 0.05)
  1169. end
  1170. end
  1171. end
  1172. end
  1173. end
  1174. end
  1175. end
  1176. end
  1177. function Attack2()
  1178. ALLOW = true
  1179. Rooted = true
  1180. wait()
  1181. local GYRO = IT("BodyGyro", RootPart)
  1182. GYRO.D = 15
  1183. GYRO.P = 2000
  1184. GYRO.MaxTorque = VT(0, 4000000, 0)
  1185. CreateSound("341301115", Head, 5, 1.1)
  1186. CreateSound("93724183", Head, 6, 1)
  1187. Chat("Thats it im finished with you fools!")
  1188. wait(1)
  1189. for i = 1, 200 do
  1190. Swait()
  1191. WACKYEFFECT({
  1192. Time = MRANDOM(5, 15),
  1193. EffectType = "Round Slash",
  1194. Size = VT(0, 0, 0),
  1195. Size2 = VT(0.12, 0, 0.12),
  1196. Transparency = 0.5,
  1197. Transparency2 = 1,
  1198. CFrame = RootPart.CFrame * CF(0, -2.8, 0) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)),
  1199. MoveToPos = nil,
  1200. RotationX = MRANDOM(-50, 50) / 50,
  1201. RotationY = MRANDOM(-50, 50) / 10,
  1202. RotationZ = MRANDOM(-50, 50) / 50,
  1203. Material = "Neon",
  1204. Color = C3(1, 0, 0),
  1205. SoundID = nil,
  1206. SoundPitch = nil,
  1207. SoundVolume = nil
  1208. })
  1209. WACKYEFFECT({
  1210. Time = MRANDOM(5, 15),
  1211. EffectType = "Round Slash",
  1212. Size = VT(0, 0, 0),
  1213. Size2 = VT(0.1, 0, 0.1),
  1214. Transparency = 0.5,
  1215. Transparency2 = 1,
  1216. CFrame = Torso.CFrame * CF(0, -2.5, 1) * ANGLES(RAD(-35), RAD(MRANDOM(0, 360)), RAD(0)),
  1217. MoveToPos = nil,
  1218. RotationX = MRANDOM(-50, 50) / 50,
  1219. RotationY = MRANDOM(-50, 50) / 10,
  1220. RotationZ = MRANDOM(-50, 50) / 50,
  1221. Material = "Neon",
  1222. Color = C3(1, 0, 0),
  1223. SoundID = nil,
  1224. SoundPitch = nil,
  1225. SoundVolume = nil
  1226. })
  1227. WACKYEFFECT({
  1228. Time = MRANDOM(5, 15),
  1229. EffectType = "Round Slash",
  1230. Size = VT(0, 0, 0),
  1231. Size2 = VT(0.16, 0, 0.16),
  1232. Transparency = 0.5,
  1233. Transparency2 = 1,
  1234. CFrame = Torso.CFrame * CF(0, -2.5, 1) * ANGLES(RAD(-45), RAD(MRANDOM(0, 360)), RAD(0)),
  1235. MoveToPos = nil,
  1236. RotationX = MRANDOM(-50, 50) / 50,
  1237. RotationY = MRANDOM(-50, 50) / 10,
  1238. RotationZ = MRANDOM(-50, 50) / 50,
  1239. Material = "Neon",
  1240. Color = C3(1, 0, 0),
  1241. SoundID = nil,
  1242. SoundPitch = nil,
  1243. SoundVolume = nil
  1244. })
  1245. WACKYEFFECT({
  1246. Time = 5,
  1247. EffectType = "Sphere",
  1248. Size = VT(i, i, i) / 150,
  1249. Size2 = VT(0, 0, 0),
  1250. Transparency = 0.5,
  1251. Transparency2 = 1,
  1252. CFrame = Head.CFrame * CF(0, -0.25, -1),
  1253. MoveToPos = nil,
  1254. RotationX = 0,
  1255. RotationY = 0,
  1256. RotationZ = 0,
  1257. Material = "Neon",
  1258. Color = C3(1, 0, 0),
  1259. SoundID = nil,
  1260. SoundPitch = nil,
  1261. SoundVolume = nil
  1262. })
  1263. GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p)
  1264. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0.1, -0.05 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.05 / Animation_Speed)
  1265. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.05 / Animation_Speed)
  1266. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.05 / Animation_Speed)
  1267. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.05 / Animation_Speed)
  1268. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.05 / Animation_Speed)
  1269. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.05 / Animation_Speed)
  1270. end
  1271. GYRO:remove()
  1272. for i = 0, 0.3, 0.1 / Animation_Speed do
  1273. Swait()
  1274. WACKYEFFECT({
  1275. Time = 25,
  1276. EffectType = "Sphere",
  1277. Size = VT(200, 200, 200) / 150,
  1278. Size2 = VT(0, 0, 0),
  1279. Transparency = 0.5,
  1280. Transparency2 = 1,
  1281. CFrame = Head.CFrame * CF(0, -0.25, -1),
  1282. MoveToPos = nil,
  1283. RotationX = 0,
  1284. RotationY = 0,
  1285. RotationZ = 0,
  1286. Material = "Neon",
  1287. Color = C3(1, 0, 0),
  1288. SoundID = nil,
  1289. SoundPitch = nil,
  1290. SoundVolume = nil
  1291. })
  1292. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, -0.1, -0.05 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1293. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1294. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1295. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1296. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(15), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1297. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(15), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1298. end
  1299. coroutine.resume(coroutine.create(function()
  1300. local FIREBALL = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "DOOM", VT(1, 1, 1))
  1301. MakeForm(FIREBALL, "Ball")
  1302. local SOUND = CreateSound(463593339, FIREBALL, 8, 1, false)
  1303. FIREBALL.CFrame = CF(Head.Position, Mouse.Hit.p) * CF(0, 0, -2)
  1304. for i = 1, 500 do
  1305. Swait()
  1306. FIREBALL.CFrame = FIREBALL.CFrame * CF(0, 0, -2)
  1307. local HITFLOOR, HITPOS = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 2.2, Character)
  1308. if HITFLOOR ~= nil then
  1309. break
  1310. end
  1311. end
  1312. CreateSound(325132788, Effects, 8, 1, false)
  1313. for i = 1, 120 do
  1314. Swait()
  1315. WACKYEFFECT({
  1316. Time = 85,
  1317. EffectType = "Sphere",
  1318. Size = FIREBALL.Size,
  1319. Size2 = VT(0, 1000, 0),
  1320. Transparency = 0.5,
  1321. Transparency2 = 1,
  1322. CFrame = FIREBALL.CFrame * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))),
  1323. MoveToPos = nil,
  1324. RotationX = MRANDOM(-50, 50) / 10,
  1325. RotationY = MRANDOM(-50, 50) / 10,
  1326. RotationZ = MRANDOM(-50, 50) / 10,
  1327. Material = "Neon",
  1328. Color = C3(1, 0, 0),
  1329. SoundID = nil,
  1330. SoundPitch = nil,
  1331. SoundVolume = nil
  1332. })
  1333. FIREBALL.Size = FIREBALL.Size - VT(1, 1, 1) / 120
  1334. end
  1335. Swait(5)
  1336. ApplyAoE(FIREBALL.Position, 435, 65, 65, 600, false)
  1337. for i = 1, 10 do
  1338. WACKYEFFECT({
  1339. Time = 85 + 5 * i,
  1340. EffectType = "Slash",
  1341. Size = VT(3, 0, 3),
  1342. Size2 = VT(12, 0, 12),
  1343. Transparency = 0.5,
  1344. Transparency2 = 1,
  1345. CFrame = FIREBALL.CFrame * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))),
  1346. MoveToPos = nil,
  1347. RotationX = MRANDOM(-50, 50) / 50,
  1348. RotationY = MRANDOM(-50, 50) / 10,
  1349. RotationZ = MRANDOM(-50, 50) / 50,
  1350. Material = "Neon",
  1351. Color = C3(1, 1, 1),
  1352. SoundID = nil,
  1353. SoundPitch = nil,
  1354. SoundVolume = nil
  1355. })
  1356. WACKYEFFECT({
  1357. Time = 185 + 5 * i,
  1358. EffectType = "Swirl",
  1359. Size = VT(15, 15, 15),
  1360. Size2 = VT(700, 700, 700) + VT(15, 15, 15) * i,
  1361. Transparency = 0.5,
  1362. Transparency2 = 1,
  1363. CFrame = FIREBALL.CFrame * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)),
  1364. MoveToPos = nil,
  1365. RotationX = MRANDOM(-50, 50) / 50,
  1366. RotationY = MRANDOM(-50, 50) / 10,
  1367. RotationZ = MRANDOM(-50, 50) / 50,
  1368. Material = "Neon",
  1369. Color = C3(1, 0.5, 0.5),
  1370. SoundID = nil,
  1371. SoundPitch = nil,
  1372. SoundVolume = nil
  1373. })
  1374. WACKYEFFECT({
  1375. Time = 285 + 5 * i,
  1376. EffectType = "Round Slash",
  1377. Size = VT(3, 0, 3),
  1378. Size2 = VT(12, 0, 12),
  1379. Transparency = 0.5,
  1380. Transparency2 = 1,
  1381. CFrame = FIREBALL.CFrame * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))),
  1382. MoveToPos = nil,
  1383. RotationX = MRANDOM(-50, 50) / 50,
  1384. RotationY = MRANDOM(-50, 50) / 10,
  1385. RotationZ = MRANDOM(-50, 50) / 50,
  1386. Material = "Neon",
  1387. Color = C3(1, 0, 0),
  1388. SoundID = nil,
  1389. SoundPitch = nil,
  1390. SoundVolume = nil
  1391. })
  1392. WACKYEFFECT({
  1393. Time = 285 + 5 * i,
  1394. EffectType = "Sphere",
  1395. Size = VT(650, 650, 650),
  1396. Size2 = VT(750, 750, 750) + VT(15, 15, 15) * i,
  1397. Transparency = 0.5,
  1398. Transparency2 = 1,
  1399. CFrame = FIREBALL.CFrame,
  1400. MoveToPos = nil,
  1401. RotationX = 0,
  1402. RotationY = 0,
  1403. RotationZ = 0,
  1404. Material = "Neon",
  1405. Color = C3(1, 0, 0),
  1406. SoundID = nil,
  1407. SoundPitch = 0,
  1408. SoundVolume = 0
  1409. })
  1410. end
  1411. wait(1)
  1412. WACKYEFFECT({
  1413. Time = 75,
  1414. EffectType = "Sphere",
  1415. Size = VT(350, 350, 350),
  1416. Size2 = VT(4500, 4500, 4500),
  1417. Transparency = 0.8,
  1418. Transparency2 = 1,
  1419. CFrame = FIREBALL.CFrame,
  1420. MoveToPos = nil,
  1421. RotationX = 0,
  1422. RotationY = 0,
  1423. RotationZ = 0,
  1424. Material = "Neon",
  1425. Color = C3(1, 1, 1),
  1426. SoundID = nil,
  1427. SoundPitch = 0,
  1428. SoundVolume = 0
  1429. })
  1430. for i = 1, 15 do
  1431. Swait()
  1432. ApplyAoE(FIREBALL.Position, 435 + 85 * i, 3, 3, 100, false)
  1433. WACKYEFFECT({
  1434. Time = 85,
  1435. EffectType = "Sphere",
  1436. Size = VT(75, 75, 75),
  1437. Size2 = VT(0, 2500, 0),
  1438. Transparency = 0.5,
  1439. Transparency2 = 1,
  1440. CFrame = FIREBALL.CFrame * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))),
  1441. MoveToPos = nil,
  1442. RotationX = MRANDOM(-50, 50) / 10,
  1443. RotationY = MRANDOM(-50, 50) / 10,
  1444. RotationZ = MRANDOM(-50, 50) / 10,
  1445. Material = "Neon",
  1446. Color = C3(1, 0, 0),
  1447. SoundID = nil,
  1448. SoundPitch = nil,
  1449. SoundVolume = nil
  1450. })
  1451. end
  1452. FIREBALL:remove()
  1453. end))
  1454. WACKYEFFECT({
  1455. Time = 25,
  1456. EffectType = "Ring",
  1457. Size = VT(0, 0, 0),
  1458. Size2 = VT(3.75, 3.75, 0),
  1459. Transparency = 0.7,
  1460. Transparency2 = 1,
  1461. CFrame = Head.CFrame * CF(0, -0.25, -0.75),
  1462. MoveToPos = nil,
  1463. RotationX = 0,
  1464. RotationY = 0,
  1465. RotationZ = 0,
  1466. Material = "Neon",
  1467. Color = C3(1, 0, 0),
  1468. SoundID = nil,
  1469. SoundPitch = nil,
  1470. SoundVolume = nil
  1471. })
  1472. WACKYEFFECT({
  1473. Time = 50,
  1474. EffectType = "Ring",
  1475. Size = VT(0, 0, 0),
  1476. Size2 = VT(15, 15, 0),
  1477. Transparency = 0.7,
  1478. Transparency2 = 1,
  1479. CFrame = Head.CFrame * CF(0, -0.25, -0.75),
  1480. MoveToPos = nil,
  1481. RotationX = 0,
  1482. RotationY = 0,
  1483. RotationZ = 0,
  1484. Material = "Neon",
  1485. Color = C3(1, 0, 0),
  1486. SoundID = nil,
  1487. SoundPitch = nil,
  1488. SoundVolume = nil
  1489. })
  1490. for i = 0, 0.3, 0.1 / Animation_Speed do
  1491. Swait()
  1492. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, -0.1, -0.05 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1493. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1494. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1495. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1496. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(15), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1497. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(15), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1498. end
  1499. ALLOW = false
  1500. Rooted = false
  1501. end
  1502.  
  1503. local HATWELD = nil
  1504. function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors)
  1505. PLAYMAINANIM = false
  1506. if WhichPose == "Cast1" then
  1507. for i=0, Time, 0.1 / Animation_Speed do
  1508. Swait()
  1509. if Magic == true then
  1510. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1511. end
  1512. if Gyro ~= nil and Gyro ~= false then
  1513. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1514. end
  1515. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(35)), Speed / Animation_Speed)
  1516. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-35)), Speed / Animation_Speed)
  1517. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(125), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  1518. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  1519. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1520. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  1521. end
  1522. elseif WhichPose == "Cast2" then
  1523. for i=0, Time, 0.1 / Animation_Speed do
  1524. Swait()
  1525. if Magic == true then
  1526. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1527. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1528. end
  1529. if Gyro ~= nil and Gyro ~= false then
  1530. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1531. end
  1532. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  1533. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  1534. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(15)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  1535. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  1536. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1537. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  1538. end
  1539. elseif WhichPose == "RightArmUp" then
  1540. for i=0, Time, 0.1 / Animation_Speed do
  1541. Swait()
  1542. if Magic == true then
  1543. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1544. end
  1545. if Gyro ~= nil and Gyro ~= false then
  1546. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1547. end
  1548. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(15)), Speed / Animation_Speed)
  1549. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1550. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(125), RAD(0), RAD(25)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  1551. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  1552. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1553. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  1554. end
  1555. elseif WhichPose == "Taunt" then
  1556. for i=0, Time, 0.1 / Animation_Speed do
  1557. Swait()
  1558. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  1559. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  1560. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  1561. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  1562. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1563. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  1564. end
  1565. HATWELD.Part0 = RightArm
  1566. HATWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0))
  1567. CreateSound(221057812,Torso,10,1,false)
  1568. for i=0, Time*2, 0.1 / Animation_Speed do
  1569. Swait()
  1570. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  1571. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  1572. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(145), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  1573. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(5), RAD(25), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  1574. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1575. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  1576. end
  1577. for i=0, Time, 0.1 / Animation_Speed do
  1578. Swait()
  1579. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  1580. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed)
  1581. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  1582. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  1583. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1584. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  1585. HATWELD.C0 = Clerp(HATWELD.C0, CF(-0.5,-1.2,-0.3) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(35), RAD(0), RAD(35)), Speed / Animation_Speed)
  1586. end
  1587. HATWELD.Part0 = Head
  1588. HATWELD.C0 = CF(0,0.35,0)
  1589. elseif WhichPose == "Prepare key" then
  1590. for i=0, Time, 0.1 / Animation_Speed do
  1591. Swait()
  1592. if Gyro ~= nil and Gyro ~= false then
  1593. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  1594. end
  1595. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(65)), Speed / Animation_Speed)
  1596. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-65)), Speed / Animation_Speed)
  1597. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  1598. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  1599. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1600. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  1601. end
  1602. elseif WhichPose == "Turn key" then
  1603. for i=0, Time, 0.1 / Animation_Speed do
  1604. Swait()
  1605. if Gyro ~= nil and Gyro ~= false then
  1606. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  1607. end
  1608. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(75)), Speed / Animation_Speed)
  1609. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-75)), Speed / Animation_Speed)
  1610. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(75)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  1611. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  1612. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1613. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  1614. end
  1615. end
  1616. PLAYMAINANIM = true
  1617. end
  1618. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  1619. local Direction = CFrame.new(StartPos, Vec).lookVector
  1620. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  1621. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  1622. if RayHit and CheckIntangible(RayHit) then
  1623. if DelayIfHit then
  1624. wait()
  1625. end
  1626. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  1627. end
  1628. return RayHit, RayPos, RayNormal
  1629. end
  1630.  
  1631. function FireArc(Part,ToLocation,AmountOfTime,Height,DoesCourontine)
  1632. if DoesCourontine == false then
  1633. local Direction = CF(Part.Position,ToLocation)
  1634. local Distance = (Part.Position - ToLocation).magnitude
  1635. for i = 1, AmountOfTime do
  1636. Swait()
  1637. Part.CFrame = Direction*CF(0,(AmountOfTime/200)+((AmountOfTime/Height)-((i*2)/Height)),-Distance/AmountOfTime)
  1638. Direction = Part.CFrame
  1639. end
  1640. Part:remove()
  1641. elseif DoesCourontine == true then
  1642. coroutine.resume(coroutine.create(function()
  1643. local Direction = CF(Part.Position,ToLocation)
  1644. local Distance = (Part.Position - ToLocation).magnitude
  1645. for i = 1, AmountOfTime do
  1646. Swait()
  1647. Part.CFrame = Direction*CF(0,(AmountOfTime/200)+((AmountOfTime/Height)-((i*2)/Height)),-Distance/AmountOfTime)
  1648. Direction = Part.CFrame
  1649. end
  1650. Part:remove()
  1651. end))
  1652. end
  1653. end
  1654.  
  1655. function turnto(position)
  1656. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  1657. end
  1658. function CFrameFromTopBack(at, top, back)
  1659. local right = top:Cross(back)
  1660. 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)
  1661. end
  1662.  
  1663. function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  1664. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  1665. wave.Color = COLOR
  1666. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  1667. wave.CFrame = CFRAME
  1668. coroutine.resume(coroutine.create(function(PART)
  1669. for i = 1, WAIT do
  1670. Swait()
  1671. mesh.Scale = mesh.Scale + GROW
  1672. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  1673. if DOESROT == true then
  1674. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  1675. end
  1676. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1677. if wave.Transparency > 0.99 then
  1678. wave:remove()
  1679. end
  1680. end
  1681. end))
  1682. end
  1683.  
  1684. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  1685. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  1686. wave.Color = COLOR
  1687. local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0,0,0))
  1688. wave.CFrame = CFRAME
  1689. coroutine.resume(coroutine.create(function(PART)
  1690. for i = 1, WAIT do
  1691. Swait()
  1692. mesh.Scale = mesh.Scale + GROW
  1693. wave.Transparency = wave.Transparency + (1/WAIT)
  1694. if wave.Transparency > 0.99 then
  1695. wave:remove()
  1696. end
  1697. end
  1698. end))
  1699. end
  1700. function Attack3()
  1701. wait()
  1702. if Mouse.Target ~= nil then
  1703. wait()
  1704. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1705. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  1706. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  1707. local GYRO = IT("BodyGyro",RootPart)
  1708. GYRO.D = 750
  1709. GYRO.P = 20000
  1710. GYRO.MaxTorque = VT(0,40000000,0)
  1711. local grav = Instance.new("BodyPosition",TORSO)
  1712. grav.D = 15
  1713. grav.P = 20000
  1714. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1715. grav.position = TORSO.Position
  1716. local GYRO2 = IT("BodyGyro",TORSO)
  1717. GYRO2.D = 750
  1718. GYRO2.P = 20000
  1719. GYRO2.MaxTorque = VT(0,40000000,0)
  1720. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  1721. grav.Name = "Jail"
  1722. local LOCKPARTS = {}
  1723. ATTACK = true
  1724. ALLOW = true
  1725. Rooted = false
  1726. local LOCK = IT("Model",Effects)
  1727. LOCK.Name = "Lock"
  1728. local LOCK2 = IT("Model",LOCK)
  1729. LOCK2.Name = "Metal"
  1730. --CREATE LOCK--
  1731. local BASE = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 2.5, 1))
  1732. LOCK.PrimaryPart = BASE
  1733. BASE.CFrame = CF(TORSO.Position,RootPart.Position)*CF(0,0,-4)
  1734. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 1, 3))
  1735. PRT.CFrame = BASE.CFrame*CF(0,-1.25,0)*ANGLES(RAD(90),RAD(0),RAD(0))
  1736. MakeForm(PRT,"Cyl")
  1737. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(1, 1, 1))
  1738. PRT.Color = C3(0,0,0)
  1739. PRT.CFrame = BASE.CFrame*CF(0,0.3,-0.01)*ANGLES(RAD(90),RAD(0),RAD(0))
  1740. MakeForm(PRT,"Cyl")
  1741. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(0.5, 1, 1))
  1742. PRT.Color = C3(0,0,0)
  1743. PRT.CFrame = BASE.CFrame*CF(0,-0.2,-0.01)
  1744. for i = 1, 45 do
  1745. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
  1746. PRT.CFrame = BASE.CFrame*CF(0,2,0)*ANGLES(RAD(0),RAD(0),RAD(-90+(360/90*i)))*CF(0,1,0)
  1747. end
  1748. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
  1749. PRT.CFrame = BASE.CFrame*CF(0,1.5,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0)
  1750. LOCK2.PrimaryPart = PRT
  1751. ---------------
  1752. local CHILDREN = LOCK:GetDescendants()
  1753. for index, CHILD in pairs(CHILDREN) do
  1754. if CHILD:IsA("BasePart") then
  1755. CHILD.Transparency = 1
  1756. end
  1757. end
  1758. for i = 1, 75 do
  1759. LOCK:SetPrimaryPartCFrame(CF(TORSO.Position,RootPart.Position)*CF(0,0,-4))
  1760. Swait()
  1761. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  1762. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  1763. local CHILDREN = LOCK:GetDescendants()
  1764. for index, CHILD in pairs(CHILDREN) do
  1765. if CHILD:IsA("BasePart") then
  1766. CHILD.Transparency = CHILD.Transparency - 1/75
  1767. end
  1768. end
  1769. end
  1770. HUM.DisplayDistanceType = "None"
  1771. local KEY = IT("Model",Effects)
  1772. KEY.Name = "Key"
  1773. --CREATE KEY--
  1774. local KBASE = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "KeyBase", VT(0.1, 1, 0.1),false)
  1775. KEY.PrimaryPart = KBASE
  1776. KBASE.CFrame = RightArm.CFrame*CF(0,-2.1,0)*ANGLES(RAD(0),RAD(90),RAD(0))
  1777. local WLD = weldBetween(RightArm,KBASE)
  1778. for i = 1, 45 do
  1779. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "Key", VT(0.1, 0.1, 0.1),false)
  1780. PRT.CFrame = KBASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD((360/45*i)))*CF(0,0.25,0)
  1781. weldBetween(KBASE,PRT)
  1782. end
  1783. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "Key", VT(0.3, 0.1, 0.1),false)
  1784. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.45,0)
  1785. weldBetween(KBASE,PRT)
  1786. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "Key", VT(0.3, 0.1, 0.1),false)
  1787. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.25,0)
  1788. weldBetween(KBASE,PRT)
  1789. --------------
  1790. Rooted = true
  1791. Pose("Prepare key",1.5,1.2,false,GYRO,TORSO)
  1792. coroutine.resume(coroutine.create(function()
  1793. for i = 1, 10 do
  1794. Swait()
  1795. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  1796. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  1797. end
  1798. CreateSound(1149318312,BASE,5,1,false)
  1799. CreateSound(160772554,BASE,3,1,false)
  1800. LOCK2:SetPrimaryPartCFrame(BASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0))
  1801. for i = 1, 4 do
  1802. WACKYEFFECT({Time = 35, EffectType = "Crystal", Size = VT(1,1,1), Size2 = VT(0,15,0), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(1,1.45,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1803. end
  1804. WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(1,1,1)*25, Transparency = 0, Transparency2 = 1, CFrame = TORSO.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5})
  1805. wait(1)
  1806. TORSO.Parent.Parent = LOCK
  1807. for i = 1, 75 do
  1808. Swait()
  1809. local CHILDREN = KEY:GetDescendants()
  1810. for index, CHILD in pairs(CHILDREN) do
  1811. if CHILD:IsA("BasePart") then
  1812. CHILD.Transparency = i/25
  1813. end
  1814. end
  1815. local CHILDREN = LOCK:GetDescendants()
  1816. for index, CHILD in pairs(CHILDREN) do
  1817. if CHILD:IsA("BasePart") and CHILD.Name ~= "HumanoidRootPart" then
  1818. CHILD.Transparency = CHILD.Transparency + 1/75
  1819. elseif CHILD.ClassName == "Decal" then
  1820. CHILD.Transparency = CHILD.Transparency + 1/75
  1821. end
  1822. end
  1823. end
  1824. TORSO.Parent:ClearAllChildren()
  1825. KEY:remove()
  1826. LOCK:remove()
  1827. end))
  1828. Pose("Turn key",0.8,1.2,false,GYRO,TORSO)
  1829. GYRO:remove()
  1830. ATTACK = false
  1831. ALLOW = false
  1832. Rooted = false
  1833. end
  1834. end
  1835. end
  1836. ------------------------
  1837. function MouseDown(Mouse)
  1838. HOLD = true
  1839. if ATTACK == false then
  1840. end
  1841. end
  1842.  
  1843. function MouseUp(Mouse)
  1844. HOLD = false
  1845. end
  1846.  
  1847. function KeyDown(Key)
  1848. KEYHOLD = true
  1849. if Key == "z" and ALLOW == false then
  1850. Attack1()
  1851. end
  1852.  
  1853. if Key == "x" and ALLOW == false then
  1854. Attack3()
  1855. end
  1856.  
  1857. if Key == "c" and ALLOW == false then
  1858. Attack2()
  1859. end
  1860.  
  1861. if Key == "v" and ALLOW == false then
  1862.  
  1863. end
  1864.  
  1865. if Key == "x" and ALLOW == false then
  1866.  
  1867. end
  1868.  
  1869. if Key == "q" and ALLOW == false then
  1870. Warp()
  1871. end
  1872.  
  1873. if Key == "t" and ALLOW == false then
  1874. Taunt()
  1875. end
  1876. end
  1877.  
  1878. function KeyUp(Key)
  1879. KEYHOLD = false
  1880. end
  1881.  
  1882. Mouse.Button1Down:connect(function(NEWKEY)
  1883. MouseDown(NEWKEY)
  1884. end)
  1885. Mouse.Button1Up:connect(function(NEWKEY)
  1886. MouseUp(NEWKEY)
  1887. end)
  1888. Mouse.KeyDown:connect(function(NEWKEY)
  1889. KeyDown(NEWKEY)
  1890. end)
  1891. Mouse.KeyUp:connect(function(NEWKEY)
  1892. KeyUp(NEWKEY)
  1893. end)
  1894.  
  1895. --//=================================\\
  1896. --\\=================================//
  1897.  
  1898.  
  1899. function unanchor()
  1900. if UNANCHOR == true then
  1901. g = Character:GetChildren()
  1902. for i = 1, #g do
  1903. if g[i].ClassName == "Part" then
  1904. g[i].Anchored = false
  1905. end
  1906. end
  1907. end
  1908. end
  1909. --//=================================\\
  1910. --|| WRAP THE WHOLE SCRIPT UP
  1911. --\\=================================//
  1912.  
  1913. Humanoid.Changed:connect(function(Jump)
  1914. if Jump == "Jump" and (Disable_Jump == true) then
  1915. Humanoid.Jump = false
  1916. end
  1917. end)
  1918.  
  1919. Humanoid.HipHeight = 2
  1920. local FF = IT("ForceField",Character)
  1921. FF.Visible = false
  1922. Speed = 35
  1923.  
  1924. local FOUNDFORGOTTEN = false
  1925.  
  1926. while true do
  1927. Swait()
  1928. refit()
  1929. Humanoid.HipHeight = 2
  1930. ANIMATE.Parent = nil
  1931. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1932. IDLEANIMATION:Play()
  1933. SINE = SINE + CHANGE
  1934. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1935. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1936. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1937. local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 7 * Player_Size, Character)
  1938. if ATTACK == false then
  1939. if TORSOVELOCITY < 1 then
  1940. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1941. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1942. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1943. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1944. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1945. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1946. elseif TORSOVELOCITY > 1 then
  1947. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1948. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1949. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(15 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1950. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1951. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1952. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1953. end
  1954. end
  1955. unanchor()
  1956. Humanoid.MaxHealth = "inf"
  1957. Humanoid.Health = "inf"
  1958. if Rooted == false then
  1959. Disable_Jump = false
  1960. Humanoid.WalkSpeed = Speed
  1961. elseif Rooted == true then
  1962. Disable_Jump = true
  1963. Humanoid.WalkSpeed = 0
  1964. end
  1965. FF.Parent = Character
  1966. sick.Parent = Character
  1967. refit()
  1968. script.Parent = WEAPONGUI
  1969. Character.Parent = workspace
  1970. Humanoid.PlatformStand = false
  1971. Humanoid.Name = "TheBattlements"
  1972. for _, c in pairs(game.Players:GetChildren()) do
  1973. if c.Character ~= nil then
  1974. if c.Character.Parent ~= workspace and c.Character.Parent ~= nil then
  1975. c.Character:BreakJoints()
  1976. end
  1977. end
  1978. end
  1979. FOUNDFORGOTTEN = false
  1980. Humanoid.DisplayDistanceType = "None"
  1981. for _, c in pairs(workspace:GetChildren()) do
  1982. if c.ClassName == "Model" then
  1983. for _, q in pairs(c:GetChildren()) do
  1984. if q.Name == ("Forgotten Dominus") then
  1985. FOUNDFORGOTTEN = true
  1986. end
  1987. end
  1988. end
  1989. end
  1990. if FOUNDFORGOTTEN == true then
  1991. sick:Stop()
  1992. else
  1993. sick.Playing = true
  1994. end
  1995. if VALUE1 == false then
  1996.  
  1997. end
  1998. end
  1999.  
  2000. --//=================================\\
  2001. --\\=================================//
  2002.  
  2003.  
  2004.  
  2005.  
  2006.  
  2007. --//====================================================\\--
  2008. --|| END OF SCRIPT
  2009. --\\====================================================//--
  2010. wait()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement