metilol

Untitled

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