Gametoy

....

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