kaualima12

kkkkjhkhkgkfhfdrgdfsg

Jul 27th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 55.96 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player = owner
  3. local Mouse,mouse,UserInputService,ContextActionService
  4. do
  5. script.Parent = RhiBel00351
  6. local CAS = {Actions={}}
  7. local Event = Instance.new("RemoteEvent")
  8. Event.Name = "UserInput_Event"
  9. Event.Parent = Player.Character
  10. local fakeEvent = function()
  11. local t = {_fakeEvent=true}
  12. t.Connect = function(self,f)self.Function=f end
  13. t.connect = t.Connect
  14. return t
  15. end
  16. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  17. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  18. function CAS:BindAction(name,fun,touch,...)
  19. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  20. end
  21. function CAS:UnbindAction(name)
  22. CAS.Actions[name] = nil
  23. end
  24. local function te(self,ev,...)
  25. local t = m[ev]
  26. if t and t._fakeEvent and t.Function then
  27. t.Function(...)
  28. end
  29. end
  30. m.TrigEvent = te
  31. UIS.TrigEvent = te
  32. Event.OnServerEvent:Connect(function(plr,io)
  33. if plr~=Player then return end
  34. if io.isMouse then
  35. m.Target = io.Target
  36. m.Hit = io.Hit
  37. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  38. if io.UserInputState == Enum.UserInputState.Begin then
  39. m:TrigEvent("Button1Down")
  40. else
  41. m:TrigEvent("Button1Up")
  42. end
  43. else
  44. for n,t in pairs(CAS.Actions) do
  45. for _,k in pairs(t.Keys) do
  46. if k==io.KeyCode then
  47. t.Function(t.Name,io.UserInputState,io)
  48. end
  49. end
  50. end
  51. if io.UserInputState == Enum.UserInputState.Begin then
  52. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  53. UIS:TrigEvent("InputBegan",io,false)
  54. else
  55. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  56. UIS:TrigEvent("InputEnded",io,false)
  57. end
  58. end
  59. end)
  60. NLS([==[
  61. local Player = game:GetService("Players").LocalPlayer
  62.  
  63. local Char = Player.Character
  64. local Event = Char:WaitForChild("UserInput_Event")
  65.  
  66. local UIS = game:GetService("UserInputService")
  67.  
  68. local input = function(io,a)
  69. if a then return end
  70. local io = {KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}
  71. Event:FireServer(io)
  72. end
  73. UIS.InputBegan:Connect(input)
  74. UIS.InputEnded:Connect(input)
  75. local Changed = false
  76. local Mouse = Player:GetMouse()
  77. local h,t = Mouse.Hit,Mouse.Target
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. Event:FireServer({isMouse=true,Target=Mouse.Target,Hit=Mouse.Hit})
  81. h,t=Mouse.Hit,Mouse.Target
  82. end
  83. end
  84. ]==],Player.Character)
  85. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  86. end
  87.  
  88. --[[
  89. yu cri
  90. Hollow by grgrgry21 and Dooven. (Discontinued)
  91. A
  92. A A
  93. A C A
  94. A A
  95. A
  96. ]]--
  97. wait(1 / 60)
  98. Effects = { }
  99. local Player = game.Players.localPlayer
  100. local Character = Player.Character
  101. local Humanoid = Character.Humanoid
  102. local Mouse = Player:GetMouse()
  103. local LeftArm = Character["Left Arm"]
  104. local RightArm = Character["Right Arm"]
  105. local LeftLeg = Character["Left Leg"]
  106. local RightLeg = Character["Right Leg"]
  107. local Head = Character.Head
  108. local Torso = Character.Torso
  109. local Camera = game.Workspace.CurrentCamera
  110. local RootPart = Character.HumanoidRootPart
  111. local RootJoint = RootPart.RootJoint
  112. local attack = false
  113. local Anim = 'Idle'
  114. local attacktype = 1
  115. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  116. local velocity = RootPart.Velocity.y
  117. local sine = 0
  118. local change = 1
  119. local Create = LoadLibrary("RbxUtility").Create
  120. Humanoid.MaxHealth = math.huge
  121. local spooky = Instance.new("Sound",Character)
  122. spooky.SoundId = "rbxassetid://331384152"
  123. spooky.Looped = true
  124. spooky.Pitch = 1
  125. spooky.Volume = 1.1
  126. spooky:Stop()
  127. local spooky2 = Instance.new("Sound",Character)
  128. spooky2.SoundId = "rbxassetid://509646527"
  129. spooky2.Looped = false
  130. spooky2.Pitch = 1
  131. spooky2.Volume = 1.4
  132. spooky2:Play()
  133. local m = Create("Model"){
  134. Parent = Character,
  135. Name = "WeaponModel",
  136. }
  137.  
  138. Humanoid.Animator.Parent = nil
  139. Character.Animate.Parent = nil
  140.  
  141. local newMotor = function(part0, part1, c0, c1)
  142. local w = Create('Motor'){
  143. Parent = part0,
  144. Part0 = part0,
  145. Part1 = part1,
  146. C0 = c0,
  147. C1 = c1,
  148. }
  149. return w
  150. end
  151.  
  152. function clerp(a, b, t)
  153. return a:lerp(b, t)
  154. end
  155.  
  156. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  157. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  158.  
  159. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  160. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  161. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  162. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  163. RootJoint.C1 = CFrame.new(0, 0, 0)
  164. RootJoint.C0 = CFrame.new(0, 0, 0)
  165. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  166. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  167.  
  168. local rarmc1 = RW.C1
  169. local larmc1 = LW.C1
  170. local rlegc1 = RH.C1
  171. local llegc1 = LH.C1
  172.  
  173. local resetc1 = false
  174.  
  175. function PlayAnimationFromTable(table, speed, bool)
  176. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  177. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  178. RW.C0 = clerp(RW.C0, table[3], speed)
  179. LW.C0 = clerp(LW.C0, table[4], speed)
  180. RH.C0 = clerp(RH.C0, table[5], speed)
  181. LH.C0 = clerp(LH.C0, table[6], speed)
  182. if bool == true then
  183. if resetc1 == false then
  184. resetc1 = true
  185. RootJoint.C1 = RootJoint.C1
  186. Torso.Neck.C1 = Torso.Neck.C1
  187. RW.C1 = rarmc1
  188. LW.C1 = larmc1
  189. RH.C1 = rlegc1
  190. LH.C1 = llegc1
  191. end
  192. end
  193. end
  194.  
  195. ArtificialHB = Create("BindableEvent", script){
  196. Parent = script,
  197. Name = "Heartbeat",
  198. }
  199.  
  200. script:WaitForChild("Heartbeat")
  201.  
  202. frame = 1 / 30
  203. tf = 0
  204. allowframeloss = false
  205. tossremainder = false
  206. lastframe = tick()
  207. script.Heartbeat:Fire()
  208.  
  209. game:GetService("RunService").Heartbeat:connect(function(s, p)
  210. tf = tf + s
  211. if tf >= frame then
  212. if allowframeloss then
  213. script.Heartbeat:Fire()
  214. lastframe = tick()
  215. else
  216. for i = 1, math.floor(tf / frame) do
  217. script.Heartbeat:Fire()
  218. end
  219. lastframe = tick()
  220. end
  221. if tossremainder then
  222. tf = 0
  223. else
  224. tf = tf - frame * math.floor(tf / frame)
  225. end
  226. end
  227. end)
  228.  
  229. function swait(num)
  230. if num == 0 or num == nil then
  231. ArtificialHB.Event:wait()
  232. else
  233. for i = 0, num do
  234. ArtificialHB.Event:wait()
  235. end
  236. end
  237. end
  238.  
  239. function RemoveOutlines(part)
  240. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  241. end
  242.  
  243. CFuncs = {
  244. ["Part"] = {
  245. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  246. local Part = Create("Part"){
  247. Parent = Parent,
  248. Reflectance = Reflectance,
  249. Transparency = Transparency,
  250. CanCollide = false,
  251. Locked = true,
  252. BrickColor = BrickColor.new(tostring(BColor)),
  253. Name = Name,
  254. Size = Size,
  255. Material = Material,
  256. }
  257. RemoveOutlines(Part)
  258. return Part
  259. end;
  260. };
  261.  
  262. ["Mesh"] = {
  263. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  264. local Msh = Create(Mesh){
  265. Parent = Part,
  266. Offset = OffSet,
  267. Scale = Scale,
  268. }
  269. if Mesh == "SpecialMesh" then
  270. Msh.MeshType = MeshType
  271. Msh.MeshId = MeshId
  272. end
  273. return Msh
  274. end;
  275. };
  276.  
  277. ["Mesh"] = {
  278. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  279. local Msh = Create(Mesh){
  280. Parent = Part,
  281. Offset = OffSet,
  282. Scale = Scale,
  283. }
  284. if Mesh == "SpecialMesh" then
  285. Msh.MeshType = MeshType
  286. Msh.MeshId = MeshId
  287. end
  288. return Msh
  289. end;
  290. };
  291.  
  292. ["Weld"] = {
  293. Create = function(Parent, Part0, Part1, C0, C1)
  294. local Weld = Create("Weld"){
  295. Parent = Parent,
  296. Part0 = Part0,
  297. Part1 = Part1,
  298. C0 = C0,
  299. C1 = C1,
  300. }
  301. return Weld
  302. end;
  303. };
  304.  
  305. ["Sound"] = {
  306. Create = function(id, par, vol, pit)
  307. coroutine.resume(coroutine.create(function()
  308. local S = Create("Sound"){
  309. Volume = vol,
  310. Pitch = pit or 1,
  311. SoundId = id,
  312. Parent = par or workspace,
  313. }
  314. wait()
  315. S:play()
  316. game:GetService("Debris"):AddItem(S, 6)
  317. end))
  318. end;
  319. };
  320.  
  321. ["ParticleEmitter"] = {
  322. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  323. local fp = Create("ParticleEmitter"){
  324. Parent = Parent,
  325. Color = ColorSequence.new(Color1, Color2),
  326. LightEmission = LightEmission,
  327. Size = Size,
  328. Texture = Texture,
  329. Transparency = Transparency,
  330. ZOffset = ZOffset,
  331. Acceleration = Accel,
  332. Drag = Drag,
  333. LockedToPart = LockedToPart,
  334. VelocityInheritance = VelocityInheritance,
  335. EmissionDirection = EmissionDirection,
  336. Enabled = Enabled,
  337. Lifetime = LifeTime,
  338. Rate = Rate,
  339. Rotation = Rotation,
  340. RotSpeed = RotSpeed,
  341. Speed = Speed,
  342. VelocitySpread = VelocitySpread,
  343. }
  344. return fp
  345. end;
  346. };
  347.  
  348. CreateTemplate = {
  349.  
  350. };
  351. }
  352. New = function(Object, Parent, Name, Data)
  353. local Object = Instance.new(Object)
  354. for Index, Value in pairs(Data or {}) do
  355. Object[Index] = Value
  356. end
  357. Object.Parent = Parent
  358. Object.Name = Name
  359. return Object
  360. end
  361.  
  362. function rayCast(Position, Direction, Range, Ignore)
  363. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  364. end
  365.  
  366. FindNearestTorso = function(pos)
  367. local list = (game.Workspace:children())
  368. local torso = nil
  369. local dist = 1000
  370. local temp, human, temp2 = nil, nil, nil
  371. for x = 1, #list do
  372. temp2 = list[x]
  373. if temp2.className == "Model" and temp2.Name ~= Character.Name then
  374. temp = temp2:findFirstChild("Torso")
  375. human = temp2:findFirstChild("Humanoid")
  376. if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
  377. local dohit = true
  378. if dohit == true then
  379. torso = temp
  380. dist = (temp.Position - pos).magnitude
  381. end
  382. end
  383. end
  384. end
  385. return torso, dist
  386. end
  387.  
  388. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  389. if hit.Parent == nil then
  390. return
  391. end
  392. local h = hit.Parent:FindFirstChild("Humanoid")
  393. for _, v in pairs(hit.Parent:children()) do
  394. if v:IsA("Humanoid") then
  395. h = v
  396. end
  397. end
  398. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  399. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  400. if hit.Parent.DebounceHit.Value == true then
  401. return
  402. end
  403. end
  404. local c = Create("ObjectValue"){
  405. Name = "creator",
  406. Value = game:service("Players").LocalPlayer,
  407. Parent = h,
  408. }
  409. game:GetService("Debris"):AddItem(c, .5)
  410. if HitSound ~= nil and HitPitch ~= nil then
  411. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  412. end
  413. local Damage = math.random(minim, maxim)
  414. local blocked = false
  415. local block = hit.Parent:findFirstChild("Block")
  416. if block ~= nil then
  417. if block.className == "IntValue" then
  418. if block.Value > 0 then
  419. blocked = true
  420. block.Value = block.Value - 1
  421. print(block.Value)
  422. end
  423. end
  424. end
  425. if blocked == false then
  426. h.Health = h.Health - Damage
  427. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
  428. else
  429. h.Health = h.Health - (Damage / 2)
  430. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
  431. end
  432. if Type == "Knockdown" then
  433. local hum = hit.Parent.Humanoid
  434. hum.PlatformStand = true
  435. coroutine.resume(coroutine.create(function(HHumanoid)
  436. swait(1)
  437. HHumanoid.PlatformStand = false
  438. end), hum)
  439. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  440. local bodvol = Create("BodyVelocity"){
  441. velocity = angle * knockback,
  442. P = 5000,
  443. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  444. Parent = hit,
  445. }
  446. local rl = Create("BodyAngularVelocity"){
  447. P = 3000,
  448. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  449. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  450. Parent = hit,
  451. }
  452. game:GetService("Debris"):AddItem(bodvol, .5)
  453. game:GetService("Debris"):AddItem(rl, .5)
  454. elseif Type == "Normal" then
  455. local vp = Create("BodyVelocity"){
  456. P = 500,
  457. maxForce = Vector3.new(math.huge, 0, math.huge),
  458. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  459. }
  460. if knockback > 0 then
  461. vp.Parent = hit.Parent.Torso
  462. end
  463. game:GetService("Debris"):AddItem(vp, .5)
  464. elseif Type == "Up" then
  465. local bodyVelocity = Create("BodyVelocity"){
  466. velocity = Vector3.new(0, 20, 0),
  467. P = 5000,
  468. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  469. Parent = hit,
  470. }
  471. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  472. elseif Type == "DarkUp" then
  473. coroutine.resume(coroutine.create(function()
  474. for i = 0, 1, 0.1 do
  475. swait()
  476. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  477. end
  478. end))
  479. local bodyVelocity = Create("BodyVelocity"){
  480. velocity = Vector3.new(0, 20, 0),
  481. P = 5000,
  482. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  483. Parent = hit,
  484. }
  485. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  486. elseif Type == "Snare" then
  487. local bp = Create("BodyPosition"){
  488. P = 2000,
  489. D = 100,
  490. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  491. position = hit.Parent.Torso.Position,
  492. Parent = hit.Parent.Torso,
  493. }
  494. game:GetService("Debris"):AddItem(bp, 1)
  495. elseif Type == "Freeze" then
  496. local BodPos = Create("BodyPosition"){
  497. P = 50000,
  498. D = 1000,
  499. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  500. position = hit.Parent.Torso.Position,
  501. Parent = hit.Parent.Torso,
  502. }
  503. local BodGy = Create("BodyGyro") {
  504. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  505. P = 20e+003,
  506. Parent = hit.Parent.Torso,
  507. cframe = hit.Parent.Torso.CFrame,
  508. }
  509. hit.Parent.Torso.Anchored = true
  510. coroutine.resume(coroutine.create(function(Part)
  511. swait(1.5)
  512. Part.Anchored = false
  513. end), hit.Parent.Torso)
  514. game:GetService("Debris"):AddItem(BodPos, 3)
  515. game:GetService("Debris"):AddItem(BodGy, 3)
  516. end
  517. local debounce = Create("BoolValue"){
  518. Name = "DebounceHit",
  519. Parent = hit.Parent,
  520. Value = true,
  521. }
  522. game:GetService("Debris"):AddItem(debounce, Delay)
  523. c = Create("ObjectValue"){
  524. Name = "creator",
  525. Value = Player,
  526. Parent = h,
  527. }
  528. game:GetService("Debris"):AddItem(c, .5)
  529. end
  530. end
  531.  
  532. function ShowDamage(Pos, Text, Time, Color)
  533. local Rate = (1 / 30)
  534. local Pos = (Pos or Vector3.new(0, 0, 0))
  535. local Text = (Text or "")
  536. local Time = (Time or 2)
  537. local Color = (Color or Color3.new(1, 0, 1))
  538. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  539. EffectPart.Anchored = true
  540. local BillboardGui = Create("BillboardGui"){
  541. Size = UDim2.new(3, 0, 3, 0),
  542. Adornee = EffectPart,
  543. Parent = EffectPart,
  544. }
  545. local TextLabel = Create("TextLabel"){
  546. BackgroundTransparency = 1,
  547. Size = UDim2.new(1, 0, 1, 0),
  548. Text = Text,
  549. Font = "SciFi",
  550. TextColor3 = Color,
  551. TextScaled = true,
  552. Parent = BillboardGui,
  553. }
  554. game.Debris:AddItem(EffectPart, (Time))
  555. EffectPart.Parent = game:GetService("Workspace")
  556. delay(0, function()
  557. local Frames = (Time / Rate)
  558. for Frame = 1, Frames do
  559. wait(Rate)
  560. local Percent = (Frame / Frames)
  561. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  562. TextLabel.TextTransparency = Percent
  563. end
  564. if EffectPart and EffectPart.Parent then
  565. EffectPart:Destroy()
  566. end
  567. end)
  568. end
  569.  
  570. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  571. for _, c in pairs(workspace:children()) do
  572. local hum = c:findFirstChild("Humanoid")
  573. if hum ~= nil then
  574. local head = c:findFirstChild("Torso")
  575. if head ~= nil then
  576. local targ = head.Position - Part.Position
  577. local mag = targ.magnitude
  578. if mag <= Magnitude and c.Name ~= Player.Name then
  579. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
  580. end
  581. end
  582. end
  583. end
  584. end
  585. function UltraMagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch) -- kek
  586. for _, c in pairs(workspace:children()) do
  587. local hum = c:findFirstChild("Humanoid")
  588. if hum ~= nil then
  589. local head = c:findFirstChild("Torso")
  590. if head ~= nil then
  591. local targ = head.Position - Part.Position
  592. local mag = targ.magnitude
  593. if mag <= Magnitude and c.Name ~= Player.Name then
  594. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
  595. head.Size = head.Size + Vector3.new(0.01, 0.01, 0.01)
  596. end
  597. end
  598. end
  599. end
  600. end
  601. EffectModel = Create("Model"){
  602. Parent = Character,
  603. Name = "Effects",
  604. }
  605.  
  606. Effects = {
  607. Block = {
  608. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  609. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  610. prt.Anchored = true
  611. prt.CFrame = cframe
  612. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  613. game:GetService("Debris"):AddItem(prt, 10)
  614. if Type == 1 or Type == nil then
  615. table.insert(Effects, {
  616. prt,
  617. "Block1",
  618. delay,
  619. x3,
  620. y3,
  621. z3,
  622. msh
  623. })
  624. elseif Type == 2 then
  625. table.insert(Effects, {
  626. prt,
  627. "Block2",
  628. delay,
  629. x3,
  630. y3,
  631. z3,
  632. msh
  633. })
  634. end
  635. end;
  636. };
  637.  
  638. Cylinder = {
  639. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  640. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  641. prt.Anchored = true
  642. prt.CFrame = cframe
  643. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  644. game:GetService("Debris"):AddItem(prt, 10)
  645. table.insert(Effects, {
  646. prt,
  647. "Cylinder",
  648. delay,
  649. x3,
  650. y3,
  651. z3,
  652. msh
  653. })
  654. end;
  655. };
  656. Head = {
  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, "Head", "nil", 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.  
  675. Sphere = {
  676. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  677. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  678. prt.Anchored = true
  679. prt.CFrame = cframe
  680. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  681. game:GetService("Debris"):AddItem(prt, 10)
  682. table.insert(Effects, {
  683. prt,
  684. "Cylinder",
  685. delay,
  686. x3,
  687. y3,
  688. z3,
  689. msh
  690. })
  691. end;
  692. };
  693.  
  694. Elect = {
  695. Create = function(cff, x, y, z)
  696. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
  697. prt.Anchored = true
  698. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  699. prt.CFrame = CFrame.new(prt.Position)
  700. game:GetService("Debris"):AddItem(prt, 2)
  701. local xval = math.random() / 2
  702. local yval = math.random() / 2
  703. local zval = math.random() / 2
  704. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  705. table.insert(Effects, {
  706. prt,
  707. "Elec",
  708. 0.1,
  709. x,
  710. y,
  711. z,
  712. xval,
  713. yval,
  714. zval
  715. })
  716. end;
  717.  
  718. };
  719.  
  720. Ring = {
  721. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  722. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  723. prt.Anchored = true
  724. prt.CFrame = cframe
  725. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  726. game:GetService("Debris"):AddItem(prt, 10)
  727. table.insert(Effects, {
  728. prt,
  729. "Cylinder",
  730. delay,
  731. x3,
  732. y3,
  733. z3,
  734. msh
  735. })
  736. end;
  737. };
  738.  
  739.  
  740. Wave = {
  741. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  742. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  743. prt.Anchored = true
  744. prt.CFrame = cframe
  745. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  746. game:GetService("Debris"):AddItem(prt, 10)
  747. table.insert(Effects, {
  748. prt,
  749. "Cylinder",
  750. delay,
  751. x3,
  752. y3,
  753. z3,
  754. msh
  755. })
  756. end;
  757. };
  758.  
  759. Break = {
  760. Create = function(brickcolor, cframe, x1, y1, z1)
  761. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  762. prt.Anchored = true
  763. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  764. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  765. local num = math.random(10, 50) / 1000
  766. game:GetService("Debris"):AddItem(prt, 10)
  767. table.insert(Effects, {
  768. prt,
  769. "Shatter",
  770. num,
  771. prt.CFrame,
  772. math.random() - math.random(),
  773. 0,
  774. math.random(50, 100) / 100
  775. })
  776. end;
  777. };
  778.  
  779. Fire = {
  780. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  781. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  782. prt.Anchored = true
  783. prt.CFrame = cframe
  784. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  785. game:GetService("Debris"):AddItem(prt, 10)
  786. table.insert(Effects, {
  787. prt,
  788. "Fire",
  789. delay,
  790. 1,
  791. 1,
  792. 1,
  793. msh
  794. })
  795. end;
  796. };
  797.  
  798. FireWave = {
  799. Create = function(brickcolor, cframe, x1, y1, z1)
  800. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
  801. prt.Anchored = true
  802. prt.CFrame = cframe
  803. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  804. local d = Create("Decal"){
  805. Parent = prt,
  806. Texture = "rbxassetid://26356434",
  807. Face = "Top",
  808. }
  809. local d = Create("Decal"){
  810. Parent = prt,
  811. Texture = "rbxassetid://26356434",
  812. Face = "Bottom",
  813. }
  814. game:GetService("Debris"):AddItem(prt, 10)
  815. table.insert(Effects, {
  816. prt,
  817. "FireWave",
  818. 1,
  819. 30,
  820. math.random(400, 600) / 100,
  821. msh
  822. })
  823. end;
  824. };
  825.  
  826. Lightning = {
  827. Create = function(p0, p1, tym, ofs, col, th, tra, last)
  828. local magz = (p0 - p1).magnitude
  829. local curpos = p0
  830. local trz = {
  831. -ofs,
  832. ofs
  833. }
  834. for i = 1, tym do
  835. local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
  836. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  837. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  838. li.Material = "Neon"
  839. if tym == i then
  840. local magz2 = (curpos - p1).magnitude
  841. li.Size = Vector3.new(th, th, magz2)
  842. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  843. table.insert(Effects, {
  844. li,
  845. "Disappear",
  846. last
  847. })
  848. else
  849. do
  850. do
  851. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  852. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  853. game.Debris:AddItem(li, 10)
  854. table.insert(Effects, {
  855. li,
  856. "Disappear",
  857. last
  858. })
  859. end
  860. end
  861. end
  862. end
  863. end
  864. };
  865.  
  866. EffectTemplate = {
  867.  
  868. };
  869. }
  870. function hahahohoho(Part, Dmg)
  871. sp = Part.Position
  872. dirr = Part.CFrame * CFrame.fromEulerAnglesXYZ(-1.57, 0, 0)
  873. local hit, pos = rayCast(sp, dirr.lookVector, 500, Character)
  874. local las = Instance.new("Part", Character)
  875. las.Anchored = true
  876. las.Locked = true
  877. las.CanCollide = false
  878. las.TopSurface = 0
  879. las.BottomSurface = 0
  880. las.BrickColor = BrickColor.new("Really black")
  881. las.Size = Vector3.new(1, 1, 1)
  882. las.CFrame = CFrame.new((Part.Position + pos) / 2, pos) * CFrame.Angles(math.rad(90), 0, 0)
  883. local msh = Instance.new("SpecialMesh", las)
  884. mag = (Part.Position - pos).magnitude
  885. msh.Scale = Vector3.new(0.1, mag, 0.1)
  886. coroutine.resume(coroutine.create(function(Part, Mesh)
  887. for i = 0, 3, 0.1 do
  888. wait()
  889. Part.Transparency = Part.Transparency + 0.03
  890. Mesh.Scale = Mesh.Scale + Vector3.new(0.5, 0.7, 0.5)
  891. end
  892. Part.Parent = nil
  893. end), las, msh)
  894. if pos ~= nil then
  895. local las2 = Instance.new("Part", Character)
  896. las2.Anchored = true
  897. las2.Locked = true
  898. las2.CanCollide = false
  899. las2.TopSurface = 0
  900. las2.BottomSurface = 0
  901. las2.Transparency = 1
  902. las2.BrickColor = BrickColor.new("Really black")
  903. las2.Size = Vector3.new(1, 1, 1)
  904. las2.CFrame = CFrame.new(pos) * CFrame.Angles(math.rad(90), 0, 0)
  905. local msh = Instance.new("SpecialMesh", las2)
  906. msh.MeshType = "Sphere"
  907. mag = (Part.Position - pos).magnitude
  908. msh.Scale = Vector3.new(0.1, 0.1, 0.1)
  909. Effects.Ring.Create(BrickColor.new("Really black"), las2.CFrame * CFrame.Angles(math.random(-4,4),math.random(-4,4),math.random(-4,4)), 8, 8, 8, 2.5, 2.5, 2.5, 0.04)
  910. Effects.Sphere.Create(BrickColor.new("Really black"), las2.CFrame, 6, 6, 6, 9, 9, 9, 0.04)
  911. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=228343252", las2, 1.2, 0.9)
  912. UltraMagnitudeDamage(las2, 20, 100, 100, math.random(1, 5), "Normal", "http://www.roblox.com/asset/?id=228343252", 1)
  913. coroutine.resume(coroutine.create(function(Part, Mesh)
  914. for i = 0, 3, 0.1 do
  915. wait()
  916. Part.Transparency = Part.Transparency + 1
  917. Mesh.Scale = Mesh.Scale + Vector3.new(0, 0, 0)
  918. end
  919. Part.Parent = nil
  920. end), las2, msh)
  921. end
  922. if hit ~= nil and pos ~= nil then
  923. if hit.Parent.className == "Hat" then
  924. hit:BreakJoints()
  925. hit.Velocity = Vector3.new(math.random(-5, 5), 20, math.random(-5, 5))
  926. end
  927. if hit.Parent:findFirstChild("Humanoid") ~= nil and hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Name ~= "Base" and hit.Parent.Name ~= Player.Name then
  928. hit.Parent.Humanoid:TakeDamage(Dmg)
  929. end
  930. end
  931. end
  932. function attackone()
  933. attack = true
  934. local ref = New("Part",Character,"ref",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Transparency = 1,Transparency = 1,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-63.7534943, 0.396845818, -9.92230225, -1, 0, 0, 0, 0.00350399944, -0.999993861, 0, -0.999993861, -0.00350399921),CanCollide = false,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  935. mot = New("Weld",ref,"mot",{Part0 = ref,Part1 = RootPart,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0.00350399944, -0.999993861, 0, -0.999993861, -0.00350399921),C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
  936.  
  937. for i = 0, 1, 0.1 do
  938. swait()
  939. PlayAnimationFromTable({
  940. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  941. CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  942. CFrame.new(1.5, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  943. CFrame.new(-1.5, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  944. CFrame.new(0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  945. CFrame.new(-0.5, -2, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  946. }, .3, false)
  947. end
  948. hahahohoho(ref, 100)
  949. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=156572165", Character, 1, .6)
  950. attack = false
  951. wait(1)
  952. ref:Remove()
  953. end
  954. function spamrein()
  955. attack = true
  956. local ref1 = New("Part",EffectModel,"ref1",{Anchored = true,CanCollide = false,BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Transparency = 1,Transparency = 1,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-55.9288712, 27.204155, -45.3742905, -1, 0, 0, 0, 1, 0, 0, 0, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  957. local ref2 = New("Part",EffectModel,"ref2",{Anchored = true,CanCollide = false,BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Transparency = 1,Transparency = 1,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-55.9288712, 27.204155, -45.3742905, -1, 0, 0, 0, 1, 0, 0, 0, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  958. for i = 0, 1, 0.1 do
  959. swait()
  960. PlayAnimationFromTable({
  961. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  962. CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  963. CFrame.new(1.5, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  964. CFrame.new(-1.5, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  965. CFrame.new(0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  966. CFrame.new(-0.5, -2, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  967. }, .3, false)
  968. end
  969. for i = 0, 8 do
  970. swait(3)
  971. ref1.CFrame = RootPart.CFrame * CFrame.new(math.random(-30,30),50,math.random(-30,30)) * CFrame.Angles(math.rad(math.random(-25,25)),0,math.rad(math.random(-25,25)))
  972. hahahohoho(ref1, 100)
  973. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=156572165", ref1, 1, .6)
  974. wait(.05)
  975. ref2.CFrame = RootPart.CFrame * CFrame.new(math.random(-30,30),50,math.random(-30,30)) * CFrame.Angles(math.rad(math.random(-25,25)),0,math.rad(math.random(-25,25)))
  976. hahahohoho(ref2, 100)
  977. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=156572165", ref2, 1, .6)
  978. wait(.05)
  979. end
  980. attack = false
  981. end
  982. function spamspin()
  983. attack = true
  984. local ref3 = New("Part",EffectModel,"ref3",{CanCollide = false,BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Transparency = 1,Transparency = 1,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-55.9288712, 27.204155, -45.3742905, -1, 0, 0, 0, 1, 0, 0, 0, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  985. local ref4 = New("Part",EffectModel,"ref4",{CanCollide = false,BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Transparency = 1,Transparency = 1,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-55.9288712, 27.204155, -45.3742905, -1, 0, 0, 0, 1, 0, 0, 0, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  986. moter1 = New("Motor",ref3,"mot",{Part0 = LeftArm,Part1 = ref3,})
  987. moter2 = New("Motor",ref4,"mot",{Part0 = RightArm,Part1 = ref4,})
  988. for i = 0, 1, 0.1 do
  989. swait()
  990. PlayAnimationFromTable({
  991. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  992. CFrame.new(0, 1.49998045, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  993. CFrame.new(2.00000072, 0.500000775, 0, -6.33299351e-007, -1.00000048, 0, 1.00000048, -6.33299351e-007, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  994. CFrame.new(-1.99999726, 0.500000834, 0, -2.38418579e-007, 1.0000006, 0, -1.00000048, -3.7252903e-007, 0, 0, -0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  995. CFrame.new(0.5, -1.99999619, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  996. CFrame.new(-0.5, -1.99999619, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  997. }, .3, false)
  998. end
  999. coroutine.wrap(function()
  1000. for i = 0, 18 do
  1001. swait(2)
  1002. hahahohoho(ref3, 100)
  1003. hahahohoho(ref4, 100)
  1004. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=156572165", RootPart, 1, .6)
  1005. end
  1006. end)()
  1007. for i = 0, 7, 0.1 do
  1008. swait()
  1009. PlayAnimationFromTable({
  1010. CFrame.new(0, -0.500001013, 7.62939453e-006, 1, 0, 0, 0, 0, -1, 0, 1, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(sine * 25), 0),
  1011. CFrame.new(0, 1.4999733, -9.00030136e-006, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1012. CFrame.new(2, 0.499996185, -1.40070915e-005, 0, -1, 0, 1, 0, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1013. CFrame.new(-1.99999237, 0.499996185, -1.40070915e-005, 0, 1, 0, -1, 0, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1014. CFrame.new(0.5, -1.99998474, -2.02655792e-006, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1015. CFrame.new(-0.5, -1.99998474, -2.02655792e-006, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1016. }, .3, false)
  1017. moter1.C0 = clerp(moter1.C0, CFrame.new(1.07955907e-006, -1.10001731, 0, 1.0000031, 3.13669534e-006, 0, -3.00258512e-006, 1.00000322, -0, 0, -0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
  1018. moter2.C0 = clerp(moter2.C0, CFrame.new(-2.22906492e-005, -1.10000086, 1.03585517e-005, -1.00000048, 4.00841191e-006, -1.0410066e-011, 4.00840509e-006, 1.00000215, -2.61515493e-006, 1.75116303e-014, -2.48104334e-006, -1.00000179) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
  1019. end
  1020. attack = false
  1021. end
  1022. function criufkinbastard()
  1023. Humanoid.WalkSpeed = 0
  1024. Humanoid.JumpPower = 0
  1025. coroutine.wrap(function()
  1026. attack = true
  1027. local txt = Instance.new("BillboardGui", Character)
  1028. txt.Adornee = game.Players.LocalPlayer.Character.Head
  1029. txt.Name = "_status"
  1030. txt.Size = UDim2.new(2, 0, 1.2, 0)
  1031. txt.StudsOffset = Vector3.new(-9, 8, 0)
  1032. local text = Instance.new("TextLabel", txt)
  1033. text.Size = UDim2.new(10, 0, 7, 0)
  1034. text.FontSize = "Size24"
  1035. text.TextScaled = true
  1036. text.TextTransparency = 1
  1037. text.BackgroundTransparency = 1
  1038. text.TextStrokeTransparency = 1
  1039. text.Font = "Garamond"
  1040. text.TextStrokeColor3 = Color3.new(1,1,1)
  1041. text.TextColor3 = Color3.new(0, 0, 0)
  1042. text.Text = "I'm scared..."
  1043.  
  1044. local text2 = Instance.new("TextLabel", txt)
  1045. text2.Size = UDim2.new(10, 0, 7, 0)
  1046. text2.FontSize = "Size24"
  1047. text2.TextScaled = true
  1048. text2.TextTransparency = 1
  1049. text2.BackgroundTransparency = 1
  1050. text2.TextStrokeTransparency = 1
  1051. text2.Font = "Garamond"
  1052. text2.TextStrokeColor3 = Color3.new(1,1,1)
  1053. text2.TextColor3 = Color3.new(0, 0, 0)
  1054. text2.Text = "Why is this.. Happening to me?..."
  1055.  
  1056. local text3 = Instance.new("TextLabel", txt)
  1057. text3.Size = UDim2.new(10, 0, 7, 0)
  1058. text3.FontSize = "Size24"
  1059. text3.TextScaled = true
  1060. text3.TextTransparency = 1
  1061. text3.BackgroundTransparency = 1
  1062. text3.TextStrokeTransparency = 1
  1063. text3.Font = "Garamond"
  1064. text3.TextStrokeColor3 = Color3.new(1,1,1)
  1065. text3.TextColor3 = Color3.new(0, 0, 0)
  1066. text3.Text = "Should i be afraid...?"
  1067.  
  1068. local text4 = Instance.new("TextLabel", txt)
  1069. text4.Size = UDim2.new(10, 0, 7, 0)
  1070. text4.FontSize = "Size24"
  1071. text4.TextScaled = true
  1072. text4.TextTransparency = 1
  1073. text4.BackgroundTransparency = 1
  1074. text4.TextStrokeTransparency = 1
  1075. text4.Font = "Garamond"
  1076. text4.TextStrokeColor3 = Color3.new(1,1,1)
  1077. text4.TextColor3 = Color3.new(0, 0, 0)
  1078. text4.Text = "No..."
  1079.  
  1080. local text5 = Instance.new("TextLabel", txt)
  1081. text5.Size = UDim2.new(10, 0, 7, 0)
  1082. text5.FontSize = "Size24"
  1083. text5.TextScaled = true
  1084. text5.TextTransparency = 1
  1085. text5.BackgroundTransparency = 1
  1086. text5.TextStrokeTransparency = 1
  1087. text5.Font = "Garamond"
  1088. text5.TextStrokeColor3 = Color3.new(1,0,0)
  1089. text5.TextColor3 = Color3.new(0, 0, 0)
  1090. text5.Text = "It's just who i am.."
  1091.  
  1092.  
  1093. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=191006402", RootPart, 3, 1)
  1094. while wait() and text and text.TextTransparency >= 0 do
  1095. text.TextStrokeTransparency = text.TextStrokeTransparency - .05
  1096. text.TextTransparency = text.TextTransparency - .05
  1097.  
  1098. end
  1099. wait(3)
  1100. while wait() and text and text.TextTransparency <= 1 do
  1101. text.TextStrokeTransparency = text.TextStrokeTransparency + .05
  1102. text.TextTransparency = text.TextTransparency + .05
  1103. text.Position = text.Position - UDim2.new(0,0,0,1)
  1104. text.Rotation = text.Rotation - 1
  1105. text2.TextStrokeTransparency = text2.TextStrokeTransparency - .05
  1106. text2.TextTransparency = text2.TextTransparency - .05
  1107. end
  1108. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=191006402", RootPart, 3, 1)
  1109. wait(3)
  1110. while wait() and text2 and text2.TextTransparency <= 1 do
  1111. text2.TextStrokeTransparency = text2.TextStrokeTransparency + .05
  1112. text2.TextTransparency = text2.TextTransparency + .05
  1113. text2.Position = text2.Position - UDim2.new(0,0,0,1)
  1114. text2.Rotation = text2.Rotation - 1
  1115. text3.TextStrokeTransparency = text3.TextStrokeTransparency - .05
  1116. text3.TextTransparency = text3.TextTransparency - .05
  1117. end
  1118. wait(3)
  1119. while wait() and text3 and text3.TextTransparency <= 1 do
  1120. text3.TextStrokeTransparency = text3.TextStrokeTransparency + .05
  1121. text3.TextTransparency = text3.TextTransparency + .05
  1122. text3.Position = text3.Position - UDim2.new(0,0,0,1)
  1123. text3.Rotation = text3.Rotation - 1
  1124. text4.TextStrokeTransparency = text4.TextStrokeTransparency - .05
  1125. text4.TextTransparency = text4.TextTransparency - .05
  1126. end
  1127. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=191006402", RootPart, 3, 1)
  1128. wait(1)
  1129. while wait() and text4 and text4.TextTransparency <= 1 do
  1130. text4.TextStrokeTransparency = text4.TextStrokeTransparency + .05
  1131. text4.TextTransparency = text4.TextTransparency + .05
  1132. text4.Position = text4.Position - UDim2.new(0,0,0,1)
  1133. text4.Rotation = text4.Rotation - 1
  1134. text5.TextStrokeTransparency = text5.TextStrokeTransparency - .05
  1135. text5.TextTransparency = text5.TextTransparency - .05
  1136. end
  1137. wait(3)
  1138. while wait() and text5 and text5.TextTransparency <= 1 do
  1139. text5.TextStrokeTransparency = text5.TextStrokeTransparency + .05
  1140. text5.TextTransparency = text5.TextTransparency + .05
  1141. text5.Position = text5.Position - UDim2.new(math.random(-0.3,0.3),math.random(-5,5),math.random(-0.3,0.3),math.random(-5,5))
  1142. text5.Rotation = text5.Rotation - 1
  1143. spooky2.Volume = spooky2.Volume - 0.05
  1144. end
  1145. spooky:Play()
  1146. text:Remove()
  1147. text2:Remove()
  1148. text3:Remove()
  1149. text4:Remove()
  1150. text5:Remove()
  1151. end)()
  1152. for i = 0, 51, 0.1 do
  1153. swait()
  1154. PlayAnimationFromTable({
  1155. CFrame.new(-0, -2.01999879, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1156. CFrame.new(-0.100006104, 1.64000487, -3.69548798e-006, 1, 0, 0, 0, 0.891016304, 0.453991741, 0, -0.453991264, 0.891006649) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1157. CFrame.new(0.950131536, 1.02000284, -0.609929323, 0.838677049, 0.544629633, 1.82800829e-006, 0.280503511, -0.431945533, -0.857170463, -0.466839492, 0.718889475, -0.515032887) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1158. CFrame.new(-1.01001573, 1.08999729, -0.649995506, 0.743156135, -0.669118106, 5.49372999e-006, -0.324383408, -0.360283762, -0.874626398, 0.585230291, 0.649981976, -0.484797955) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1159. CFrame.new(0.5, -0.169970214, -1.0898838, 1, 0, -0, 0, 0.681989849, -0.73136127, 0, 0.73136127, 0.681989849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1160. CFrame.new(-0.549926758, -0.149971083, -1.56995773, 1, 0, -0, 0, 0.1736864, -0.984801233, 0, 0.984801233, 0.1736864) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1161. }, .1, false)
  1162. end
  1163. for i = 0, 5, 0.1 do
  1164. swait()
  1165. PlayAnimationFromTable({
  1166. CFrame.new(-0.0981965065, -1.31277657, -0.54871279, 0.808166862, -0.196366429, -0.555253625, 0.575620949, 0.0638884008, 0.815217137, -0.124606982, -0.97844708, 0.164665088) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1167. CFrame.new(0.0582410395, 1.44129539, 0.0734805763, 0.934516311, 2.10106373e-006, 0.355920374, 0.121625632, 0.939799547, -0.319349885, -0.334494382, 0.34172672, 0.878257751) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1168. CFrame.new(0.759254932, 0.609628737, -1.37132394, 0.887519658, 0.460769922, 5.49852848e-006, 0.0474366248, -0.0913589746, -0.994687736, -0.458321631, 0.882805049, -0.102940291) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1169. CFrame.new(-1.522138, 1.1763432, -0.233797818, 0.654816628, 0.623950124, -0.426499099, 0.0684916377, -0.610978603, -0.788678765, -0.752677917, 0.487228334, -0.44281441) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1170. CFrame.new(0.55273962, -1.8331666, -0.853646398, 0.994906187, -2.04518437e-006, 0.100805953, 0.0784842819, 0.627576351, -0.774589181, -0.0632617697, 0.778555214, 0.624379694) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1171. CFrame.new(-0.663739324, -1.72484899, -0.279409111, 0.936938882, 0.336636096, -0.0939244553, -0.32966578, 0.762038469, -0.557331204, -0.116043702, 0.553148985, 0.824960768) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1172. }, .05, false)
  1173. end
  1174. for i = 0, 5, 0.1 do
  1175. swait()
  1176. PlayAnimationFromTable({
  1177. CFrame.new(0, -0.0442145504, -0.205582842, 1, 0, 0, 0, 0.911569417, 0.411146224, 0, -0.411146194, 0.911569417) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1178. CFrame.new(0, 1.446419, -0.149725705, 1, 0, 0, 0, 0.941553891, 0.336862653, 0, -0.336862624, 0.94155395) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1179. CFrame.new(1.62312984, 0.0405562371, -0.126877204, 0.987515867, -0.155472979, 0.0253103133, 0.157519713, 0.974684954, -0.158671856, -3.94880772e-007, 0.160677835, 0.987006903) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1180. CFrame.new(-1.62933123, 0.039488472, -0.0764760524, 0.982997239, 0.18362084, -1.8598115e-008, -0.180242166, 0.964909732, -0.190950453, -0.0350624695, 0.187703788, 0.981599748) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1181. CFrame.new(0.50331378, -2.03031564, -0.386381626, 0.994077384, -0.100885771, 0.0404032469, 0.108675495, 0.922825038, -0.369572222, -5.43892384e-007, 0.371774226, 0.92832315) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1182. CFrame.new(-0.610246539, -1.9785527, -0.533763826, 0.991280973, 0.13176541, 7.16808756e-007, -0.118788213, 0.893654883, -0.432747513, -0.057021793, 0.428974301, 0.901515245) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1183. }, .05, false)
  1184. end
  1185. for i = 0, 2 do
  1186. for i = 0, 1, 0.1 do
  1187. swait()
  1188. PlayAnimationFromTable({
  1189. CFrame.new(0, -0.0442145504, -0.205582842, 1, 0, 0, 0, 0.911569417, 0.411146224, 0, -0.411146194, 0.911569417) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1190. CFrame.new(5.51342964e-007, 1.44641995, -0.149724424, 0.782274365, -6.99407749e-008, -0.622934043, 0.209844083, 0.941553354, 0.263520032, 0.586525559, -0.336863965, 0.736553073) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1191. CFrame.new(1.62312984, 0.0405562371, -0.126877204, 0.987515867, -0.155472979, 0.0253103133, 0.157519713, 0.974684954, -0.158671856, -3.94880772e-007, 0.160677835, 0.987006903) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1192. CFrame.new(-1.62933123, 0.039488472, -0.0764760524, 0.982997239, 0.18362084, -1.8598115e-008, -0.180242166, 0.964909732, -0.190950453, -0.0350624695, 0.187703788, 0.981599748) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1193. CFrame.new(0.50331378, -2.03031564, -0.386381626, 0.994077384, -0.100885771, 0.0404032469, 0.108675495, 0.922825038, -0.369572222, -5.43892384e-007, 0.371774226, 0.92832315) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1194. CFrame.new(-0.610246539, -1.9785527, -0.533763826, 0.991280973, 0.13176541, 7.16808756e-007, -0.118788213, 0.893654883, -0.432747513, -0.057021793, 0.428974301, 0.901515245) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1195. }, .3, false)
  1196. end
  1197. for i = 0, 1, 0.1 do
  1198. swait()
  1199. PlayAnimationFromTable({
  1200. CFrame.new(0, -0.0442145504, -0.205582842, 1, 0, 0, 0, 0.911569417, 0.411146224, 0, -0.411146194, 0.911569417) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1201. CFrame.new(1.78813934e-007, 1.4464184, -0.149724573, 0.864948869, -2.57774872e-007, 0.501860023, -0.169061571, 0.941551089, 0.291375846, -0.472526848, -0.336870432, 0.81439352) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1202. CFrame.new(1.62312984, 0.0405562371, -0.126877204, 0.987515867, -0.155472979, 0.0253103133, 0.157519713, 0.974684954, -0.158671856, -3.94880772e-007, 0.160677835, 0.987006903) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1203. CFrame.new(-1.62933123, 0.039488472, -0.0764760524, 0.982997239, 0.18362084, -1.8598115e-008, -0.180242166, 0.964909732, -0.190950453, -0.0350624695, 0.187703788, 0.981599748) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1204. CFrame.new(0.50331378, -2.03031564, -0.386381626, 0.994077384, -0.100885771, 0.0404032469, 0.108675495, 0.922825038, -0.369572222, -5.43892384e-007, 0.371774226, 0.92832315) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1205. CFrame.new(-0.610246539, -1.9785527, -0.533763826, 0.991280973, 0.13176541, 7.16808756e-007, -0.118788213, 0.893654883, -0.432747513, -0.057021793, 0.428974301, 0.901515245) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1206. }, .3, false)
  1207. end
  1208. end
  1209. Humanoid.WalkSpeed = 16
  1210. Humanoid.JumpPower = 50
  1211. attack = false
  1212. end
  1213. criufkinbastard()
  1214. Mouse.Button1Down:connect(function()
  1215. if attack == false and attacktype == 1 then
  1216. attackone()
  1217. end
  1218. end)
  1219.  
  1220. Mouse.KeyDown:connect(function(k)
  1221. k = k:lower()
  1222. if attack == false and k == 'z' then
  1223. spamrein()
  1224. elseif attack == false and k == 'x' then
  1225. spamspin()
  1226. end
  1227. end)
  1228.  
  1229. while true do
  1230. swait()
  1231. for i, v in pairs(Character:GetChildren()) do
  1232. if v:IsA("Part") then
  1233. v.Material = "SmoothPlastic"
  1234. elseif v:IsA("Accessory") then
  1235. v:WaitForChild("Handle").Material = "SmoothPlastic"
  1236. end
  1237. end
  1238. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1239. velocity = RootPart.Velocity.y
  1240. sine = sine + change
  1241. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1242. if RootPart.Velocity.y > 1 and hit == nil then
  1243. Anim = "Jump"
  1244. if attack == false then
  1245. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1246. Torso.Neck.C0 = clerp(Torso.Neck.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1247. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1248. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1249. RH.C0 = clerp(RH.C0, CFrame.new(.5, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1250. LH.C0 = clerp(LH.C0, CFrame.new(-.5, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1251. end
  1252. elseif RootPart.Velocity.y < -1 and hit == nil then
  1253. Anim = "Fall"
  1254. if attack == false then
  1255. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1256. Torso.Neck.C0 = clerp(Torso.Neck.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1257. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1258. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1259. RH.C0 = clerp(RH.C0, CFrame.new(.5, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1260. LH.C0 = clerp(LH.C0, CFrame.new(-.5, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1261. end
  1262. elseif Torsovelocity < 1 and hit ~= nil then
  1263. Anim = "Idle"
  1264. if attack == false then
  1265. change = 1
  1266. PlayAnimationFromTable({
  1267. CFrame.new(0, -0.00887098443, -0.0937612727, 1, 0, 0, 0, 0.982259452, 0.18752709, 0, -0.18752709, 0.982259452) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1268. CFrame.new(0, 1.53825808, -0.0745411664, 1, 0, 0, 0, 0.982847154, 0.184422195, 0, -0.184422195, 0.982847154) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0+ 0.02 * math.cos((sine) / 45)),
  1269. CFrame.new(1.58500147, 0.0840085745, -4.23921301e-006, 0.988930881, -0.148377314, 2.86626602e-007, 0.148377329, 0.988930821, -3.42726707e-007, -2.32830644e-007, 3.7252903e-007, 1) * CFrame.new(0, 0+ 0.03 * math.cos((sine) / 35), 0) * CFrame.Angles(0+ 0.04 * math.cos((sine) / 35), 0, 0),
  1270. CFrame.new(-1.59969079, 0.0581852607, 0.00147094927, 0.98752898, 0.15742676, 0.00183918548, -0.157437503, 0.987461925, 0.01151824, -2.84425914e-006, -0.011664167, 0.999932051) * CFrame.new(0, 0+ 0.03 * math.cos((sine) / 35), 0) * CFrame.Angles(0+ 0.04 * math.cos((sine) / 35), 0, 0),
  1271. CFrame.new(0.609301865, -2.01351237, -0.193993554, 0.993222535, -0.0876774415, -0.0762994736, 0.0721344054, 0.979739249, -0.186836153, 0.0911348984, 0.180066094, 0.979423642) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1272. CFrame.new(-0.52007699, -1.94294918, -0.261722565, 0.997069001, 0.0162452944, 0.0747634321, 1.35414302e-006, 0.977193356, -0.212351725, -0.0765080377, 0.211729422, 0.974329174) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1273. }, .3, false)
  1274.  
  1275. end
  1276. elseif Torsovelocity > 2 and hit ~= nil then
  1277. Anim = "Walk"
  1278. if attack == false then
  1279. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1280. Torso.Neck.C0 = clerp(Torso.Neck.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1281. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1282. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1283. RH.C0 = clerp(RH.C0, CFrame.new(.5, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1284. LH.C0 = clerp(LH.C0, CFrame.new(-.5, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1285. end
  1286. end
  1287. if 0 < #Effects then
  1288. for e = 1, #Effects do
  1289. if Effects[e] ~= nil then
  1290. local Thing = Effects[e]
  1291. if Thing ~= nil then
  1292. local Part = Thing[1]
  1293. local Mode = Thing[2]
  1294. local Delay = Thing[3]
  1295. local IncX = Thing[4]
  1296. local IncY = Thing[5]
  1297. local IncZ = Thing[6]
  1298. if Thing[2] == "Shoot" then
  1299. local Look = Thing[1]
  1300. local move = 30
  1301. if Thing[8] == 3 then
  1302. move = 10
  1303. end
  1304. local hit, pos = rayCast(Thing[4], Thing[1], move, m)
  1305. if Thing[10] ~= nil then
  1306. da = pos
  1307. cf2 = CFrame.new(Thing[4], Thing[10].Position)
  1308. cfa = CFrame.new(Thing[4], pos)
  1309. tehCF = cfa:lerp(cf2, 0.2)
  1310. Thing[1] = tehCF.lookVector
  1311. end
  1312. local mag = (Thing[4] - pos).magnitude
  1313. Effects["Head"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2)
  1314. if Thing[8] == 2 then
  1315. Effects["Ring"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0), 1, 1, 0.1, 0.5, 0.5, 0.1, 0.1, 1)
  1316. end
  1317. Thing[4] = Thing[4] + Look * move
  1318. Thing[3] = Thing[3] - 1
  1319. if 2 < Thing[5] then
  1320. Thing[5] = Thing[5] - 0.3
  1321. Thing[6] = Thing[6] - 0.3
  1322. end
  1323. if hit ~= nil then
  1324. Thing[3] = 0
  1325. if Thing[8] == 1 or Thing[8] == 3 then
  1326. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  1327. else
  1328. if Thing[8] == 2 then
  1329. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  1330. if (hit.Parent:findFirstChild("Humanoid")) ~= nil or (hit.Parent.Parent:findFirstChild("Humanoid")) ~= nil then
  1331. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1332. ref.Anchored = true
  1333. ref.CFrame = CFrame.new(pos)
  1334. CFuncs["Sound"].Create("161006093", ref, 1, 1.2)
  1335. game:GetService("Debris"):AddItem(ref, 0.2)
  1336. Effects["Block"].Create(Torso.BrickColor, CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 10, 10, 10, 0.1, 2)
  1337. Effects["Ring"].Create(BrickColor.new("Bright yellow"), CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 0.1, 4, 4, 0.1, 0.1)
  1338. MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1)
  1339. end
  1340. end
  1341. end
  1342. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1343. ref.Anchored = true
  1344. ref.CFrame = CFrame.new(pos)
  1345. Effects["Sphere"].Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
  1346. game:GetService("Debris"):AddItem(ref, 1)
  1347. end
  1348. if Thing[3] <= 0 then
  1349. table.remove(Effects, e)
  1350. end
  1351. end
  1352. do
  1353. do
  1354. if Thing[2] == "FireWave" then
  1355. if Thing[3] <= Thing[4] then
  1356. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
  1357. Thing[3] = Thing[3] + 1
  1358. Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
  1359. else
  1360. Part.Parent = nil
  1361. table.remove(Effects, e)
  1362. end
  1363. end
  1364. if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
  1365. if Thing[1].Transparency <= 1 then
  1366. if Thing[2] == "Block1" then
  1367. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1368. Mesh = Thing[7]
  1369. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1370. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1371. else
  1372. if Thing[2] == "Block2" then
  1373. Thing[1].CFrame = Thing[1].CFrame
  1374. Mesh = Thing[7]
  1375. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1376. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1377. else
  1378. if Thing[2] == "Fire" then
  1379. Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
  1380. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1381. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1382. else
  1383. if Thing[2] == "Cylinder" then
  1384. Mesh = Thing[7]
  1385. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1386. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1387. else
  1388. if Thing[2] == "Blood" then
  1389. Mesh = Thing[7]
  1390. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  1391. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1392. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1393. else
  1394. if Thing[2] == "Elec" then
  1395. Mesh = Thing[10]
  1396. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1397. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1398. else
  1399. if Thing[2] == "Disappear" then
  1400. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1401. end
  1402. end
  1403. end
  1404. end
  1405. end
  1406. end
  1407. end
  1408. else
  1409. Part.Parent = nil
  1410. table.remove(Effects, e)
  1411. end
  1412. end
  1413. end
  1414. end
  1415. end
  1416. end
  1417. end
  1418. end
  1419. end
Add Comment
Please, Sign In to add comment