Advertisement
UltimatePaster5677

Uncle Defranco FE

Oct 13th, 2018
389
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code by Mokiros")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local Mouse = Player:GetMouse()
  66. local UIS = game:GetService("UserInputService")
  67. local input = function(io,a)
  68. if a then return end
  69. --Since InputObject is a client-side instance, we create and pass table instead
  70. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  71. end
  72. UIS.InputBegan:Connect(input)
  73. UIS.InputEnded:Connect(input)
  74.  
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84.  
  85. ----Sandboxed game object that allows the usage of client-side methods and services
  86. --Real game object
  87. local _rg = game
  88.  
  89. --Metatable for fake service
  90. local fsmt = {
  91. __index = function(self,k)
  92. local s = rawget(self,"_RealService")
  93. if s then return s[k] end
  94. end,
  95. __newindex = function(self,k,v)
  96. local s = rawget(self,"_RealService")
  97. if s then s[k]=v end
  98. end,
  99. __call = function(self,...)
  100. local s = rawget(self,"_RealService")
  101. if s then return s(...) end
  102. end
  103. }
  104. local function FakeService(t,RealService)
  105. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  106. return setmetatable(t,fsmt)
  107. end
  108.  
  109. --Fake game object
  110. local g = {
  111. GetService = function(self,s)
  112. return self[s]
  113. end,
  114. Players = FakeService({
  115. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  116. },"Players"),
  117. UserInputService = FakeService(UIS,"UserInputService"),
  118. ContextActionService = FakeService(CAS,"ContextActionService"),
  119. }
  120. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  121. g.service = g.GetService
  122.  
  123. g.RunService = FakeService({
  124. RenderStepped = _rg:GetService("RunService").Heartbeat,
  125. BindToRenderStep = function(self,name,_,fun)
  126. self._btrs[name] = self.Heartbeat:Connect(fun)
  127. end,
  128. UnbindFromRenderStep = function(self,name)
  129. self._btrs[name]:Disconnect()
  130. end,
  131. },"RunService")
  132.  
  133. setmetatable(g,{
  134. __index=function(self,s)
  135. return _rg:GetService(s) or typeof(_rg[s])=="function"
  136. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  137. end,
  138. __newindex = fsmt.__newindex,
  139. __call = fsmt.__call
  140. })
  141. --Changing owner to fake player object to support owner:GetMouse()
  142. game,owner = g,g.Players.LocalPlayer
  143. end
  144. print"Made by SezHu for Void's Script Builder. If logged, please do not remove credit."
  145. print"Converted to FE by David The Extreme Gamer"
  146. wait(1 / 60)
  147. Effects = { }
  148. local Player = game.Players.localPlayer
  149. local Character = Player.Character
  150. local Humanoid = Character.Humanoid
  151. Humanoid.WalkSpeed = 100
  152. local Mouse = Player:GetMouse()
  153. local LeftArm = Character["Left Arm"]
  154. local RightArm = Character["Right Arm"]
  155. local LeftLeg = Character["Left Leg"]
  156. local RightLeg = Character["Right Leg"]
  157. local Head = Character.Head
  158. local Torso = Character.Torso
  159. local Camera = game.Workspace.CurrentCamera
  160. local RootPart = Character.HumanoidRootPart
  161. local RootJoint = RootPart.RootJoint
  162. local attack = false
  163. local Anim = 'Idle'
  164. local attacktype = 1
  165. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  166. local velocity = RootPart.Velocity.y
  167. local sine = 0
  168. local change = 1
  169. local Create = LoadLibrary("RbxUtility").Create
  170. Head.face.Texture = "http://www.roblox.com/asset/?id=948473243"
  171. Humanoid.Health = math.huge
  172. Instance.new("ForceField",Character).Visible = false
  173. hit = nil
  174. oof = false
  175. for y,t in pairs(Character:GetChildren()) do
  176. if t:IsA("Accessory") and t:FindFirstChild("Handle") then
  177. t.Handle.Transparency = 1
  178. end
  179. end
  180. Character.Shirt:Remove()
  181. Character.Pants:Remove()
  182. pants = Instance.new("Pants", Character)
  183. pants.PantsTemplate = "http://www.roblox.com/asset/?id=242242068"
  184. DHandle = Instance.new("Part")
  185. DMesh = Instance.new("SpecialMesh")
  186. DWeld = Instance.new("Weld")
  187. DHandle.Parent = Character
  188. DHandle.Name = "Handle"
  189. DHandle.CanCollide = false
  190. DHandle.Locked = true
  191. DHandle.Size = Vector3.new(1.93, 1.77, 1.6)
  192. DMesh.Parent = DHandle
  193. DMesh.Scale = DMesh.Scale
  194. DWeld.Parent = DHandle
  195. DWeld.Name = "no"
  196. DWeld.Part0 = Head
  197. DWeld.Part1 = DHandle
  198. DWeld.C0 = CFrame.new(0,.4,0) * CFrame.fromEulerAnglesXYZ(math.rad(-1),0,0)VertexColor = Vector3.new(1,1,1)
  199. DHandle.Transparency = 0
  200. DMesh.MeshId = "http://www.roblox.com/asset/?id=12259089"
  201. DMesh.TextureId = "http://www.roblox.com/asset/?id=12259192"
  202. local m = Create("Model"){
  203. Parent = Character,
  204. Name = "WeaponModel",
  205. }
  206.  
  207. Humanoid.Animator.Parent = nil
  208. Character.Animate.Parent = nil
  209.  
  210. local newMotor = function(part0, part1, c0, c1)
  211. local w = Create('Motor'){
  212. Parent = part0,
  213. Part0 = part0,
  214. Part1 = part1,
  215. C0 = c0,
  216. C1 = c1,
  217. }
  218. return w
  219. end
  220.  
  221. function clerp(a, b, t)
  222. return a:lerp(b, t)
  223. end
  224.  
  225. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  226. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  227.  
  228. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  229. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  230. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  231. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  232. RootJoint.C1 = CFrame.new(0, 0, 0)
  233. RootJoint.C0 = CFrame.new(0, 0, 0)
  234. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  235. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  236.  
  237. local rarmc1 = RW.C1
  238. local larmc1 = LW.C1
  239. local rlegc1 = RH.C1
  240. local llegc1 = LH.C1
  241.  
  242. local resetc1 = false
  243.  
  244. function PlayAnimationFromTable(table, speed, bool)
  245. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  246. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  247. RW.C0 = clerp(RW.C0, table[3], speed)
  248. LW.C0 = clerp(LW.C0, table[4], speed)
  249. RH.C0 = clerp(RH.C0, table[5], speed)
  250. LH.C0 = clerp(LH.C0, table[6], speed)
  251. if bool == true then
  252. if resetc1 == false then
  253. resetc1 = true
  254. RootJoint.C1 = RootJoint.C1
  255. Torso.Neck.C1 = Torso.Neck.C1
  256. RW.C1 = rarmc1
  257. LW.C1 = larmc1
  258. RH.C1 = rlegc1
  259. LH.C1 = llegc1
  260. end
  261. end
  262. end
  263.  
  264. ArtificialHB = Create("BindableEvent", script){
  265. Parent = script,
  266. Name = "Heartbeat",
  267. }
  268.  
  269. script:WaitForChild("Heartbeat")
  270.  
  271. frame = 1 / 500
  272. tf = 0
  273. allowframeloss = false
  274. tossremainder = false
  275. lastframe = tick()
  276. script.Heartbeat:Fire()
  277.  
  278. game:GetService("RunService").Heartbeat:connect(function(s, p)
  279. tf = tf + s
  280. if tf >= frame then
  281. if allowframeloss then
  282. script.Heartbeat:Fire()
  283. lastframe = tick()
  284. else
  285. for i = 1, math.floor(tf / frame) do
  286. script.Heartbeat:Fire()
  287. end
  288. lastframe = tick()
  289. end
  290. if tossremainder then
  291. tf = 0
  292. else
  293. tf = tf - frame * math.floor(tf / frame)
  294. end
  295. end
  296. end)
  297.  
  298. function swait(num)
  299. if num == 0 or num == nil then
  300. ArtificialHB.Event:wait()
  301. else
  302. for i = 0, num do
  303. ArtificialHB.Event:wait()
  304. end
  305. end
  306. end
  307.  
  308. function RemoveOutlines(part)
  309. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  310. end
  311.  
  312. CFuncs = {
  313. Part = {
  314. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  315. local Part = Create("Part"){
  316. Parent = Parent,
  317. Reflectance = Reflectance,
  318. Transparency = Transparency,
  319. CanCollide = false,
  320. Locked = true,
  321. BrickColor = BrickColor.new(tostring(BColor)),
  322. Name = Name,
  323. Size = Size,
  324. Material = Material,
  325. }
  326. RemoveOutlines(Part)
  327. if Size == Vector3.new() then
  328. Part.Size = Vector3.new(0.2, 0.2, 0.2)
  329. else
  330. Part.Size = Size
  331. end
  332. return Part
  333. end;
  334. };
  335.  
  336. Mesh = {
  337. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  338. local Msh = Create(Mesh){
  339. Parent = Part,
  340. Offset = OffSet,
  341. Scale = Scale,
  342. }
  343. if Mesh == "SpecialMesh" then
  344. Msh.MeshType = MeshType
  345. Msh.MeshId = MeshId
  346. end
  347. return Msh
  348. end;
  349. };
  350.  
  351. Weld = {
  352. Create = function(Parent, Part0, Part1, C0, C1)
  353. local Weld = Create("Weld"){
  354. Parent = Parent,
  355. Part0 = Part0,
  356. Part1 = Part1,
  357. C0 = C0,
  358. C1 = C1,
  359. }
  360. return Weld
  361. end;
  362. };
  363.  
  364. Sound = {
  365. Create = function(id, par, vol, pit)
  366. local Sound = Create("Sound"){
  367. Volume = vol,
  368. Pitch = pit or 1,
  369. SoundId = "rbxassetid://" .. id,
  370. Parent = par or workspace,
  371. }
  372. Sound:play()
  373. return Sound
  374. end;
  375. };
  376.  
  377. Decal = {
  378. Create = function(Color, Texture, Transparency, Name, Parent)
  379. local Decal = Create("Decal"){
  380. Color3 = Color,
  381. Texture = "rbxassetid://" .. Texture,
  382. Transparency = Transparency,
  383. Name = Name,
  384. Parent = Parent,
  385. }
  386. return Decal
  387. end;
  388. };
  389.  
  390. BillboardGui = {
  391. Create = function(Parent, Image, Position, Size)
  392. local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1))
  393. BillPar.CFrame = CFrame.new(Position)
  394. local Bill = Create("BillboardGui"){
  395. Parent = BillPar,
  396. Adornee = BillPar,
  397. Size = UDim2.new(1, 0, 1, 0),
  398. SizeOffset = Vector2.new(Size, Size),
  399. }
  400. local d = Create("ImageLabel", Bill){
  401. Parent = Bill,
  402. BackgroundTransparency = 1,
  403. Size = UDim2.new(1, 0, 1, 0),
  404. Image = "rbxassetid://" .. Image,
  405. }
  406. return BillPar
  407. end
  408. };
  409.  
  410. ParticleEmitter = {
  411. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  412. local Particle = Create("ParticleEmitter"){
  413. Parent = Parent,
  414. Color = ColorSequence.new(Color1, Color2),
  415. LightEmission = LightEmission,
  416. Size = Size,
  417. Texture = Texture,
  418. Transparency = Transparency,
  419. ZOffset = ZOffset,
  420. Acceleration = Accel,
  421. Drag = Drag,
  422. LockedToPart = LockedToPart,
  423. VelocityInheritance = VelocityInheritance,
  424. EmissionDirection = EmissionDirection,
  425. Enabled = Enabled,
  426. Lifetime = LifeTime,
  427. Rate = Rate,
  428. Rotation = Rotation,
  429. RotSpeed = RotSpeed,
  430. Speed = Speed,
  431. VelocitySpread = VelocitySpread,
  432. }
  433. return Particle
  434. end;
  435. };
  436.  
  437. CreateTemplate = {
  438.  
  439. };
  440. }
  441.  
  442. function rayCast(Position, Direction, Range, Ignore)
  443. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  444. end
  445.  
  446. function FindNearestTorso(Position, Distance, SinglePlayer)
  447. if SinglePlayer then
  448. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  449. end
  450. local List = {}
  451. for i, v in pairs(workspace:GetChildren()) do
  452. if v:IsA("Model") then
  453. if v:findFirstChild("Torso") then
  454. if v ~= Character then
  455. if (v.Torso.Position - Position).magnitude <= Distance then
  456. table.insert(List, v)
  457. end
  458. end
  459. end
  460. end
  461. end
  462. return List
  463. end
  464.  
  465. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  466. if hit.Parent == nil then
  467. return
  468. end
  469. local h = hit.Parent:FindFirstChild("Part")
  470. for _, v in pairs(hit.Parent:children()) do
  471. if v:IsA("Part") then
  472. h = v
  473. end
  474. end
  475. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent.Name ~= "Base" and hit ~= nil then
  476. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  477. if hit.Parent.DebounceHit.Value == true then
  478. return
  479. end
  480. end
  481. local c = Create("ObjectValue"){
  482. Name = "creator",
  483. Value = game:service("Players").LocalPlayer,
  484. Parent = h,
  485. }
  486. game:GetService("Debris"):AddItem(c, .5)
  487. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  488. local Damage = math.random(minim, maxim)
  489. local blocked = false
  490. local block = hit.Parent:findFirstChild("Block")
  491. if block ~= nil then
  492. if block.className == "IntValue" then
  493. if block.Value > 0 then
  494. blocked = true
  495. block.Value = block.Value - 1
  496. print(block.Value)
  497. end
  498. end
  499. end
  500. if Type == "Knockdown" then
  501. local hum = hit.Parent.Humanoid
  502. hum.PlatformStand = true
  503. coroutine.resume(coroutine.create(function(HHumanoid)
  504. swait(1)
  505. HHumanoid.PlatformStand = false
  506. end), hum)
  507. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  508. local bodvol = Create("BodyVelocity"){
  509. velocity = angle * knockback,
  510. P = 5000,
  511. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  512. Parent = hit,
  513. }
  514. local rl = Create("BodyAngularVelocity"){
  515. P = 3000,
  516. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  517. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  518. Parent = hit,
  519. }
  520. game:GetService("Debris"):AddItem(bodvol, .5)
  521. game:GetService("Debris"):AddItem(rl, .5)
  522. elseif Type == "Normal" then
  523. local vp = Create("BodyVelocity"){
  524. P = 500,
  525. maxForce = Vector3.new(math.huge, 0, math.huge),
  526. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  527. }
  528. if knockback > 0 then
  529. vp.Parent = hit
  530. hit.Parent = workspace
  531. hit.Anchored = false
  532. hit.CanCollide = false
  533. hit:BreakJoints()
  534. end
  535. game:GetService("Debris"):AddItem(vp, .5)
  536. elseif Type == "Up" then
  537. local bodyVelocity = Create("BodyVelocity"){
  538. velocity = Vector3.new(0, 20, 0),
  539. P = 5000,
  540. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  541. Parent = hit,
  542. }
  543. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  544. elseif Type == "DarkUp" then
  545. coroutine.resume(coroutine.create(function()
  546. for i = 0, 1, 0.1 do
  547. swait()
  548. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  549. end
  550. end))
  551. local bodyVelocity = Create("BodyVelocity"){
  552. velocity = Vector3.new(0, 20, 0),
  553. P = 5000,
  554. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  555. Parent = hit,
  556. }
  557. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  558. elseif Type == "Snare" then
  559. local bp = Create("BodyPosition"){
  560. P = 2000,
  561. D = 100,
  562. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  563. position = hit.Parent.Torso.Position,
  564. Parent = hit.Parent.Torso,
  565. }
  566. game:GetService("Debris"):AddItem(bp, 1)
  567. elseif Type == "Freeze" then
  568. local BodPos = Create("BodyPosition"){
  569. P = 50000,
  570. D = 1000,
  571. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  572. position = hit.Parent.Torso.Position,
  573. Parent = hit.Parent.Torso,
  574. }
  575. local BodGy = Create("BodyGyro") {
  576. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  577. P = 20e+003,
  578. Parent = hit.Parent.Torso,
  579. cframe = hit.Parent.Torso.CFrame,
  580. }
  581. hit.Parent.Torso.Anchored = true
  582. coroutine.resume(coroutine.create(function(Part)
  583. swait(1.5)
  584. Part.Anchored = false
  585. end), hit.Parent.Torso)
  586. game:GetService("Debris"):AddItem(BodPos, 3)
  587. game:GetService("Debris"):AddItem(BodGy, 3)
  588. end
  589. local debounce = Create("BoolValue"){
  590. Name = "DebounceHit",
  591. Parent = hit.Parent,
  592. Value = true,
  593. }
  594. game:GetService("Debris"):AddItem(debounce, Delay)
  595. c = Create("ObjectValue"){
  596. Name = "creator",
  597. Value = Player,
  598. Parent = h,
  599. }
  600. game:GetService("Debris"):AddItem(c, .5)
  601. end
  602. end
  603.  
  604. function ShowDamage(Pos, Text, Time, Color)
  605. local Rate = (1 / 30)
  606. local Pos = (Pos or Vector3.new(0, 0, 0))
  607. local Text = (Text or "")
  608. local Time = (Time or 2)
  609. local Color = (Color or Color3.new(1, 0, 1))
  610. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  611. EffectPart.Anchored = true
  612. local BillboardGui = Create("BillboardGui"){
  613. Size = UDim2.new(3, 0, 3, 0),
  614. Adornee = EffectPart,
  615. Parent = EffectPart,
  616. }
  617. local TextLabel = Create("TextLabel"){
  618. BackgroundTransparency = 1,
  619. Size = UDim2.new(1, 0, 1, 0),
  620. Text = Text,
  621. Font = "Garamond",
  622. TextColor3 = Torso.Color,
  623. TextScaled = true,
  624. Parent = BillboardGui,
  625. }
  626. game.Debris:AddItem(EffectPart, (Time))
  627. EffectPart.Parent = game:GetService("Workspace")
  628. delay(0, function()
  629. local Frames = (Time / Rate)
  630. for Frame = 1, Frames do
  631. wait(Rate)
  632. local Percent = (Frame / Frames)
  633. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  634. TextLabel.TextTransparency = Percent
  635. end
  636. if EffectPart and EffectPart.Parent then
  637. EffectPart:Destroy()
  638. end
  639. end)
  640. end
  641.  
  642.  
  643.  
  644.  
  645. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  646. for _, c in pairs(workspace:children()) do
  647. local hum = c:findFirstChild("Humanoid")
  648. if hum ~= nil then
  649. local head = hit
  650. if head ~= nil then
  651. local targ = head.Position - Part.Position
  652. local mag = targ.magnitude
  653. if mag <= Magnitude and c.Name ~= Player.Name then
  654. CFuncs.Sound.Create("324867021", head, 1, 1)
  655. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, HitSound, HitPitch)
  656. end
  657. end
  658. end
  659. end
  660. end
  661.  
  662.  
  663. Handle=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Bright green","Handle",Vector3.new(1, 1.20000005, 1))
  664. 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))
  665. Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1))
  666. 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))
  667. CFuncs.Mesh.Create("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.400000006, 1, 0.0500000007))
  668. Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1))
  669. 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))
  670. CFuncs.Mesh.Create("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.0500000007, 1, 0.600000024))
  671. Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1))
  672. 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))
  673. CFuncs.Mesh.Create("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.60000002, 0.400000006, 0.0500000007))
  674. Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1))
  675. 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))
  676. CFuncs.Mesh.Create("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.0500000007, 1, 0.600000024))
  677. Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1))
  678. 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))
  679. CFuncs.Mesh.Create("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.400000006, 0.400000006, 0.400000006))
  680. Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1))
  681. 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))
  682. CFuncs.Mesh.Create("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 0.200000003))
  683. Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1))
  684. 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))
  685. CFuncs.Mesh.Create("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.5, 0.5, 0.5))
  686. Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1))
  687. 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))
  688. CFuncs.Mesh.Create("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 0.200000003))
  689. Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1))
  690. 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))
  691. CFuncs.Mesh.Create("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 0.200000003))
  692. Shaft=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Brown","Shaft",Vector3.new(1, 3.60000014, 1))
  693. 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))
  694. CFuncs.Mesh.Create("CylinderMesh",Shaft,"","",Vector3.new(0, 0, 0),Vector3.new(0.300000012, 1, 0.300000012))
  695. Hitbox=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","Hitbox",Vector3.new(7, 3, 3))
  696. 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))
  697.  
  698.  
  699. sref = CFuncs.Part.Create(Character, "Neon", 0, 1, BrickColor.new("Black"), "Reference", Vector3.new())
  700. sref.Anchored = true
  701.  
  702. EffectModel = Create("Model"){
  703. Parent = Character,
  704. Name = "Effects",
  705. }
  706.  
  707. Effects = {
  708. Block = {
  709. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  710. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  711. prt.Anchored = true
  712. prt.CFrame = cframe
  713. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  714. game:GetService("Debris"):AddItem(prt, 10)
  715. if Type == 1 or Type == nil then
  716. table.insert(Effects, {
  717. prt,
  718. "Block1",
  719. delay,
  720. x3,
  721. y3,
  722. z3,
  723. msh
  724. })
  725. elseif Type == 2 then
  726. table.insert(Effects, {
  727. prt,
  728. "Block2",
  729. delay,
  730. x3,
  731. y3,
  732. z3,
  733. msh
  734. })
  735. end
  736. end;
  737. };
  738.  
  739. Cylinder = {
  740. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  741. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  742. prt.Anchored = true
  743. prt.CFrame = cframe
  744. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  745. game:GetService("Debris"):AddItem(prt, 2)
  746. table.insert(Effects, {
  747. prt,
  748. "Cylinder",
  749. delay,
  750. x3,
  751. y3,
  752. z3,
  753. msh
  754. })
  755. end;
  756. };
  757.  
  758. Head = {
  759. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  760. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  761. prt.Anchored = true
  762. prt.CFrame = cframe
  763. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  764. game:GetService("Debris"):AddItem(prt, 10)
  765. table.insert(Effects, {
  766. prt,
  767. "Cylinder",
  768. delay,
  769. x3,
  770. y3,
  771. z3,
  772. msh
  773. })
  774. end;
  775. };
  776.  
  777. Sphere = {
  778. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  779. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  780. prt.Anchored = true
  781. prt.CFrame = cframe
  782. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  783. game:GetService("Debris"):AddItem(prt, 10)
  784. table.insert(Effects, {
  785. prt,
  786. "Cylinder",
  787. delay,
  788. x3,
  789. y3,
  790. z3,
  791. msh
  792. })
  793. end;
  794. };
  795.  
  796. Elect = {
  797. Create = function(cff, x, y, z)
  798. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("New Yeller"), "Part", Vector3.new(1, 1, 1))
  799. prt.Anchored = true
  800. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  801. prt.CFrame = CFrame.new(prt.Position)
  802. game:GetService("Debris"):AddItem(prt, 2)
  803. local xval = math.random() / 2
  804. local yval = math.random() / 2
  805. local zval = math.random() / 2
  806. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  807. table.insert(Effects, {
  808. prt,
  809. "Elec",
  810. 0.1,
  811. x,
  812. y,
  813. z,
  814. xval,
  815. yval,
  816. zval
  817. })
  818. end;
  819.  
  820. };
  821.  
  822. Ring = {
  823. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  824. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  825. prt.Anchored = true
  826. prt.CFrame = cframe
  827. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  828. game:GetService("Debris"):AddItem(prt, 10)
  829. table.insert(Effects, {
  830. prt,
  831. "Cylinder",
  832. delay,
  833. x3,
  834. y3,
  835. z3,
  836. msh
  837. })
  838. end;
  839. };
  840.  
  841.  
  842. Wave = {
  843. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  844. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  845. prt.Anchored = true
  846. prt.CFrame = cframe
  847. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  848. game:GetService("Debris"):AddItem(prt, 10)
  849. table.insert(Effects, {
  850. prt,
  851. "Cylinder",
  852. delay,
  853. x3,
  854. y3,
  855. z3,
  856. msh
  857. })
  858. end;
  859. };
  860.  
  861. Break = {
  862. Create = function(brickcolor, cframe, x1, y1, z1)
  863. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  864. prt.Anchored = true
  865. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  866. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  867. local num = math.random(10, 50) / 1000
  868. game:GetService("Debris"):AddItem(prt, 10)
  869. table.insert(Effects, {
  870. prt,
  871. "Shatter",
  872. num,
  873. prt.CFrame,
  874. math.random() - math.random(),
  875. 0,
  876. math.random(50, 100) / 100
  877. })
  878. end;
  879. };
  880.  
  881. Fire = {
  882. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  883. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  884. prt.Anchored = true
  885. prt.CFrame = cframe
  886. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  887. game:GetService("Debris"):AddItem(prt, 10)
  888. table.insert(Effects, {
  889. prt,
  890. "Fire",
  891. delay,
  892. 1,
  893. 1,
  894. 1,
  895. msh
  896. })
  897. end;
  898. };
  899.  
  900. FireWave = {
  901. Create = function(brickcolor, cframe, x1, y1, z1)
  902. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
  903. prt.Anchored = true
  904. prt.CFrame = cframe
  905. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  906. local d = Create("Decal"){
  907. Parent = prt,
  908. Texture = "rbxassetid://26356434",
  909. Face = "Top",
  910. }
  911. local d = Create("Decal"){
  912. Parent = prt,
  913. Texture = "rbxassetid://26356434",
  914. Face = "Bottom",
  915. }
  916. game:GetService("Debris"):AddItem(prt, 10)
  917. table.insert(Effects, {
  918. prt,
  919. "FireWave",
  920. 1,
  921. 30,
  922. math.random(400, 600) / 100,
  923. msh
  924. })
  925. end;
  926. };
  927.  
  928. Lightning = {
  929. Create = function(p0, p1, tym, ofs, col, th, tra, last)
  930. local magz = (p0 - p1).magnitude
  931. local curpos = p0
  932. local trz = {
  933. -ofs,
  934. ofs
  935. }
  936. for i = 1, tym do
  937. local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
  938. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  939. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  940. li.Material = "Neon"
  941. if tym == i then
  942. local magz2 = (curpos - p1).magnitude
  943. li.Size = Vector3.new(th, th, magz2)
  944. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  945. table.insert(Effects, {
  946. li,
  947. "Disappear",
  948. last
  949. })
  950. else
  951. do
  952. do
  953. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  954. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  955. game.Debris:AddItem(li, 10)
  956. table.insert(Effects, {
  957. li,
  958. "Disappear",
  959. last
  960. })
  961. end
  962. end
  963. end
  964. end
  965. end
  966. };
  967.  
  968. EffectTemplate = {
  969.  
  970. };
  971. }
  972.  
  973.  
  974. function ears()
  975. local quote = math.random(1, 10)
  976. if quote == 1 then
  977. ow = CFuncs.Sound.Create("276916733", Character, 10, 1)
  978. Instance.new("DistortionSoundEffect", ow).Level = .95
  979. elseif quote == 2 then
  980. ow = CFuncs.Sound.Create("222045669", Character, 10, 1)
  981. Instance.new("DistortionSoundEffect", ow).Level = .95
  982. ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "I played college ball yaknow", 1.5, BrickColor.new("Grey").Color)
  983. elseif quote == 3 then
  984. ow = CFuncs.Sound.Create("657527128", Character, 10, 1)
  985. Instance.new("DistortionSoundEffect", ow).Level = .95
  986. ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "Oof", 1.5, BrickColor.new("Grey").Color)
  987. elseif quote == 4 then
  988. CFuncs.Sound.Create("230292394", Character, 10, 1)
  989. ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "AAAAAH", 1.5, BrickColor.new("Grey").Color)
  990. elseif quote == 5 then
  991. CFuncs.Sound.Create("230255621", Character, 10, 1)
  992. ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "SO", 1.5, BrickColor.new("Grey").Color)
  993. wait(.2)
  994. ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "DAH", 1.5, BrickColor.new("Grey").Color)
  995. elseif quote == 6 then
  996. CFuncs.Sound.Create("230255698", Character, 10, 1)
  997. ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "Y E S", 1.5, BrickColor.new("Grey").Color)
  998. elseif quote == 7 then
  999. CFuncs.Sound.Create("230255738", Character, 10, 1)
  1000. ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "OH", 1.5, BrickColor.new("Grey").Color)
  1001. elseif quote == 8 then
  1002. CFuncs.Sound.Create("230292118", Character, 10, 1)
  1003. ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "AAAAAAAA", 1.5, BrickColor.new("Grey").Color)
  1004. elseif quote == 9 then
  1005. CFuncs.Sound.Create("230292073", Character, 10, 1)
  1006. ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "UWEEEEEEEEEEH", 1.5, BrickColor.new("Grey").Color)
  1007. elseif quote == 10 then
  1008. ow = CFuncs.Sound.Create("225279648", Character, 10, 1)
  1009. Instance.new("DistortionSoundEffect", ow).Level = .95
  1010. ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "help", 1.5, BrickColor.new("Grey").Color)
  1011. end
  1012. end
  1013.  
  1014.  
  1015.  
  1016.  
  1017.  
  1018. function joj()
  1019. while oof == true do
  1020. attack = true
  1021. local con = Hitbox.Touched:connect(function(hit)
  1022. Damage(Hitbox, hit, 0, 0, math.random(300,300), "Normal", RootPart, 0.2, "148862502", 1)end)
  1023. CFuncs.Sound.Create("233856140", Hitbox, 10, 1)
  1024. for i = 0, 1, 0.1 do
  1025. swait()
  1026. PlayAnimationFromTable({
  1027. 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),
  1028. 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),
  1029. 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),
  1030. 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),
  1031. 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),
  1032. 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),
  1033. }, .3, false)
  1034. end
  1035. for i = 0, 1, 0.1 do
  1036. swait()
  1037. PlayAnimationFromTable({
  1038. 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),
  1039. 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),
  1040. 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),
  1041. 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),
  1042. 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),
  1043. 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),
  1044. }, .3, false)
  1045. end
  1046. con:Disconnect()
  1047. attack = false
  1048. end
  1049. end
  1050.  
  1051. Mouse.Button1Down:connect(function()
  1052. if attack == false and oof == false then
  1053. oof = true
  1054. joj()
  1055. end
  1056. end)
  1057.  
  1058.  
  1059.  
  1060. Mouse.Button1Up:connect(function()
  1061. if attack == true and oof == true then
  1062. oof = false
  1063. end
  1064. end)
  1065.  
  1066.  
  1067.  
  1068.  
  1069. Mouse.KeyDown:connect(function(k)
  1070. k = k:lower()
  1071. if k == 't' then
  1072. ears()
  1073. end
  1074. end)
  1075.  
  1076. while true do
  1077. swait()
  1078. sref.CFrame = RightArm.CFrame * CFrame.new(0, -1.5, 0) * CFrame.fromEulerAnglesXYZ(-1.57, 0, 0)
  1079. for i, v in pairs(Character:GetChildren()) do
  1080. if v:IsA("Part") then
  1081. v.Material = "SmoothPlastic"
  1082. elseif v:IsA("Accessory") then
  1083. v:WaitForChild("Handle").Material = "SmoothPlastic"
  1084. end
  1085. end
  1086. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1087. velocity = RootPart.Velocity.y
  1088. sine = sine + change
  1089. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1090. if RootPart.Velocity.y > 1 and hit == nil then
  1091. Anim = "Jump"
  1092. if attack == false then
  1093. PlayAnimationFromTable({
  1094. 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),
  1095. 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),
  1096. 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),
  1097. 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),
  1098. 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),
  1099. 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),
  1100. }, .3, false)
  1101. end
  1102. elseif RootPart.Velocity.y < -1 and hit == nil then
  1103. Anim = "Fall"
  1104. if attack == false then
  1105. PlayAnimationFromTable({
  1106. 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),
  1107. 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),
  1108. 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),
  1109. 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),
  1110. 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),
  1111. 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),
  1112. }, .3, false)
  1113. end
  1114. elseif Torsovelocity < 1 and hit ~= nil then
  1115. Anim = "Idle"
  1116. if attack == false then
  1117. change = 1
  1118. PlayAnimationFromTable({
  1119. 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),
  1120. 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),
  1121. 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),
  1122. 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),
  1123. 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),
  1124. 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),
  1125. }, .3, false)
  1126. end
  1127. elseif Torsovelocity > 2 and hit ~= nil then
  1128. Anim = "Walk"
  1129. if attack == false then
  1130. change = 2
  1131. PlayAnimationFromTable({
  1132. 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),
  1133. 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),
  1134. 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),
  1135. 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),
  1136. 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)),
  1137. 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)),
  1138. }, .3, false)
  1139. end
  1140. end
  1141. if 0 < #Effects then
  1142. for e = 1, #Effects do
  1143. if Effects[e] ~= nil then
  1144. local Thing = Effects[e]
  1145. if Thing ~= nil then
  1146. local Part = Thing[1]
  1147. local Mode = Thing[2]
  1148. local Delay = Thing[3]
  1149. local IncX = Thing[4]
  1150. local IncY = Thing[5]
  1151. local IncZ = Thing[6]
  1152. if Thing[2] == "Shoot" then
  1153. local Look = Thing[1]
  1154. local move = 5
  1155. local hit, pos = rayCast(Thing[4], Thing[1], move, Character)
  1156. if Thing[10] ~= nil then
  1157. da = pos
  1158. cf2 = CFrame.new(Thing[4], Thing[10].Position)
  1159. cfa = CFrame.new(Thing[4], pos)
  1160. tehCF = cfa:lerp(cf2, 0.2)
  1161. Thing[1] = tehCF.lookVector
  1162. end
  1163. local mag = (Thing[4] - pos).magnitude
  1164. Effects.Elect.Create(CFrame.new((Thing[4] + pos) / 2, pos), 4, 4, 4)
  1165. 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)
  1166. Thing[4] = Thing[4] + Look * move
  1167. Thing[3] = Thing[3] - 1
  1168. if 2 < Thing[5] then
  1169. Thing[5] = Thing[5] - 0.3
  1170. Thing[6] = Thing[6] - 0.3
  1171. end
  1172. if hit ~= nil then
  1173. Thing[3] = 0
  1174. MagnitudeDamage(hit, 5, 10, 15, 0, "Normal", "161006093", 0.8)
  1175. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1176. ref.Anchored = true
  1177. ref.CFrame = CFrame.new(pos)
  1178. Effects.Block.Create(BrickColor.new("New Yeller"), CFrame.new(pos), 1, 1, 1, 2, 2, 2, .05)
  1179. Effects.Sphere.Create(BrickColor.new("New Yeller"), CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.03)
  1180. game:GetService("Debris"):AddItem(ref, 1)
  1181. end
  1182. if Thing[3] <= 0 then
  1183. table.remove(Effects, e)
  1184. end
  1185. end
  1186. do
  1187. do
  1188. if Thing[2] == "FireWave" then
  1189. if Thing[3] <= Thing[4] then
  1190. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
  1191. Thing[3] = Thing[3] + 1
  1192. Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
  1193. else
  1194. Part.Parent = nil
  1195. table.remove(Effects, e)
  1196. end
  1197. end
  1198. if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
  1199. if Thing[1].Transparency <= 1 then
  1200. if Thing[2] == "Block1" then
  1201. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1202. Mesh = Thing[7]
  1203. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1204. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1205. else
  1206. if Thing[2] == "Block2" then
  1207. Thing[1].CFrame = Thing[1].CFrame
  1208. Mesh = Thing[7]
  1209. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1210. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1211. else
  1212. if Thing[2] == "Fire" then
  1213. Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
  1214. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1215. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1216. else
  1217. if Thing[2] == "Cylinder" then
  1218. Mesh = Thing[7]
  1219. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1220. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1221. else
  1222. if Thing[2] == "Blood" then
  1223. Mesh = Thing[7]
  1224. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  1225. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1226. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1227. else
  1228. if Thing[2] == "Elec" then
  1229. Thing[1].Size = Thing[1].Size + Vector3.new(Thing[7], Thing[8], Thing[9])
  1230. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1231. else
  1232. if Thing[2] == "Disappear" then
  1233. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1234. end
  1235. end
  1236. end
  1237. end
  1238. end
  1239. end
  1240. end
  1241. else
  1242. Part.Parent = nil
  1243. table.remove(Effects, e)
  1244. end
  1245. end
  1246. end
  1247. end
  1248. end
  1249. end
  1250. end
  1251. end
  1252. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement