Advertisement
Hoshi_star

demon

Jun 8th, 2018
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.44 KB | None | 0 0
  1. Player = game.Players.LocalPlayer
  2. Character = Player.Character
  3. local txt = Instance.new("BillboardGui", Character)
  4. txt.Adornee = Character.Head
  5. txt.Name = "_status"
  6. txt.Size = UDim2.new(2, 0, 1.2, 0)
  7. txt.StudsOffset = Vector3.new(-9, 8, 0)
  8. local text = Instance.new("TextLabel", txt)
  9. text.Size = UDim2.new(10, 0, 7, 0)
  10. text.FontSize = "Size24"
  11. text.TextScaled = true
  12. text.TextTransparency = 0
  13. text.BackgroundTransparency = 1
  14. text.TextTransparency = 0
  15. text.TextStrokeTransparency = 0
  16. text.Font = "Arcade"
  17. text.TextStrokeColor3 = Color3.new(0,0,0)
  18. text.Text = "The Glitchy Demon"
  19.  
  20. --//===================================================================\\--
  21. --|| CREATED BY SHACKLUSTER | EDITED BY ALEKIKOLE ||--
  22. --\\===================================================================//--
  23.  
  24.  
  25.  
  26. wait(0.2)
  27.  
  28.  
  29.  
  30. Player = game:GetService("Players").LocalPlayer
  31. PlayerGui = Player.PlayerGui
  32. Cam = workspace.CurrentCamera
  33. Backpack = Player.Backpack
  34. Character = Player.Character
  35. Humanoid = Character.Humanoid
  36. Mouse = Player:GetMouse()
  37. RootPart = Character["HumanoidRootPart"]
  38. Torso = Character["Torso"]
  39. Head = Character["Head"]
  40. RightArm = Character["Right Arm"]
  41. LeftArm = Character["Left Arm"]
  42. RightLeg = Character["Right Leg"]
  43. LeftLeg = Character["Left Leg"]
  44. RootJoint = RootPart["RootJoint"]
  45. Neck = Torso["Neck"]
  46. RightShoulder = Torso["Right Shoulder"]
  47. LeftShoulder = Torso["Left Shoulder"]
  48. RightHip = Torso["Right Hip"]
  49. LeftHip = Torso["Left Hip"]
  50. local sick = Instance.new("Sound",Character)
  51. sick.SoundId = "rbxassetid://151224226"
  52. sick.Looped = true
  53. sick.Pitch = 0.5
  54. sick.Volume = 7.5
  55. sick:Play()
  56.  
  57. IT = Instance.new
  58. CF = CFrame.new
  59. VT = Vector3.new
  60. RAD = math.rad
  61. C3 = Color3.new
  62. UD2 = UDim2.new
  63. BRICKC = BrickColor.new
  64. ANGLES = CFrame.Angles
  65. EULER = CFrame.fromEulerAnglesXYZ
  66. COS = math.cos
  67. ACOS = math.acos
  68. SIN = math.sin
  69. ASIN = math.asin
  70. ABS = math.abs
  71. MRANDOM = math.random
  72. FLOOR = math.floor
  73.  
  74. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  75. local NEWMESH = IT(MESH)
  76. if MESH == "SpecialMesh" then
  77. NEWMESH.MeshType = MESHTYPE
  78. if MESHID ~= "nil" and MESHID ~= "" then
  79. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  80. end
  81. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  82. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  83. end
  84. end
  85. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  86. NEWMESH.Scale = SCALE
  87. NEWMESH.Parent = PARENT
  88. return NEWMESH
  89. end
  90.  
  91. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  92. local NEWPART = IT("Part")
  93. NEWPART.formFactor = FORMFACTOR
  94. NEWPART.Reflectance = REFLECTANCE
  95. NEWPART.Transparency = TRANSPARENCY
  96. NEWPART.CanCollide = false
  97. NEWPART.Locked = true
  98. NEWPART.Anchored = true
  99. if ANCHOR == false then
  100. NEWPART.Anchored = false
  101. end
  102. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  103. NEWPART.Name = NAME
  104. NEWPART.Size = SIZE
  105. NEWPART.Position = Torso.Position
  106. NEWPART.Material = MATERIAL
  107. NEWPART:BreakJoints()
  108. NEWPART.Parent = PARENT
  109. return NEWPART
  110. end
  111.  
  112. --//=================================\\
  113. --|| CUSTOMIZATION
  114. --\\=================================//
  115.  
  116. Class_Name = "Template"
  117. Weapon_Name = "Add-ons"
  118.  
  119. Player_Size = 1 --Size of the player.
  120. Animation_Speed = 3
  121. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  122.  
  123. local Speed = 16
  124. local Effects2 = {}
  125.  
  126. --//=================================\\
  127. --|| END OF CUSTOMIZATION
  128. --\\=================================//
  129.  
  130. local function weldBetween(a, b)
  131. local weldd = Instance.new("ManualWeld")
  132. weldd.Part0 = a
  133. weldd.Part1 = b
  134. weldd.C0 = CFrame.new()
  135. weldd.C1 = b.CFrame:inverse() * a.CFrame
  136. weldd.Parent = a
  137. return weldd
  138. end
  139.  
  140. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  141. local acs = Instance.new("Part")
  142. acs.CanCollide = false
  143. acs.Anchored = false
  144. acs.Size = Vector3.new(0,0,0)
  145. acs.CFrame = attachmentpart.CFrame
  146. acs.Parent = Character
  147. acs.BrickColor = color
  148. local meshs = Instance.new("SpecialMesh")
  149. meshs.MeshId = mesh
  150. meshs.TextureId = texture
  151. meshs.Parent = acs
  152. meshs.Scale = scale
  153. meshs.Offset = offset
  154. weldBetween(attachmentpart,acs)
  155. end
  156.  
  157. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  158. if TYPE == "Gem" then
  159. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  160. acs.Anchored = false
  161. acs.CanCollide = false
  162. acs.CFrame = PART.CFrame
  163. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  164. weldBetween(PART,acs)
  165. elseif TYPE == "Skull" then
  166. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  167. acs.Anchored = false
  168. acs.CanCollide = false
  169. acs.CFrame = PART.CFrame
  170. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  171. weldBetween(PART,acs)
  172. elseif TYPE == "Eye" then
  173. local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  174. acs.Anchored = false
  175. acs.CanCollide = false
  176. acs.CFrame = PART.CFrame
  177. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  178. weldBetween(PART,acs)
  179. end
  180. end
  181.  
  182. --//=================================\\
  183. --|| USEFUL VALUES
  184. --\\=================================//
  185.  
  186. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  187. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  188. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  189. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  190. local CHANGEDEFENSE = 0
  191. local CHANGEDAMAGE = 0
  192. local CHANGEMOVEMENT = 0
  193. local ANIM = "Idle"
  194. local ATTACK = false
  195. local EQUIPPED = false
  196. local HOLD = false
  197. local COMBO = 1
  198. local Rooted = false
  199. local SINE = 0
  200. local KEYHOLD = false
  201. local CHANGE = 2 / Animation_Speed
  202. local WALKINGANIM = false
  203. local WALK = 0
  204. local VALUE1 = false
  205. local VALUE2 = false
  206. local ROBLOXIDLEANIMATION = IT("Animation")
  207. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  208. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  209. --ROBLOXIDLEANIMATION.Parent = Humanoid
  210. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  211. WEAPONGUI.Name = "Weapon GUI"
  212. local Weapon = IT("Model")
  213. Weapon.Name = Weapon_Name
  214. local Effects = IT("Folder", Weapon)
  215. Effects.Name = "Effects"
  216. local ANIMATOR = Humanoid.Animator
  217. local ANIMATE = Character.Animate
  218. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  219. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  220. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  221. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  222. local UNANCHOR = true
  223.  
  224. local SKILLTEXTCOLOR = BRICKC"Black".Color
  225.  
  226. --//=================================\\
  227. --\\=================================//
  228.  
  229.  
  230. --//=================================\\
  231. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  232. --\\=================================//
  233.  
  234. ArtificialHB = Instance.new("BindableEvent", script)
  235. ArtificialHB.Name = "ArtificialHB"
  236.  
  237. script:WaitForChild("ArtificialHB")
  238.  
  239. frame = Frame_Speed
  240. tf = 0
  241. allowframeloss = false
  242. tossremainder = false
  243. lastframe = tick()
  244. script.ArtificialHB:Fire()
  245.  
  246. game:GetService("RunService").Heartbeat:connect(function(s, p)
  247. tf = tf + s
  248. if tf >= frame then
  249. if allowframeloss then
  250. script.ArtificialHB:Fire()
  251. lastframe = tick()
  252. else
  253. for i = 1, math.floor(tf / frame) do
  254. script.ArtificialHB:Fire()
  255. end
  256. lastframe = tick()
  257. end
  258. if tossremainder then
  259. tf = 0
  260. else
  261. tf = tf - frame * math.floor(tf / frame)
  262. end
  263. end
  264. end)
  265.  
  266. --//=================================\\
  267. --\\=================================//
  268.  
  269.  
  270.  
  271.  
  272.  
  273. --//=================================\\
  274. --|| SOME FUNCTIONS
  275. --\\=================================//
  276.  
  277. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  278. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  279. end
  280.  
  281. function PositiveAngle(NUMBER)
  282. if NUMBER >= 0 then
  283. NUMBER = 0
  284. end
  285. return NUMBER
  286. end
  287.  
  288. function NegativeAngle(NUMBER)
  289. if NUMBER <= 0 then
  290. NUMBER = 0
  291. end
  292. return NUMBER
  293. end
  294.  
  295. function Swait(NUMBER)
  296. if NUMBER == 0 or NUMBER == nil then
  297. ArtificialHB.Event:wait()
  298. else
  299. for i = 1, NUMBER do
  300. ArtificialHB.Event:wait()
  301. end
  302. end
  303. end
  304.  
  305. function QuaternionFromCFrame(cf)
  306. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  307. local trace = m00 + m11 + m22
  308. if trace > 0 then
  309. local s = math.sqrt(1 + trace)
  310. local recip = 0.5 / s
  311. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  312. else
  313. local i = 0
  314. if m11 > m00 then
  315. i = 1
  316. end
  317. if m22 > (i == 0 and m00 or m11) then
  318. i = 2
  319. end
  320. if i == 0 then
  321. local s = math.sqrt(m00 - m11 - m22 + 1)
  322. local recip = 0.5 / s
  323. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  324. elseif i == 1 then
  325. local s = math.sqrt(m11 - m22 - m00 + 1)
  326. local recip = 0.5 / s
  327. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  328. elseif i == 2 then
  329. local s = math.sqrt(m22 - m00 - m11 + 1)
  330. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  331. end
  332. end
  333. end
  334.  
  335. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  336. local xs, ys, zs = x + x, y + y, z + z
  337. local wx, wy, wz = w * xs, w * ys, w * zs
  338. local xx = x * xs
  339. local xy = x * ys
  340. local xz = x * zs
  341. local yy = y * ys
  342. local yz = y * zs
  343. local zz = z * zs
  344. 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))
  345. end
  346.  
  347. function QuaternionSlerp(a, b, t)
  348. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  349. local startInterp, finishInterp;
  350. if cosTheta >= 0.0001 then
  351. if (1 - cosTheta) > 0.0001 then
  352. local theta = ACOS(cosTheta)
  353. local invSinTheta = 1 / SIN(theta)
  354. startInterp = SIN((1 - t) * theta) * invSinTheta
  355. finishInterp = SIN(t * theta) * invSinTheta
  356. else
  357. startInterp = 1 - t
  358. finishInterp = t
  359. end
  360. else
  361. if (1 + cosTheta) > 0.0001 then
  362. local theta = ACOS(-cosTheta)
  363. local invSinTheta = 1 / SIN(theta)
  364. startInterp = SIN((t - 1) * theta) * invSinTheta
  365. finishInterp = SIN(t * theta) * invSinTheta
  366. else
  367. startInterp = t - 1
  368. finishInterp = t
  369. end
  370. end
  371. 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
  372. end
  373.  
  374. function Clerp(a, b, t)
  375. local qa = {QuaternionFromCFrame(a)}
  376. local qb = {QuaternionFromCFrame(b)}
  377. local ax, ay, az = a.x, a.y, a.z
  378. local bx, by, bz = b.x, b.y, b.z
  379. local _t = 1 - t
  380. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  381. end
  382.  
  383. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  384. local frame = IT("Frame")
  385. frame.BackgroundTransparency = TRANSPARENCY
  386. frame.BorderSizePixel = BORDERSIZEPIXEL
  387. frame.Position = POSITION
  388. frame.Size = SIZE
  389. frame.BackgroundColor3 = COLOR
  390. frame.BorderColor3 = BORDERCOLOR
  391. frame.Name = NAME
  392. frame.Parent = PARENT
  393. return frame
  394. end
  395.  
  396. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  397. local label = IT("TextLabel")
  398. label.BackgroundTransparency = 1
  399. label.Size = UD2(1, 0, 1, 0)
  400. label.Position = UD2(0, 0, 0, 0)
  401. label.TextColor3 = TEXTCOLOR
  402. label.TextStrokeTransparency = STROKETRANSPARENCY
  403. label.TextTransparency = TRANSPARENCY
  404. label.FontSize = TEXTFONTSIZE
  405. label.Font = TEXTFONT
  406. label.BorderSizePixel = BORDERSIZEPIXEL
  407. label.TextScaled = false
  408. label.Text = TEXT
  409. label.Name = NAME
  410. label.Parent = PARENT
  411. return label
  412. end
  413.  
  414. function NoOutlines(PART)
  415. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  416. end
  417.  
  418.  
  419. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  420. local NEWWELD = IT(TYPE)
  421. NEWWELD.Part0 = PART0
  422. NEWWELD.Part1 = PART1
  423. NEWWELD.C0 = C0
  424. NEWWELD.C1 = C1
  425. NEWWELD.Parent = PARENT
  426. return NEWWELD
  427. end
  428.  
  429. local sound = IT("Sound",nil)
  430.  
  431. function CreateSound(ID, PARENT, VOLUME, PITCH)
  432. local NEWSOUND = nil
  433. coroutine.resume(coroutine.create(function()
  434. NEWSOUND = sound:Clone()
  435. NEWSOUND.Parent = PARENT
  436. NEWSOUND.Volume = VOLUME
  437. NEWSOUND.Pitch = PITCH
  438. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  439. Swait()
  440. NEWSOUND:play()
  441. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  442. end))
  443. return NEWSOUND
  444. end
  445.  
  446. function CFrameFromTopBack(at, top, back)
  447. local right = top:Cross(back)
  448. 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)
  449. end
  450.  
  451. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  452. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  453. local mesh = IT("SpecialMesh",wave)
  454. mesh.MeshType = "Sphere"
  455. mesh.Scale = SIZE
  456. mesh.Offset = VT(0,0,0)
  457. wave.CFrame = CFRAME
  458. coroutine.resume(coroutine.create(function(PART)
  459. for i = 1, WAIT do
  460. Swait()
  461. mesh.Scale = mesh.Scale + GROW
  462. wave.Transparency = wave.Transparency + (1/WAIT)
  463. if wave.Transparency > 0.99 then
  464. wave:remove()
  465. end
  466. end
  467. end))
  468. end
  469.  
  470. function MakeForm(PART,TYPE)
  471. if TYPE == "Cyl" then
  472. local MSH = IT("CylinderMesh",PART)
  473. elseif TYPE == "Ball" then
  474. local MSH = IT("SpecialMesh",PART)
  475. MSH.MeshType = "Sphere"
  476. elseif TYPE == "Wedge" then
  477. local MSH = IT("SpecialMesh",PART)
  478. MSH.MeshType = "Wedge"
  479. end
  480. end
  481.  
  482. function CheckTableForString(Table, String)
  483. for i, v in pairs(Table) do
  484. if string.find(string.lower(String), string.lower(v)) then
  485. return true
  486. end
  487. end
  488. return false
  489. end
  490.  
  491. function CheckIntangible(Hit)
  492. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  493. if Hit and Hit.Parent then
  494. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  495. return true
  496. end
  497. end
  498. return false
  499. end
  500.  
  501. function CreateCloud(size,cframe)
  502. local cloud = IT("Part",Effects)
  503. cloud.Size = VT(0,0,0)
  504. cloud.CanCollide = false
  505. cloud.Anchored = true
  506. cloud.Color = C3(0.5,0.5,0.5)
  507. cloud.CFrame = cframe
  508. local mesh = IT("SpecialMesh",cloud)
  509. mesh.MeshType = "FileMesh"
  510. mesh.MeshId = "http://www.roblox.com/asset/?id=1290033"
  511. mesh.Scale = VT(size,size,size)
  512. coroutine.resume(coroutine.create(function(PART)
  513. coroutine.resume(coroutine.create(function(PART)
  514. for i = 1, 150 do
  515. Swait()
  516. mesh.Scale = mesh.Scale + VT(0.01,0.01,0.01)
  517. end
  518. for i = 1, 10 do
  519. Swait()
  520. cloud.Transparency = cloud.Transparency + 0.1
  521. mesh.Scale = mesh.Scale + VT(0.01,0.01,0.01)
  522. end
  523. cloud.Parent = nil
  524. end))
  525. end))
  526. return cloud
  527. end
  528.  
  529. Debris = game:GetService("Debris")
  530.  
  531. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  532. local Direction = CFrame.new(StartPos, Vec).lookVector
  533. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  534. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  535. if RayHit and CheckIntangible(RayHit) then
  536. if DelayIfHit then
  537. wait()
  538. end
  539. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  540. end
  541. return RayHit, RayPos, RayNormal
  542. end
  543.  
  544. function turnto(position)
  545. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  546. end
  547.  
  548. --//=================================\\
  549. --|| WEAPON CREATION
  550. --\\=================================//
  551.  
  552. local Eyes = IT("Model",Character)
  553. Eyes.Name = "Wing eyes"
  554.  
  555.  
  556. local EYE = CreatePart(3, Eyes, "Granite", 0, 1, "Black", "Handle", VT(3,1.5,0.75))
  557. MakeForm(EYE,"Ball")
  558. local weld = CreateWeldOrSnapOrMotor("Weld", EYE, Torso, EYE, CF(5, 0.3, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  559. local EYE = CreatePart(3, Eyes, "Granite", 0, 1, "Earth green", "Handle", VT(3,1.5,0.75))
  560. MakeForm(EYE,"Ball")
  561. local weld = CreateWeldOrSnapOrMotor("Weld", EYE, Torso, EYE, CF(-5, 0.3, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  562. local EYE = CreatePart(3, Eyes, "Granite", 0, 1, "Tr. Flu. Red", "Handle", VT(3,1.5,0.75))
  563. MakeForm(EYE,"Ball")
  564. local weld = CreateWeldOrSnapOrMotor("Weld", EYE, Torso, EYE, CF(4, 2, 0.2) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, 0, 0))
  565. local EYE = CreatePart(3, Eyes, "Granite", 0, 1, "Dark Royal blue", "Handle", VT(3,1.5,0.75))
  566. MakeForm(EYE,"Ball")
  567. local weld = CreateWeldOrSnapOrMotor("Weld", EYE, Torso, EYE, CF(-4, 2, 0.2) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, 0, 0))
  568. local EYE = CreatePart(3, Eyes, "Granite", 0, 1, "Mulberry", "Handle", VT(3,1.5,0.75))
  569. MakeForm(EYE,"Ball")
  570. local weld = CreateWeldOrSnapOrMotor("Weld", EYE, Torso, EYE, CF(4, -2+0.6, 0.2) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, 0, 0))
  571. local EYE = CreatePart(3, Eyes, "Granite", 0, 1, "Pearl", "Handle", VT(3,1.5,0.75))
  572. MakeForm(EYE,"Ball")
  573. local weld = CreateWeldOrSnapOrMotor("Weld", EYE, Torso, EYE, CF(-4, -2+0.6, 0.2) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, 0, 0))
  574.  
  575. local EYE = CreatePart(3, Eyes, "Neon", 0, 1, "Really black", "Pupil", VT(2,1,1))
  576. MakeForm(EYE,"Ball")
  577. local weld = CreateWeldOrSnapOrMotor("Weld", EYE, Torso, EYE, CF(5, 0.3, 0.1) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  578. local EYE = CreatePart(3, Eyes, "Neon", 0, 1, "Really black", "Pupil", VT(2,1,1))
  579. MakeForm(EYE,"Ball")
  580. local weld = CreateWeldOrSnapOrMotor("Weld", EYE, Torso, EYE, CF(-5, 0.3, 0.1) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  581. local EYE = CreatePart(3, Eyes, "Neon", 0, 1, "Really black", "Pupil", VT(2,1,1))
  582. MakeForm(EYE,"Ball")
  583. local weld = CreateWeldOrSnapOrMotor("Weld", EYE, Torso, EYE, CF(4, 2, 0.1) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, 0, 0))
  584. local EYE = CreatePart(3, Eyes, "Neon", 0, 1, "Really black", "Pupil", VT(2,1,1))
  585. MakeForm(EYE,"Ball")
  586. local weld = CreateWeldOrSnapOrMotor("Weld", EYE, Torso, EYE, CF(-4, 2, 0.1) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, 0, 0))
  587. local EYE = CreatePart(3, Eyes, "Neon", 0, 1, "Really black", "Pupil", VT(2,1,1))
  588. MakeForm(EYE,"Ball")
  589. local weld = CreateWeldOrSnapOrMotor("Weld", EYE, Torso, EYE, CF(4, -2+0.6, 0.1) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, 0, 0))
  590. local EYE = CreatePart(3, Eyes, "Neon", 0, 1, "Really black", "Pupil", VT(2,1,1))
  591. MakeForm(EYE,"Ball")
  592. local weld = CreateWeldOrSnapOrMotor("Weld", EYE, Torso, EYE, CF(-4, -2+0.6, 0.1) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, 0, 0))
  593.  
  594. for _, c in pairs(Weapon:GetChildren()) do
  595. if c.ClassName == "Part" then
  596. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  597. end
  598. end
  599.  
  600. Weapon.Parent = Character
  601.  
  602. Humanoid.Died:connect(function()
  603. ATTACK = true
  604. end)
  605.  
  606. print(Class_Name.." loaded.")
  607.  
  608. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  609.  
  610. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Faux rain", SKILLTEXTCOLOR, 6, "Legacy", 0, 2, 1, "Text 1")
  611.  
  612. --//=================================\\
  613. --|| DAMAGING
  614. --\\=================================//
  615.  
  616. function killnearest(position,range,maxstrength)
  617. for i,v in ipairs(workspace:GetChildren()) do
  618. local body = v:GetChildren()
  619. for part = 1, #body do
  620. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  621. if(body[part].Position - position).Magnitude < range then
  622. if v.ClassName == "Model" then
  623. v:BreakJoints()
  624. end
  625. --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  626. --body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  627. end
  628. end
  629. end
  630. if v.ClassName == "Part" then
  631. if v.Anchored == false and (v.Position - position).Magnitude < range then
  632. --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  633. --v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  634. end
  635. end
  636. end
  637. end
  638.  
  639. --//=================================\\
  640. --|| ATTACK FUNCTIONS AND STUFF
  641. --\\=================================//
  642.  
  643. function OpenEyes()
  644. CreateSound("356551938", Torso, 10, 1)
  645. local EYES = Eyes:GetChildren()
  646. for y = 1, #EYES do
  647. local eye = EYES[y]
  648. eye.Transparency = 0
  649. eye.Mesh.Scale = VT(1,0.2,1)
  650. coroutine.resume(coroutine.create(function()
  651. Swait(10)
  652. for i = 1, 100 do
  653. Swait()
  654. eye.Mesh.Scale = eye.Mesh.Scale + VT(0,0.8/100,0)
  655. end
  656. end))
  657. end
  658. end
  659.  
  660. function CloseEyes()
  661. local EYES = Eyes:GetChildren()
  662. for y = 1, #EYES do
  663. local eye = EYES[y]
  664. coroutine.resume(coroutine.create(function()
  665. for i = 1, 100 do
  666. Swait()
  667. eye.Mesh.Scale = eye.Mesh.Scale - VT(0,1/100,0)
  668. end
  669. eye.Transparency = 1
  670. end))
  671. end
  672. end
  673.  
  674. function clerp(a, b, t)
  675. return a:lerp(b, t)
  676. end
  677.  
  678. function newBezier(startpos, pos2, pos3, endpos, t)
  679. local A = clerp(startpos, pos2, t)
  680. local B = clerp(pos2, pos3, t)
  681. local C = clerp(pos3, endpos, t)
  682. local lerp1 = clerp(A, B, t)
  683. local lerp2 = clerp(B, C, t)
  684. local cubic = clerp(lerp1, lerp2, t)
  685. return cubic
  686. end
  687.  
  688. function Mortar(Target)
  689. local newball = Instance.new("Part", workspace)
  690. newball.Anchored = true
  691. newball.Shape = "Ball"
  692. newball.Material = "Neon"
  693. newball.Size = Vector3.new(0,0,0)
  694. newball.CanCollide = false
  695. newball.CFrame = CF(Target)
  696. newball.BrickColor = BRICKC"Really black"
  697. newball.Transparency = 1
  698. local POS = Mouse.Hit.p + VT(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15))
  699. local onefourth = Target:Lerp(POS, 0.25) + Vector3.new(math.random(-25, 25), math.random(0, 25), math.random(-25, 25))
  700. local threefourths = Target:Lerp(POS, 0.75) + Vector3.new(math.random(-25, 25), math.random(0, 25), math.random(-25, 25))
  701. local A1 = IT("Attachment",newball)
  702. A1.Position = Vector3.new(0, 2.5, 0)
  703. local A2 = IT("Attachment",newball)
  704. A2.Position = Vector3.new(0, -2.5, 0)
  705. local Trail = IT("Trail",newball)
  706. Trail.LightEmission = 1
  707. Trail.FaceCamera = true
  708. Trail.Texture = "rbxassetid://945758042"
  709. Trail.Attachment0 = A1
  710. Trail.Attachment1 = A2
  711. Trail.Lifetime = 2
  712. Trail.MinLength = 0
  713. Trail.Transparency = NumberSequence.new(0, 1)
  714. Trail.Color = ColorSequence.new(newball.Color)
  715. coroutine.resume(coroutine.create(function()
  716. for i = 0, 1, 0.07 do
  717. Swait()
  718. newball.CFrame = CFrame.new(newBezier(Target, onefourth, threefourths, POS, i))
  719. end
  720. killnearest(newball.Position,15)
  721. newball.Transparency = 1
  722. CreateSound("514867425", newball, 10, 1)
  723. CreateCloud(12,newball.CFrame)
  724. MagicSphere(VT(22,22,22),55,newball.CFrame,"Earth Green",VT(0.02,0.02,0.02))
  725. game:GetService("Debris"):AddItem(newball, 5)
  726. end))
  727. end
  728.  
  729. function Bombard()
  730. local EYES = Eyes:GetChildren()
  731. for y = 1, #EYES do
  732. local eye = EYES[y]
  733. if eye.Name == "Pupil" then
  734. Mortar(eye.Position)
  735. end
  736. end
  737. end
  738.  
  739. function FauxRain()
  740. ATTACK = true
  741. CreateSound("244510642", Head, 10, 2)
  742. Swait(15)
  743. OpenEyes()
  744. Swait(55)
  745. repeat
  746. Swait(25)
  747. Bombard()
  748. until KEYHOLD == false
  749. CloseEyes()
  750. Swait(150)
  751. ATTACK = false
  752. end
  753.  
  754. --//=================================\\
  755. --|| ASSIGN THINGS TO KEYS
  756. --\\=================================//
  757.  
  758. function MouseDown(Mouse)
  759. if ATTACK == false then
  760. end
  761. end
  762.  
  763. function MouseUp(Mouse)
  764. HOLD = false
  765. end
  766.  
  767. function CastProperRay(StartPos, Vec, Length, Ignore)
  768. local Direction = CFrame.new(StartPos, Vec).lookVector
  769. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  770. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  771. return RayHit, RayPos, RayNormal
  772. end
  773.  
  774. function RayCast(Position, Direction, MaxDistance, IgnoreList)
  775. return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList)
  776. end
  777.  
  778. function KeyDown(Key)
  779. KEYHOLD = true
  780. if Key == "z" and ATTACK == false then
  781. FauxRain()
  782. end
  783. --if VALUE1 == true then
  784. if Key == "w" and ATTACK == false then
  785. VALUE2 = true
  786. repeat
  787. local RayHit, RayPos = CastProperRay(RootPart.Position, Mouse.Hit.p, 1, {workspace})
  788. RootPart.CFrame = CFrame.new(RayPos,VT(Mouse.Hit.p.X,RootPart.Position.Y,Mouse.Hit.p.Z)) * CFrame.new(0, 0, 0)
  789. Swait()
  790. until KEYHOLD == false
  791. VALUE2 = false
  792. end
  793. if Key == "s" and ATTACK == false then
  794. VALUE2 = true
  795. repeat
  796. local RayHit1, RayPos1 = CastProperRay(Mouse.Hit.p, RootPart.Position, 10000, {workspace})
  797. local RayHit, RayPos = CastProperRay(RootPart.Position, RayPos1, 1, {workspace})
  798. RootPart.CFrame = CFrame.new(RayPos,VT(Mouse.Hit.p.X,RootPart.Position.Y,Mouse.Hit.p.Z)) * CFrame.new(0, 0, 0)
  799. Swait()
  800. until KEYHOLD == false
  801. VALUE2 = false
  802. end
  803. if Key == "a" and ATTACK == false then
  804. VALUE2 = true
  805. repeat
  806. local RayHit, RayPos = CastProperRay(RootPart.Position, RootPart.CFrame*CF(-1,0,0).p, 1, {workspace})
  807. RootPart.CFrame = CFrame.new(RayPos,VT(Mouse.Hit.p.X,RootPart.Position.Y,Mouse.Hit.p.Z)) * CFrame.new(0, 0, 0)
  808. Swait()
  809. until KEYHOLD == false
  810. VALUE2 = false
  811. end
  812. if Key == "d" and ATTACK == false then
  813. VALUE2 = true
  814. repeat
  815. local RayHit, RayPos = CastProperRay(RootPart.Position, RootPart.CFrame*CF(1,0,0).p, 1, {workspace})
  816. RootPart.CFrame = CFrame.new(RayPos,VT(Mouse.Hit.p.X,RootPart.Position.Y,Mouse.Hit.p.Z)) * CFrame.new(0, 0, 0)
  817. Swait()
  818. until KEYHOLD == false
  819. VALUE2 = false
  820. end
  821. --end
  822. end
  823.  
  824. function KeyUp(Key)
  825. KEYHOLD = false
  826. end
  827.  
  828. Mouse.Button1Down:connect(function(NEWKEY)
  829. MouseDown(NEWKEY)
  830. end)
  831. Mouse.Button1Up:connect(function(NEWKEY)
  832. MouseUp(NEWKEY)
  833. end)
  834. Mouse.KeyDown:connect(function(NEWKEY)
  835. KeyDown(NEWKEY)
  836. end)
  837. Mouse.KeyUp:connect(function(NEWKEY)
  838. KeyUp(NEWKEY)
  839. end)
  840.  
  841. --//=================================\\
  842. --\\=================================//
  843.  
  844. function unanchor()
  845. if UNANCHOR == true then
  846. g = Character:GetChildren()
  847. for i = 1, #g do
  848. if g[i].ClassName == "Part" and g[i].Name ~= "HumanoidRootPart" then
  849. g[i].Anchored = false
  850. elseif g[i].ClassName == "Model" or g[i].ClassName == "Accessory" then
  851. local M = g[i]:GetChildren()
  852. for m = 1, #M do
  853. if M[m].ClassName == "Part" then
  854. M[m].Anchored = false
  855. end
  856. end
  857. end
  858. end
  859. end
  860. end
  861.  
  862. --//=================================\\
  863. --|| WRAP THE WHOLE SCRIPT UP
  864. --\\=================================//
  865.  
  866. Humanoid.Changed:connect(function(Jump)
  867. if Jump == "Jump" and (Disable_Jump == true) then
  868. Humanoid.Jump = false
  869. end
  870. end)
  871.  
  872. Speed = 0
  873.  
  874. local FF = IT("ForceField",Character)
  875. FF.Visible = false
  876.  
  877. while true do
  878. Swait()
  879. ANIMATE.Parent = nil
  880. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  881. IDLEANIMATION:Play()
  882. SINE = SINE + CHANGE
  883. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  884. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  885. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  886. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  887. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  888. if ATTACK == false then
  889. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.3 * COS(SINE / 35)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  890. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  891. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  892. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  893. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  894. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  895. end
  896. if #Effects2>0 then
  897. for e=1,#Effects2 do
  898. if Effects2[e]~=nil then
  899. local Thing=Effects2[e]
  900. if Thing~=nil then
  901. local Part=Thing[1]
  902. local Mode=Thing[2]
  903. local Delay=Thing[3]
  904. local IncX=Thing[4]
  905. local IncY=Thing[5]
  906. local IncZ=Thing[6]
  907. local Part2=Thing[8]
  908. if Thing[1].Transparency<=1 then
  909. if Thing[2]=="Block1" then
  910. Thing[1].CFrame=Thing[1].CFrame
  911. Mesh=Thing[1].Mesh
  912. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  913. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  914. elseif Thing[2]=="Cylinder" then
  915. Mesh=Thing[1].Mesh
  916. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  917. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  918. elseif Thing[2]=="Blood" then
  919. Mesh=Thing[7]
  920. Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
  921. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  922. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  923. elseif Thing[2]=="Elec" then
  924. Mesh=Thing[1].Mesh
  925. Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
  926. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  927. elseif Thing[2]=="Disappear" then
  928. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  929. end
  930. else
  931. Part.Parent=nil
  932. table.remove(Effects2,e)
  933. end
  934. end
  935. end
  936. end
  937. end
  938. unanchor()
  939. Humanoid.MaxHealth = "inf"
  940. Humanoid.Health = "inf"
  941. if Rooted == false then
  942. Disable_Jump = false
  943. Humanoid.WalkSpeed = Speed
  944. elseif Rooted == true then
  945. Disable_Jump = true
  946. Humanoid.WalkSpeed = 0
  947. end
  948. RootPart.Anchored = true
  949. turnto(Mouse.Hit.p)
  950. local MATHS = {"0","1"}
  951. Humanoid.Name = MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]
  952. Humanoid.PlatformStand = false
  953. end
  954.  
  955. --//=================================\\
  956. --\\=================================//
  957.  
  958.  
  959.  
  960.  
  961.  
  962. --//====================================================\\--
  963. --|| END OF SCRIPT
  964. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement