DogeLiker

test

Dec 16th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 48.87 KB | None | 0 0
  1. print("Made by SezHu for Void's Script Builder. If logged, please do not remove credit.")
  2. wait(1 / 60)
  3.  
  4. -- its FE code, so some scripts its work, some scripts its not work.
  5.  
  6. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  7. local Player,game,owner = owner,game
  8. local RealPlayer = Player
  9. do
  10. print("FE Compatibility code by Mokiros")
  11. local rp = RealPlayer
  12. script.Parent = rp.Character
  13.  
  14. --RemoteEvent for communicating
  15. local Event = Instance.new("RemoteEvent")
  16. Event.Name = "UserInput_Event"
  17.  
  18. --Fake event to make stuff like Mouse.KeyDown work
  19. local function fakeEvent()
  20. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  21. t.connect = t.Connect
  22. return t
  23. end
  24.  
  25. --Creating fake input objects with fake variables
  26. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  27. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  28. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  29. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  30. end}
  31. --Merged 2 functions into one by checking amount of arguments
  32. CAS.UnbindAction = CAS.BindAction
  33.  
  34. --This function will trigger the events that have been :Connect()'ed
  35. local function te(self,ev,...)
  36. local t = m[ev]
  37. if t and t._fakeEvent then
  38. for _,f in pairs(t.Functions) do
  39. f(...)
  40. end
  41. end
  42. end
  43. m.TrigEvent = te
  44. UIS.TrigEvent = te
  45.  
  46. Event.OnServerEvent:Connect(function(plr,io)
  47. if plr~=rp then return end
  48. m.Target = io.Target
  49. m.Hit = io.Hit
  50. if not io.isMouse then
  51. local b = io.UserInputState == Enum.UserInputState.Begin
  52. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  53. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  54. end
  55. for _,t in pairs(CAS.Actions) do
  56. for _,k in pairs(t.Keys) do
  57. if k==io.KeyCode then
  58. t.Function(t.Name,io.UserInputState,io)
  59. end
  60. end
  61. end
  62. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  63. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  64. end
  65. end)
  66. Event.Parent = NLS([==[
  67. local Player = game:GetService("Players").LocalPlayer
  68. local Event = script:WaitForChild("UserInput_Event")
  69.  
  70. local Mouse = Player:GetMouse()
  71. local UIS = game:GetService("UserInputService")
  72. local input = function(io,a)
  73. if a then return end
  74. --Since InputObject is a client-side instance, we create and pass table instead
  75. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  76. end
  77. UIS.InputBegan:Connect(input)
  78. UIS.InputEnded:Connect(input)
  79.  
  80. local h,t
  81. --Give the server mouse data 30 times every second, but only if the values changed
  82. --If player is not moving their mouse, client won't fire events
  83. while wait(1/30) do
  84. if h~=Mouse.Hit or t~=Mouse.Target then
  85. h,t=Mouse.Hit,Mouse.Target
  86. Event:FireServer({isMouse=true,Target=t,Hit=h})
  87. end
  88. end]==],Player.Character)
  89.  
  90. ----Sandboxed game object that allows the usage of client-side methods and services
  91. --Real game object
  92. local _rg = game
  93.  
  94. --Metatable for fake service
  95. local fsmt = {
  96. __index = function(self,k)
  97. local s = rawget(self,"_RealService")
  98. if s then return s[k] end
  99. end,
  100. __newindex = function(self,k,v)
  101. local s = rawget(self,"_RealService")
  102. if s then s[k]=v end
  103. end,
  104. __call = function(self,...)
  105. local s = rawget(self,"_RealService")
  106. if s then return s(...) end
  107. end
  108. }
  109. local function FakeService(t,RealService)
  110. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  111. return setmetatable(t,fsmt)
  112. end
  113.  
  114. --Fake game object
  115. local g = {
  116. GetService = function(self,s)
  117. return self[s]
  118. end,
  119. Players = FakeService({
  120. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  121. },"Players"),
  122. UserInputService = FakeService(UIS,"UserInputService"),
  123. ContextActionService = FakeService(CAS,"ContextActionService"),
  124. }
  125. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  126. g.service = g.GetService
  127.  
  128. g.RunService = FakeService({
  129. RenderStepped = _rg:GetService("RunService").Heartbeat,
  130. BindToRenderStep = function(self,name,_,fun)
  131. self._btrs[name] = self.Heartbeat:Connect(fun)
  132. end,
  133. UnbindFromRenderStep = function(self,name)
  134. self._btrs[name]:Disconnect()
  135. end,
  136. },"RunService")
  137.  
  138. setmetatable(g,{
  139. __index=function(self,s)
  140. return _rg:GetService(s) or typeof(_rg[s])=="function"
  141. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  142. end,
  143. __newindex = fsmt.__newindex,
  144. __call = fsmt.__call
  145. })
  146. --Changing owner to fake player object to support owner:GetMouse()
  147. game,owner = g,g.Players.LocalPlayer
  148. end
  149.  
  150. Effects = { }
  151. local Player = game.Players.localPlayer
  152. local Character = Player.Character
  153. local Humanoid = Character.Humanoid
  154. Humanoid.WalkSpeed = 100
  155. local Mouse = Player:GetMouse()
  156. local LeftArm = Character["Left Arm"]
  157. local RightArm = Character["Right Arm"]
  158. local LeftLeg = Character["Left Leg"]
  159. local RightLeg = Character["Right Leg"]
  160. local Head = Character.Head
  161. local Torso = Character.Torso
  162. local Camera = game.Workspace.CurrentCamera
  163. local RootPart = Character.HumanoidRootPart
  164. local RootJoint = RootPart.RootJoint
  165. local attack = false
  166. local Anim = 'Idle'
  167. local attacktype = 1
  168. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  169. local velocity = RootPart.Velocity.y
  170. local sine = 0
  171. local change = 1
  172. local Create = LoadLibrary("RbxUtility").Create
  173. for i,v in pairs(Character:GetChildren()) do
  174. if v.ClassName == "Accessory" or v.ClassName == "Hat" or v.ClassName == "Shirt" or v.ClassName == "Pants" then
  175. v:Remove()
  176. end
  177. end
  178. lhand = Character["Left Arm"]
  179. rhand = Character["Right Arm"]
  180. lleg = Character["Left Leg"]
  181. rleg = Character["Right Leg"]
  182. local shouldertec = Instance.new("Decal", lhand)
  183. shouldertec.Texture = "http://www.roblox.com/asset/?id=77986517"
  184. shouldertec.Face = "Top"
  185. local shouldertec1 = Instance.new("Decal", rhand)
  186. shouldertec1.Texture = "http://www.roblox.com/asset/?id=77986517"
  187. shouldertec1.Face = "Top"
  188. local shouldertec11 = Instance.new("Decal", rhand)
  189. shouldertec11.Texture = "http://www.roblox.com/asset/?id=178274539"
  190. shouldertec11.Face = "Bottom"
  191. local shouldertec111 = Instance.new("Decal", lhand)
  192. shouldertec111.Texture = "http://www.roblox.com/asset/?id=178274539"
  193. shouldertec111.Face = "Bottom"
  194. local legtec = Instance.new("Decal", lleg)
  195. legtec.Texture = "http://www.roblox.com/asset/?id=178274539"
  196. legtec.Face = "Bottom"
  197. local legtec1 = Instance.new("Decal", rleg)
  198. legtec1.Texture = "http://www.roblox.com/asset/?id=178274539"
  199. legtec1.Face = "Bottom"
  200. bdycolors = Character["Body Colors"]
  201. bdycolors.HeadColor = BrickColor.new("Bright yellow")
  202. bdycolors.LeftArmColor = BrickColor.new("Bright yellow")
  203. bdycolors.LeftLegColor = BrickColor.new("Br. yellowish green")
  204. bdycolors.RightArmColor = BrickColor.new("Bright yellow")
  205. bdycolors.RightLegColor = BrickColor.new("Br. yellowish green")
  206. bdycolors.TorsoColor = BrickColor.new("Bright blue")
  207. Humanoid.Health = math.huge
  208. Head.face.Texture = "http://www.roblox.com/asset/?id=246990268"
  209. function swait(num)
  210. if num == 0 or num == nil then
  211. game:service("RunService").Stepped:wait(0)
  212. else
  213. for i = 0, num do
  214. game:service("RunService").Stepped:wait(0)
  215. end
  216. end
  217. end
  218. local txtfag = Instance.new("BillboardGui", game.Players.LocalPlayer.Character.Head)
  219. txtfag.Adornee = suckadick
  220. txtfag.Name = "kys nigga"
  221. txtfag.Size = UDim2.new(2, 0, 1.2, 0)
  222. txtfag.StudsOffset = Vector3.new(-5, 3, 0)
  223. local textfag = Instance.new("TextLabel", txtfag)
  224. textfag.Size = UDim2.new(6, 0, 1, 0)
  225. textfag.FontSize = "Size8"
  226. textfag.TextScaled = true
  227. textfag.TextTransparency = 0
  228. textfag.BackgroundTransparency = 1
  229. textfag.TextTransparency = 0
  230. textfag.TextStrokeTransparency = 0
  231. textfag.Font = "SourceSans"
  232. textfag.TextStrokeColor3 = Color3.new(0, 1, 0)
  233. v = Instance.new("Part")
  234. v.Name = "ColorBrick"
  235. v.Parent = part
  236. v.FormFactor = "Symmetric"
  237. v.Anchored = true
  238. v.CanCollide = false
  239. v.BottomSurface = "Smooth"
  240. v.TopSurface = "Smooth"
  241. v.Size = Vector3.new(10, 5, 3)
  242. v.Transparency = 0.7
  243. v.BrickColor = game.Players.LocalPlayer.Character.Torso.BrickColor
  244. v.Transparency = 1
  245. textfag.TextColor3 = BrickColor.new("Institutional white").Color
  246. textfag.TextStrokeColor3 = BrickColor.new("Really black").Color
  247. v.Shape = "Block"
  248. textfag.Text = "epic n00b"
  249. coroutine.resume(coroutine.create(function()
  250. while true do
  251. swait()
  252. textfag.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3))
  253. textfag.Rotation = math.random(-3,3)
  254. end
  255. end))
  256. Instance.new("ForceField",Character).Visible = false
  257. hit = nil
  258. oof = false
  259. local m = Create("Model"){
  260. Parent = Character,
  261. Name = "rainbowsh0vel",
  262. }
  263.  
  264. Humanoid.Animator.Parent = nil
  265. Character.Animate.Parent = nil
  266.  
  267. local newMotor = function(part0, part1, c0, c1)
  268. local w = Create('Motor'){
  269. Parent = part0,
  270. Part0 = part0,
  271. Part1 = part1,
  272. C0 = c0,
  273. C1 = c1,
  274. }
  275. return w
  276. end
  277.  
  278. function clerp(a, b, t)
  279. return a:lerp(b, t)
  280. end
  281.  
  282. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  283. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  284.  
  285. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  286. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  287. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  288. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  289. RootJoint.C1 = CFrame.new(0, 0, 0)
  290. RootJoint.C0 = CFrame.new(0, 0, 0)
  291. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  292. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  293.  
  294. local rarmc1 = RW.C1
  295. local larmc1 = LW.C1
  296. local rlegc1 = RH.C1
  297. local llegc1 = LH.C1
  298.  
  299. local resetc1 = false
  300.  
  301. function PlayAnimationFromTable(table, speed, bool)
  302. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  303. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  304. RW.C0 = clerp(RW.C0, table[3], speed)
  305. LW.C0 = clerp(LW.C0, table[4], speed)
  306. RH.C0 = clerp(RH.C0, table[5], speed)
  307. LH.C0 = clerp(LH.C0, table[6], speed)
  308. if bool == true then
  309. if resetc1 == false then
  310. resetc1 = true
  311. RootJoint.C1 = RootJoint.C1
  312. Torso.Neck.C1 = Torso.Neck.C1
  313. RW.C1 = rarmc1
  314. LW.C1 = larmc1
  315. RH.C1 = rlegc1
  316. LH.C1 = llegc1
  317. end
  318. end
  319. end
  320.  
  321. ArtificialHB = Create("BindableEvent", script){
  322. Parent = script,
  323. Name = "Heartbeat",
  324. }
  325.  
  326. script:WaitForChild("Heartbeat")
  327.  
  328. frame = 1 / 500
  329. tf = 0
  330. allowframeloss = false
  331. tossremainder = false
  332. lastframe = tick()
  333. script.Heartbeat:Fire()
  334.  
  335. game:GetService("RunService").Heartbeat:connect(function(s, p)
  336. tf = tf + s
  337. if tf >= frame then
  338. if allowframeloss then
  339. script.Heartbeat:Fire()
  340. lastframe = tick()
  341. else
  342. for i = 1, math.floor(tf / frame) do
  343. script.Heartbeat:Fire()
  344. end
  345. lastframe = tick()
  346. end
  347. if tossremainder then
  348. tf = 0
  349. else
  350. tf = tf - frame * math.floor(tf / frame)
  351. end
  352. end
  353. end)
  354.  
  355. function swait(num)
  356. if num == 0 or num == nil then
  357. ArtificialHB.Event:wait()
  358. else
  359. for i = 0, num do
  360. ArtificialHB.Event:wait()
  361. end
  362. end
  363. end
  364.  
  365. function RemoveOutlines(part)
  366. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  367. end
  368.  
  369. CFuncs = {
  370. Part = {
  371. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  372. local Part = Create("Part"){
  373. Parent = Parent,
  374. Reflectance = Reflectance,
  375. Transparency = Transparency,
  376. CanCollide = false,
  377. Locked = true,
  378. BrickColor = BrickColor.new(tostring(BColor)),
  379. Name = Name,
  380. Size = Size,
  381. Material = Material,
  382. }
  383. RemoveOutlines(Part)
  384. if Size == Vector3.new() then
  385. Part.Size = Vector3.new(0.2, 0.2, 0.2)
  386. else
  387. Part.Size = Size
  388. end
  389. return Part
  390. end;
  391. };
  392.  
  393. Mesh = {
  394. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  395. local Msh = Create(Mesh){
  396. Parent = Part,
  397. Offset = OffSet,
  398. Scale = Scale,
  399. }
  400. if Mesh == "SpecialMesh" then
  401. Msh.MeshType = MeshType
  402. Msh.MeshId = MeshId
  403. end
  404. return Msh
  405. end;
  406. };
  407.  
  408. Weld = {
  409. Create = function(Parent, Part0, Part1, C0, C1)
  410. local Weld = Create("Weld"){
  411. Parent = Parent,
  412. Part0 = Part0,
  413. Part1 = Part1,
  414. C0 = C0,
  415. C1 = C1,
  416. }
  417. return Weld
  418. end;
  419. };
  420.  
  421. Sound = {
  422. Create = function(id, par, vol, pit)
  423. local Sound = Create("Sound"){
  424. Volume = vol,
  425. Pitch = pit or 1,
  426. SoundId = "rbxassetid://" .. id,
  427. Parent = par or workspace,
  428. }
  429. Sound:play()
  430. return Sound
  431. end;
  432. };
  433.  
  434. Decal = {
  435. Create = function(Color, Texture, Transparency, Name, Parent)
  436. local Decal = Create("Decal"){
  437. Color3 = Color,
  438. Texture = "rbxassetid://" .. Texture,
  439. Transparency = Transparency,
  440. Name = Name,
  441. Parent = Parent,
  442. }
  443. return Decal
  444. end;
  445. };
  446.  
  447. BillboardGui = {
  448. Create = function(Parent, Image, Position, Size)
  449. local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1))
  450. BillPar.CFrame = CFrame.new(Position)
  451. local Bill = Create("BillboardGui"){
  452. Parent = BillPar,
  453. Adornee = BillPar,
  454. Size = UDim2.new(1, 0, 1, 0),
  455. SizeOffset = Vector2.new(Size, Size),
  456. }
  457. local d = Create("ImageLabel", Bill){
  458. Parent = Bill,
  459. BackgroundTransparency = 1,
  460. Size = UDim2.new(1, 0, 1, 0),
  461. Image = "rbxassetid://" .. Image,
  462. }
  463. return BillPar
  464. end
  465. };
  466.  
  467. ParticleEmitter = {
  468. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  469. local Particle = Create("ParticleEmitter"){
  470. Parent = Parent,
  471. Color = ColorSequence.new(Color1, Color2),
  472. LightEmission = LightEmission,
  473. Size = Size,
  474. Texture = Texture,
  475. Transparency = Transparency,
  476. ZOffset = ZOffset,
  477. Acceleration = Accel,
  478. Drag = Drag,
  479. LockedToPart = LockedToPart,
  480. VelocityInheritance = VelocityInheritance,
  481. EmissionDirection = EmissionDirection,
  482. Enabled = Enabled,
  483. Lifetime = LifeTime,
  484. Rate = Rate,
  485. Rotation = Rotation,
  486. RotSpeed = RotSpeed,
  487. Speed = Speed,
  488. VelocitySpread = VelocitySpread,
  489. }
  490. return Particle
  491. end;
  492. };
  493.  
  494. CreateTemplate = {
  495.  
  496. };
  497. }
  498.  
  499. function rayCast(Position, Direction, Range, Ignore)
  500. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  501. end
  502.  
  503. function FindNearestTorso(Position, Distance, SinglePlayer)
  504. if SinglePlayer then
  505. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  506. end
  507. local List = {}
  508. for i, v in pairs(workspace:GetChildren()) do
  509. if v:IsA("Model") then
  510. if v:findFirstChild("Torso") then
  511. if v ~= Character then
  512. if (v.Torso.Position - Position).magnitude <= Distance then
  513. table.insert(List, v)
  514. end
  515. end
  516. end
  517. end
  518. end
  519. return List
  520. end
  521.  
  522. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  523. if hit.Parent == nil then
  524. return
  525. end
  526. local h = hit.Parent:FindFirstChild("Part")
  527. for _, v in pairs(hit.Parent:children()) do
  528. if v:IsA("Part") then
  529. h = v
  530. end
  531. end
  532. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent.Name ~= "Base" and hit ~= nil then
  533. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  534. if hit.Parent.DebounceHit.Value == true then
  535. return
  536. end
  537. end
  538. local c = Create("ObjectValue"){
  539. Name = "creator",
  540. Value = game:service("Players").LocalPlayer,
  541. Parent = h,
  542. }
  543. game:GetService("Debris"):AddItem(c, .5)
  544. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  545. local Damage = math.random(minim, maxim)
  546. local blocked = false
  547. local block = hit.Parent:findFirstChild("Block")
  548. if block ~= nil then
  549. if block.className == "IntValue" then
  550. if block.Value > 0 then
  551. blocked = true
  552. block.Value = block.Value - 1
  553. print(block.Value)
  554. end
  555. end
  556. end
  557. if Type == "Knockdown" then
  558. local hum = hit.Parent.Humanoid
  559. hum.PlatformStand = true
  560. coroutine.resume(coroutine.create(function(HHumanoid)
  561. swait(1)
  562. HHumanoid.PlatformStand = false
  563. end), hum)
  564. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  565. local bodvol = Create("BodyVelocity"){
  566. velocity = angle * knockback,
  567. P = 5000,
  568. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  569. Parent = hit,
  570. }
  571. local rl = Create("BodyAngularVelocity"){
  572. P = 3000,
  573. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  574. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  575. Parent = hit,
  576. }
  577. game:GetService("Debris"):AddItem(bodvol, .5)
  578. game:GetService("Debris"):AddItem(rl, .5)
  579. elseif Type == "Normal" then
  580. local vp = Create("BodyVelocity"){
  581. P = 500,
  582. maxForce = Vector3.new(math.huge, 0, math.huge),
  583. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  584. }
  585. if knockback > 0 then
  586. vp.Parent = hit
  587. hit.Parent = workspace
  588. hit.Anchored = false
  589. hit.CanCollide = false
  590. hit:BreakJoints()
  591. end
  592. game:GetService("Debris"):AddItem(vp, .5)
  593. elseif Type == "Up" then
  594. local bodyVelocity = Create("BodyVelocity"){
  595. velocity = Vector3.new(0, 20, 0),
  596. P = 5000,
  597. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  598. Parent = hit,
  599. }
  600. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  601. elseif Type == "DarkUp" then
  602. coroutine.resume(coroutine.create(function()
  603. for i = 0, 1, 0.1 do
  604. swait()
  605. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  606. end
  607. end))
  608. local bodyVelocity = Create("BodyVelocity"){
  609. velocity = Vector3.new(0, 20, 0),
  610. P = 5000,
  611. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  612. Parent = hit,
  613. }
  614. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  615. elseif Type == "Snare" then
  616. local bp = Create("BodyPosition"){
  617. P = 2000,
  618. D = 100,
  619. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  620. position = hit.Parent.Torso.Position,
  621. Parent = hit.Parent.Torso,
  622. }
  623. game:GetService("Debris"):AddItem(bp, 1)
  624. elseif Type == "Freeze" then
  625. local BodPos = Create("BodyPosition"){
  626. P = 50000,
  627. D = 1000,
  628. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  629. position = hit.Parent.Torso.Position,
  630. Parent = hit.Parent.Torso,
  631. }
  632. local BodGy = Create("BodyGyro") {
  633. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  634. P = 20e+003,
  635. Parent = hit.Parent.Torso,
  636. cframe = hit.Parent.Torso.CFrame,
  637. }
  638. hit.Parent.Torso.Anchored = true
  639. coroutine.resume(coroutine.create(function(Part)
  640. swait(1.5)
  641. Part.Anchored = false
  642. end), hit.Parent.Torso)
  643. game:GetService("Debris"):AddItem(BodPos, 3)
  644. game:GetService("Debris"):AddItem(BodGy, 3)
  645. end
  646. local debounce = Create("BoolValue"){
  647. Name = "DebounceHit",
  648. Parent = hit.Parent,
  649. Value = true,
  650. }
  651. game:GetService("Debris"):AddItem(debounce, Delay)
  652. c = Create("ObjectValue"){
  653. Name = "creator",
  654. Value = Player,
  655. Parent = h,
  656. }
  657. game:GetService("Debris"):AddItem(c, .5)
  658. end
  659. end
  660.  
  661. function ShowDamage(Pos, Text, Time, Color)
  662. local Rate = (1 / 30)
  663. local Pos = (Pos or Vector3.new(0, 0, 0))
  664. local Text = (Text or "")
  665. local Time = (Time or 2)
  666. local Color = (Color or Color3.new(1, 0, 1))
  667. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  668. EffectPart.Anchored = true
  669. local BillboardGui = Create("BillboardGui"){
  670. Size = UDim2.new(3, 0, 3, 0),
  671. Adornee = EffectPart,
  672. Parent = EffectPart,
  673. }
  674. local TextLabel = Create("TextLabel"){
  675. BackgroundTransparency = 1,
  676. Size = UDim2.new(1, 0, 1, 0),
  677. Text = Text,
  678. Font = "Garamond",
  679. TextColor3 = Torso.Color,
  680. TextScaled = true,
  681. Parent = BillboardGui,
  682. }
  683. game.Debris:AddItem(EffectPart, (Time))
  684. EffectPart.Parent = game:GetService("Workspace")
  685. delay(0, function()
  686. local Frames = (Time / Rate)
  687. for Frame = 1, Frames do
  688. wait(Rate)
  689. local Percent = (Frame / Frames)
  690. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  691. TextLabel.TextTransparency = Percent
  692. end
  693. if EffectPart and EffectPart.Parent then
  694. EffectPart:Destroy()
  695. end
  696. end)
  697. end
  698.  
  699.  
  700.  
  701.  
  702. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  703. for _, c in pairs(workspace:children()) do
  704. local hum = c:findFirstChild("Humanoid")
  705. if hum ~= nil then
  706. local head = hit
  707. if head ~= nil then
  708. local targ = head.Position - Part.Position
  709. local mag = targ.magnitude
  710. if mag <= Magnitude and c.Name ~= Player.Name then
  711. CFuncs.Sound.Create("324867021", head, 1, 1)
  712. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, HitSound, HitPitch)
  713. end
  714. end
  715. end
  716. end
  717. end
  718.  
  719.  
  720. coroutine.resume(coroutine.create(function()
  721. while wait() do
  722. for i = 1,50 do
  723. wait()
  724. for i,v in pairs(m:GetChildren()) do
  725. if v.ClassName == "Part" or v.ClassName == "Wedge" then
  726. v.Color = v.Color:lerp(Color3.fromRGB(85, 103, 34), 0.05)
  727. end
  728. end
  729. end
  730. for i = 1,50 do
  731. wait()
  732. for i,v in pairs(m:GetChildren()) do
  733. if v.ClassName == "Part" or v.ClassName == "Wedge" then
  734. v.Color = v.Color:lerp(Color3.fromRGB(85, 103, 34), 0.05)
  735. end
  736. end
  737. end
  738. for i = 1,50 do
  739. wait()
  740. for i,v in pairs(m:GetChildren()) do
  741. if v.ClassName == "Part" or v.ClassName == "Wedge" then
  742. v.Color = v.Color:lerp(Color3.fromRGB(85, 103, 34), 0.05)
  743. end
  744. end
  745. end
  746. end
  747. end))
  748. Handle=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Bright green","Handle",Vector3.new(1, 1.20000005, 1))
  749. HandleWeld=CFuncs.Weld.Create(m,Character["Right Arm"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.435136795, -0.716373444, -0.168147802, -0.184279382, -0.967371345, 0.173878923, -0.0978992507, -0.157963246, -0.982580066, 0.977986097, -0.198091835, -0.0655955523))
  750. Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1))
  751. PartWeld=CFuncs.Weld.Create(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-8.36849213e-05, 4.00039482, -5.86509705e-05, 3.83518636e-06, 8.29994678e-06, -1, 4.9972441e-06, -1.00000012, -8.29994678e-06, -1.00000012, -4.9949158e-06, -3.83518636e-06))
  752. CFuncs.Mesh.Create("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.400000006, 1, 0.0500000007))
  753. Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1))
  754. PartWeld=CFuncs.Weld.Create(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-9.67979431e-05, -4.00035858, 0.499849081, -0.999994338, 5.56639861e-06, 1.65775418e-06, 5.24974894e-06, 0.999995232, -5.0291419e-06, -3.25776637e-06, -5.08874655e-06, -0.999990761))
  755. CFuncs.Mesh.Create("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.0500000007, 1, 0.600000024))
  756. Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1))
  757. PartWeld=CFuncs.Weld.Create(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.17232513e-05, 3.20031929, -3.71932983e-05, 3.83518636e-06, 8.29994678e-06, -1, 4.9972441e-06, -1.00000012, -8.29994678e-06, -1.00000012, -4.9949158e-06, -3.83518636e-06))
  758. CFuncs.Mesh.Create("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.60000002, 0.400000006, 0.0500000007))
  759. Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1))
  760. PartWeld=CFuncs.Weld.Create(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(9.48905945e-05, -4.00033379, 0.499926567, 1, -5.21628408e-06, -3.65823939e-06, 5.21626544e-06, 1, -5.09625352e-06, 3.658266e-06, 5.09623442e-06, 1))
  761. CFuncs.Mesh.Create("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.0500000007, 1, 0.600000024))
  762. Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1))
  763. PartWeld=CFuncs.Weld.Create(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.74724579e-05, 2.90030861, -2.95639038e-05, 3.83518636e-06, 8.29994678e-06, -1, 4.9972441e-06, -1.00000012, -8.29994678e-06, -1.00000012, -4.9949158e-06, -3.83518636e-06))
  764. CFuncs.Mesh.Create("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.400000006, 0.400000006, 0.400000006))
  765. Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1))
  766. PartWeld=CFuncs.Weld.Create(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0976924896, -1.42856026, 1.57356262e-05, 3.90782952e-06, 0.275675088, -0.961250901, 5.61308116e-06, -0.96125102, -0.275675088, -1.00000012, -4.33286186e-06, -5.2973628e-06))
  767. CFuncs.Mesh.Create("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 0.200000003))
  768. Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1))
  769. PartWeld=CFuncs.Weld.Create(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.93119049e-05, -0.700065613, 1.33514404e-05, 3.83518636e-06, 8.29994678e-06, -1, 4.9972441e-06, -1.00000012, -8.29994678e-06, -1.00000012, -4.9949158e-06, -3.83518636e-06))
  770. CFuncs.Mesh.Create("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.5, 0.5, 0.5))
  771. Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1))
  772. PartWeld=CFuncs.Weld.Create(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0726666451, 1.43006897, 1.62124634e-05, -5.01610339e-06, 0.258840203, 0.96592015, -3.55858356e-06, 0.96592021, -0.258840173, -1.00000012, -4.73321415e-06, -3.92459333e-06))
  773. CFuncs.Mesh.Create("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 0.200000003))
  774. Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1))
  775. PartWeld=CFuncs.Weld.Create(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.14848328e-05, 4.36306e-05, 2.00019836, 1, -5.38327731e-06, -2.46055424e-06, -2.4586916e-06, 8.36700201e-06, -1, 5.40760811e-06, 1, 8.37445259e-06))
  776. CFuncs.Mesh.Create("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 0.200000003))
  777. Shaft=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Brown","Shaft",Vector3.new(1, 3.60000014, 1))
  778. ShaftWeld=CFuncs.Weld.Create(m,Handle,Shaft,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.21729279e-05, 1.20008087, -2.24113464e-05, 3.14228237e-06, 4.38094139e-06, -1.00000012, 2.94635538e-06, -1, -4.38839197e-06, -1, -2.95066275e-06, -3.14228237e-06))
  779. CFuncs.Mesh.Create("CylinderMesh",Shaft,"","",Vector3.new(0, 0, 0),Vector3.new(0.300000012, 1, 0.300000012))
  780. Hitbox=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","Hitbox",Vector3.new(7, 3, 3))
  781. HitboxWeld=CFuncs.Weld.Create(m,Handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.19377899, -0.184207916, -0.14117223, -0.00053447485, 0.99471724, -0.102652542, -0.999858558, 0.00119461119, 0.0167820305, 0.0168160032, 0.102646977, 0.994575679))
  782.  
  783.  
  784. sref = CFuncs.Part.Create(Character, "Neon", 0, 1, BrickColor.new("Black"), "Reference", Vector3.new())
  785. sref.Anchored = true
  786.  
  787. EffectModel = Create("Model"){
  788. Parent = Character,
  789. Name = "Effects",
  790. }
  791.  
  792. Effects = {
  793. Block = {
  794. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  795. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  796. prt.Anchored = true
  797. prt.CFrame = cframe
  798. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  799. game:GetService("Debris"):AddItem(prt, 10)
  800. if Type == 1 or Type == nil then
  801. table.insert(Effects, {
  802. prt,
  803. "Block1",
  804. delay,
  805. x3,
  806. y3,
  807. z3,
  808. msh
  809. })
  810. elseif Type == 2 then
  811. table.insert(Effects, {
  812. prt,
  813. "Block2",
  814. delay,
  815. x3,
  816. y3,
  817. z3,
  818. msh
  819. })
  820. end
  821. end;
  822. };
  823.  
  824. Cylinder = {
  825. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  826. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  827. prt.Anchored = true
  828. prt.CFrame = cframe
  829. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  830. game:GetService("Debris"):AddItem(prt, 2)
  831. table.insert(Effects, {
  832. prt,
  833. "Cylinder",
  834. delay,
  835. x3,
  836. y3,
  837. z3,
  838. msh
  839. })
  840. end;
  841. };
  842.  
  843. Head = {
  844. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  845. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  846. prt.Anchored = true
  847. prt.CFrame = cframe
  848. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  849. game:GetService("Debris"):AddItem(prt, 10)
  850. table.insert(Effects, {
  851. prt,
  852. "Cylinder",
  853. delay,
  854. x3,
  855. y3,
  856. z3,
  857. msh
  858. })
  859. end;
  860. };
  861.  
  862. Sphere = {
  863. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  864. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  865. prt.Anchored = true
  866. prt.CFrame = cframe
  867. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  868. game:GetService("Debris"):AddItem(prt, 10)
  869. table.insert(Effects, {
  870. prt,
  871. "Cylinder",
  872. delay,
  873. x3,
  874. y3,
  875. z3,
  876. msh
  877. })
  878. end;
  879. };
  880.  
  881. Elect = {
  882. Create = function(cff, x, y, z)
  883. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("New Yeller"), "Part", Vector3.new(1, 1, 1))
  884. prt.Anchored = true
  885. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  886. prt.CFrame = CFrame.new(prt.Position)
  887. game:GetService("Debris"):AddItem(prt, 2)
  888. local xval = math.random() / 2
  889. local yval = math.random() / 2
  890. local zval = math.random() / 2
  891. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  892. table.insert(Effects, {
  893. prt,
  894. "Elec",
  895. 0.1,
  896. x,
  897. y,
  898. z,
  899. xval,
  900. yval,
  901. zval
  902. })
  903. end;
  904.  
  905. };
  906.  
  907. Ring = {
  908. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  909. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  910. prt.Anchored = true
  911. prt.CFrame = cframe
  912. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  913. game:GetService("Debris"):AddItem(prt, 10)
  914. table.insert(Effects, {
  915. prt,
  916. "Cylinder",
  917. delay,
  918. x3,
  919. y3,
  920. z3,
  921. msh
  922. })
  923. end;
  924. };
  925.  
  926.  
  927. Wave = {
  928. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  929. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  930. prt.Anchored = true
  931. prt.CFrame = cframe
  932. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  933. game:GetService("Debris"):AddItem(prt, 10)
  934. table.insert(Effects, {
  935. prt,
  936. "Cylinder",
  937. delay,
  938. x3,
  939. y3,
  940. z3,
  941. msh
  942. })
  943. end;
  944. };
  945.  
  946. Break = {
  947. Create = function(brickcolor, cframe, x1, y1, z1)
  948. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  949. prt.Anchored = true
  950. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  951. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  952. local num = math.random(10, 50) / 1000
  953. game:GetService("Debris"):AddItem(prt, 10)
  954. table.insert(Effects, {
  955. prt,
  956. "Shatter",
  957. num,
  958. prt.CFrame,
  959. math.random() - math.random(),
  960. 0,
  961. math.random(50, 100) / 100
  962. })
  963. end;
  964. };
  965.  
  966. Fire = {
  967. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  968. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  969. prt.Anchored = true
  970. prt.CFrame = cframe
  971. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  972. game:GetService("Debris"):AddItem(prt, 10)
  973. table.insert(Effects, {
  974. prt,
  975. "Fire",
  976. delay,
  977. 1,
  978. 1,
  979. 1,
  980. msh
  981. })
  982. end;
  983. };
  984.  
  985. FireWave = {
  986. Create = function(brickcolor, cframe, x1, y1, z1)
  987. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
  988. prt.Anchored = true
  989. prt.CFrame = cframe
  990. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  991. local d = Create("Decal"){
  992. Parent = prt,
  993. Texture = "rbxassetid://26356434",
  994. Face = "Top",
  995. }
  996. local d = Create("Decal"){
  997. Parent = prt,
  998. Texture = "rbxassetid://26356434",
  999. Face = "Bottom",
  1000. }
  1001. game:GetService("Debris"):AddItem(prt, 10)
  1002. table.insert(Effects, {
  1003. prt,
  1004. "FireWave",
  1005. 1,
  1006. 30,
  1007. math.random(400, 600) / 100,
  1008. msh
  1009. })
  1010. end;
  1011. };
  1012.  
  1013. Lightning = {
  1014. Create = function(p0, p1, tym, ofs, col, th, tra, last)
  1015. local magz = (p0 - p1).magnitude
  1016. local curpos = p0
  1017. local trz = {
  1018. -ofs,
  1019. ofs
  1020. }
  1021. for i = 1, tym do
  1022. local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
  1023. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  1024. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  1025. li.Material = "Neon"
  1026. if tym == i then
  1027. local magz2 = (curpos - p1).magnitude
  1028. li.Size = Vector3.new(th, th, magz2)
  1029. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  1030. table.insert(Effects, {
  1031. li,
  1032. "Disappear",
  1033. last
  1034. })
  1035. else
  1036. do
  1037. do
  1038. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  1039. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  1040. game.Debris:AddItem(li, 10)
  1041. table.insert(Effects, {
  1042. li,
  1043. "Disappear",
  1044. last
  1045. })
  1046. end
  1047. end
  1048. end
  1049. end
  1050. end
  1051. };
  1052.  
  1053. EffectTemplate = {
  1054.  
  1055. };
  1056. }
  1057.  
  1058.  
  1059.  
  1060. local teem = false
  1061.  
  1062. function ears(key)
  1063. if key == "t" and not teem then
  1064. local teem2 = Instance.new("Sound",Character)
  1065. teem2.SoundId = "rbxassetid://632290372"
  1066. teem2.Volume = 10
  1067. teem2:Play()
  1068. wait(teem2.TimeLength)
  1069. teem2:Destroy()
  1070. end
  1071. end
  1072. Mouse.KeyDown:connect(ears)
  1073.  
  1074. function joj()
  1075. while oof == true do
  1076. attack = true
  1077. local con = Hitbox.Touched:connect(function(hit)
  1078. Damage(Hitbox, hit, 0, 0, math.random(300,300), "Normal", RootPart, 0.2, "148862502", 1)end)
  1079. CFuncs.Sound.Create("511340819", Hitbox, 4, 1)
  1080. for i = 0, 1, 0.1 do
  1081. swait()
  1082. PlayAnimationFromTable({
  1083. CFrame.new(0.318533748, 1.11758709e-08, -0.186876655, 0.571150839, -0.107324705, 0.813798547, -0.321393877, 0.883022606, 0.342018932, -0.755309701, -0.456894249, 0.469845593) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1084. CFrame.new(-0.136643112, 1.46224117, -0.102674514, 0.571150839, -0.321393877, -0.755309701, -0.107324705, 0.883022606, -0.456894249, 0.813798547, 0.342018932, 0.469845593) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1085. CFrame.new(1.34420753, 1.19733691, -0.575926542, -0.0377464592, -0.0365618169, 0.998618245, -0.0365605801, -0.998610795, -0.0379435122, 0.998618245, -0.0379423201, 0.0363572836) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1086. CFrame.new(-1.54852927, 1.0183481, -0.403962731, 0.992945313, -0.0193823874, 0.11697869, 0.0193829238, -0.946746707, -0.321395338, 0.116978586, 0.321395338, -0.93969202) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1087. CFrame.new(1.30056286, -1.52663183, -0.684036016, 0.872286201, -0.321393877, -0.368541837, 0.13550131, 0.883022606, -0.449344397, 0.469847292, 0.342018932, 0.813797712) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1088. CFrame.new(-0.0819230229, -1.98630714, -0.796365142, 0.843013644, -0.321393877, 0.431316614, 0.431316495, 0.883022606, -0.185032547, -0.321394026, 0.342018932, 0.883022547) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1089. }, .3, false)
  1090. end
  1091. for i = 0, 1, 0.1 do
  1092. swait()
  1093. PlayAnimationFromTable({
  1094. CFrame.new(-0.70452857, 1.34110451e-07, -0.85472101, 0.0479760207, 0.375900865, -0.925417125, -0.321394145, 0.883022726, 0.342018545, 0.945729494, 0.281014919, 0.163176239) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1095. CFrame.new(-0.332258016, 1.42813265, -0.198432297, 0.0479760207, -0.321394145, 0.945729494, 0.375900865, 0.883022726, 0.281014919, -0.925417125, 0.342018545, 0.163176239) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1096. CFrame.new(1.3427434, 0.740131199, -1.01291919, 0.0505371541, -0.0144109726, 0.998618364, 0.883102953, 0.467642725, -0.0379427671, -0.466449738, 0.883800209, 0.0363596678) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1097. CFrame.new(-1.46270001, 0.38253215, -1.0271579, 0.992945492, -0.11697793, -0.01938124, 0.0193838775, 0.321395963, -0.946746528, 0.116977483, 0.939691901, 0.321396172) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1098. CFrame.new(1.30056417, -1.52663159, -0.684035659, 0.872286379, -0.321394145, -0.368541002, 0.1355021, 0.883022726, -0.449344009, 0.469846606, 0.342018545, 0.813798249) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1099. CFrame.new(-0.0819211155, -1.98630702, -0.796365023, 0.84301424, -0.321394145, 0.431315303, 0.431316257, 0.883022726, -0.18503274, -0.321392775, 0.342018545, 0.883023262) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1100. }, .3, false)
  1101. end
  1102. con:Disconnect()
  1103. attack = false
  1104. end
  1105. end
  1106.  
  1107. Mouse.Button1Down:connect(function()
  1108. if attack == false and oof == false then
  1109. oof = true
  1110. joj()
  1111. end
  1112. end)
  1113.  
  1114.  
  1115.  
  1116. Mouse.Button1Up:connect(function()
  1117. if attack == true and oof == true then
  1118. oof = false
  1119. end
  1120. end)
  1121.  
  1122.  
  1123.  
  1124.  
  1125. while true do
  1126. swait()
  1127. sref.CFrame = RightArm.CFrame * CFrame.new(0, -1.5, 0) * CFrame.fromEulerAnglesXYZ(-1.57, 0, 0)
  1128. for i, v in pairs(Character:GetChildren()) do
  1129. if v:IsA("Part") then
  1130. v.Material = "SmoothPlastic"
  1131. elseif v:IsA("Accessory") then
  1132. v:WaitForChild("Handle").Material = "SmoothPlastic"
  1133. end
  1134. end
  1135. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1136. velocity = RootPart.Velocity.y
  1137. sine = sine + change
  1138. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1139. if RootPart.Velocity.y > 1 and hit == nil then
  1140. Anim = "Jump"
  1141. if attack == false then
  1142. PlayAnimationFromTable({
  1143. CFrame.new(0, 0.0486936681, -0.0429394133, 1, 0, -0, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1144. CFrame.new(0, 1.48698187, -0.0992434025, 1, 0, 0, 0, 0.98480767, 0.173648626, -0, -0.173648626, 0.98480767) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1145. CFrame.new(1.66118193, 0.583681226, 0.430878729, 0.556951106, -0.772693694, -0.30454877, 0.830109596, 0.506009281, 0.234249175, -0.026898358, -0.383274168, 0.923242927) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1146. CFrame.new(-1.65963519, 0.695907593, 0.339572817, 0.482961893, 0.810776234, 0.330741376, -0.866026103, 0.498096228, 0.0435779653, -0.129409045, -0.307477146, 0.94271481) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1147. CFrame.new(0.499997795, -1.71809137, -0.102601528, 0.984807849, 3.55863392e-007, -0.173647791, 0.0593907312, 0.939692557, 0.336824298, 0.163175657, -0.342020214, 0.925416589) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1148. CFrame.new(-0.599241376, -1.29528463, -0.396836221, 0.992403984, 0.086823605, 0.0871558413, -0.118890785, 0.858931601, 0.498097867, -0.0316142589, -0.504676282, 0.862729669) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1149. }, .3, false)
  1150. end
  1151. elseif RootPart.Velocity.y < -1 and hit == nil then
  1152. Anim = "Fall"
  1153. if attack == false then
  1154. PlayAnimationFromTable({
  1155. CFrame.new(-0, -0.0520263538, -0.0354017057, 1, 0, 0, 0, 0.965925872, 0.258818984, 0, -0.258818984, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1156. CFrame.new(0, 1.51533091, -0.10684365, 1, 0, 0, 0, 0.965925872, 0.258819342, 0, -0.258819342, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1157. CFrame.new(1.67554009, 0.885679007, 0.385592818, 0.374123871, -0.696466088, -0.61234498, 0.914592147, 0.386364758, 0.119345918, 0.153468132, -0.604696095, 0.781530797) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1158. CFrame.new(-1.67474985, 0.999329269, 0.296636045, 0.250219911, 0.753912985, 0.607457995, -0.927206695, 0.367205799, -0.0738086402, -0.278707415, -0.544770718, 0.79091537) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1159. CFrame.new(0.504494727, -1.81757987, -0.0935191363, 0.984807849, -0.0449431092, -0.167730823, 0.059390761, 0.99484998, 0.0821366012, 0.163175508, -0.0908504426, 0.982405365) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1160. CFrame.new(-0.623603821, -1.49203336, -0.421764404, 0.992403865, 0.122534379, 0.0109562073, -0.118891656, 0.978150725, -0.17054674, -0.0316146575, 0.167948633, 0.985288799) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1161. }, .3, false)
  1162. end
  1163. elseif Torsovelocity < 1 and hit ~= nil then
  1164. Anim = "Idle"
  1165. if attack == false then
  1166. change = 1
  1167. PlayAnimationFromTable({
  1168. CFrame.new(1.90734863e-06, 0, 0, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1169. CFrame.new(-1.90734863e-06, 1.49520886, -0.307131112, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1170. CFrame.new(1.37194049, -0.0753216743, -0.606283188, 0.229498088, 0.301554978, 0.925416291, 0.481514871, 0.791113436, -0.377204269, -0.845857084, 0.532169282, 0.0363558233) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1171. CFrame.new(-1.5, 0.0121572316, -0.267316073, 1, 0, -0, 0, 0.642788708, -0.766043544, 0, 0.766043544, 0.642788708) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1172. CFrame.new(0.699996471, -1.87938261, -0.684038877, 0.866025388, 0, -0.500000238, -0.171010032, 0.939692736, -0.296197921, 0.469846606, 0.342019886, 0.813797772) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1173. CFrame.new(-0.756342053, -1.83849907, -0.79636544, 0.939692736, 0, 0.342019886, 0.116977625, 0.939692736, -0.321393639, -0.321393639, 0.342019886, 0.883022428) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1174. }, .3, false)
  1175. end
  1176. elseif Torsovelocity > 2 and hit ~= nil then
  1177. Anim = "Walk"
  1178. if attack == false then
  1179. change = 2
  1180. PlayAnimationFromTable({
  1181. CFrame.new(1.90734863e-06, 0, 0, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1182. CFrame.new(-1.90734863e-06, 1.49520886, -0.307131112, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1183. CFrame.new(1.37194049, -0.0753216743, -0.606283188, 0.229498088, 0.301554978, 0.925416291, 0.481514871, 0.791113436, -0.377204269, -0.845857084, 0.532169282, 0.0363558233) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1184. CFrame.new(-1.5, 0.0121572316, -0.267316073, 1, 0, -0, 0, 0.642788708, -0.766043544, 0, 0.766043544, 0.642788708) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1185. CFrame.new(.5, -1.64 - 0.5 * math.cos(sine / 8) / 2, 0 + 2 * math.sin(sine / 8) / 2) * CFrame.Angles(math.rad(-70 * math.sin(sine / 8)), math.rad(-3), math.rad(0)),
  1186. CFrame.new(-.5, -1.64 + 0.5 * math.cos(sine / 8) / 2, 0 - 2 * math.sin(sine / 8) / 2) * CFrame.Angles(math.rad(70 * math.sin(sine / 8)), math.rad(3), math.rad(0)),
  1187. }, .3, false)
  1188. end
  1189. end
  1190. if 0 < #Effects then
  1191. for e = 1, #Effects do
  1192. if Effects[e] ~= nil then
  1193. local Thing = Effects[e]
  1194. if Thing ~= nil then
  1195. local Part = Thing[1]
  1196. local Mode = Thing[2]
  1197. local Delay = Thing[3]
  1198. local IncX = Thing[4]
  1199. local IncY = Thing[5]
  1200. local IncZ = Thing[6]
  1201. if Thing[2] == "Shoot" then
  1202. local Look = Thing[1]
  1203. local move = 5
  1204. local hit, pos = rayCast(Thing[4], Thing[1], move, Character)
  1205. if Thing[10] ~= nil then
  1206. da = pos
  1207. cf2 = CFrame.new(Thing[4], Thing[10].Position)
  1208. cfa = CFrame.new(Thing[4], pos)
  1209. tehCF = cfa:lerp(cf2, 0.2)
  1210. Thing[1] = tehCF.lookVector
  1211. end
  1212. local mag = (Thing[4] - pos).magnitude
  1213. Effects.Elect.Create(CFrame.new((Thing[4] + pos) / 2, pos), 4, 4, 4)
  1214. Effects.Sphere.Create(BrickColor.new("New Yeller"), CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 3, 3, 3, 5, 5, 5, 0.15)
  1215. Thing[4] = Thing[4] + Look * move
  1216. Thing[3] = Thing[3] - 1
  1217. if 2 < Thing[5] then
  1218. Thing[5] = Thing[5] - 0.3
  1219. Thing[6] = Thing[6] - 0.3
  1220. end
  1221. if hit ~= nil then
  1222. Thing[3] = 0
  1223. MagnitudeDamage(hit, 5, 10, 15, 0, "Normal", "161006093", 0.8)
  1224. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1225. ref.Anchored = true
  1226. ref.CFrame = CFrame.new(pos)
  1227. Effects.Block.Create(BrickColor.new("New Yeller"), CFrame.new(pos), 1, 1, 1, 2, 2, 2, .05)
  1228. Effects.Sphere.Create(BrickColor.new("New Yeller"), CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.03)
  1229. game:GetService("Debris"):AddItem(ref, 1)
  1230. end
  1231. if Thing[3] <= 0 then
  1232. table.remove(Effects, e)
  1233. end
  1234. end
  1235. do
  1236. do
  1237. if Thing[2] == "FireWave" then
  1238. if Thing[3] <= Thing[4] then
  1239. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
  1240. Thing[3] = Thing[3] + 1
  1241. Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
  1242. else
  1243. Part.Parent = nil
  1244. table.remove(Effects, e)
  1245. end
  1246. end
  1247. if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
  1248. if Thing[1].Transparency <= 1 then
  1249. if Thing[2] == "Block1" then
  1250. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1251. Mesh = Thing[7]
  1252. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1253. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1254. else
  1255. if Thing[2] == "Block2" then
  1256. Thing[1].CFrame = Thing[1].CFrame
  1257. Mesh = Thing[7]
  1258. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1259. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1260. else
  1261. if Thing[2] == "Fire" then
  1262. Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
  1263. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1264. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1265. else
  1266. if Thing[2] == "Cylinder" then
  1267. Mesh = Thing[7]
  1268. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1269. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1270. else
  1271. if Thing[2] == "Blood" then
  1272. Mesh = Thing[7]
  1273. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  1274. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1275. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1276. else
  1277. if Thing[2] == "Elec" then
  1278. Thing[1].Size = Thing[1].Size + Vector3.new(Thing[7], Thing[8], Thing[9])
  1279. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1280. else
  1281. if Thing[2] == "Disappear" then
  1282. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1283. end
  1284. end
  1285. end
  1286. end
  1287. end
  1288. end
  1289. end
  1290. else
  1291. Part.Parent = nil
  1292. table.remove(Effects, e)
  1293. end
  1294. end
  1295. end
  1296. end
  1297. end
  1298. end
  1299. end
  1300. end
  1301. end
Add Comment
Please, Sign In to add comment