Advertisement
lafur

Untitled

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