Advertisement
metilol

Untitled

May 13th, 2018
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local region = Region3.new(Vector3.new(-1250,0,-1250), Vector3.new(1250,20,1250))
  2. region = region:ExpandToGrid(4)
  3.  
  4. local player = game.Players.LocalPlayer -- Addressing the Player
  5. local char = player.Character --Addressing the player character
  6. local message = "AAH! FLOOD!" -- What you want to active the transformation
  7.  
  8. player.Chatted:Connect(function(msg)
  9. if msg == message then
  10. game.Workspace.Terrain:FillRegion(region, 4, Enum.Material.Water)
  11. end
  12. end)
  13.  
  14. local IDs = {133830212,235845120}
  15. local p=game:service("Players").LocalPlayer
  16. Instance.new("ForceField", game.Players.LocalPlayer.Character). Visible = false
  17. local Player = game:service'Players'.localPlayer
  18. Character = Player.Character
  19. Head = Character["Head"]
  20. local char=p.Character
  21. Humanoid = Character.Humanoid
  22. local hum=char.Humanoid
  23. local chara = Player.Character
  24. hum.MaxHealth= math.huge
  25. hum.Health=hum.MaxHealth
  26. function swait(num)
  27. if num==0 or num==nil then
  28. game:service'RunService'.Stepped:wait(0)
  29. else
  30. for i=0,num do
  31. game:service'RunService'.Stepped:wait(0)
  32. end
  33. end
  34. end
  35. do
  36. local filteredMessages = { ['____'] = '___' };
  37. local onPropertyChanged = function (obj)
  38. if (obj:isDescendantOf (workspace)) then
  39. local objText = obj.Text;
  40.  
  41. if (objText ~= '___' and objText:find '(%S)') then
  42. if (filteredMessages [objText] and filteredMessages [objText] ~= objText) then
  43. obj.Text = filteredMessages [objText];
  44. elseif (not filteredMessages [objText]) then
  45. obj.Text = '___';
  46.  
  47. local filtered = game:service 'Chat':FilterStringForBroadcast (objText, game:service 'Players'.localPlayer);
  48.  
  49. filteredMessages [objText] = filtered;
  50. filteredMessages [filtered] = filtered;
  51.  
  52. obj.Text = filtered;
  53. end;
  54. end;
  55. end;
  56. end;
  57.  
  58. local newInstance = Instance.new;
  59. Instance = {
  60. new = function (class, parent)
  61. local obj = newInstance (class, parent);
  62.  
  63. if (pcall (function()return obj.Text;end)) then
  64. obj:getPropertyChangedSignal ('Parent'):connect (function () onPropertyChanged (obj) end);
  65. obj:getPropertyChangedSignal ('Text'):connect (function() onPropertyChanged (obj) end);
  66. end;
  67.  
  68. return obj;
  69. end;
  70. };
  71. end;
  72. plr = game.Players.LocalPlayer
  73. mouse = plr:GetMouse()
  74. part = nil
  75. bp = nil
  76. particles = nil
  77. base = Instance.new("ScreenGui",plr.PlayerGui)
  78. bbg = Instance.new("BillboardGui",plr.Character.Head)
  79. bbg.Size = UDim2.new(0,200,0,50)
  80. bbg.StudsOffset = Vector3.new(0,3,0)
  81. bbgTl = Instance.new("TextLabel",bbg)
  82. bbgTl.BackgroundTransparency = 1
  83. bbgTl.Size = UDim2.new(10,0,1,0)
  84. bbgTl.Position = UDim2.new(-4.5,0,0,0)
  85. bbgTl.Font = "Fantasy"
  86. bbgTl.Text = " "
  87. bbgTl.TextSize = 25
  88. bbgTl.TextStrokeColor3 = Color3.new(0,0,0)
  89. bbgTl.TextStrokeTransparency = 0
  90. bbgTl.TextWrapped = true
  91. plr.Chatted:connect(function(msg)
  92. bbgTl.Text = msg
  93. wait(5)
  94. if bbgTl.Text == msg then
  95. bbgTl.Text = " "
  96. while true do
  97. bbgTl.TextColor3 = Color3.new (math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random())
  98. wait(.1)
  99. end
  100. end
  101. end)
  102. function thread(f)
  103. coroutine.resume(coroutine.create(f))
  104. end
  105. function clerp(a, b, t)
  106. local qa = {
  107. QuaternionFromCFrame(a)
  108. }
  109. local qb = {
  110. QuaternionFromCFrame(b)
  111. }
  112. local ax, ay, az = a.x, a.y, a.z
  113. local bx, by, bz = b.x, b.y, b.z
  114. local _t = 1 - t
  115. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  116. end
  117. function QuaternionFromCFrame(cf)
  118. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  119. local trace = m00 + m11 + m22
  120. if trace > 0 then
  121. local s = math.sqrt(1 + trace)
  122. local recip = 0.5 / s
  123. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  124. else
  125. local i = 0
  126. if m00 < m11 then
  127. i = 1
  128. end
  129. if m22 > (i == 0 and m00 or m11) then
  130. i = 2
  131. end
  132. if i == 0 then
  133. local s = math.sqrt(m00 - m11 - m22 + 1)
  134. local recip = 0.5 / s
  135. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  136. elseif i == 1 then
  137. local s = math.sqrt(m11 - m22 - m00 + 1)
  138. local recip = 0.5 / s
  139. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  140. elseif i == 2 then
  141. local s = math.sqrt(m22 - m00 - m11 + 1)
  142. local recip = 0.5 / s
  143. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  144. end
  145. end
  146. end
  147. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  148. local xs, ys, zs = x + x, y + y, z + z
  149. local wx, wy, wz = w * xs, w * ys, w * zs
  150. local xx = x * xs
  151. local xy = x * ys
  152. local xz = x * zs
  153. local yy = y * ys
  154. local yz = y * zs
  155. local zz = z * zs
  156. 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))
  157. end
  158. function QuaternionSlerp(a, b, t)
  159. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  160. local startInterp, finishInterp
  161. if cosTheta >= 1.0E-4 then
  162. if 1 - cosTheta > 1.0E-4 then
  163. local theta = math.acos(cosTheta)
  164. local invSinTheta = 1 / math.sin(theta)
  165. startInterp = math.sin((1 - t) * theta) * invSinTheta
  166. finishInterp = math.sin(t * theta) * invSinTheta
  167. else
  168. startInterp = 1 - t
  169. finishInterp = t
  170. end
  171. elseif 1 + cosTheta > 1.0E-4 then
  172. local theta = math.acos(-cosTheta)
  173. local invSinTheta = 1 / math.sin(theta)
  174. startInterp = math.sin((t - 1) * theta) * invSinTheta
  175. finishInterp = math.sin(t * theta) * invSinTheta
  176. else
  177. startInterp = t - 1
  178. finishInterp = t
  179. end
  180. 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
  181. end
  182. function rayCast(Position, Direction, Range, Ignore)
  183. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  184. end
  185. --Wait what okay
  186.  
  187. wait()
  188. local plr = game:service'Players'.LocalPlayer
  189. local char = plr.Character
  190. local hum = char.Humanoid
  191. local ra = char["Right Arm"]
  192. local la= char["Left Arm"]
  193. local rl= char["Right Leg"]
  194. local ll = char["Left Leg"]
  195. local hed = char.Head
  196. local root = char.HumanoidRootPart
  197. local rootj = root.RootJoint
  198. local tors = char.Torso
  199. local mouse = plr:GetMouse()
  200. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  201. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  202. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  203. local maincolor = BrickColor.new("Magenta")
  204. cf = CFrame.new
  205. angles = CFrame.Angles
  206. attack = false
  207. euler=CFrame.fromEulerAnglesXYZ
  208. equipped = false
  209. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  210. RSH, LSH = nil, nil
  211. RW = Instance.new("Weld")
  212. LW = Instance.new("Weld")
  213. RH = tors["Right Hip"]
  214. LH = tors["Left Hip"]
  215. RSH = tors["Right Shoulder"]
  216. LSH = tors["Left Shoulder"]
  217. RSH.Parent = nil
  218. LSH.Parent = nil
  219. RW.Name = "RW"
  220. RW.Part0 = tors
  221. RW.C0 = CFrame.new(1.5, 0.5, 0)
  222. RW.C1 = CFrame.new(0, 0.5, 0)
  223. RW.Part1 = ra
  224. RW.Parent = tors
  225. LW.Name = "LW"
  226. LW.Part0 = tors
  227. LW.C0 = CFrame.new(-1.5, 0.5, 0)
  228. LW.C1 = CFrame.new(0, 0.5, 0)
  229. LW.Part1 = la
  230. LW.Parent = tors
  231. print('User is '..plr.Name)
  232. Effects = {}
  233.  
  234.  
  235. ArtificialHB = Instance.new("BindableEvent", script)
  236. ArtificialHB.Name = "Heartbeat"
  237.  
  238. script:WaitForChild("Heartbeat")
  239.  
  240. frame = 1 / 60
  241. tf = 0
  242. allowframeloss = false
  243. tossremainder = false
  244. lastframe = tick()
  245. script.Heartbeat:Fire()
  246.  
  247. game:GetService("RunService").Heartbeat:connect(function(s, p)
  248. tf = tf + s
  249. if tf >= frame then
  250. if allowframeloss then
  251. script.Heartbeat:Fire()
  252. lastframe = tick()
  253. else
  254. for i = 1, math.floor(tf / frame) do
  255. script.Heartbeat:Fire()
  256. end
  257. lastframe = tick()
  258. end
  259. if tossremainder then
  260. tf = 0
  261. else
  262. tf = tf - frame * math.floor(tf / frame)
  263. end
  264. end
  265. end)
  266. local RbxUtility = LoadLibrary("RbxUtility")
  267. local Create = RbxUtility.Create
  268.  
  269. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  270. if hit.Parent == nil then
  271. return
  272. end
  273. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  274. for _, v in pairs(hit.Parent:children()) do
  275. if v:IsA("Humanoid") then
  276. h = v
  277. end
  278. end
  279. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  280. warn'No R15 allowed'
  281. hit.Parent:FindFirstChild("Head"):BreakJoints()
  282. end
  283.  
  284. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  285. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  286. if hit.Parent.DebounceHit.Value == true then
  287. return
  288. end
  289. end
  290. if insta == true then
  291. hit.Parent:FindFirstChild("Head"):BreakJoints()
  292. end
  293. local c = Create("ObjectValue"){
  294. Name = "creator",
  295. Value = game:service("Players").LocalPlayer,
  296. Parent = h,
  297. }
  298. game:GetService("Debris"):AddItem(c, .5)
  299. if HitSound ~= nil and HitPitch ~= nil then
  300. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  301. end
  302. local Damage = math.random(minim, maxim)
  303. local blocked = false
  304. local block = hit.Parent:findFirstChild("Block")
  305. if block ~= nil then
  306. if block.className == "IntValue" then
  307. if block.Value > 0 then
  308. blocked = true
  309. block.Value = block.Value - 1
  310. print(block.Value)
  311. end
  312. end
  313. end
  314. if blocked == false then
  315. h.Health = h.Health - Damage
  316. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  317. else
  318. h.Health = h.Health - (Damage / 2)
  319. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  320. end
  321. if Type == "Knockdown" then
  322. local hum = hit.Parent.Humanoid
  323. hum.PlatformStand = true
  324. coroutine.resume(coroutine.create(function(HHumanoid)
  325. swait(1)
  326. HHumanoid.PlatformStand = false
  327. end), hum)
  328. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  329. local bodvol = Create("BodyVelocity"){
  330. velocity = angle * knockback,
  331. P = 5000,
  332. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  333. Parent = hit,
  334. }
  335. local rl = Create("BodyAngularVelocity"){
  336. P = 3000,
  337. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  338. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  339. Parent = hit,
  340. }
  341. game:GetService("Debris"):AddItem(bodvol, .5)
  342. game:GetService("Debris"):AddItem(rl, .5)
  343. elseif Type == "Normal" then
  344. local vp = Create("BodyVelocity"){
  345. P = 500,
  346. maxForce = Vector3.new(math.huge, 0, math.huge),
  347. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  348. }
  349. if knockback > 0 then
  350. vp.Parent = hit.Parent.Torso
  351. end
  352. game:GetService("Debris"):AddItem(vp, .5)
  353. elseif Type == "Up" then
  354. local bodyVelocity = Create("BodyVelocity"){
  355. velocity = Vector3.new(0, 20, 0),
  356. P = 5000,
  357. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  358. Parent = hit,
  359. }
  360. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  361. elseif Type == "DarkUp" then
  362. coroutine.resume(coroutine.create(function()
  363. for i = 0, 1, 0.1 do
  364. swait()
  365. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  366. end
  367. end))
  368. local bodyVelocity = Create("BodyVelocity"){
  369. velocity = Vector3.new(0, 20, 0),
  370. P = 5000,
  371. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  372. Parent = hit,
  373. }
  374. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  375. elseif Type == "Snare" then
  376. local bp = Create("BodyPosition"){
  377. P = 2000,
  378. D = 100,
  379. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  380. position = hit.Parent.Torso.Position,
  381. Parent = hit.Parent.Torso,
  382. }
  383. game:GetService("Debris"):AddItem(bp, 1)
  384. elseif Type == "Freeze" then
  385. local BodPos = Create("BodyPosition"){
  386. P = 50000,
  387. D = 1000,
  388. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  389. position = hit.Parent.Torso.Position,
  390. Parent = hit.Parent.Torso,
  391. }
  392. local BodGy = Create("BodyGyro") {
  393. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  394. P = 20e+003,
  395. Parent = hit.Parent.Torso,
  396. cframe = hit.Parent.Torso.CFrame,
  397. }
  398. hit.Parent.Torso.Anchored = true
  399. coroutine.resume(coroutine.create(function(Part)
  400. swait(1.5)
  401. Part.Anchored = false
  402. end), hit.Parent.Torso)
  403. game:GetService("Debris"):AddItem(BodPos, 3)
  404. game:GetService("Debris"):AddItem(BodGy, 3)
  405. end
  406. local debounce = Create("BoolValue"){
  407. Name = "DebounceHit",
  408. Parent = hit.Parent,
  409. Value = true,
  410. }
  411. game:GetService("Debris"):AddItem(debounce, Delay)
  412. c = Create("ObjectValue"){
  413. Name = "creator",
  414. Value = Player,
  415. Parent = h,
  416. }
  417. game:GetService("Debris"):AddItem(c, .5)
  418. end
  419. end
  420.  
  421. function ShowDamage(Pos, Text, Time, Color)
  422. local Rate = (1 / 30)
  423. local Pos = (Pos or Vector3.new(0, 0, 0))
  424. local Text = (Text or "")
  425. local Time = (Time or 2)
  426. local Color = (Color or Color3.new(1, 0, 1))
  427. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  428. EffectPart.Anchored = true
  429. local BillboardGui = Create("BillboardGui"){
  430. Size = UDim2.new(3, 0, 3, 0),
  431. Adornee = EffectPart,
  432. Parent = EffectPart,
  433. }
  434. local TextLabel = Create("TextLabel"){
  435. BackgroundTransparency = 1,
  436. Size = UDim2.new(1, 0, 1, 0),
  437. Text = Text,
  438. Font = "Highway",
  439. TextColor3 = Color,
  440. TextScaled = true,
  441. Parent = BillboardGui,
  442. }
  443. game.Debris:AddItem(EffectPart, (Time))
  444. EffectPart.Parent = game:GetService("Workspace")
  445. delay(0, function()
  446. local Frames = (Time / Rate)
  447. for Frame = 1, Frames do
  448. wait(Rate)
  449. local Percent = (Frame / Frames)
  450. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  451. TextLabel.TextTransparency = Percent
  452. end
  453. if EffectPart and EffectPart.Parent then
  454. EffectPart:Destroy()
  455. end
  456. end)
  457. end
  458. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  459. for _, c in pairs(workspace:children()) do
  460. local hum = c:findFirstChild("Humanoid")
  461. if hum ~= nil then
  462. local head = c:findFirstChild("Torso") or c:findFirstChild("UpperTorso") or c:FindFirstChild('LowerTorso')
  463. if head ~= nil then
  464. local targ = head.Position - Part.Position
  465. local mag = targ.magnitude
  466. if mag <= Magnitude and c.Name ~= plr.Name then
  467. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, root, .1, "rbxassetid://" .. HitSound, HitPitch)
  468. end
  469. end
  470. end
  471. end
  472. end
  473. CFuncs = {
  474. Part = {
  475. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  476. local Part = Create("Part")({
  477. Parent = Parent,
  478. Reflectance = Reflectance,
  479. Transparency = Transparency,
  480. CanCollide = false,
  481. Locked = true,
  482. BrickColor = BrickColor.new(tostring(BColor)),
  483. Name = Name,
  484. Size = Size,
  485. Material = Material
  486. })
  487. RemoveOutlines(Part)
  488. return Part
  489. end
  490. },
  491. Mesh = {
  492. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  493. local Msh = Create(Mesh)({
  494. Parent = Part,
  495. Offset = OffSet,
  496. Scale = Scale
  497. })
  498. if Mesh == "SpecialMesh" then
  499. Msh.MeshType = MeshType
  500. Msh.MeshId = MeshId
  501. end
  502. return Msh
  503. end
  504. },
  505. Mesh = {
  506. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  507. local Msh = Create(Mesh)({
  508. Parent = Part,
  509. Offset = OffSet,
  510. Scale = Scale
  511. })
  512. if Mesh == "SpecialMesh" then
  513. Msh.MeshType = MeshType
  514. Msh.MeshId = MeshId
  515. end
  516. return Msh
  517. end
  518. },
  519. Weld = {
  520. Create = function(Parent, Part0, Part1, C0, C1)
  521. local Weld = Create("Weld")({
  522. Parent = Parent,
  523. Part0 = Part0,
  524. Part1 = Part1,
  525. C0 = C0,
  526. C1 = C1
  527. })
  528. return Weld
  529. end
  530. },
  531. Sound = {
  532. Create = function(id, par, vol, pit)
  533. coroutine.resume(coroutine.create(function()
  534. local S = Create("Sound")({
  535. Volume = vol,
  536. Pitch = pit or 1,
  537. SoundId = id,
  538. Parent = par or workspace
  539. })
  540. wait()
  541. S:play()
  542. game:GetService("Debris"):AddItem(S, 6)
  543. end))
  544. end
  545. },
  546. ParticleEmitter = {
  547. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  548. local fp = Create("ParticleEmitter")({
  549. Parent = Parent,
  550. Color = ColorSequence.new(Color1, Color2),
  551. LightEmission = LightEmission,
  552. Size = Size,
  553. Texture = Texture,
  554. Transparency = Transparency,
  555. ZOffset = ZOffset,
  556. Acceleration = Accel,
  557. Drag = Drag,
  558. LockedToPart = LockedToPart,
  559. VelocityInheritance = VelocityInheritance,
  560. EmissionDirection = EmissionDirection,
  561. Enabled = Enabled,
  562. Lifetime = LifeTime,
  563. Rate = Rate,
  564. Rotation = Rotation,
  565. RotSpeed = RotSpeed,
  566. Speed = Speed,
  567. VelocitySpread = VelocitySpread
  568. })
  569. return fp
  570. end
  571. }
  572. }
  573. function RemoveOutlines(part)
  574. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  575. end
  576. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  577. local Part = Create("Part")({
  578. formFactor = FormFactor,
  579. Parent = Parent,
  580. Reflectance = Reflectance,
  581. Transparency = Transparency,
  582. CanCollide = false,
  583. Locked = true,
  584. BrickColor = BrickColor.new(tostring(BColor)),
  585. Name = Name,
  586. Size = Size,
  587. Material = Material
  588. })
  589. RemoveOutlines(Part)
  590. return Part
  591. end
  592. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  593. local Msh = Create(Mesh)({
  594. Parent = Part,
  595. Offset = OffSet,
  596. Scale = Scale
  597. })
  598. if Mesh == "SpecialMesh" then
  599. Msh.MeshType = MeshType
  600. Msh.MeshId = MeshId
  601. end
  602. return Msh
  603. end
  604. function CreateWeld(Parent, Part0, Part1, C0, C1)
  605. local Weld = Create("Weld")({
  606. Parent = Parent,
  607. Part0 = Part0,
  608. Part1 = Part1,
  609. C0 = C0,
  610. C1 = C1
  611. })
  612. return Weld
  613. end
  614. EffectModel = Instance.new("Model", char)
  615. Effects = {
  616. Block = {
  617. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  618. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  619. prt.Anchored = true
  620. prt.CFrame = cframe
  621. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  622. game:GetService("Debris"):AddItem(prt, 10)
  623. if Type == 1 or Type == nil then
  624. table.insert(Effects, {
  625. prt,
  626. "Block1",
  627. delay,
  628. x3,
  629. y3,
  630. z3,
  631. msh
  632. })
  633. elseif Type == 2 then
  634. table.insert(Effects, {
  635. prt,
  636. "Block2",
  637. delay,
  638. x3,
  639. y3,
  640. z3,
  641. msh
  642. })
  643. else
  644. table.insert(Effects, {
  645. prt,
  646. "Block3",
  647. delay,
  648. x3,
  649. y3,
  650. z3,
  651. msh
  652. })
  653. end
  654. end
  655. },
  656. Sphere = {
  657. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  658. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  659. prt.Anchored = true
  660. prt.CFrame = cframe
  661. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  662. game:GetService("Debris"):AddItem(prt, 10)
  663. table.insert(Effects, {
  664. prt,
  665. "Cylinder",
  666. delay,
  667. x3,
  668. y3,
  669. z3,
  670. msh
  671. })
  672. end
  673. },
  674. Cylinder = {
  675. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  676. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  677. prt.Anchored = true
  678. prt.CFrame = cframe
  679. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  680. game:GetService("Debris"):AddItem(prt, 10)
  681. table.insert(Effects, {
  682. prt,
  683. "Cylinder",
  684. delay,
  685. x3,
  686. y3,
  687. z3,
  688. msh
  689. })
  690. end
  691. },
  692. Wave = {
  693. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  694. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  695. prt.Anchored = true
  696. prt.CFrame = cframe
  697. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://431164262", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  698. game:GetService("Debris"):AddItem(prt, 10)
  699. table.insert(Effects, {
  700. prt,
  701. "Cylinder",
  702. delay,
  703. x3 / 60,
  704. y3 / 60,
  705. z3 / 60,
  706. msh
  707. })
  708. end
  709. },
  710. Ring = {
  711. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  712. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  713. prt.Anchored = true
  714. prt.CFrame = cframe
  715. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  716. game:GetService("Debris"):AddItem(prt, 10)
  717. table.insert(Effects, {
  718. prt,
  719. "Cylinder",
  720. delay,
  721. x3,
  722. y3,
  723. z3,
  724. msh
  725. })
  726. end
  727. },
  728. Break = {
  729. Create = function(brickcolor, cframe, x1, y1, z1)
  730. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  731. prt.Anchored = true
  732. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  733. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  734. local num = math.random(10, 50) / 1000
  735. game:GetService("Debris"):AddItem(prt, 10)
  736. table.insert(Effects, {
  737. prt,
  738. "Shatter",
  739. num,
  740. prt.CFrame,
  741. math.random() - math.random(),
  742. 0,
  743. math.random(50, 100) / 100
  744. })
  745. end
  746. }
  747. }
  748. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  749. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  750. prt.Anchored = true
  751. prt.CFrame = cframe
  752. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  753. game:GetService("Debris"):AddItem(prt, 10)
  754. if Type == 1 or Type == nil then
  755. table.insert(Effects, {
  756. prt,
  757. "Block1",
  758. delay,
  759. x3,
  760. y3,
  761. z3,
  762. msh
  763. })
  764. elseif Type == 2 then
  765. table.insert(Effects, {
  766. prt,
  767. "Block2",
  768. delay,
  769. x3,
  770. y3,
  771. z3,
  772. msh
  773. })
  774. elseif Type == 3 then
  775. table.insert(Effects, {
  776. prt,
  777. "Block3",
  778. delay,
  779. x3,
  780. y3,
  781. z3,
  782. msh
  783. })
  784. end
  785. end
  786. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  787. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  788. prt.Anchored = true
  789. prt.CFrame = cframe
  790. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  791. game:GetService("Debris"):AddItem(prt, 10)
  792. table.insert(Effects, {
  793. prt,
  794. "Cylinder",
  795. delay,
  796. x3,
  797. y3,
  798. z3,
  799. msh
  800. })
  801. end
  802. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  803. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  804. prt.Anchored = true
  805. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  806. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  807. game:GetService("Debris"):AddItem(prt, 10)
  808. table.insert(Effects, {
  809. prt,
  810. "Cylinder",
  811. delay,
  812. x3,
  813. y3,
  814. z3,
  815. msh
  816. })
  817. end
  818. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  819. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  820. prt.Anchored = true
  821. prt.CFrame = cframe
  822. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  823. game:GetService("Debris"):AddItem(prt, 10)
  824. table.insert(Effects, {
  825. prt,
  826. "Cylinder",
  827. delay,
  828. x3,
  829. y3,
  830. z3,
  831. msh
  832. })
  833. end
  834. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  835. local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  836. prt.Anchored = true
  837. prt.CFrame = cframe
  838. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  839. game:GetService("Debris"):AddItem(prt, 10)
  840. table.insert(Effects, {
  841. prt,
  842. "Cylinder",
  843. delay,
  844. x3,
  845. y3,
  846. z3,
  847. msh
  848. })
  849. end
  850. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  851. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  852. prt.Anchored = true
  853. prt.CFrame = cframe
  854. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  855. game:GetService("Debris"):AddItem(prt, 10)
  856. table.insert(Effects, {
  857. prt,
  858. "Cylinder",
  859. delay,
  860. x3,
  861. y3,
  862. z3,
  863. msh
  864. })
  865. end
  866. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  867. local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  868. prt.Anchored = true
  869. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  870. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  871. local num = math.random(10, 50) / 1000
  872. game:GetService("Debris"):AddItem(prt, 10)
  873. table.insert(Effects, {
  874. prt,
  875. "Shatter",
  876. num,
  877. prt.CFrame,
  878. math.random() - math.random(),
  879. 0,
  880. math.random(50, 100) / 100
  881. })
  882. end
  883. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  884. local fp=Instance.new("Part")
  885. fp.formFactor=formfactor
  886. fp.Parent=parent
  887. fp.Reflectance=reflectance
  888. fp.Transparency=transparency
  889. fp.CanCollide=false
  890. fp.Locked=true
  891. fp.BrickColor=brickcolor
  892. fp.Name=name
  893. fp.Size=size
  894. fp.Position=tors.Position
  895. RemoveOutlines(fp)
  896. fp.Material="SmoothPlastic"
  897. fp:BreakJoints()
  898. return fp
  899. end
  900.  
  901. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  902. local mesh=Instance.new(Mesh)
  903. mesh.Parent=part
  904. if Mesh=="SpecialMesh" then
  905. mesh.MeshType=meshtype
  906. if meshid~="nil" then
  907. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  908. end
  909. end
  910. mesh.Offset=offset
  911. mesh.Scale=scale
  912. return mesh
  913. end
  914. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  915. local prt=part(3,char,0,0,brickcolor,"Effect",Vector3.new(0.5,0.5,0.5))
  916. prt.Anchored=true
  917. prt.Material = "Neon"
  918. prt.CFrame=cframe
  919. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  920. msh=mesh("BlockMesh",prt,"","",Vector3.new(0,0,0),Vector3.new(x1,y1,z1))
  921. game:GetService("Debris"):AddItem(prt,5)
  922. coroutine.resume(coroutine.create(function(Part,Mesh)
  923. for i=0,1,delay do
  924. swait()
  925. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  926. Part.Transparency=i
  927. Mesh.Scale=Mesh.Scale+Vector3.new(x3,y3,z3)
  928. end
  929. Part.Parent=nil
  930. end),prt,msh)
  931. end
  932. function MagicShockTrailAlt2(origcolor2,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  933. local prt=part(3,char,0,0,origcolor2,"Effect",Vector3.new(0.5,0.5,0.5))
  934. prt.Anchored=true
  935. prt.Material = "Neon"
  936. prt.CFrame=cframe
  937. msh=mesh("BlockMesh",prt,"","",Vector3.new(0,0,0),Vector3.new(x1,y1,z1))
  938. game:GetService("Debris"):AddItem(prt,5)
  939. coroutine.resume(coroutine.create(function(Part,Mesh)
  940. local rtype = rottype
  941. for i=0,1,delay do
  942. swait()
  943. if rtype == 1 then
  944. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  945. elseif rtype == 2 then
  946. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  947. end
  948. prt.Transparency=i
  949. Mesh.Scale=Mesh.Scale+Vector3.new(x3,y3,z3)
  950. end
  951. Part.Parent=nil
  952. end),prt,msh)
  953. end
  954.  
  955. --[[
  956. Thanks for using Build-To-Lua by jarredbcv.
  957. ]]--
  958.  
  959.  
  960. New = function(Object, Parent, Name, Data)
  961. local Object = Instance.new(Object)
  962. for Index, Value in pairs(Data or {}) do
  963. Object[Index] = Value
  964. end
  965. Object.Parent = Parent
  966. Object.Name = Name
  967. return Object
  968. end
  969. Shade = New("Part",chara,"Shade",{CanCollide = false,BrickColor = BrickColor.new("Really black"),Size = Vector3.new(1.20000005, 0.600000024, 1),CFrame = CFrame.new(68.5999985, 0.700013041, 9.89999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  970. Mesh = New("SpecialMesh",Shade,"Mesh",{Scale = Vector3.new(1.25999999, 1.5, 1.25999999),})
  971. Weld = New("Weld",Shade,"mot",{Part0 = Shade,Part1 = chara.Head,C1 = CFrame.new(0, 0.200000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  972.  
  973. RubiksCube = New("Model",char,"RubiksCube",{})
  974. while true do
  975. if Head:FindFirstChild("face") then
  976. Head.face.Texture = "http://www.roblox.com/asset/?id=1033091735"
  977. end
  978. local NewInstance = function(instance,parent,properties)
  979. local inst = Instance.new(instance,parent)
  980. if(properties)then
  981. for i,v in next, properties do
  982. pcall(function() inst[i] = v end)
  983. end
  984. end
  985. return inst;
  986. end
  987. local HW = NewInstance('Weld',char,{Part0=tors,Part1=Handle,C0 = CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-65),0,math.rad(-90))})
  988.  
  989. function intro()
  990. attack = true
  991. for i = 0,2,0.1 do
  992. swait()
  993. rootj.C0 = clerp(rootj.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(55)),.3)
  994. tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-65)),.3)
  995. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(76)), 0.3)
  996. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
  997. end
  998. end
  999.  
  1000. local mouse = game.Players.LocalPlayer:GetMouse()
  1001. local running = false
  1002.  
  1003. function getTool()
  1004. for _, kid in ipairs(script.Parent:GetChildren()) do
  1005. if kid.className == "Tool" then return kid end
  1006. end
  1007. return nil
  1008. end
  1009.  
  1010.  
  1011. mouse.KeyDown:connect(function (key) -- Run function
  1012. key = string.lower(key)
  1013. if string.byte(key) == 48 then
  1014. running = true
  1015. local keyConnection = mouse.KeyUp:connect(function (key)
  1016. if string.byte(key) == 48 then
  1017. running = false
  1018. end
  1019. end)
  1020. for i = 1,5 do
  1021. game.Workspace.CurrentCamera.FieldOfView = (70+(i*2))
  1022. wait()
  1023. end
  1024. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 25
  1025. repeat wait () until running == false
  1026. keyConnection:disconnect()
  1027. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
  1028. for i = 1,5 do
  1029. game.Workspace.CurrentCamera.FieldOfView = (80-(i*2))
  1030. wait()
  1031. end
  1032. end
  1033. end)
  1034. local idle=0
  1035. local sine = 0
  1036. local change = 1
  1037. local val = 0
  1038. toim = 0
  1039. hum.Animator.Parent = nil
  1040. idleanim=.4
  1041. while true do
  1042. swait()
  1043. sine = sine + change
  1044. local torvel=(root.Velocity*Vector3.new(1,0,1)).magnitude
  1045. local velderp=root.Velocity.y
  1046. hitfloor,posfloor=rayCast(root.Position,(CFrame.new(root.Position,root.Position - Vector3.new(0,1,0))).lookVector,4,char)
  1047. if equipped==true or equipped==false then
  1048. if attack==false then
  1049. idle=idle+1
  1050. else
  1051. idle=0
  1052. end
  1053. if root.Velocity.y > 1 and hitfloor==nil then
  1054. Anim="Jump"
  1055. if attack==false then
  1056. rootj.C0 = clerp(rootj.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1057. tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1058. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(20)), 0.3)
  1059. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
  1060. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-20)),.3)
  1061. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(0)),.3)
  1062. end
  1063. elseif root.Velocity.y < -1 and hitfloor==nil then
  1064. Anim="Fall"
  1065. if attack==false then
  1066. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-20)),.3)
  1067. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(0)),.3)
  1068. rootj.C0 = clerp(rootj.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1069. tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(40),math.rad(0),math.rad(0)),.3)
  1070. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(20)), 0.3)
  1071. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
  1072. end
  1073. elseif torvel<1 and hitfloor~=nil then
  1074. Anim="Idle"
  1075. change = 2
  1076.  
  1077. if attack==false then
  1078. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.1+0.1*math.cos(sine/20))*angles(math.rad(0),math.rad(0),math.rad(0)),0.15)
  1079. tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(25),math.rad(0),math.rad(0)),.3)
  1080. RH.C0=clerp(RH.C0,cf(1,-0.9-0.1*math.cos(sine/20),0)*angles(math.rad(-2.5),math.rad(90),math.rad(-0))*angles(math.rad(-7.5),math.rad(0),math.rad(0)),0.15)
  1081. LH.C0=clerp(LH.C0,cf(-1,-0.9-0.1*math.cos(sine/20),0)*angles(math.rad(-2.5),math.rad(-90),math.rad(-0))*angles(math.rad(-7.5),math.rad(0),math.rad(0)),0.15)
  1082. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5+0.04*math.sin(sine/25), -0.35) * angles(math.rad(65 - 1), math.rad(-7), math.rad(-35)), 0.3)
  1083. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5+0.04*math.sin(sine/25), -0.35) * angles(math.rad(90 - 1), math.rad(-7), math.rad(55)), 0.1)
  1084. HW.C0=euler(0,2.57*math.cos(sine/60)/1,0)*cf(0,2.1+1.7,0)* angles(math.rad(55 - 1), math.rad(-7), math.rad(55), 0.1)
  1085. end
  1086.  
  1087. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  1088. Anim="Walk"
  1089. change = 1
  1090. if attack==false then
  1091. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.175+0.025*math.cos(sine/3.5)+ -math.sin(sine/3.5)/7)*angles(math.rad(5-2.5*math.cos(sine/3.5)),math.rad(0),math.rad(10*math.cos(sine/7))),0.15)
  1092. tors.Neck.C0 = clerp(tors.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1093. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(40) * math.cos(sine / 7), math.rad(0), math.rad(5)), 0.3)
  1094. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40) * math.cos(sine / 7), math.rad(0), math.rad(-5)), 0.3)
  1095. RH.C0=clerp(RH.C0,cf(1,-0.925-0.5*math.cos(sine/7)/2,0.5*math.cos(sine/7)/2)*angles(math.rad(-5-15*math.cos(sine/7))+ -math.sin(sine/7)/1.5,math.rad(90-10*math.cos(sine/7)),math.rad(0)),0.15)
  1096. LH.C0=clerp(LH.C0,cf(-1,-0.925+0.5*math.cos(sine/7)/2,-0.5*math.cos(sine/7)/2)*angles(math.rad(-5+15*math.cos(sine/7))+ math.sin(sine/7)/1.5,math.rad(-90-10*math.cos(sine/7)),math.rad(0)),0.15)
  1097. HW.C0=euler(0,2.57*math.cos(sine/60)/1,0)*cf(0,2.1+1.7,0)* angles(math.rad(55 - 1), math.rad(-7), math.rad(55*math.cos(sine/60)), 0.1)
  1098. end
  1099. elseif torvel>=22 and hitfloor~=nil then
  1100. Anim="Run"
  1101. change = 2
  1102. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.175+0.025*math.cos(sine/3.5)+ -math.sin(sine/3.5)/7)*angles(math.rad(25),math.rad(0),math.rad(10*math.cos(sine/7))),0.15)
  1103. tors.Neck.C0 = clerp(tors.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1104. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(55), math.rad(-55), math.rad(90)), 0.3)
  1105. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 60),-0.65)*angles(math.rad(40),math.rad(0),math.rad(90 + 2.5)),.3)
  1106. RH.C0=clerp(RH.C0,cf(1,-0.925-0.5*math.cos(sine/7)/2,0.5*math.cos(sine/7)/1)*angles(math.rad(-5-15*math.cos(sine/7))+ -math.sin(sine/7)/1,math.rad(90-10*math.cos(sine/7)),math.rad(0)),0.15)
  1107. LH.C0=clerp(LH.C0,cf(-1,-0.925+0.5*math.cos(sine/7)/2,-0.5*math.cos(sine/7)/1)*angles(math.rad(-5+15*math.cos(sine/7))+ math.sin(sine/7)/1,math.rad(-90-10*math.cos(sine/7)),math.rad(0)),0.15)
  1108. HW.C0=clerp(HW.C0,cf(0,-1,0)*angles(math.rad(-65),math.rad(0),math.rad(-90)),0.15)
  1109.  
  1110. end
  1111. end
  1112. if 0 < #Effects then
  1113. for e = 1, #Effects do
  1114. if Effects[e] ~= nil then
  1115. local Thing = Effects[e]
  1116. if Thing ~= nil then
  1117. local Part = Thing[1]
  1118. local Mode = Thing[2]
  1119. local Delay = Thing[3]
  1120. local IncX = Thing[4]
  1121. local IncY = Thing[5]
  1122. local IncZ = Thing[6]
  1123. if 1 >= Thing[1].Transparency then
  1124. if Thing[2] == "Block1" then
  1125. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1126. local Mesh = Thing[1].Mesh
  1127. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1128. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1129. elseif Thing[2] == "Block2" then
  1130. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1131. local Mesh = Thing[7]
  1132. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1133. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1134. elseif Thing[2] == "Block3" then
  1135. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0)
  1136. local Mesh = Thing[7]
  1137. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1138. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1139. elseif Thing[2] == "Cylinder" then
  1140. local Mesh = Thing[1].Mesh
  1141. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1142. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1143. elseif Thing[2] == "Blood" then
  1144. local Mesh = Thing[7]
  1145. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1146. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1147. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1148. elseif Thing[2] == "Elec" then
  1149. local Mesh = Thing[1].Mesh
  1150. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1151. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1152. elseif Thing[2] == "Disappear" then
  1153. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1154. elseif Thing[2] == "Shatter" then
  1155. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1156. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1157. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1158. Thing[6] = Thing[6] + Thing[5]
  1159. end
  1160.  
  1161. end
  1162. end
  1163. end
  1164. end
  1165. end
  1166. end
  1167. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement