Advertisement
SirSkyvalky

Untitled

Aug 24th, 2018
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.77 KB | None | 0 0
  1. Player = game:GetService("Players").LocalPlayer
  2. PlayerGui = Player.PlayerGui
  3. Cam = workspace.CurrentCamera
  4. Backpack = Player.Backpack
  5. Character = Player.Character
  6. Humanoid = Character.Humanoid
  7. Mouse = Player:GetMouse()
  8. RootPart = Character["HumanoidRootPart"]
  9. Torso = Character["Torso"]
  10. Head = Character["Head"]
  11. RightArm = Character["Right Arm"]
  12. LeftArm = Character["Left Arm"]
  13. RightLeg = Character["Right Leg"]
  14. LeftLeg = Character["Left Leg"]
  15. RootJoint = RootPart["RootJoint"]
  16. Neck = Torso["Neck"]
  17. RightShoulder = Torso["Right Shoulder"]
  18. LeftShoulder = Torso["Left Shoulder"]
  19. RightHip = Torso["Right Hip"]
  20. LeftHip = Torso["Left Hip"]
  21. JointService = game:GetService("JointsService")
  22.  
  23. RootJoint.Parent = JointService
  24. Neck.Parent = JointService
  25. RightShoulder.Parent = JointService
  26. LeftShoulder.Parent = JointService
  27. RightHip.Parent = JointService
  28. LeftHip.Parent = JointService
  29.  
  30. IT = Instance.new
  31. CF = CFrame.new
  32. VT = Vector3.new
  33. RAD = math.rad
  34. C3 = Color3.new
  35. UD2 = UDim2.new
  36. BRICKC = BrickColor.new
  37. ANGLES = CFrame.Angles
  38. EULER = CFrame.fromEulerAnglesXYZ
  39. COS = math.cos
  40. ACOS = math.acos
  41. SIN = math.sin
  42. ASIN = math.asin
  43. ABS = math.abs
  44. MRANDOM = math.random
  45. FLOOR = math.floor
  46. HUGE = VT(math.huge,math.huge,math.huge)
  47.  
  48. local Animation_Speed = 3
  49. local SINE = 0
  50. local CHANGE = 1 / Animation_Speed
  51. local Attack = false
  52. local Equipped = false
  53. local Rooted = false
  54. local SecondForm = false
  55.  
  56. local Effects = IT("Folder",Character)
  57. Effects.Name = "Effects"
  58.  
  59. local MESH = Head:WaitForChild("Mesh")
  60. local FACE = Head:WaitForChild("face")
  61.  
  62. local Sick = IT("Sound",Character)
  63. Sick.SoundId = "rbxassetid://1703475948"
  64. Sick.Volume = math.huge
  65. Sick.Looped = true
  66. Sick.TimePosition = 2
  67. Sick.PlaybackSpeed = 0.8
  68. Sick:Play()
  69.  
  70. --//=================================\\
  71. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  72. --\\=================================//
  73.  
  74. ArtificialHB = Instance.new("BindableEvent", script)
  75. ArtificialHB.Name = "ArtificialHB"
  76.  
  77. script:WaitForChild("ArtificialHB")
  78.  
  79. frame = 1/60
  80. tf = 0
  81. allowframeloss = false
  82. tossremainder = false
  83. lastframe = tick()
  84. script.ArtificialHB:Fire()
  85.  
  86. game:GetService("RunService").Heartbeat:connect(function(s, p)
  87. tf = tf + s
  88. if tf >= frame then
  89. if allowframeloss then
  90. script.ArtificialHB:Fire()
  91. lastframe = tick()
  92. else
  93. for i = 1, math.floor(tf / frame) do
  94. script.ArtificialHB:Fire()
  95. end
  96. lastframe = tick()
  97. end
  98. if tossremainder then
  99. tf = 0
  100. else
  101. tf = tf - frame * math.floor(tf / frame)
  102. end
  103. end
  104. end)
  105.  
  106. --//=================================\\
  107. --\\=================================//
  108.  
  109. function Swait(NUMBER)
  110. if NUMBER == 0 or NUMBER == nil then
  111. ArtificialHB.Event:wait()
  112. else
  113. for i = 1, NUMBER do
  114. ArtificialHB.Event:wait()
  115. end
  116. end
  117.  
  118. return true
  119. end
  120.  
  121. function weldBetween(a, b)
  122. local weldd = Instance.new("ManualWeld")
  123. weldd.Part0 = a
  124. weldd.Part1 = b
  125. weldd.C0 = CFrame.new()
  126. weldd.C1 = b.CFrame:inverse() * a.CFrame
  127. weldd.Parent = a
  128. return weldd
  129. end
  130.  
  131. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  132. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  133. end
  134.  
  135. local S = IT("Sound")
  136. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  137. local NEWSOUND = nil
  138. coroutine.resume(coroutine.create(function()
  139. NEWSOUND = S:Clone()
  140. NEWSOUND.Parent = PARENT
  141. NEWSOUND.Volume = VOLUME
  142. NEWSOUND.Pitch = PITCH
  143. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  144. NEWSOUND:play()
  145. if DOESLOOP == true then
  146. NEWSOUND.Looped = true
  147. else
  148. repeat wait(1) until NEWSOUND.Playing == false
  149. NEWSOUND:remove()
  150. end
  151. end))
  152. return NEWSOUND
  153. end
  154.  
  155. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  156. local NEWPART = IT("Part")
  157. NEWPART.formFactor = FORMFACTOR
  158. NEWPART.Reflectance = REFLECTANCE
  159. NEWPART.Transparency = TRANSPARENCY
  160. NEWPART.CanCollide = false
  161. NEWPART.Locked = true
  162. NEWPART.Anchored = true
  163. if ANCHOR == false then
  164. NEWPART.Anchored = false
  165. end
  166. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  167. NEWPART.Name = NAME
  168. NEWPART.Size = SIZE
  169. NEWPART.Position = Torso.Position
  170. NEWPART.Material = MATERIAL
  171. NEWPART:BreakJoints()
  172. NEWPART.Parent = PARENT
  173. return NEWPART
  174. end
  175.  
  176. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  177. local NEWMESH = IT(MESH)
  178. if MESH == "SpecialMesh" then
  179. NEWMESH.MeshType = MESHTYPE
  180. if MESHID ~= "nil" and MESHID ~= "" then
  181. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  182. end
  183. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  184. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  185. end
  186. end
  187. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  188. NEWMESH.Scale = SCALE
  189. NEWMESH.Parent = PARENT
  190. return NEWMESH
  191. end
  192.  
  193. --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})
  194. function WACKYEFFECT(Table)
  195. local TYPE = (Table.EffectType or "Sphere")
  196. local SIZE = (Table.Size or VT(1,1,1))
  197. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  198. local TRANSPARENCY = (Table.Transparency or 0)
  199. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  200. local CFRAME = (Table.CFrame or Torso.CFrame)
  201. local MOVEDIRECTION = (Table.MoveToPos or nil)
  202. local ROTATION1 = (Table.RotationX or 0)
  203. local ROTATION2 = (Table.RotationY or 0)
  204. local ROTATION3 = (Table.RotationZ or 0)
  205. local MATERIAL = (Table.Material or "Neon")
  206. local COLOR = (Table.Color or C3(1,1,1))
  207. local TIME = (Table.Time or 45)
  208. local SOUNDID = (Table.SoundID or nil)
  209. local SOUNDPITCH = (Table.SoundPitch or nil)
  210. local SOUNDVOLUME = (Table.SoundVolume or nil)
  211. coroutine.resume(coroutine.create(function()
  212. local PLAYSSOUND = false
  213. local SOUND = nil
  214. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  215. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  216. PLAYSSOUND = true
  217. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  218. end
  219. EFFECT.Color = COLOR
  220. local MSH = nil
  221. if TYPE == "Sphere" then
  222. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  223. elseif TYPE == "Block" then
  224. MSH = IT("BlockMesh",EFFECT)
  225. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  226. elseif TYPE == "Wave" then
  227. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  228. elseif TYPE == "Ring" then
  229. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  230. elseif TYPE == "Slash" then
  231. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  232. elseif TYPE == "Round Slash" then
  233. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  234. elseif TYPE == "Swirl" then
  235. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  236. elseif TYPE == "Skull" then
  237. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  238. elseif TYPE == "Crystal" then
  239. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  240. elseif TYPE == "Cloud" then
  241. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1290033", "", SIZE, VT(0,0,0))
  242. end
  243. if MSH ~= nil then
  244. local MOVESPEED = nil
  245. if MOVEDIRECTION ~= nil then
  246. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  247. end
  248. local GROWTH = SIZE - ENDSIZE
  249. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  250. if TYPE == "Block" then
  251. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  252. else
  253. EFFECT.CFrame = CFRAME
  254. end
  255. for LOOP = 1, TIME+1 do
  256. Swait()
  257. MSH.Scale = MSH.Scale - GROWTH/TIME
  258. if TYPE == "Wave" then
  259. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  260. end
  261. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  262. if TYPE == "Block" then
  263. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  264. else
  265. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  266. end
  267. if MOVEDIRECTION ~= nil then
  268. local ORI = EFFECT.Orientation
  269. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  270. EFFECT.Orientation = ORI
  271. end
  272. end
  273. if PLAYSSOUND == false then
  274. EFFECT:remove()
  275. else
  276. repeat Swait() until SOUND.Playing == false
  277. EFFECT:remove()
  278. end
  279. else
  280. if PLAYSSOUND == false then
  281. EFFECT:remove()
  282. else
  283. repeat Swait() until SOUND.Playing == false
  284. EFFECT:remove()
  285. end
  286. end
  287. end))
  288. end
  289.  
  290. function MakeForm(PART,TYPE)
  291. if TYPE == "Cyl" then
  292. local MSH = IT("CylinderMesh",PART)
  293. elseif TYPE == "Ball" then
  294. local MSH = IT("SpecialMesh",PART)
  295. MSH.MeshType = "Sphere"
  296. elseif TYPE == "Wedge" then
  297. local MSH = IT("SpecialMesh",PART)
  298. MSH.MeshType = "Wedge"
  299. end
  300. end
  301.  
  302. function QuaternionFromCFrame(cf)
  303. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  304. local trace = m00 + m11 + m22
  305. if trace > 0 then
  306. local s = math.sqrt(1 + trace)
  307. local recip = 0.5 / s
  308. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  309. else
  310. local i = 0
  311. if m11 > m00 then
  312. i = 1
  313. end
  314. if m22 > (i == 0 and m00 or m11) then
  315. i = 2
  316. end
  317. if i == 0 then
  318. local s = math.sqrt(m00 - m11 - m22 + 1)
  319. local recip = 0.5 / s
  320. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  321. elseif i == 1 then
  322. local s = math.sqrt(m11 - m22 - m00 + 1)
  323. local recip = 0.5 / s
  324. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  325. elseif i == 2 then
  326. local s = math.sqrt(m22 - m00 - m11 + 1)
  327. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  328. end
  329. end
  330. end
  331.  
  332. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  333. local xs, ys, zs = x + x, y + y, z + z
  334. local wx, wy, wz = w * xs, w * ys, w * zs
  335. local xx = x * xs
  336. local xy = x * ys
  337. local xz = x * zs
  338. local yy = y * ys
  339. local yz = y * zs
  340. local zz = z * zs
  341. 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))
  342. end
  343.  
  344. function QuaternionSlerp(a, b, t)
  345. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  346. local startInterp, finishInterp;
  347. if cosTheta >= 0.0001 then
  348. if (1 - cosTheta) > 0.0001 then
  349. local theta = ACOS(cosTheta)
  350. local invSinTheta = 1 / SIN(theta)
  351. startInterp = SIN((1 - t) * theta) * invSinTheta
  352. finishInterp = SIN(t * theta) * invSinTheta
  353. else
  354. startInterp = 1 - t
  355. finishInterp = t
  356. end
  357. else
  358. if (1 + cosTheta) > 0.0001 then
  359. local theta = ACOS(-cosTheta)
  360. local invSinTheta = 1 / SIN(theta)
  361. startInterp = SIN((t - 1) * theta) * invSinTheta
  362. finishInterp = SIN(t * theta) * invSinTheta
  363. else
  364. startInterp = t - 1
  365. finishInterp = t
  366. end
  367. end
  368. 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
  369. end
  370.  
  371. function Clerp(a, b, t)
  372. local qa = {QuaternionFromCFrame(a)}
  373. local qb = {QuaternionFromCFrame(b)}
  374. local ax, ay, az = a.x, a.y, a.z
  375. local bx, by, bz = b.x, b.y, b.z
  376. local _t = 1 - t
  377. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  378. end
  379.  
  380. --// CUSTOMIZATION --\\
  381. Humanoid.DisplayDistanceType = "None"
  382.  
  383. local txt = Instance.new("BillboardGui", Character)
  384. txt.Adornee = Character.Head
  385. txt.Name = "_status"
  386. txt.Size = UDim2.new(2, 0, 1.2, 0)
  387. txt.StudsOffset = Vector3.new(-9, 8, 0)
  388.  
  389. local String = "Void Master"
  390. local String2 = "Fate Predictor"
  391.  
  392. local text = Instance.new("TextLabel", txt)
  393. text.Size = UDim2.new(10, 0, 7, 0)
  394. text.FontSize = "Size24"
  395. text.TextScaled = true
  396. text.TextTransparency = 0
  397. text.BackgroundTransparency = 1
  398. text.TextTransparency = 0
  399. text.TextStrokeTransparency = 0
  400. text.Font = "Antique"
  401. text.TextStrokeColor3 = Color3.new(1,0,1)
  402.  
  403. coroutine.wrap(function()
  404. for i = 1,string.len(String2) do
  405. text.Text = string.sub(String2,1,i)
  406. wait(0.1)
  407. end
  408.  
  409. for i = string.len(text.Text),0,-1 do
  410. text.Text = string.sub(String2,1,i)
  411. wait(0.1)
  412. end
  413.  
  414. for i = 1,string.len(String) do
  415. text.Text = string.sub(String,1,i)
  416. wait(0.1)
  417. end
  418. end)()
  419.  
  420. Character.Animate.Parent = nil
  421.  
  422. for i,v in pairs(Humanoid:GetPlayingAnimationTracks()) do
  423. v:Stop()
  424. end
  425.  
  426. local Mask = IT("Part")
  427. Mask.Name = "Mask"
  428. Mask.Color = BrickColor.new("Really black").Color
  429. Mask.CanCollide = false
  430. Mask.CFrame = Head.CFrame * CF(0,0,-0.6)
  431.  
  432. local MaskMesh = IT("SpecialMesh")
  433. MaskMesh.MeshId = "http://www.roblox.com/asset/?id=13520257"
  434. MaskMesh.Name = "MaskMesh"
  435.  
  436. local MaskWeld = weldBetween(Head,Mask)
  437. MaskWeld.Name = "The-Very-Handy-And-Weldy-Weld-Of-The-Weld-Land-To-Weld-The-Mask"
  438.  
  439. local Eyo = IT("Part")
  440. Eyo.CanCollide = false
  441. Eyo.Color = Color3.fromRGB(61, 21, 133)
  442. Eyo.Size = VT(0.3, 0.3, 0.3)
  443. Eyo.CFrame = Mask.CFrame * CF(-0.2,0.2,0.1)
  444. Eyo.Material = "Neon"
  445. MakeForm(Eyo,"Ball")
  446. Eyo.Name = "Eyo"
  447.  
  448. local Eyo2 = IT("Part")
  449. Eyo2.CanCollide = false
  450. Eyo2.Color = Color3.fromRGB(61, 21, 133)
  451. Eyo2.Size = VT(0.3, 0.3, 0.3)
  452. Eyo2.CFrame = Mask.CFrame * CF(0.2,0.2,0.1)
  453. Eyo2.Material = "Neon"
  454. MakeForm(Eyo2,"Ball")
  455. Eyo2.Name = "Eyo2"
  456.  
  457. local Hood = IT("Part")
  458. Hood.CanCollide = false
  459. Hood.Name = "Hood"
  460. Hood.Material = "Fabric"
  461. Hood.CFrame = Head.CFrame * CF(0,0.2,0)
  462. Hood.BrickColor = BRICKC("Really black")
  463.  
  464. local Scarf = IT("Part")
  465. Scarf.CanCollide = false
  466. Scarf.CFrame = Head.CFrame * CF(0,-1,0)
  467. Scarf.BrickColor = BRICKC("Really black")
  468. Scarf.Name = "Scarf"
  469.  
  470. local Scepter = IT("Part")
  471. Scepter.BrickColor = BRICKC("Dark indigo")
  472. Scepter.Name = "Scepter"
  473. Scepter.CFrame = RightArm.CFrame * CF(0,-1,0) * ANGLES(RAD(-90),RAD(0),RAD(0))
  474.  
  475. local ScepterMesh = IT("SpecialMesh")
  476. ScepterMesh.MeshId = "http://www.roblox.com/asset?id=86374096"
  477.  
  478. local ScepterWeld = weldBetween(RightArm,Scepter)
  479. ScepterWeld.Name = "The-Very-Handy-And-Weldy-Weld-Of-The-Weld-Land-To-Weld-The-Scepter"
  480.  
  481. local ScarfMesh = IT("SpecialMesh")
  482. ScarfMesh.MeshId = "http://www.roblox.com/asset/?id=99856331"
  483. ScarfMesh.Name = "ScarfMesh"
  484.  
  485. local HoodMesh = IT("SpecialMesh")
  486. HoodMesh.MeshId = "http://www.roblox.com/asset/?id=76062497"
  487. HoodMesh.Name = "HoodMesh"
  488.  
  489. local HoodWeld = weldBetween(Head,Hood)
  490. HoodWeld.Name = "The-Very-Handy-And-Weldy-Weld-Of-The-Weld-LandTo-Weld-The-Hood"
  491.  
  492. local EyoWeld = weldBetween(Head,Eyo)
  493. EyoWeld.Name = "The-Very-Handy-And-Weldy-Weld-Of-The-Weld-Land-To-Weld-The-Eye"
  494.  
  495. local Eyo2Weld = weldBetween(Head,Eyo2)
  496. Eyo2Weld.Name = "The-Very-Handy-And-Weldy-Weld-Of-The-Weld-Land-To-Weld-The-Second-Eye"
  497.  
  498. local ScarfWeld = weldBetween(Head,Scarf)
  499. ScarfWeld.Name = "The-Very-Handy-And-Weldy-Weld-Of-The-Weld-Land-To-Weld-The-Scarf"
  500.  
  501. local Shirt = IT("Shirt")
  502. local Pants = IT("Pants")
  503.  
  504. Shirt.Name = "Cloth"
  505. Pants.Name = "Cloth"
  506. Shirt.ShirtTemplate = "rbxassetid://1192334683"
  507. Pants.PantsTemplate = "rbxassetid://1503163457"
  508.  
  509. Mask.Parent = Character
  510. MaskMesh.Parent = Mask
  511. Eyo.Parent = Character
  512. Shirt.Parent = Character
  513. Pants.Parent = Character
  514. Hood.Parent = Character
  515. HoodMesh.Parent = Hood
  516. Scarf.Parent = Character
  517. ScarfMesh.Parent = Scarf
  518. Eyo2.Parent = Character
  519. Scepter.Parent = Character
  520. ScepterMesh.Parent = Scepter
  521.  
  522. local Weld = Instance.new("Weld")
  523. local a = workspace.Dummy.Head
  524. local b = workspace.Dummy.Part
  525.  
  526. Weld.Part0 = a
  527. Weld.Part1 = b
  528. Weld.C0 = CFrame.new()
  529. Weld.C1 = b.CFrame:inverse() * a.CFrame
  530. Weld.Parent = workspace.Dummy.Head
  531. print(Weld.C1)
  532. print(Weld.C0)
  533.  
  534. --// END OF CUSTOMIZATION --\\
  535.  
  536. --// FUNCTIONS --\\
  537.  
  538. --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})
  539. function Transform()
  540. Attack = true
  541. Rooted = true
  542.  
  543. for i = 0,1,0.02 do
  544. Swait()
  545. Eyo.Mesh.Scale = VT(0.7,0.7,0.7)
  546. RightShoulder.C0 = RightShoulder.C0:lerp(CF(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), i)
  547. RightShoulder.C1 = RightShoulder.C1:lerp(CF(-0.49999994, 0.745599985, 0.162099972, 0.684326112, 0.446992218, 0.576103866, -0.403130829, -0.426427096, 0.809719324, 0.607604563, -0.786357403, -0.1116188911), i)
  548. end
  549.  
  550. Eyo2.Parent = nil
  551.  
  552. for i = 0,1,0.02 do
  553. Swait()
  554. RightShoulder.C0 = RightShoulder.C0:lerp(CF(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), i)
  555. RightShoulder.C1 = RightShoulder.C1:lerp(CF(-0.23269999, 0.742500007, -0.165699959, 0, 0.866025448, 0.49999997, -0.422618449, 0.453153819, -0.784885526, -0.906307697, -0.211309209, 0.365998328), i)
  556. MaskWeld.C0 = MaskWeld.C0:lerp(CF(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), i)
  557. MaskWeld.C1 = MaskWeld.C1:lerp(CF(-2.54846001, -0.720100403, 0.408808231, 0.756472647, -0.498946786, -0.422849059, 0.565166354, 0.173320174, 0.806565166, -0.329144806, -0.849124372, 0.413099855), i)
  558. end
  559.  
  560. for i = 1,15 do
  561. Mask.Parent = nil
  562. wait()
  563. WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = Mask.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  564. end
  565.  
  566. wait(2)
  567.  
  568. local blastwave = Instance.new("Part",Torso)
  569. blastwave.CFrame = Torso.CFrame
  570. blastwave.Anchored = true
  571. blastwave.Material = "Neon"
  572. blastwave.CanCollide = false
  573. blastwave.Shape = "Ball"
  574. blastwave.Size = Vector3.new(3,3,3)
  575.  
  576. for i = 1, 20 do
  577. blastwave.Size = blastwave.Size + Vector3.new(2,2,2)
  578. blastwave.Transparency = blastwave.Transparency + 0.05
  579. Swait()
  580. end
  581.  
  582. Sick.SoundId = "rbxassetid://417312039"
  583. Sick:Play()
  584.  
  585. local SG = IT("ScreenGui",PlayerGui)
  586. framee = Instance.new("Frame")
  587. framee.Parent = SG
  588. framee.Position = UDim2.new(0, 8, 0, -500)
  589. framee.Size = UDim2.new(100000000,10000000,10000000,10000000)
  590. framee.BackgroundColor3 = BrickColor.new("White").Color
  591. framee.BackgroundTransparency = 0
  592.  
  593. coroutine.wrap(function()
  594. wait(.2)
  595. for i = 1, 40 do
  596. Humanoid.CameraOffset = Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-0,0))
  597. framee.BackgroundTransparency = framee.BackgroundTransparency + 0.025
  598. Swait()
  599. end
  600. Humanoid.CameraOffset = Vector3.new(0,0,0)
  601. framee:Destroy()
  602. SG:Destroy()
  603. end)()
  604.  
  605. ScepterWeld.Parent = nil
  606.  
  607. SecondForm = true
  608. Attack = false
  609. Rooted = false
  610. end
  611.  
  612. function Blink()
  613. for i = 0,1,0.1 do
  614. wait()
  615. Eyo.Mesh.Scale = Eyo.Mesh.Scale:lerp(VT(1,0,1),i)
  616. end
  617.  
  618. for i = 0,1,0.1 do
  619. wait()
  620. Eyo.Mesh.Scale = Eyo.Mesh.Scale:lerp(VT(0.7,0.7,0.7),i)
  621. end
  622. end
  623.  
  624. --// BINDING FUNCTIONS TO KEY --\\
  625.  
  626. game:GetService("UserInputService").InputBegan:Connect(function(Input,GameProccesed)
  627. local Key = Input.KeyCode
  628. if not GameProccesed and not Attack then
  629. if Key == Enum.KeyCode.F then
  630. Transform()
  631. end
  632. end
  633. end)
  634.  
  635. --// WRAPPING THE WHOLE SCRIPT UP --\\
  636. OrgnC0 = Neck.C0
  637.  
  638. local ToDelet = {}
  639. local ANIM
  640.  
  641. FACE = Head:WaitForChild('face')
  642. local BlinkLoop = 0
  643.  
  644. while Swait() do
  645. if SecondForm == true then
  646. Humanoid.HipHeight = 2
  647. TrsoLV = Torso.CFrame.lookVector
  648.  
  649. local _, Point = workspace:FindPartOnRay(Ray.new(Head.CFrame.p, Mouse.Hit.lookVector), workspace, false, true)
  650. local Dist = (Head.CFrame.p - Point).Magnitude
  651. local Diff = Head.CFrame.Y - Point.Y
  652. local _, Point2 = workspace:FindPartOnRay(Ray.new(LeftArm.CFrame.p, Mouse.Hit.lookVector), workspace, false, true)
  653. local Dist2 = (LeftArm.CFrame.p - Point).Magnitude
  654. local Diff2 = LeftArm.CFrame.Y - Point.Y
  655.  
  656. Neck.C0 = Neck.C0:lerp(OrgnC0*CFrame.Angles((math.tan(Diff / Dist) * 1), 0, (((Head.CFrame.p - Point).Unit):Cross(Torso.CFrame.LookVector)).Y * 1), .1)
  657. end
  658. SINE = SINE + CHANGE
  659.  
  660. RootJoint.Parent,Neck.Parent,RightShoulder.Parent,LeftShoulder.Parent,RightHip.Parent,LeftHip.Parent = JointService,JointService,JointService,JointService,JointService,JointService
  661.  
  662. Humanoid.PlatformStand = false
  663. for i,v in pairs(Humanoid:GetPlayingAnimationTracks()) do
  664. v:Stop()
  665. end
  666.  
  667. RootPart.Parent = Character
  668.  
  669. if not Character:FindFirstChildOfClass("Humanoid") then
  670. Humanoid = IT("Humanoid",Character)
  671. end
  672.  
  673. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).Magnitude
  674. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  675. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  676.  
  677. if TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  678. ANIM = "Walking"
  679. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  680. ANIM = "Idle"
  681. end
  682.  
  683. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  684. ANIM = "Jump"
  685. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  686. ANIM = "Fall"
  687. end
  688.  
  689. if ANIM ~= "Fall" then
  690. Neck.C0 = Neck.C0:lerp(CF(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.4 / Animation_Speed)
  691. Neck.C1 = Neck.C1:lerp(CF(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.4 / Animation_Speed)
  692. end
  693.  
  694. if Attack == false and SecondForm == true then
  695. BlinkLoop = BlinkLoop + 2
  696. if BlinkLoop >= 500 then
  697. BlinkLoop = 0
  698. Blink()
  699. end
  700. Scepter.Anchored = true
  701. Scepter.CFrame = Clerp(Scepter.CFrame,Torso.CFrame * CF(0.2,1.5 + 0.15 * SIN(SINE / 12),4) * ANGLES(RAD(0), RAD(15), RAD(10)),0.04)
  702.  
  703. RootJoint.C0 = RootJoint.C0:lerp(CF(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.4 / Animation_Speed)
  704. RootJoint.C1 = RootJoint.C1:lerp(CF(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.4 / Animation_Speed)
  705.  
  706. RightShoulder.C0 = RightShoulder.C0:lerp(CF(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), 0.4 / Animation_Speed)
  707. RightShoulder.C1 = RightShoulder.C1:lerp(CF(-0.591520309, 0.532794952, 0.0057849884, 0.939692557, -1.03502256e-08, 0.342020005, -0.33682397, 0.17364797, 0.925416529, -0.0593911, -0.984807789, 0.163175732), 0.4 / Animation_Speed)
  708.  
  709. LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), 0.4 / Animation_Speed)
  710. LeftShoulder.C1 = LeftShoulder.C1:lerp(CF(0.5, 0.499998093, -4.76837158e-07, 0.906307817, 0, -0.422618181, 0.416197658, 0.173648149, 0.892538965, 0.0733868629, -0.98480773, 0.157378674), 0.4 / Animation_Speed)
  711.  
  712. RightHip.C0 = RightHip.C0:lerp(CF(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), 0.4 / Animation_Speed)
  713. RightHip.C1 = RightHip.C1:lerp(CF(0.5, 0.512356758, 0.202178955, 0, 0, 1, 0.258819044, 0.965925813, 0, -0.965925813, 0.258819044, 0), 0.4 / Animation_Speed)
  714.  
  715. LeftHip.C0 = LeftHip.C0:lerp(CF(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), 0.4 / Animation_Speed)
  716. LeftHip.C1 = LeftHip.C1:lerp(CF(-0.490476608, 1.1087842, 0, 0, 0.087155737, -0.99619472, 0, 0.99619472, 0.087155737, 1, 0, 0), 0.4 / Animation_Speed)
  717. end
  718.  
  719. if Attack == false and SecondForm == false then
  720. if ANIM == "Idle" then
  721.  
  722. RootJoint.C0 = RootJoint.C0:lerp(CF(0, 0 + 0.05 * COS(SINE / 24), 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.4 / Animation_Speed)
  723. RootJoint.C1 = RootJoint.C1:lerp(CF(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.4 / Animation_Speed)
  724.  
  725. RightShoulder.C0 = RightShoulder.C0:lerp(CF(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), 0.4 / Animation_Speed)
  726. RightShoulder.C1 = RightShoulder.C1:lerp(CF(-0.5, 0.49999997, 0, 0, 0, 0.99999994, -1, -4.37113883e-08, 0, 4.37113883e-08, -1, 0), 0.4 / Animation_Speed)
  727.  
  728. LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), 0.4 / Animation_Speed)
  729. LeftShoulder.C1 = LeftShoulder.C1:lerp(CF(0.5, 0.5, 0, 0, -0.0871557593, -0.99619472, 0, 0.99619472, -0.0871557593, 1, 0, 0), 0.4 / Animation_Speed)
  730.  
  731. RightHip.C0 = RightHip.C0:lerp(CF(1, -1 - 0.05 * COS(SINE / 24), 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), 0.4 / Animation_Speed)
  732. RightHip.C1 = RightHip.C1:lerp(CF(0.5, 1, 0, -0.173648179, 0, 0.98480773, 0, 1, 0, -0.98480773, 0, -0.173648179), 0.4 / Animation_Speed)
  733.  
  734. LeftHip.C0 = LeftHip.C0:lerp(CF(-1, -1 - 0.05 * COS(SINE / 24), 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), 0.4 / Animation_Speed)
  735. LeftHip.C1 = LeftHip.C1:lerp(CF(-0.5, 1, 0, -0.17364797, 0, -0.984807789, 0, 1, 0, 0.984807789, 0, -0.17364797), 0.4 / Animation_Speed)
  736.  
  737. elseif ANIM == "Walking" then
  738.  
  739. RootJoint.C0 = RootJoint.C0:lerp(CF(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.4 / Animation_Speed)
  740. RootJoint.C1 = RootJoint.C1:lerp(CF(0, 0 + 0.1 * COS(SINE / 3), 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.4 / Animation_Speed)
  741.  
  742. RightShoulder.C0 = RightShoulder.C0:lerp(CF(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), 0.4 / Animation_Speed)
  743. RightShoulder.C1 = RightShoulder.C1:lerp(CF(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0) * ANGLES(RAD(0),RAD(0),RAD(0) + 0.3 * COS(SINE / 5)), 0.4 / Animation_Speed)
  744.  
  745. LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), 0.4 / Animation_Speed)
  746. LeftShoulder.C1 = LeftShoulder.C1:lerp(CF(-0.0389181972, 0.663122237, -0.22069484, -0.129409432, 0.482962936, -0.866025448, -0.388469696, 0.778864324, 0.492403865, 0.912329137, 0.400146306, 0.0868240893), 0.4 / Animation_Speed)
  747.  
  748. RightHip.C0 = RightHip.C0:lerp(CF(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), 0.4 / Animation_Speed)
  749. RightHip.C1 = RightHip.C1:lerp(CF(0.5, 1 + 0.1 * COS(SINE / 5), 0 + 0.1 * COS(SINE / 7), 0, 0, 1, 0, 1, -0, -1, 0, 0) * ANGLES(RAD(0),RAD(0),RAD(0) + 0.3 * COS(SINE / 5)), 0.4 / Animation_Speed)
  750.  
  751. LeftHip.C0 = LeftHip.C0:lerp(CF(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), 0.4 / Animation_Speed)
  752. LeftHip.C1 = LeftHip.C1:lerp(CF(-0.5, 1 + 0.1 * COS(SINE / 5), 0 + 0.1 * COS(SINE / 7), 0, 0, -1, 0, 1, 0, 1, 0, 0) * ANGLES(RAD(0),RAD(0),RAD(0) + 0.3 * COS(SINE / 5)), 0.4 / Animation_Speed)
  753.  
  754. elseif ANIM == "Jump" then
  755.  
  756. Neck.C0 = Neck.C0:lerp(CF(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.4 / Animation_Speed)
  757. Neck.C1 = Neck.C1:lerp(CF(0, -0.5, 0, -1, 0, 0, 0, 0.5, 0.866025388, 0, 0.866025388, -0.5), 0.4 / Animation_Speed)
  758.  
  759. RightShoulder.C0 = RightShoulder.C0:lerp(CF(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), 0.4 / Animation_Speed)
  760. RightShoulder.C1 = RightShoulder.C1:lerp(CF(-0.499996185, 0.5, 0, 0, 0.342020124, 0.939692557, 0, 0.939692557, -0.342020124, -1, 0, 0), 0.4 / Animation_Speed)
  761.  
  762. LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), 0.4 / Animation_Speed)
  763. LeftShoulder.C1 = LeftShoulder.C1:lerp(CF(0.5, 0.500001907, 0, 0, -0.342020124, -0.939692557, 0, 0.939692557, -0.342020124, 1, 0, 0), 0.4 / Animation_Speed)
  764.  
  765. LeftHip.C0 = LeftHip.C0:lerp(CF(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), 0.4 / Animation_Speed)
  766. LeftHip.C1 = LeftHip.C1:lerp(CF(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), 0.4 / Animation_Speed)
  767.  
  768. RightHip.C0 = RightHip.C0:lerp(CF(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), 0.4 / Animation_Speed)
  769. RightHip.C1 = RightHip.C1:lerp(CF(0.5, 0.596400023, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0), 0.4 / Animation_Speed)
  770.  
  771. elseif ANIM == "Fall" then
  772.  
  773. Neck.C0 = Neck.C0:lerp(CF(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.4 / Animation_Speed)
  774. Neck.C1 = Neck.C1:lerp(CF(0, -0.500000477, 0, -1, 0, 0, 0, -0.17364797, 0.98480773, 0, 0.98480773, 0.17364797), 0.4 / Animation_Speed)
  775.  
  776. RootJoint.C0 = RootJoint.C0:lerp(CF(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.4 / Animation_Speed)
  777. RootJoint.C1 = RootJoint.C1:lerp(CF(0, 0, 0, -1, 0, 0, 0, -0.17364797, 0.984807789, 0, 0.984807789, 0.17364797), 0.4 / Animation_Speed)
  778.  
  779. RightShoulder.C0 = RightShoulder.C0:lerp(CF(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), 0.4 / Animation_Speed)
  780. RightShoulder.C1 = RightShoulder.C1:lerp(CF(-0.500003815, 0.499992371, -9.53674316e-07, 0.265584558, 0.699533045, 0.663413882, -0.294604897, 0.714097738, -0.635037303, -0.917972028, -0.0267889053, 0.395739257) * ANGLES(RAD(0),RAD(0) + 0.2 * SIN(SINE / 12),RAD(0)), 0.4 / Animation_Speed)
  781.  
  782. LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), 0.4 / Animation_Speed)
  783. LeftShoulder.C1 = LeftShoulder.C1:lerp(CF(0.499996185, 0.499998093, 3.81469727e-06, 0.14640367, -0.678518295, -0.719846249, 0.183521718, 0.733684659, -0.65423739, 0.972052276, -0.0363246948, 0.231937021) * ANGLES(RAD(0),RAD(0) + 0.2 * SIN(-SINE / 12),RAD(0)), 0.4 / Animation_Speed)
  784.  
  785. RightHip.C0 = RightHip.C0:lerp(CF(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), 0.4 / Animation_Speed)
  786. RightHip.C1 = RightHip.C1:lerp(CF(0.5, 0.282579422, 0.572610855, 0, 0, 1, 0.342020035, 0.939692438, 0, -0.939692438, 0.342020035, 0), 0.4 / Animation_Speed)
  787.  
  788. LeftHip.C0 = LeftHip.C0:lerp(CF(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), 0.4 / Animation_Speed)
  789. LeftHip.C1 = LeftHip.C1:lerp(CF(-0.5, 1.00000048, 1.90734863e-06, 0, 0, -1, -0.17364879, 0.984807611, 0, 0.984807611, 0.17364879, 0), 0.4 / Animation_Speed)
  790. end
  791. end
  792.  
  793. Head.BrickColor = BRICKC("Really black")
  794. RightArm.BrickColor = BRICKC("Really black")
  795. LeftArm.BrickColor = BRICKC("Really black")
  796. RightLeg.BrickColor = BRICKC("Really black")
  797. LeftLeg.BrickColor = BRICKC("Really black")
  798. Torso.BrickColor = BRICKC("Really black")
  799.  
  800. for i,v in pairs(Character:GetDescendants()) do
  801. if v:IsA("Accessory") then
  802. table.insert(ToDelet,v)
  803. end
  804. if v:IsA("Shirt") and v.Name ~= "Cloth" then
  805. table.insert(ToDelet,v)
  806. end
  807. if v:IsA("Pants") and v.Name ~= "Cloth" then
  808. table.insert(ToDelet,v)
  809. end
  810. if v:IsA("ShirtGraphic") then
  811. table.insert(ToDelet,v)
  812. end
  813. if v:IsA("BodyColors") then
  814. table.insert(ToDelet,v)
  815. end
  816. if v.Name == "face" then
  817. table.insert(ToDelet,v)
  818. end
  819. end
  820.  
  821. if Head:FindFirstChildOfClass("SpecialMesh") then
  822. Head:FindFirstChildOfClass("SpecialMesh").MeshType = Enum.MeshType.Head
  823. else
  824. MESH:Clone().Parent = Head
  825. end
  826.  
  827. for i = 1,#ToDelet do
  828. if ToDelet[i] then
  829. ToDelet[i].Parent = nil
  830. end
  831. end
  832.  
  833. if Rooted == true then
  834. Humanoid.WalkSpeed = 0
  835. Humanoid.JumpPower = 0
  836. else
  837. Humanoid.WalkSpeed = 10
  838. Humanoid.JumpPower = 50
  839. end
  840. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement