Advertisement
samuelrichter66

uncle defranco

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