Advertisement
voidscriptbuilderr

FE papyrus

Jul 11th, 2019
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 94.24 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. p = game.Players.LocalPlayer
  153. char = p.Character
  154. torso = char.Torso
  155. hed = char.Head
  156. neck = char.Torso.Neck
  157. hum = char.Humanoid
  158. hum.MaxHealth = math.huge
  159. local msg = game:GetService("Chat")
  160. torso.BrickColor = BrickColor.new("Institutional white")
  161. hed.BrickColor = BrickColor.new("Institutional white")
  162. char["Right Arm"].BrickColor = BrickColor.new("Institutional white")
  163. char["Left Arm"].BrickColor = BrickColor.new("Institutional white")
  164. char["Left Leg"].BrickColor = BrickColor.new("Institutional white")
  165. char["Right Leg"].BrickColor = BrickColor.new("Institutional white")
  166. ypcall(function()
  167. shirt = Instance.new("Shirt", char)
  168. shirt.Name = "Shirt"
  169. pants = Instance.new("Pants", char)
  170. pants.Name = "Pants"
  171. char.Shirt.ShirtTemplate = "rbxassetid://527139198"
  172. char.Pants.PantsTemplate = "rbxassetid://1002356841"
  173. end)
  174. hed.face.Texture = "http://www.roblox.com/asset/?id=888434012"
  175. p1 = Instance.new("Part",char)
  176. p1.FormFactor = Enum.FormFactor.Custom
  177. p1.Size = Vector3.new(2,4,3)
  178. p1.CanCollide = false
  179. p1.Locked = true
  180. p1.BottomSurface = Enum.SurfaceType.Smooth
  181. p1.TopSurface = Enum.SurfaceType.Smooth
  182. SMesh = Instance.new("SpecialMesh", p1)
  183. SMesh.MeshId = "http://www.roblox.com/asset/?id=0"
  184. SMesh.MeshType = Enum.MeshType.FileMesh
  185. SMesh.Name = "Mesh"
  186. SMesh.TextureId = "http://www.roblox.com/asset/?id=0"
  187. w1 = Instance.new("Weld", hed)
  188. w1.Part0 = hed
  189. w1.C0 = CFrame.new(0,0.76,0.2)*CFrame.Angles(0.3,0,0)
  190. w1.Part1 = p1
  191. w1.C1 = CFrame.new(0, 0, 0)
  192. CV="Maroon"
  193. Player = game.Players.LocalPlayer
  194. Character = Player.Character
  195. local txt = Instance.new("BillboardGui", Character)
  196. txt.Adornee = Character .Head
  197. txt.Name = "_status"
  198. txt.Size = UDim2.new(2, 0, 1.2, 0)
  199. txt.StudsOffset = Vector3.new(-9, 8, 0)
  200. local text = Instance.new("TextLabel", txt)
  201. text.Size = UDim2.new(10, 0, 7, 0)
  202. text.FontSize = "Size24"
  203. text.TextScaled = true
  204. text.TextTransparency = 0
  205. text.BackgroundTransparency = 1
  206. text.TextTransparency = 0
  207. text.TextStrokeTransparency = 0
  208. text.Font = "Bodoni"
  209. text.TextStrokeColor3 = Color3.new(255,85,0)
  210.  
  211. v=Instance.new("Part")
  212. v.Name = "ColorBrick"
  213. v.Parent=Player.Character
  214. v.FormFactor="Symmetric"
  215. v.Anchored=true
  216. v.CanCollide=false
  217. v.BottomSurface="Smooth"
  218. v.TopSurface="Smooth"
  219. v.Size=Vector3.new(10,5,3)
  220. v.Transparency=1
  221. v.CFrame=Character.Torso.CFrame
  222. v.BrickColor=BrickColor.new(CV)
  223. v.Transparency=1
  224. text.TextColor3 = Color3.new(255,170,0)
  225. v.Shape="Block"
  226. text.Text = "Papyrus Disbelief"
  227. ----------------------------------------------------
  228. z = Instance.new("Sound", char)
  229. z.SoundId = "rbxassetid://321451733"--321451733
  230. z.Looped = true
  231. z.Pitch = 1
  232. z.Volume = 5
  233. wait(.001)
  234. z:Play()
  235. ----------------------------------------------------
  236. --Shark op
  237. --by osama44
  238. --for shark nigger
  239. --Converted to local by Scenius
  240.  
  241. Player=game.Players.LocalPlayer
  242. o1 = Instance.new("ParticleEmitter")
  243. o1.Name = "ora"
  244. o1.Parent = script
  245. o1.Transparency = NumberSequence.new(0,1)
  246. o1.Size = NumberSequence.new(1.5,3.5)
  247. o1.Color = ColorSequence.new(Color3.new(0, 0.333333, 1),Color3.new(0, 0.333333, 1))
  248. o1.Enabled = false
  249. o1.LightEmission = 1
  250. o1.Texture = "rbxassetid://243086902"
  251. o1.Lifetime = NumberRange.new(1,1)
  252. o1.Rate = 500
  253. o1.RotSpeed = NumberRange.new(90,90)
  254. o1.Speed = NumberRange.new(0,0)
  255. sv = Instance.new("Part")
  256. for i = 1, 2 do
  257. sv.Parent = script
  258. end
  259. sv.BrickColor = BrickColor.new("Deep orange")
  260. sv.Name = "sword"
  261. sv.Size = Vector3.new(0.248, 8.654, 1.153)
  262. sv.Orientation = Vector3.new(90, 90, 0)
  263. svm = Instance.new("FileMesh", sv)
  264. svm.MeshId = "rbxassetid://445556170"
  265. repeat wait() until Player.Character
  266. repeat wait() until #script:children() >= 0
  267. script.Parent=Player.PlayerGui
  268. Effects = { }
  269. --[[Credits to SazErenos for his Artificical Heartbeat]]--
  270. ArtificialHB = Instance.new("BindableEvent", script)
  271. ArtificialHB.Name = "Heartbeat"
  272.  
  273. script:WaitForChild("Heartbeat")
  274.  
  275. frame = 1 / 30
  276. tf = 0
  277. allowframeloss = false
  278. tossremainder = false
  279. lastframe = tick()
  280. script.Heartbeat:Fire()
  281.  
  282. game:GetService("RunService").Heartbeat:connect(function(s, p)
  283. tf = tf + s
  284. if tf >= frame then
  285. if allowframeloss then
  286. script.Heartbeat:Fire()
  287. lastframe = tick()
  288. else
  289. for i = 1, math.floor(tf / frame) do
  290. script.Heartbeat:Fire()
  291. end
  292. lastframe = tick()
  293. end
  294. if tossremainder then
  295. tf = 0
  296. else
  297. tf = tf - frame * math.floor(tf / frame)
  298. end
  299. end
  300. end)
  301.  
  302. function swait(num)
  303. if num == 0 or num == nil then
  304. ArtificialHB.Event:wait()
  305. else
  306. for i = 0, num do
  307. ArtificialHB.Event:wait()
  308. end
  309. end
  310. end
  311. ------------------[[Variables and Main Stuff]]--------------------
  312.  
  313.  
  314.  
  315. local Player = game.Players.localPlayer
  316. local Character = Player.Character
  317. local Humanoid = Character.Humanoid
  318. local char=Character
  319. local LeftArm = Character["Left Arm"]
  320. local RightArm = Character["Right Arm"]
  321. local LeftLeg = Character["Left Leg"]
  322. local RightLeg = Character["Right Leg"]
  323. local Head = Character.Head
  324. local Torso = Character.Torso
  325. local cam = game.Workspace.CurrentCamera
  326. local RootPart = Character.HumanoidRootPart
  327. local RootJoint = RootPart.RootJoint
  328. local equipped = false
  329. local attack = false
  330. local Anim = 'Idle'
  331. local idle = 0
  332. local attacktype = 1
  333. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  334. local velocity = RootPart.Velocity.y
  335. local sine = 0
  336. local change = 1
  337. local grabbed = false
  338. local cn = CFrame.new
  339. local mr = math.rad
  340. local angles = CFrame.Angles
  341. local ud = UDim2.new
  342. local c3 = Color3.new
  343. local ORW=Torso["Right Shoulder"]
  344. local OLW=Torso["Left Shoulder"]
  345. local OLH=Torso["Left Hip"]
  346. local ORH=Torso["Right Hip"]
  347. local DesiredSpeed=15
  348. local desiredjp=50
  349. EffectModel = Instance.new("Model", Character)
  350. it=Instance.new
  351. vt=Vector3.new
  352. cf=CFrame.new
  353. euler=CFrame.Angles
  354. EffectModel.Name = "Effects"
  355. local Animator=Humanoid.Animator
  356. local Animate=char.Animate
  357. local EffecMo=EffectModel
  358. euler=CFrame.Angles
  359. RotCF = euler(-1.57, 0, 3.14)
  360. it=Instance.new
  361. vt=Vector3.new
  362. LastMove=""
  363. Orbs={}
  364. EffecMo=EffectModel
  365. RootCF = CFrame.Angles(0, 0, 0)
  366. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  367. local RW=Instance.new("Motor",nil)
  368. RW.Name="Right Shoulder"
  369. local LW=Instance.new("Motor",nil)
  370. LW.Name="Left Shoulder"
  371. local RH=Instance.new("Motor",nil)
  372. RH.Name="Right Hip"
  373. local LH=Instance.new("Motor",nil)
  374. LH.Name="Left Hip"
  375. Neck=Torso.Neck
  376. r1m=RootJoint.C1
  377. r0m=RootJoint.C0
  378. n1m=Neck.C1
  379. n0m=Neck.C0
  380. local rarmc1 = RW.C1
  381. local larmc1 = LW.C1
  382. local rlegc1 = RH.C1
  383. local llegc1 = LH.C1
  384. local resetc1 = false
  385. Comboing=false
  386. HTime=0
  387. LastDamage=0
  388. ComboHits=0
  389.  
  390. local co1 = 10
  391. local co2 = 10
  392. local co3 = 20
  393. local co4 = 1
  394. local cooldown1 = 0
  395. local cooldown2 = 0
  396. local cooldown3 = 0
  397. local cooldown4 = 0
  398. local skillcolorscheme = BrickColor.new("Deep orange").Color
  399. local scrn = Instance.new("ScreenGui", Player.PlayerGui)
  400. makeframe = function(par, trans, pos, size, color)
  401.  
  402. local frame = Instance.new("Frame", par)
  403. frame.BackgroundTransparency = trans
  404. frame.BorderSizePixel = 0
  405. frame.Position = pos
  406. frame.Size = size
  407. frame.BackgroundColor3 = color
  408. return frame
  409. end
  410.  
  411. makelabel = function(par, text)
  412.  
  413. local label = Instance.new("TextLabel", par)
  414. label.BackgroundTransparency = 1
  415. label.Size = UDim2.new(1, 0, 1, 0)
  416. label.Position = UDim2.new(0, 0, 0, 0)
  417. label.TextColor3 = Color3.new(255, 255, 255)
  418. label.TextStrokeTransparency = 0
  419. label.FontSize = Enum.FontSize.Size32
  420. label.Font = Enum.Font.SourceSansLight
  421. label.BorderSizePixel = 0
  422. label.TextScaled = true
  423. label.Text = text
  424. end
  425.  
  426. framesk1 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.85, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme)
  427. framesk2 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.74, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme)
  428. framesk3 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.63, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme)
  429. framesk4 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.52, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme)
  430. bar1 = makeframe(framesk1, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  431. bar2 = makeframe(framesk2, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  432. bar3 = makeframe(framesk3, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  433. bar4 = makeframe(framesk4, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  434. text1 = Instance.new("TextLabel", framesk1)
  435. text1.BackgroundTransparency = 1
  436. text1.Size = UDim2.new(1, 0, 1, 0)
  437. text1.Position = UDim2.new(0, 0, 0, 0)
  438. text1.TextColor3 = Color3.new(255, 255, 255)
  439. text1.TextStrokeTransparency = 0
  440. text1.FontSize = Enum.FontSize.Size18
  441. text1.Font = Enum.Font.SourceSansLight
  442. text1.BorderSizePixel = 0
  443. text1.TextScaled = true
  444. text1.Text = "[Z]"
  445. text2 = Instance.new("TextLabel", framesk2)
  446. text2.BackgroundTransparency = 1
  447. text2.Size = UDim2.new(1, 0, 1, 0)
  448. text2.Position = UDim2.new(0, 0, 0, 0)
  449. text2.TextColor3 = Color3.new(255, 255, 255)
  450. text2.TextStrokeTransparency = 0
  451. text2.FontSize = Enum.FontSize.Size18
  452. text2.Font = Enum.Font.SourceSansLight
  453. text2.BorderSizePixel = 0
  454. text2.TextScaled = true
  455. text2.Text = "[X]"
  456. text3 = Instance.new("TextLabel", framesk3)
  457. text3.BackgroundTransparency = 1
  458. text3.Size = UDim2.new(1, 0, 1, 0)
  459. text3.Position = UDim2.new(0, 0, 0, 0)
  460. text3.TextColor3 = Color3.new(255, 255, 255)
  461. text3.TextStrokeTransparency = 0
  462. text3.FontSize = Enum.FontSize.Size18
  463. text3.Font = Enum.Font.SourceSansLight
  464. text3.BorderSizePixel = 0
  465. text3.TextScaled = false
  466. text3.Text = "[C]"
  467. text4 = Instance.new("TextLabel", framesk4)
  468. text4.BackgroundTransparency = 1
  469. text4.Size = UDim2.new(1, 0, 1, 0)
  470. text4.Position = UDim2.new(0, 0, 0, 0)
  471. text4.TextColor3 = Color3.new(255, 255, 255)
  472. text4.TextStrokeTransparency = 0
  473. text4.FontSize = Enum.FontSize.Size18
  474. text4.Font = Enum.Font.SourceSansLight
  475. text4.BorderSizePixel = 0
  476. text4.TextScaled = true
  477. text4.Text = "[V]"
  478.  
  479. ------------[[Particle Emitters]]---------------------
  480. local pe=Instance.new("ParticleEmitter",script)
  481. pe.Enabled=false
  482. pe.Name="pe"
  483. local col1= Color3.new(0, 85, 255)
  484. pe.Color=ColorSequence.new(col1)
  485. pe.Texture="rbxassetid://436792038"
  486. pe.LightEmission=1
  487. pe.Size=NumberSequence.new({NumberSequenceKeypoint.new(0, 1.65), NumberSequenceKeypoint.new(1, 0)})
  488. pe.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)})
  489. pe.Lifetime=NumberRange.new(1.5)
  490. pe.Rate=500
  491. pe.Acceleration=Vector3.new(5,0,5)
  492. pe.Rotation=NumberRange.new(5)
  493. pe.RotSpeed=NumberRange.new(10)
  494. pe.Speed=NumberRange.new(5)
  495.  
  496. local pe=Instance.new("ParticleEmitter",script)
  497. pe.Enabled=false
  498. pe.Name="pe2"
  499. local col1= BrickColor.new("Deep orange").Color
  500. pe.Color=ColorSequence.new(col1)
  501. pe.Texture="rbxassetid://436792038"
  502. pe.LightEmission=.5
  503. pe.Size=NumberSequence.new({NumberSequenceKeypoint.new(0, 1.65), NumberSequenceKeypoint.new(1, 0)})
  504. pe.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)})
  505. pe.Lifetime=NumberRange.new(1)
  506. pe.Rate=500
  507. pe.Rotation=NumberRange.new(5)
  508. pe.RotSpeed=NumberRange.new(10)
  509. pe.Speed=NumberRange.new(5)
  510. pe.VelocitySpread=360
  511.  
  512. ------------------[[Main Functions]]--------------------
  513.  
  514. function CameraShake(Times, Power)
  515. coroutine.resume(coroutine.create(function()
  516. FV = Instance.new("BoolValue", Character)
  517. FV.Name = "CameraShake"
  518. for ShakeNum=1,Times do
  519. swait()
  520. local ef=Power
  521. if ef>=1 then
  522. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  523. else
  524. ef=Power*10
  525. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  526. end
  527. end
  528. Humanoid.CameraOffset = Vector3.new(0,0,0)
  529. FV:Destroy()
  530. end))
  531. end
  532.  
  533. so = function(id, par, vol, pit)
  534. local sou = Instance.new("Sound", par or workspace)
  535. if par==char then sou.Parent=char.Torso end
  536. sou.Volume = vol
  537. sou.Pitch = pit or 1
  538. sou.SoundId = "http://www.roblox.com/asset/?id=" .. id
  539. coroutine.resume(coroutine.create(function(Sound)
  540. swait()
  541. Sound:play()
  542. while sou.Parent.Parent ~= nil and sou.TimePosition >= sou.TimeLength do
  543. swait()
  544. end
  545. sou.Parent = char.Torso
  546. end), sou)
  547. game:GetService("Debris"):AddItem(sou, sou.TimeLength + 0.5)
  548. end
  549.  
  550. part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  551. local fp = it("Part")
  552. fp.Parent = parent
  553. fp.Reflectance = reflectance
  554. fp.Transparency = transparency
  555. fp.CanCollide = false
  556. fp.Locked = true
  557. fp.BrickColor = brickcolor
  558. fp.Name = name
  559. fp.Size = size
  560. fp.Position = Torso.Position
  561. fp.Material = "SmoothPlastic"
  562. fp:BreakJoints()
  563. return fp
  564. end
  565. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  566. local mesh = it(Mesh)
  567. mesh.Parent = part
  568. if Mesh == "SpecialMesh" then
  569. mesh.MeshType = meshtype
  570. if meshid ~= "nil" then
  571. mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
  572. end
  573. end
  574. mesh.Offset = offset
  575. mesh.Scale = scale
  576. return mesh
  577. end
  578. local function weldBetween(a, b)
  579. local OR=CFrame.new(a.Position)
  580. local P1C, P2C=a.CFrame:inverse()*OR,b.CFrame:inverse()*OR
  581. local weld = Instance.new("ManualWeld", a)
  582. weld.Part0 = a
  583. weld.Part1 = b
  584. weld.C0 = P1C
  585. weld.C1=P2C
  586. return weld
  587. end
  588. lock=function(a,b)
  589. local vp2=Instance.new("BodyPosition",a)
  590. vp2.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  591. vp2.P=1e7
  592. vp2.D=1e3
  593. vp2.Position=b.Position
  594. local vp3=Instance.new("BodyGyro",a)
  595. vp3.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  596. vp3.P=1e7
  597. vp3.D=1e3
  598. vp3.cframe=a.CFrame
  599. return vp2,vp3
  600. end
  601. weld = function(parent, part0, part1, c0)
  602. local weld = it("Motor")
  603. weld.Parent = parent
  604. weld.Part0 = part0
  605. weld.Part1 = part1
  606. weld.C0 = c0
  607. return weld
  608. end
  609. function NoOutline(Part)
  610. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  611. end
  612.  
  613. Par=function(Parent,Name,Col,size,Mater)
  614. p=Instance.new("Part",Parent)
  615. p.Anchored=true
  616. p.CanCollide=false
  617. p.BrickColor=BrickColor.new(Col)
  618. p.Locked=true
  619. NoOutline(p)
  620. p.Size=size or Vector3.new(1,1,1)
  621. p.Material=Mater
  622. return p
  623. end
  624. Par2=function(size,cframe,color,meshtype,meshscale) --returns a basic part for further manipulation
  625. local par = Instance.new("Part")
  626. par.formFactor="Custom"
  627. par.TopSurface=0
  628. par.BottomSurface=0
  629. par.Size=size
  630. par.CFrame=cframe
  631. par.BrickColor=BrickColor.new(color)
  632. if meshtype then
  633. local m = Instance.new(meshtype,par)
  634. m.Scale=meshscale
  635. end
  636. return par
  637. end
  638. BillboardGui = function(image, position, size)
  639. local billpar = Instance.new("Part")
  640. billpar.Transparency = 1
  641. billpar.formFactor = "Custom"
  642. billpar.Size = Vector3.new(1, 1, 1)
  643. billpar.Anchored = true
  644. billpar.CanCollide = false
  645. billpar.CFrame = CFrame.new(position)
  646. billpar.Name = "BillboardGuiPart"
  647. local bill = Instance.new("BillboardGui", billpar)
  648. bill.Adornee = billpar
  649. bill.Size = UDim2.new(1, 0, 1, 0)
  650. bill.SizeOffset = Vector2.new(size, size)
  651. local d = Instance.new("ImageLabel", bill)
  652. d.BackgroundTransparency = 1
  653. d.Size = UDim2.new(1, 0, 1, 0)
  654. d.Image = image
  655. return billpar
  656. end
  657. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  658. local gui = it(GuiType)
  659. gui.Parent = parent
  660. gui.Text = text
  661. gui.BackgroundTransparency = backtrans
  662. gui.BackgroundColor3 = backcol
  663. gui.SizeConstraint = "RelativeXY"
  664. gui.TextXAlignment = "Center"
  665. gui.TextYAlignment = "Center"
  666. gui.Position = pos
  667. gui.Size = size
  668. gui.Font = "SciFi"
  669. gui.FontSize = "Size14"
  670. gui.TextWrapped = false
  671. gui.TextStrokeTransparency = 0
  672. gui.TextColor3 = Color3.new(255,255,127)
  673. return gui
  674. end
  675.  
  676. local TotalSuppressedTable = {}
  677. CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  678. local RbxUtility = LoadLibrary("RbxUtility")
  679. local Create = RbxUtility.Create
  680. local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  681. RemoveOutlines(Part)
  682. return Part
  683. end
  684.  
  685. function BreakEffect(brickcolor,cframe,x1,y1,z1) --Credits to Ace
  686. local prt=part(3,EffectModel,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  687. prt.Anchored=true
  688. prt.Material="Neon"
  689. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  690. game:GetService("Debris"):AddItem(prt,10)
  691. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  692. local num=math.random(10,50)/1000
  693. table.insert(Effects,{prt,"Shatter",num,prt.CFrame,math.random()-math.random(),0,math.random(50,100)/100})
  694. end
  695.  
  696. local function CFrameFromTopBack(at, top, back)
  697. local right = top:Cross(back)
  698. return CFrame.new(at.x, at.y, at.z,
  699. right.x, top.x, back.x,
  700. right.y, top.y, back.y,
  701. right.z, top.z, back.z)
  702. end
  703. function clerp(a,b,t)
  704. return a:Lerp(b,t)
  705. end
  706. function QuaternionFromCFrame(cf)
  707. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  708. local trace = m00 + m11 + m22
  709. if trace > 0 then
  710. local s = math.sqrt(1 + trace)
  711. local recip = 0.5/s
  712. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  713. else
  714. local i = 0
  715. if m11 > m00 then
  716. i = 1
  717. end
  718. if m22 > (i == 0 and m00 or m11) then
  719. i = 2
  720. end
  721. if i == 0 then
  722. local s = math.sqrt(m00-m11-m22+1)
  723. local recip = 0.5/s
  724. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  725. elseif i == 1 then
  726. local s = math.sqrt(m11-m22-m00+1)
  727. local recip = 0.5/s
  728. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  729. elseif i == 2 then
  730. local s = math.sqrt(m22-m00-m11+1)
  731. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  732. end
  733. end
  734. end
  735. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  736. local xs, ys, zs = x + x, y + y, z + z
  737. local wx, wy, wz = w*xs, w*ys, w*zs
  738. local xx = x*xs
  739. local xy = x*ys
  740. local xz = x*zs
  741. local yy = y*ys
  742. local yz = y*zs
  743. local zz = z*zs
  744. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  745. end
  746. function QuaternionSlerp(a, b, t)
  747. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  748. local startInterp, finishInterp;
  749. if cosTheta >= 0.0001 then
  750. if (1 - cosTheta) > 0.0001 then
  751. local theta = math.acos(cosTheta)
  752. local invSinTheta = 1/math.sin(theta)
  753. startInterp = math.sin((1-t)*theta)*invSinTheta
  754. finishInterp = math.sin(t*theta)*invSinTheta
  755. else
  756. startInterp = 1-t
  757. finishInterp = t
  758. end
  759. else
  760. if (1+cosTheta) > 0.0001 then
  761. local theta = math.acos(-cosTheta)
  762. local invSinTheta = 1/math.sin(theta)
  763. startInterp = math.sin((t-1)*theta)*invSinTheta
  764. finishInterp = math.sin(t*theta)*invSinTheta
  765. else
  766. startInterp = t-1
  767. finishInterp = t
  768. end
  769. end
  770. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  771. end
  772.  
  773. local newMotor = function(part0, part1, c0, c1)
  774. local w = Instance.new('Motor', part0)
  775. w.Part0 = part0
  776. w.Part1 = part1
  777. w.C0 = c0
  778. w.C1 = c1
  779. return w
  780. end
  781.  
  782. Triangle=function(a, b, c)
  783. local col=BrickColor.new("White")
  784. --Credit to Fenrier
  785. local edg1 = (c-a):Dot((b-a).unit)
  786. local edg2 = (a-b):Dot((c-b).unit)
  787. local edg3 = (b-c):Dot((a-c).unit)
  788. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  789. a, b, c = a, b, c
  790. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  791. a, b, c = b, c, a
  792. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  793. a, b, c = c, a, b
  794. else
  795. assert(false, "unreachable")
  796. end
  797.  
  798. local len1 = (c-a):Dot((b-a).unit)
  799. local len2 = (b-a).magnitude - len1
  800. local width = (a + (b-a).unit*len1 - c).magnitude
  801. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  802.  
  803. local list = {}
  804.  
  805. if len1 > 0.01 then
  806. local w1 = Instance.new('WedgePart', EffectModel)
  807. game:GetService("Debris"):AddItem(w1,5)
  808. coroutine.resume(coroutine.create(function(p)
  809. for i=1, 10 do
  810. p.Transparency=i/10
  811. swait()
  812. end
  813. p:Remove()
  814. end),w1)
  815. w1.FormFactor = "Custom"
  816. w1.BrickColor = col
  817. w1.Material = "SmoothPlastic"
  818. w1.CanCollide = false
  819. local sz = Vector3.new(0.2, width, len1)
  820. w1.Size = sz
  821. local sp = Instance.new("SpecialMesh",w1)
  822. sp.MeshType = "Wedge"
  823. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  824. w1:BreakJoints()
  825. w1.Anchored = true
  826. w1.Transparency = 0
  827. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  828. end
  829.  
  830. if len2 > 0.01 then
  831. local w2 = Instance.new('WedgePart', EffectModel)
  832. game:GetService("Debris"):AddItem(w2,5)
  833. coroutine.resume(coroutine.create(function(p)
  834. for i=1, 10 do
  835. p.Transparency=i/10
  836. swait()
  837. end
  838. p:Remove()
  839. end),w2)
  840.  
  841. w2.FormFactor = "Custom"
  842. w2.BrickColor = col
  843. w2.Material = "SmoothPlastic"
  844. w2.CanCollide = false
  845. local sz = Vector3.new(0.2, width, len2)
  846. w2.Size = sz
  847. local sp = Instance.new("SpecialMesh",w2)
  848. sp.MeshType = "Wedge"
  849. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  850. w2:BreakJoints()
  851. w2.Anchored = true
  852. w2.Transparency = 0
  853. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  854. end
  855. return unpack(list)
  856. end
  857.  
  858. osamachain = function(P0,P1,Color1,Color2,thickness1,thickness2,T)
  859. local Part0=P0.Position
  860. local Part1=P1.Position
  861. local magz = (Part0 - Part1).magnitude
  862. local curpos = Part0
  863. local parts = {}
  864. local lastpart=P0
  865. local model = Instance.new("Model",EffecMo)
  866. model.Name = "osama_chain"
  867. local par=model
  868. if par:FindFirstChild("TimeLeft")~=nil then
  869. par:FindFirstChild("TimeLeft"):Destroy()
  870. end
  871. local chains = {}
  872. local WAT=false
  873. local cb=Instance.new("Part",model)
  874. cb.Name="Main_chain"
  875. cb.Size=Vector3.new(.2,1,.2)
  876. cb.BrickColor=BrickColor.new(Color1)
  877. cb.Anchored=false
  878. cb.CanCollide=false
  879. cb.Locked=true
  880. cbM=Instance.new("CylinderMesh",cb)
  881. cbM.Name="Mesh"
  882. cb.CFrame = CFrame.new((Part0 + Part1)/2, Part0) * CFrame.Angles(math.pi/2, 0, 0)
  883. for j = 1, T do
  884. local Part0=P0.Position
  885. local Part1=P1.Position
  886. local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/T).p
  887. local p = Instance.new("Part")
  888. p.Name="Outline"..j
  889. p.Size = Vector3.new(.2,1,.2)
  890. p.BrickColor = BrickColor.new(Color2)
  891. p.TopSurface = 0
  892. p.BottomSurface = 0
  893. p.CanCollide = false
  894. p.Locked=true
  895. p.Anchored=true
  896. p.Material = "Neon"
  897. p.TopSurface = 0
  898. p.BottomSurface = 0
  899. local mesh = Instance.new("CylinderMesh",p)
  900. mesh.Name = "Mesh"
  901. mesh.Scale = Vector3.new(1.5,magz/T,1.5)
  902. p.Parent = model
  903. p.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/T/2)
  904. curpos = p.CFrame*CFrame.new(0,0,magz/T/2).p
  905. p.CFrame=p.CFrame*CFrame.Angles(math.rad(90),0,0)
  906. p.Transparency=0.35
  907. local str=Instance.new("ObjectValue",p)
  908. str.Value=lastpart
  909. str.Name="LP"
  910. lastpart=p
  911. table.insert(parts,{p,p})
  912. table.insert(chains,{0,0,parts,0})
  913.  
  914. coroutine.resume(coroutine.create(function()
  915. while WAT==false do
  916. game:GetService("RunService").RenderStepped:wait()
  917. local Part0=P0.Position
  918. local Part1=P1.Position
  919. local ow=j
  920. local magz = (Part0 - Part1).magnitude
  921. local oldT=T
  922. local wtf=magz
  923. mesh.Scale = Vector3.new(thickness2,magz/T,thickness2)
  924. if ow>1 then
  925. local dangnigga=CFrame.new(str.Value.Position)*CFrame.new(0,0,wtf/oldT/2).p
  926. local trolpos = CFrame.new(dangnigga,Part1)*CFrame.new(0,0,wtf/oldT).p
  927. p.CFrame = CFrame.new(str.Value.Position,Part1)*CFrame.new(0,0,-(wtf/oldT))*CFrame.Angles(math.rad(90),0,0)
  928. end
  929. if ow<=1 then
  930. local dangnigga=Part0
  931. local trolpos = CFrame.new(dangnigga,Part1)*CFrame.new(0,0,wtf/oldT).p
  932. p.CFrame = CFrame.new(dangnigga,trolpos)*CFrame.new(0,0,wtf/oldT/2)*CFrame.Angles(math.rad(90),0,0)
  933. end
  934. end
  935. end))
  936. end
  937.  
  938.  
  939. coroutine.resume(coroutine.create(function()
  940. while WAT==false do
  941. local Part0=P0.Position
  942. local Part1=P1.Position
  943. cbM.Scale = Vector3.new(thickness1, (Part0 - Part1).magnitude, thickness1)
  944. cb.CFrame = CFrame.new((Part0 + Part1)/2, Part0) * CFrame.Angles(math.pi/2, 0, 0)
  945. for i, v in pairs(chains) do
  946. v[1] = v[1] %200 +4
  947. local dir = i%2 == 0 and 1 or -1
  948. for j, V in pairs(v[3]) do
  949. local val = math.sin(math.pi/2 * 2 * (((v[1] + (100 * j/#v[3])*dir) % 100)/100))
  950. V[2].Transparency = 0.12 + val * 0.85
  951. end
  952. end
  953. game:GetService("RunService").RenderStepped:wait()
  954. end
  955. end))
  956.  
  957. local t=Instance.new("BoolValue",par)
  958. t.Name="TimeLeft"
  959.  
  960. coroutine.resume(coroutine.create(function()
  961. repeat wait() until par:FindFirstChild("TimeLeft")==nil
  962. WAT=true
  963. for _,v in pairs(model:children()) do
  964. coroutine.resume(coroutine.create(function()
  965. for i=1,30 do
  966. swait()
  967. v.Mesh.Scale=v.Mesh.Scale-Vector3.new(.05,0,.05)
  968. v.Transparency=i/30
  969. end
  970. v:Destroy()
  971. end))
  972. game.Debris:AddItem(model,1)
  973. end
  974. end))
  975.  
  976. return t
  977. end
  978. AnimTab={}
  979. angles=CFrame.Angles
  980. euler=CFrame.fromEulerAnglesXYZ
  981. cf=CFrame.new
  982. AnimTab["Idle"]=function(frameN,sine)
  983. local frame={}
  984. frame[1]={
  985. CFrame.new(0.0749855712, -0.0629398525, 0.0235529467, 0.819152057, -0.0499904789, -0.571393847, 0.0499904789, 0.998626292, -0.0157019496, 0.571393847, -0.0157019496, 0.820525885) * CFrame.new(0, .05*math.cos(sine/16), 0) * CFrame.Angles(0, 0, 0),
  986. CFrame.new(-2.23517418e-008, 1.49999809, -5.96046448e-008, 0.707106829, 0, 0.707106948, -0.0616284125, 0.99619478, 0.0616284236, -0.704416037, -0.0871557444, 0.704416215) * CFrame.new(0, .02*math.cos(sine/16), 0) * CFrame.Angles( math.rad(2*math.cos(sine/16)), 0, 0),
  987. CFrame.new(1.39567375, 0.0430115312, 0.0315978527, 0.694800496, -0.393022656, -0.602318823, 0.404297799, 0.90606755, -0.12484619, 0.594807148, -0.156772524, 0.788436532) * CFrame.new(0, .05* math.cos(sine/16), 0) * CFrame.Angles(0, 0, math.rad(3.5*math.cos(sine/16))),
  988. CFrame.new(-1.58251691, 0.206372619, 0.0614111423, 0.471944094, 0.547303855, 0.691178441, -0.39397791, 0.832269073, -0.39001283, -0.788701952, -0.0882446468, 0.608410358) * CFrame.new(0, .05 * math.cos(sine/16), 0) * CFrame.Angles( math.rad(3.5*math.cos(sine/16)), 0, 0),
  989. CFrame.new(0.560000062, -1.83199704, 8.94069672e-008, 0.99619472, -0.0871557444, 2.98023224e-008, 0.0841859877, 0.962250233, 0.258819044, -0.0225575566, -0.257834196, 0.965925813) * CFrame.new(0,-.05*math.cos(sine/16), 0) * CFrame.Angles(0, 0, 0),
  990. CFrame.new(-0.612000167, -1.99999762, -4.47034836e-008, 0.936116815, 0.0871557519, 0.340718925, -0.0818995982, 0.996194839, -0.0298090391, -0.342020333, 1.3038516e-008, 0.939692676)* CFrame.new(0,-.05*math.cos(sine/16), 0) * CFrame.Angles(0, 0, 0),
  991. }
  992.  
  993. return frame[frameN]
  994. end
  995.  
  996. AnimTab["Walk"]=function(frameN,sine,num)
  997. local frame={}
  998. frame[1]={
  999. CFrame.new(-0.0113935694, 0.00570777431, 0.130231544, 0.984834015, 0.0075960937, -0.173317313, 0.00759613095, 0.99619472, 0.0868239552, 0.173317313, -0.0868239775, 0.981028795) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1000. CFrame.new(4.61004674e-007, 1.49999475, -2.23517418e-007, 0.996191978, 0.00759613141, 0.0868240595, -9.31322575e-010, 0.99619472, -0.0871556401, -0.0871557146, 0.0868239626, 0.992401242) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1001. CFrame.new(1.46789289, 0.0982637256, -0.144648015, 0.950443208, -0.30540812, -0.058124274, 0.310294747, 0.943467736, 0.116559155, 0.0192402601, -0.128818408, 0.99147892) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1002. CFrame.new(-1.51850045, 0.0611076728, -0.0488293171, 0.793944538, 0.343733251, -0.501494884, -0.374889195, 0.926151514, 0.0412922278, 0.478652835, 0.155221671, 0.864171624) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1003. CFrame.new(.5, -1.85 - 0.5 * math.cos(sine / num) / 2, 0 + 2 * math.sin(sine / num) / 2) * angles(math.rad(-60 * math.sin(sine / num)), math.rad(-5), math.rad(0)),
  1004. CFrame.new(-.5, -1.85 + 0.5 * math.cos(sine / num) / 2, 0 - 2 * math.sin(sine / num) / 2) * angles(math.rad(60 * math.sin(sine / num)), math.rad(5), math.rad(0)),
  1005. }
  1006. return frame[frameN]
  1007. end
  1008.  
  1009. AnimTab["Fall"]=function(frameN)
  1010. local frame={}
  1011. frame[1]={
  1012. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1013. CFrame.new(0, 1.49999714, 4.47034836e-008, 1, 0, -0, 0, 0.996194601, -0.0871557221, 0, 0.0871557221, 0.996194601) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1014. CFrame.new(1.52677226, 0.170301318, 0.120866239, 0.615058243, -0.725984514, -0.307655036, 0.75595212, 0.653862953, -0.0316542089, 0.224143073, -0.213102654, 0.950971305) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1015. CFrame.new(-1.74943757, 0.22577554, 0.248999774, -0.467496186, 0.588313401, 0.659799039, -0.437883109, 0.494264781, -0.750973344, -0.767922878, -0.639991939, 0.0265456047) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1016. CFrame.new(0.5, -1.79199886, 0.372999966, 1, 0, 0, 0, 0.965925813, 0.258819044, 0, -0.258819044, 0.965925813) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1017. CFrame.new(-0.5, -1.56999934, 3.57627869e-007, 1, 0, 0, 0, 0.906307697, 0.422618449, 0, -0.422618449, 0.906307697) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1018. }
  1019. return frame[frameN]
  1020. end
  1021.  
  1022. AnimTab["Jump"]=function(frameN)
  1023. local frame={}
  1024. frame[1]={
  1025. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), 0, 0),
  1026. CFrame.new(0, 1.49999642, -2.98023224e-007, 1, 0, -0, 0, 0.984807611, -0.173648387, 0, 0.173648387, 0.984807611) * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), 0, 0),
  1027. CFrame.new(1.52818167, 0.149664342, 0.34200123, 0.642788768, -0.627507448, -0.439385235, 0.766045749, 0.526541293, 0.368688077, 2.44126284e-008, -0.573576927, 0.8191517) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1028. CFrame.new(-1.55943918, 0.108779103, 0.407002598, 0.0947543383, 0.640856326, 0.761791289, -0.612354636, 0.640856147, -0.462954849, -0.784887373, -0.422618419, 0.4531537) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1029. CFrame.new(0.5, -1.79199874, 0.372999489, 1, 0, 0, 0, 0.819151998, 0.573576391, 0, -0.573576391, 0.819151998) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1030. CFrame.new(-0.5, -1.18119395, -0.181302905, 1, 0, 0, 0, 0.906307697, 0.422618449, 0, -0.422618449, 0.906307697) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1031. }
  1032. return frame[frameN]
  1033. end
  1034.  
  1035. AnimTab["ClickCombo"]=function(frameN)
  1036. local frame={}
  1037. frame[1]={
  1038. CFrame.new(-0.0197398271, 0.00017363939, -0.0113914032, 0.819431186, 0.0131589621, -0.573026359, -0.0151344128, 0.999884605, 0.00131906569, 0.572977841, 0.00759153441, 0.819535732) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1039. CFrame.new(-5.12972474e-006, 1.49999857, 6.86198473e-006, 0.939692736, 0, -0.342020154, -0.0298089944, 0.99619472, -0.081899412, 0.340719104, 0.0871555582, 0.936116457) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1040. CFrame.new(1.46780205, 0.710095406, 0.234785587, -0.355826288, -0.865559995, 0.352411389, -0.172264263, -0.30988273, -0.935039043, 0.918538094, -0.393419534, -0.038840577) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1041. CFrame.new(-1.43954968, -2.52574682e-006, 0.129604459, 0.836516142, 0.258819044, 0.482963055, -0.224143833, 0.965925813, -0.129409522, -0.499999762, 5.96046448e-008, 0.866025388) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1042. CFrame.new(0.679453552, -2.00000072, -0.0836714357, 0.984807849, -0.173648208, 1.78813934e-007, 0.173648164, 0.984807789, 1.49011612e-008, 2.08616257e-007, -2.23517418e-008, 0.999999762) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1043. CFrame.new(-0.604891539, -2.00168324, 0.0733468086, 0.902858794, 0.0789898112, 0.422619224, -0.0871558189, 0.996194482, -8.33533704e-008, -0.421009451, -0.0368335843, 0.906307936) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1044. }
  1045. frame[2]={
  1046. CFrame.new(-0.0613368936, 0.00152878393, 0.0285331458, 0.76637429, 0.0408957675, 0.641089976, -0.0435777232, 0.99898237, -0.0116322488, -0.640913188, -0.0190227255, 0.767376542) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1047. CFrame.new(-7.62548461e-006, 1.49999809, -3.71038914e-006, 0.999998212, 0, 2.98023224e-008, 5.58793545e-009, 0.99619478, 0.0871554092, 0, -0.0871555507, 0.996193051) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1048. CFrame.new(0.00463496707, 0.187205061, -0.965997756, 0.367293179, 0.711594164, 0.598938942, 0.427254975, 0.442903399, -0.788219512, -0.826164603, 0.545407176, -0.141356587) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1049. CFrame.new(-1.49999774, 3.53902578e-006, 1.47521496e-005, 0.907670081, 0.258818388, 0.330364645, -0.243210018, 0.965925872, -0.0885214061, -0.342019051, -2.08616257e-007, 0.939689517) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1050. CFrame.new(0.499999136, -2.00000024, -3.50921755e-006, 0.999998271, 1.86264515e-009, 5.96046448e-008, 1.86264515e-009, 1.00000012, -1.37835741e-007, 5.96046448e-008, -1.37835741e-007, 0.99999845) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1051. CFrame.new(-0.645505011, -2.00401926, 0.0868109241, 0.924950242, 0.16841127, 0.340715557, -0.168411225, 0.985266805, -0.0298095532, -0.340716124, -0.0298096016, 0.939684689) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1052. }
  1053. frame[3]={
  1054. CFrame.new(1.55471647e-009, -0.0068855267, -5.47999889e-006, 0.793305218, -2.25794793e-007, 0.608824253, 0.000484734424, 0.999999702, -0.000631258881, -0.608824015, 0.000795871951, 0.79330498) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1055. CFrame.new(0.0225859769, 1.49797451, 0.0388732702, 0.883248448, 0.0451714694, 0.466724664, -0.00345645775, 0.995949268, -0.089850761, -0.468892813, 0.0777472705, 0.879826784) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1056. CFrame.new(1.58917701, 0.14805764, 0.334518611, 0.0183337033, -0.201969534, -0.979220271, 0.697920084, 0.70388478, -0.132113129, 0.715941131, -0.680995286, 0.153863311) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1057. CFrame.new(-1.88436937, 0.643480539, -0.285786152, 0.300701588, 0.768738747, 0.564463854, 0.950921416, -0.286961168, -0.115765437, 0.0729858056, 0.571571708, -0.817299783) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1058. CFrame.new(0.412421823, -2.00387192, 0.0902987272, 0.791517377, 0.00115086511, -0.611145437, 0.00795604475, 0.999894083, 0.0121870684, 0.611094832, -0.0145086367, 0.791424394) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1059. CFrame.new(-0.409770161, -1.99211299, -0.0764102042, 0.792799294, 0.000281186076, -0.609482467, 0.00198945496, 0.999993384, 0.00304915174, 0.609479368, -0.00362995872, 0.792793512) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1060. }
  1061. frame[4]={
  1062. CFrame.new(2.62498816e-007, -0.000344276341, -2.2777408e-007, 0.803031087, 0, -0.595937431, -0.000474512577, 0.999999702, -0.000639379025, 0.595937312, 0.000796243548, 0.80303061) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1063. CFrame.new(-0.0595012531, 1.49132609, -0.0711210817, 0.77105993, -0.119002283, 0.62554419, 0.00120455027, 0.982652485, 0.185453147, -0.636761785, -0.14224194, 0.757826924) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1064. CFrame.new(1.59903359, 0.230916396, 0.409287423, 0.0014244318, -0.198947608, -0.980009317, 0.835885108, 0.538167715, -0.108036242, 0.54890269, -0.819021165, 0.167063877) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1065. CFrame.new(-0.625070512, 0.361982256, -0.745636106, 0.285767585, -0.796516061, 0.532822251, 0.955926418, 0.276036203, -0.100043766, -0.0673916936, 0.537928045, 0.840292692) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1066. CFrame.new(0.398624241, -1.9999733, -0.0658840984, 0.804467261, -0.000422894955, 0.593996882, -5.37931919e-005, 0.999999702, 0.000784777105, -0.593996882, -0.000663250685, 0.804466903) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1067. CFrame.new(-0.398404002, -1.99966228, 0.0658915937, 0.803506851, -0.000106021762, 0.595295787, -1.34408474e-005, 1, 0.000196315348, -0.595295668, -0.000165745616, 0.803506553) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1068. }
  1069. frame[5]={
  1070. CFrame.new(-1.14056382e-008, -0.196045384, -0.000156056514, 1, 5.81785571e-008, -0.00159262121, -1.21010919e-006, 0.99999994, -0.000796537439, 0.00159247965, 0.000796022301, 0.999999464) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1071. CFrame.new(9.34411162e-008, 1.47852278, -0.144922316, 0.99999392, 7.4505806e-008, -5.21540642e-008, 5.78365871e-008, 0.957062781, 0.289872348, -7.4505806e-008, -0.289865702, 0.957063496) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1072. CFrame.new(0.663555026, 0.49231568, -0.850663185, 0.015370708, 0.692666352, 0.721096218, 0.999231637, 0.0153704779, -0.036063727, -0.0360642895, 0.721095979, -0.691897511) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1073. CFrame.new(-0.663553596, 0.492314607, -0.850663126, 0.0153705887, -0.692666411, -0.721096218, -0.999231517, 0.015370396, -0.0360638089, 0.0360642895, 0.721096158, -0.691897392) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1074. CFrame.new(0.499701917, -1.92411804, 0.38171339, 0.999994397, 0.000301316381, -0.000750280917, 5.81403583e-006, 0.924113035, 0.382118583, 0.000808849931, -0.382119298, 0.924106598) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1075. CFrame.new(-0.401899934, -1.79915607, -0.00056552887, 0.999996126, -7.83959404e-005, 0.000813350081, -9.8903547e-007, 0.995200098, 0.0978638232, -0.000817283988, -0.0978644416, 0.995195687) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1076. }
  1077. frame[6]={
  1078. CFrame.new(-0, -0.828355193, 0.211025894, 1, 0, 0, 0, 0.939692676, 0.342019737, 0, -0.342019737, 0.939692676) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1079. CFrame.new(0, 1.49999678, 3.7252903e-006, 1, 0, 0, 0, 0.996194541, -0.0871557444, 0, 0.0871557444, 0.996194541) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1080. CFrame.new(1.87859392, 0.514964342, 0.34640047, -0.0871552005, -0.936116815, -0.340718567, 0.996194661, -0.0818997845, -0.029810369, -1.13248825e-006, -0.342018634, 0.939689815) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1081. CFrame.new(-1.68897307, 0.493994951, 0.408263475, 2.7980894e-008, 0.906309366, 0.422614932, -0.999999881, 6.40749931e-007, -1.28149986e-006, -1.43051147e-006, -0.422614932, 0.906309187) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1082. CFrame.new(0.5, -1.59677243, -0.49357605, 1, 0, 0, 0, 0.984807909, -0.17364797, 0, 0.17364797, 0.984807909) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1083. CFrame.new(-0.5, -1.90224135, 0.424649239, 1, 0, 0, 0, 0.906307638, 0.422618598, 0, -0.422618598, 0.906307638) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1084. }
  1085. frame[7]={
  1086. CFrame.new(-0, 0, 0, 0.960631907, 0.00137611502, 0.277821034, -0.159289986, 0.822030306, 0.546711087, -0.227624968, -0.569442153, 0.789887726) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1087. CFrame.new(-0.0181836374, 1.50775862, -0.0594066978, 0.999913454, -0.0105673671, -0.00784052908, 0.0118241087, 0.983038306, 0.183019012, 0.00577357411, -0.183095813, 0.983078241) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1088. CFrame.new(1.5073173, 1.31327307, -0.909579456, 0.94229573, -0.200924531, 0.267783791, 0.109451406, -0.571028471, -0.813601255, 0.316384584, 0.795962393, -0.516086161) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1089. CFrame.new(-1.57927585, 0.317291111, 0.397556216, 0.809802711, 0.208654553, 0.548345804, -0.517000973, 0.695623755, 0.498816311, -0.277362049, -0.687437952, 0.671192646) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1090. CFrame.new(0.655821919, -1.91117561, 0.471306443, 0.991203368, 0.0697749257, 0.112460986, -0.110218167, 0.905595839, 0.409570932, -0.0732664168, -0.418363273, 0.905320168) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1091. CFrame.new(-0.524112225, -1.89465261, -0.507151604, 0.994412482, 0.0338317044, -0.100033343, -0.0809665471, 0.852411568, -0.516580105, 0.0677920207, 0.521791637, 0.850385308) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1092. }
  1093. return frame[frameN]
  1094. end
  1095.  
  1096. AnimTab["C"]=function(frameN)
  1097. local frame={}
  1098. frame[1]={
  1099. CFrame.new(2.84053385e-007, -0.699999809, -2.38418579e-007, 0.965778768, -0.258819073, -0.0168577731, 0.232835919, 0.836516201, 0.496012032, -0.114275634, -0.482962906, 0.868152142) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1100. CFrame.new(-5.63820706e-008, 1.49240422, 0.0868239999, 1, -4.84287739e-008, -8.94069672e-008, -4.47034836e-008, 0.98480767, -0.173648149, -2.98023224e-008, 0.173648193, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1101. CFrame.new(1.74633741, 0.23793821, 0.0817345008, 0.855079293, -0.517596483, -0.0305508971, 0.513783395, 0.837906241, 0.18422699, -0.0697565079, -0.173225164, 0.982408822) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1102. CFrame.new(-1.49061811, 0.166142434, -1.07410741, -0.0469467044, 0.428182781, -0.9024719, -0.761570275, 0.569285035, 0.309717506, 0.64637953, 0.701836109, 0.299365371) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1103. CFrame.new(0.463051915, -0.780309081, -0.937637031, 0.941776395, 0.166060507, -0.29237175, -0.294348687, 0.827483535, -0.478152335, 0.162530512, 0.536371887, 0.828184247) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1104. CFrame.new(-0.799590945, -1.51444077, -0.389154136, 0.970662296, 0.0849219561, 0.224951029, -0.22485368, 0.652014375, 0.724098086, -0.0851795673, -0.75343585, 0.651980817) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1105. }
  1106. return frame[frameN]
  1107. end
  1108.  
  1109. AnimTab["Z"]=function(frameN)
  1110. local frame={}
  1111. frame[1]={
  1112. CFrame.new(-0, -0, 0, 0.939692557, 0, 0.342020363, 0, 1, 0, -0.342020363, 0, 0.939692557) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1113. CFrame.new(7.67409801e-007, 1.49999976, -2.84612179e-006, 0.965925753, -0.0449434593, -0.254887015, 0, 0.98480773, -0.173648164, 0.258819044, 0.167731255, 0.951251149) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1114. CFrame.new(1.45801651, 1.30391252, -0.184753254, 0.908105314, -0.402072936, 0.116977036, -0.316420078, -0.841866553, -0.43720898, 0.274269402, 0.360022634, -0.891720653) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1115. CFrame.new(-1.49999797, -1.36718154e-006, -4.20212746e-006, 0.907673359, 0.258819044, -0.330366075, -0.243210346, 0.965925813, 0.0885213241, 0.342020154, 0, 0.939692616) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1116. CFrame.new(0.552665412, -2.01035452, 0.0304116532, 0.962249815, -0.0871557146, -0.257833838, 0.0841859728, 0.996194422, -0.022557551, 0.258818924, -5.58793545e-009, 0.965926111) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1117. CFrame.new(-0.49999544, -2, -1.74716115e-006, 0.99619472, 0, 0.0871555209, 0, 1, 0, -0.0871555209, 0, 0.99619472) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1118. }
  1119. return frame[frameN]
  1120. end
  1121.  
  1122. AnimTab["X"]=function(frameN)
  1123. local frame={}
  1124. frame[1]={
  1125. CFrame.new(0, -0, 0, -4.37113883e-008, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-008) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1126. CFrame.new(0, 1.5, 0, 1.19248824e-008, 0, -1, 0, 1, 0, 1, 0, 1.19248824e-008) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1127. CFrame.new(1.875, 0.443000317, 2.5331974e-007, -3.09086197e-008, -1, 3.09086197e-008, 0.707106769, -4.37113883e-008, -0.707106769, 0.707106769, 0, 0.707106769) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1128. CFrame.new(-1.30599999, 0.0260016322, -4.529953e-006, 0.694272041, 0.422618032, 0.58256346, -0.323744178, 0.906307817, -0.271653652, -0.642787516, 1.08828191e-008, 0.766044438) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1129. CFrame.new(0.677001357, -1.99999976, 0, 0.98480773, -0.173648179, 0, 0.173648179, 0.98480773, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1130. CFrame.new(-0.500001073, -2, 7.00354576e-007, 0.866025329, 0, 0.500000179, 0, 1, 0, -0.500000179, 0, 0.866025329) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1131. }
  1132. return frame[frameN]
  1133. end
  1134. lastcframe={RootJoint.C0,Neck.C0,RW.C0,LW.C0,RH.C0,LH.C0}
  1135. function PlayAnimationFromTable(tabl, speed, bool)
  1136. RootJoint.C0 = clerp(RootJoint.C0, tabl[1], speed)
  1137. Neck.C0 = clerp(Neck.C0, tabl[2], speed)
  1138. RW.C0 = clerp(RW.C0, tabl[3], speed)
  1139. LW.C0 = clerp(LW.C0, tabl[4], speed)
  1140. RH.C0 = clerp(RH.C0, tabl[5], speed)
  1141. LH.C0 = clerp(LH.C0, tabl[6], speed)
  1142. lastcframe={RootJoint.C0,Neck.C0,RW.C0,LW.C0,RH.C0,LH.C0}
  1143. if bool == true then
  1144. if resetc1 == false then
  1145. resetc1 = true
  1146. RootJoint.C1 = RootJoint.C1
  1147. Torso.Neck.C1 = Torso.Neck.C1
  1148. RW.C1 = rarmc1
  1149. LW.C1 = larmc1
  1150. RH.C1 = rlegc1
  1151. LH.C1 = llegc1
  1152. end
  1153. end
  1154.  
  1155. end
  1156.  
  1157. CamShake=function(Part,Distan,Power,Times)
  1158. local de=Part.Position
  1159. for i,v in pairs(workspace:children()) do
  1160. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  1161. for _,c in pairs(v:children()) do
  1162. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  1163. local Noob=v.Humanoid
  1164. if Noob~=nil then
  1165. if Noob:FindFirstChild("CamShake")==nil then-- and Noob == Character then
  1166. --[[local ss=script.CamShake:clone()
  1167. ss.Parent=Noob
  1168. ss.Power.Value=Power
  1169. ss.Times.Value=Times
  1170. ss.Disabled=false]]
  1171. CameraShake(Times, Power)
  1172. end
  1173. end
  1174. end
  1175. end
  1176. end
  1177. end
  1178. end
  1179.  
  1180. local RbxUtility = LoadLibrary("RbxUtility")
  1181. local Create = RbxUtility.Create
  1182.  
  1183. function RemoveOutlines(part)
  1184. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1185. end
  1186.  
  1187. function rayCast(Position, Direction, Range, Ignore)
  1188. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  1189. end
  1190. function rayCastWithIngore(Position, Direction, Range, Ignore)
  1191. return game:service("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  1192. end
  1193.  
  1194. detect_state = function()
  1195. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1196. velocity = RootPart.Velocity.y
  1197. sine = sine + change
  1198. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1199. if equipped == true then
  1200. if RootPart.Velocity.y > 1 and hit == nil then
  1201. Anim = "Jump"
  1202. elseif RootPart.Velocity.y < -1 and hit == nil then
  1203. Anim = "Fall"
  1204. elseif Torsovelocity < 1 and hit ~= nil then
  1205. Anim = "Idle"
  1206. elseif Torsovelocity > 2 and hit ~= nil then
  1207. Anim = "Walk"
  1208. end
  1209. end
  1210. end
  1211.  
  1212. function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans) -- Lightning module
  1213. local magz = (Part0 - Part1).magnitude
  1214. local curpos = Part0
  1215. local trz = {-Offset,Offset}
  1216. for i=1,Times do
  1217. local li =Par(EffectModel,"Lightning",Color,Vector3.new(Thickness,Thickness,magz/Times),"Neon")
  1218. li.Transparency = Trans
  1219. li.BrickColor = BrickColor.new(Color)
  1220. ora=Instance.new("BlockMesh",li)
  1221. ora.Scale=Vector3.new(Thickness,Thickness,1)
  1222. local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  1223. local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
  1224. if Times == i then
  1225. local magz2 = (curpos - Part1).magnitude
  1226. li.Size = Vector3.new(Thickness,Thickness,magz2)
  1227. li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
  1228. else
  1229. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  1230. end
  1231. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
  1232. game.Debris:AddItem(li,.1)
  1233. end
  1234. end
  1235. function Lightning2(Part0,Part1,Times,Offset,Color,Thickness,Trans,V) -- Lightning module
  1236. local magz = (Part0 - Part1).magnitude
  1237. local curpos = Part0
  1238. local trz = {-Offset,Offset}
  1239. for i=1,Times do
  1240. local li =Par(EffectModel,"Lightning",Color,Vector3.new(Thickness,Thickness,magz/Times),"Neon")
  1241. li.Transparency = Trans
  1242. ora=Instance.new("BlockMesh",li)
  1243. ora.Scale=Vector3.new(Thickness,Thickness,1)
  1244. local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  1245. local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
  1246. if Times == i then
  1247. local magz2 = (curpos - Part1).magnitude
  1248. li.Size = Vector3.new(Thickness,Thickness,magz2)
  1249. li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
  1250. else
  1251. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  1252. end
  1253. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
  1254. coroutine.resume(coroutine.create(function()
  1255. for i=1,V do
  1256. swait()
  1257. li.Transparency=i/V
  1258. end
  1259. li:Destroy()
  1260. end))
  1261. end
  1262. end
  1263. function Lightning3(Part0,Part1,Times,Offset,Color,Thickness,Trans,last) -- Lightning module
  1264. local magz = (Part0 - Part1).magnitude
  1265. local curpos = Part0
  1266. local trz = {-Offset,Offset}
  1267. for i=1,Times do
  1268. local li =Par(EffectModel,"Lightning",Color,Vector3.new(Thickness,Thickness,magz/Times),"Neon")
  1269. li.Transparency = Trans
  1270. local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  1271. local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
  1272. if Times == i then
  1273. local magz2 = (curpos - Part1).magnitude
  1274. li.Size = Vector3.new(Thickness,Thickness,magz2)
  1275. li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
  1276. else
  1277. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  1278. end
  1279. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
  1280. game.Debris:AddItem(li,5)
  1281. coroutine.resume(coroutine.create(function()
  1282. for i=1,20 do
  1283. swait()
  1284. li.Transparency=li.Transparency+last
  1285. end
  1286. li:Destroy()
  1287. end))
  1288. end
  1289. end
  1290.  
  1291. GET_THE_NEAREST_FAGGOT = function(pos)
  1292. local list = (game.Workspace:children())
  1293. local torso = nil
  1294. local DISTANCE_u_BITCH = 1000
  1295. local temp, human, temp2 = nil, nil, nil
  1296. for x = 1, #list do
  1297. temp2 = list[x]
  1298. if temp2.className == "Model" and temp2.Name ~= Character.Name then
  1299. temp = temp2:findFirstChild("Torso")
  1300. human = temp2:findFirstChild("Humanoid")
  1301. if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < DISTANCE_u_BITCH then
  1302. local FOUND_YOU = true
  1303. if Player.Neutral == false and game.Players:GetPlayerFromCharacter(temp.Parent) ~= nil then
  1304. FOUND_YOU = false
  1305. end
  1306. if FOUND_YOU == true then
  1307. torso = temp
  1308. DISTANCE_u_BITCH = (temp.Position - pos).magnitude
  1309. end
  1310. end
  1311. end
  1312. end
  1313. return torso, DISTANCE_u_BITCH
  1314. end
  1315. Damagefunc=function(hit,Damage, knockback,tiem, Type, Delay,stun,removebodypos)
  1316. local Hited=false
  1317. if hit.Parent == nil then
  1318. return
  1319. end
  1320.  
  1321. h = hit.Parent:FindFirstChild("Humanoid")
  1322. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  1323. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1324. return
  1325. end
  1326. if h.Health<=0 then return end
  1327. h = hit.Parent:FindFirstChild("Humanoid")
  1328. c = Instance.new("ObjectValue")
  1329. c.Name = "creator"
  1330. c.Value = game:service("Players").LocalPlayer
  1331. c.Parent = h
  1332. game:GetService("Debris"):AddItem(c, 0.5)
  1333. if Type=="H2" then
  1334. local eff = Par2(Vector3.new(1, 1, 1), hit.CFrame * CFrame.new(math.random(-15, 15) / 10, math.random(-20, 15) / 10, math.random(-5, 5) / 10) * CFrame.Angles(math.random(-15, 15), math.random(-15, 15), math.random(-15, 15)), "Really black", "SpecialMesh", Vector3.new(0.5, 0.5, 0.5))
  1335. eff.Parent = EffectModel
  1336. eff.Name = "BloodEffect"
  1337. eff.Mesh.MeshType = "Sphere"
  1338. eff.Anchored = true
  1339. eff.CanCollide = false
  1340. game:GetService("Debris"):AddItem(eff, 5)
  1341. coroutine.resume(coroutine.create(function(p, A)
  1342. local R = Vector3.new(math.random(-5, 5), math.random(7, 9), math.random(-5, 5)) / 50
  1343. for i = 1, 6 do
  1344. p.Mesh.Scale = p.Mesh.Scale + Vector3.new(0.85, 0.85, 0.85)
  1345. p.Transparency =1
  1346. p.CFrame = p.CFrame * A
  1347. swait()
  1348. end
  1349. p:Remove()
  1350. end), eff, CFrame.Angles(math.rad(math.random(-4, 4) * 4), math.rad(math.random(-4, 4) * 3), math.rad(math.random(-4, 4) * 2)), 0)
  1351. local eb = BillboardGui("http://www.roblox.com/asset/?id=233069772", eff.Position, 0)
  1352. eb.Parent = EffectModel
  1353. eb.BillboardGui.ImageLabel.ImageColor3=Color3.new(255, 0, 0)
  1354. eb.BillboardGui.ImageLabel.Rotation = math.random(-180, 180)
  1355. eb.BillboardGui.Size = UDim2.new(2, 0, 2, 0)
  1356. game:GetService("Debris"):AddItem(eb, 3)
  1357. coroutine.resume(coroutine.create(function(p)
  1358. local r = math.random(-3, 3) * 9
  1359. if r > -12 and r < 1 then
  1360. r = -12
  1361. else
  1362. if r < 12 and r > -1 then
  1363. r = 12
  1364. end
  1365. end
  1366. for i = 1, 6 do
  1367. p.BillboardGui.ImageLabel.ImageTransparency = 0.25 + i / 6
  1368. p.BillboardGui.Size = UDim2.new(2 + i / 1.75, 0, 2 + i / 1.75, 0)
  1369. p.BillboardGui.ImageLabel.Rotation = p.BillboardGui.ImageLabel.Rotation + r
  1370. swait()
  1371. end
  1372. p:Remove()
  1373. end), eb)
  1374.  
  1375. local hitnum = math.random(1, 8)
  1376. if hitnum == 1 then
  1377. so("153092274", hit, 1, 1)
  1378. end
  1379. if hitnum == 2 then
  1380. so("199149186", hit, 2, .5)
  1381. end
  1382. if hitnum == 3 then
  1383. so("153092296", hit, 1, .3)
  1384. end
  1385. if hitnum == 4 then
  1386. so("199149235", hit, 1, .5)
  1387. end
  1388. if hitnum == 5 then
  1389. so("199149269", hit, 1, .4)
  1390. end
  1391. if hitnum == 6 then
  1392. so("199149297", hit, 1, .5)
  1393. end
  1394. if hitnum == 7 then
  1395. so("201858024", hit, 1, .6)
  1396. end
  1397. if hitnum == 8 then
  1398. so("201858024", hit, 1, .5)
  1399. end
  1400. end
  1401.  
  1402. if Type=="H1" then
  1403. local hitnum=math.random(2,4)
  1404. p=Par(EffectModel,"EffectHi","White",Vector3.new(1,1,1),"SmoothPlastic")
  1405. p.CFrame=hit.Parent.Torso.CFrame
  1406. m=Instance.new("SpecialMesh")
  1407. m.MeshType="Sphere"
  1408. m.Parent=p
  1409. game:GetService("Debris"):AddItem(p,5)
  1410. coroutine.resume(coroutine.create(function(p)
  1411. for i=1, 8 do
  1412. p.Transparency=i/8
  1413. p.Mesh.Scale=p.Mesh.Scale+Vector3.new(.5,.5,.5)
  1414. swait(.5)
  1415. end
  1416. p:Remove() end),p)
  1417.  
  1418. if hitnum==1 then
  1419. so("153092274", hit, 1, 1)
  1420. else
  1421. if hitnum == 2 then
  1422. so("153092217", hit, 1, 1)
  1423. else
  1424. if hitnum == 3 then
  1425. so("153092227", hit, 1, 1)
  1426. else
  1427. if hitnum == 4 then
  1428. so("153092238", hit, 1, 1)
  1429. end
  1430. end
  1431. end end
  1432. end
  1433.  
  1434. Noob=hit.Parent
  1435. HTime=time()+1.8
  1436. LastDamage=LastDamage + Damage*1
  1437. ComboHits=ComboHits+1
  1438. Comboing=true
  1439. Hited=true
  1440. local ded=false
  1441. Comboing=true
  1442.  
  1443. h:TakeDamage(Damage)
  1444. local Part=hit
  1445. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 3.5, 0), -Damage, 1.5, BrickColor.new("Deep orange").Color)
  1446. if stun==true then
  1447. local t=hit.Parent.Torso
  1448. if hit.Parent.Torso:FindFirstChild("EBOLA")==nil then
  1449. local r=Instance.new("BodyGyro")
  1450. r.P=1e7
  1451. r.D=1e3
  1452. r.maxTorque=Vector3.new(50000,50000,50000)*50000000000
  1453. r.cframe=r.CFrame*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0)
  1454. r.Parent=t
  1455. game:GetService("Debris"):AddItem(r,1)
  1456. r.Name="EBOLA"
  1457. local fff=Instance.new("BodyForce")
  1458. fff.force=Vector3.new(0,1200,0)
  1459. fff.Parent=t
  1460. game:GetService("Debris"):AddItem(fff,1)
  1461. local hum = hit.Parent.Humanoid
  1462. local bodvol = Instance.new("BodyVelocity")
  1463. bodvol.velocity = Vector3.new(0,0,0)+RootPart.CFrame.lookVector*4
  1464. bodvol.Name="EBOLA"
  1465. bodvol.P = 4000
  1466. bodvol.maxForce=Vector3.new(50000000,5000000,50000000)*10000
  1467. bodvol.Parent = hit
  1468. game.Debris:AddItem(bodvol,.5)
  1469.  
  1470. end
  1471.  
  1472. end
  1473. if stun~=true then
  1474. if removebodypos==true then
  1475. for _,v in pairs(hit:children()) do
  1476. if v.ClassName=="BodyPosition" or v.ClassName=="BodyVelocity" then
  1477. v.Parent=nil
  1478. end
  1479. end
  1480. end
  1481. local hum = hit.Parent.Humanoid
  1482. if hit:FindFirstChild("EBOLA")~=nil then hit:FindFirstChild("EBOLA").Parent=nil end
  1483. local bodvol = Instance.new("BodyVelocity")
  1484. bodvol.Name="EBOLA"
  1485. bodvol.velocity = knockback
  1486. bodvol.P = 4000
  1487. bodvol.maxForce=Vector3.new(50000000,5000000,50000000)*10000
  1488. bodvol.Parent = hit
  1489. game.Debris:AddItem(bodvol,tiem)
  1490.  
  1491. end
  1492.  
  1493. local debounce = Instance.new("BoolValue")
  1494. debounce.Name = "DebounceHit"
  1495. debounce.Parent = hit.Parent
  1496. debounce.Value = true
  1497. game:GetService("Debris"):AddItem(debounce, Delay)
  1498. c = Instance.new("ObjectValue")
  1499. c.Name = "creator"
  1500. c.Value = Player
  1501. c.Parent = h
  1502. game:GetService("Debris"):AddItem(c, 0.5)
  1503. local CRIT = false
  1504. end
  1505. end
  1506. function MagnitudeDamage(Part, magni,Damage, knockback,tiem, Type, Delay ,stun,removebodypos)
  1507. for _, c in pairs(workspace:children()) do
  1508. local hum = c:findFirstChild("Humanoid")
  1509. if hum ~= nil then
  1510. local head = c:findFirstChild("Torso")
  1511. if head ~= nil then
  1512. local targ = head.Position - Part.Position
  1513. local mag = targ.magnitude
  1514. if mag <= magni and c.Name ~= Player.Name then
  1515. Damagefunc(head,Damage, knockback,tiem, Type, Delay,stun,removebodypos)
  1516. end
  1517. end
  1518. end
  1519. end
  1520. end
  1521. Cooldown=function(name,duration)
  1522. local t=Instance.new("BoolValue",char)
  1523. t.Name=name
  1524. coroutine.resume(coroutine.create(function()
  1525. swait((duration*30)-1)
  1526. game.Debris:AddItem(t,.1)
  1527. end))
  1528. end
  1529.  
  1530. Koy=""
  1531. Dmoves=nil
  1532.  
  1533. Stop = function()
  1534. canjump = false
  1535. end
  1536. Resume= function()
  1537. canjump = true
  1538. end
  1539.  
  1540. Player.Character.Humanoid.Changed:connect(function()
  1541. if canjump == false then
  1542. Player.Character.Humanoid.Jump = false
  1543. end
  1544. end)
  1545.  
  1546. doingmoves=function(value)
  1547. if value==true then
  1548. LastMove=""
  1549. Stop()
  1550. input=""
  1551. Koy=""
  1552. CanCancel=false
  1553. Dmoves=true
  1554. DIR=RootPart.CFrame.lookVector
  1555. end
  1556.  
  1557. if value==false then
  1558. Dmoves=false
  1559. LastMove=""
  1560. Koy=""
  1561. if Dmoves==false then
  1562. CanCancel=true
  1563. char.Humanoid.WalkSpeed=DesiredSpeed
  1564. Resume()
  1565. end
  1566. Dmoves=false
  1567. end
  1568.  
  1569. end
  1570.  
  1571. Dmoves=false
  1572.  
  1573. input=""
  1574. age=0
  1575. cam_ing=false
  1576. local Input_MaxTime=.8
  1577. local Input_Time=Input_MaxTime
  1578. local Input_Addition=.2
  1579. local Input_Lose=.1
  1580. local Max_Input=20
  1581. local Running_Timer=false
  1582.  
  1583. coroutine.resume(coroutine.create(function()
  1584. while true do
  1585. swait()
  1586. if Input_Time>0 then
  1587. Input_Time=Input_Time-Input_Lose
  1588. elseif Input_Time < 0 then
  1589. Input_Time=0
  1590. input=""
  1591. elseif Input_Time == 0 then
  1592. input=""
  1593. elseif Input_Time > Input_MaxTime then
  1594. Input_Time = Input_MaxTime
  1595. end
  1596. end
  1597. end))
  1598.  
  1599. getDirection=function()
  1600. local par=RootPart
  1601. Cam=workspace.CurrentCamera
  1602. return {CFrame.new(par.Position,Vector3.new(Cam.CoordinateFrame.x,par.Position.y,Cam.CoordinateFrame.z))*CFrame.fromEulerAnglesXYZ(0,math.pi,0),Vector3.new(Cam.CoordinateFrame.p.x,par.CFrame.p.y,Cam.CoordinateFrame.p.z)}
  1603. end
  1604. getrek=function()
  1605. Cam=workspace.CurrentCamera
  1606. Cam=workspace.CurrentCamera
  1607. return {CFrame.new(RootPart.Position,Vector3.new(Noob.Torso.Position.x,RootPart.Position.y,Noob.Torso.Position.z)),Vector3.new(Noob.Torso.CFrame.p.x,Noob.Torso.CFrame.p.y,Noob.Torso.CFrame.p.z)}
  1608. end
  1609. FaceMouse=function()
  1610. Cam=workspace.CurrentCamera
  1611. return {CFrame.new(char.Torso.Position,Vector3.new(mouse.Hit.p.x,char.Torso.Position.y,mouse.Hit.p.z)),Vector3.new(mouse.Hit.p.x,mouse.Hit.p.y,mouse.Hit.p.z)}
  1612. end
  1613. FaceForward=function()
  1614. RootPart.CFrame=getDirection()[1]
  1615. return RootPart.CFrame
  1616. end
  1617.  
  1618.  
  1619. ph0segui = function(Char, Dealt,color)
  1620. local holder = Instance.new("Model",Char)
  1621. holder.Name = "Effect"
  1622. local c = Par(holder,"Head","White",Vector3.new(1, 0.4, 1),"SmoothPlastic")
  1623. c.Transparency = 1
  1624. local b = Instance.new("BillboardGui", c)
  1625. b.Size = UDim2.new(5, 0, 5, 0)
  1626. b.AlwaysOnTop = true
  1627. local damgui = it("TextLabel")
  1628. damgui.Parent = b
  1629. damgui.Text = Dealt
  1630. damgui.BackgroundTransparency = 1
  1631. damgui.BackgroundColor3 = Color3.new(0, 0, 0)
  1632. damgui.SizeConstraint = "RelativeXY"
  1633. damgui.TextXAlignment = "Center"
  1634. damgui.TextYAlignment = "Center"
  1635. damgui.Position = UDim2.new(0, 0, 0, 0)
  1636. damgui.Size = UDim2.new(1, 0, 1, 0)
  1637. damgui.Font = "ArialBold"
  1638. damgui.FontSize = "Size14"
  1639. damgui.TextWrapped = false
  1640. damgui.TextStrokeTransparency = 0
  1641. damgui.TextColor3 = BrickColor.new(color).Color
  1642. damgui.TextScaled = true
  1643. local ms = Instance.new("CylinderMesh")
  1644. ms.Scale = Vector3.new(0.8, 0.8, 0.8)
  1645. ms.Parent = c
  1646. c.Reflectance = 0
  1647. Instance.new("BodyGyro").Parent = c
  1648. c.Parent = holder
  1649. if Char:findFirstChild("Head") ~= nil then
  1650. c.CFrame = cf(Char.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
  1651. else
  1652. if Char.Parent:findFirstChild("Head") ~= nil then
  1653. c.CFrame = cf(Char.Parent.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
  1654. end
  1655. end
  1656. local f = Instance.new("BodyPosition")
  1657. f.P = 2000
  1658. f.D = 100
  1659. f.maxForce = Vector3.new(545000, 545000, 545000)
  1660. f.position = c.Position + Vector3.new(0, 1, 0)
  1661. f.Parent = c
  1662. c.CanCollide = false
  1663. c.CanCollide = false
  1664. coroutine.resume(coroutine.create(function()
  1665. swait(20)
  1666. for i=1,15 do
  1667. swait()
  1668. damgui.TextTransparency=i/15
  1669. damgui.TextStrokeTransparency=i/15
  1670. f.position=f.position+Vector3.new(0,.3,0)
  1671. end
  1672. end))
  1673. game:GetService("Debris"):AddItem(m, 1)
  1674. end
  1675. mouse=nil
  1676. ShowDamage = function(Pos, Text, Time, Color)
  1677.  
  1678. local Rate = 0.033333333333333
  1679. if not Pos then
  1680. local Pos = Vector3.new(0, 0, 0)
  1681. end
  1682. local Text = Text or ""
  1683. local Time = Time or 2
  1684. if not Color then
  1685. local Color = Color3.new(1, 0, 1)
  1686. end
  1687. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1688. EffectPart.Anchored = true
  1689. local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart})
  1690. local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = Text, TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui})
  1691. game.Debris:AddItem(EffectPart, Time + 0.1)
  1692. EffectPart.Parent = game:GetService("Workspace")
  1693. delay(0, function()
  1694.  
  1695. local Frames = Time / Rate
  1696. for Frame = 1, Frames do
  1697. wait(Rate)
  1698. local Percent = Frame / Frames
  1699. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1700. TextLabel.TextTransparency = Percent
  1701. end
  1702. if EffectPart and EffectPart.Parent then
  1703. EffectPart:Destroy()
  1704. end
  1705. end
  1706. )
  1707. end
  1708. equip=function()
  1709. repeat wait() until Dmoves==false
  1710. input=""
  1711. Koy=""
  1712. ORH=Torso["Right Hip"]
  1713. OLW=Torso["Left Shoulder"]
  1714. OLH=Torso["Left Hip"]
  1715. ORW=Torso["Right Shoulder"]
  1716. ORH.Parent=nil
  1717. OLW.Parent=nil
  1718. OLH.Parent=nil
  1719. ORW.Parent=nil
  1720. Animate.Parent=nil
  1721. Animator.Parent=nil
  1722. RW.Parent=Torso
  1723. RW.Part0=Torso
  1724. RW.Part1=RightArm
  1725. RW.C0=CFrame.new(1.5, 0, 0)
  1726. RW.C1=CFrame.new(0, 0, 0)
  1727. LW.Parent=Torso
  1728. LW.Part0=Torso
  1729. LW.Part1=LeftArm
  1730. LW.C0=CFrame.new(-1.5, 0, 0)
  1731. LW.C1=CFrame.new(0, 0, 0)
  1732. RH.Parent=Torso
  1733. RH.Part0=Torso
  1734. RH.Part1=RightLeg
  1735. RH.C0=CFrame.new(.5, -2, 0)
  1736. RH.C1=CFrame.new(0, 0, 0)
  1737. LH.Parent=Torso
  1738. LH.Part0=Torso
  1739. LH.Part1=LeftLeg
  1740. LH.C0=CFrame.new(-.5, -2, 0)
  1741. LH.C1=CFrame.new(0, 0, 0)
  1742. RootJoint.C1 = CFrame.new(0, 0, 0)
  1743. RootJoint.C0 = CFrame.new(0, 0, 0)
  1744. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  1745. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  1746. equipped=true
  1747. doingmoves(true)
  1748. --hi
  1749. doingmoves(false)
  1750. end
  1751.  
  1752.  
  1753. de_equip=function()
  1754. if equipped==false then return end
  1755. repeat wait() until Dmoves==false
  1756. doingmoves(true)
  1757.  
  1758. --bye
  1759. doingmoves(false)
  1760. input=""
  1761. RW.Parent=nil
  1762. LW.Parent=nil
  1763. RH.Parent=nil
  1764. LH.Parent=nil
  1765.  
  1766. ORW.Parent=Torso
  1767. ORH.Parent=Torso
  1768. OLW.Parent=Torso
  1769. OLH.Parent=Torso
  1770. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  1771. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  1772. RootJoint.C0=clerp(RootJoint.C0,RootCF,1)
  1773. Animate.Parent=char
  1774. Animator.Parent=Humanoid
  1775. RootJoint.C1=r1m
  1776. RootJoint.C0=r0m
  1777. Neck.C1=n1m
  1778. Neck.C0=n0m
  1779. Humanoid.WalkSpeed=16
  1780. r1m=RootJoint.C1
  1781. r0m=RootJoint.C0
  1782. n1m=Neck.C1
  1783. n0m=Neck.C0
  1784. equipped=false
  1785. end
  1786. ------------------[[Attacks]]--------------------
  1787. MovesTable={}
  1788. table.insert(MovesTable,{["Key"] = "c" ,["Name"]="", ["CanCancel"] = false ,
  1789. ["Conditions"] = function()
  1790. local Viable = false
  1791. local Move = nil
  1792. for _,p in pairs(MovesTable) do
  1793. if p["Key"] == "c" then
  1794. Move = p
  1795. break
  1796. end
  1797. end
  1798.  
  1799. if CanCancel==true and cooldown3 >= co3 then
  1800. cooldown3=0
  1801. Viable=true
  1802. end
  1803.  
  1804. return Viable
  1805. end,
  1806. ["function"] = function()
  1807. doingmoves(true)
  1808. for i=1,10 do
  1809. swait()
  1810. PlayAnimationFromTable(AnimTab["C"](1),.3,false)
  1811. end
  1812. Humanoid.WalkSpeed=0
  1813. local lightning=true
  1814. p=Par(EffectModel,"Effect","White",vt(1,1,1),"SmoothPlastic")
  1815. p.CFrame=RootPart.CFrame*CFrame.new(0,17,0)
  1816. p.Transparency=1
  1817. local from=p
  1818. local bill=Instance.new("BillboardGui",p)
  1819. bill.Size=UDim2.new(15,0,15,0)
  1820. local ORGbill=bill
  1821. local billimg=Instance.new("ImageLabel",bill)
  1822. local ORGbillimg=billimg
  1823. billimg.BackgroundTransparency=1
  1824. billimg.Size=UDim2.new(1,0,1,0)
  1825. billimg.Image="rbxgameasset://Images/oyes"
  1826. billimg.ImageColor3=BrickColor.new("Lapis").Color
  1827.  
  1828. for i=1,5 do
  1829. swait()
  1830. local orb1=Instance.new("Part",EffectModel)
  1831. orb1.Anchored=false
  1832. orb1.Transparency=1
  1833. orb1.CanCollide=false
  1834. orb1.Size=Vector3.new()
  1835. local orb2=Instance.new("Part",orb1)
  1836. orb2.Anchored=false
  1837. orb2.Transparency=1
  1838. orb2.CanCollide=false
  1839. orb2.BrickColor=BrickColor.new("New Yeller")
  1840. orb2.Material = "Neon"
  1841. orb2.Size=Vector3.new()
  1842. local OrbMesh = Instance.new("SpecialMesh",orb2)
  1843. OrbMesh.MeshType="Sphere"
  1844. OrbMesh.Scale=Vector3.new(1,1,1)
  1845. local orbW = weld(orb1, orb1, RootPart,CFrame.new())
  1846. local orbW2 = weld(orb2, orb2, orb1, cf(0, 0, 0))
  1847. table.insert(Orbs, {orb1, "Orb", orb2, orbW, orbW2, 400, 0, CFrame.new(0, math.random(10,30), 0), 0, CFrame.Angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0, math.random(2, 5) / 100, math.random(10, 15) / 100, math.random(2, 5) / 100, 0})
  1848. local pe=script.pe:clone()
  1849. pe.Parent=orb2
  1850. pe.Enabled=true
  1851. coroutine.resume(coroutine.create(function()
  1852. repeat wait() until lightning==false
  1853. pe.Enabled=false
  1854. game.Debris:AddItem(orb1,1)
  1855. end))
  1856. end
  1857. coroutine.resume(coroutine.create(function()
  1858. local num=0
  1859. while lightning do
  1860. num=num+1
  1861. if num>=3 then
  1862. num=0
  1863. so("206083232",RootPart,1,.8)
  1864. so("206083252",RootPart,1,2)
  1865. end
  1866. swait()
  1867. local ecksdee=27
  1868. billimg.Rotation=billimg.Rotation+5
  1869. Lightning2(from.Position,Torso.Position+Vector3.new(math.random(-ecksdee,ecksdee),0,math.random(-ecksdee,ecksdee)),6,2,"White",.5,.5,5)
  1870. end
  1871. for i=1,10 do
  1872. swait()
  1873. bill.Size=bill.Size+UDim2.new(1,0,1,0)
  1874. billimg.ImageTransparency=i/10
  1875. end
  1876. from:Destroy()
  1877. end))
  1878. for i=1,25 do
  1879. swait(2)
  1880. MagnitudeDamage(RootPart,28,1,Vector3.new(0,1,0)+DIR*5,0.5,"H2",0,false,false)
  1881. CamShake(RootPart,27,.4,5)
  1882. local p=Par(EffectModel,"Effect","White",vt(1,1,1),"SmoothPlastic")
  1883. p.CFrame=CFrame.new(Character.Torso.Position-Vector3.new(0,1.5,0))*CFrame.Angles(0,math.random(-50,50),0)
  1884. game:GetService("Debris"):AddItem(p,8)
  1885. local m=Instance.new("SpecialMesh",p)
  1886. m.MeshId="http://www.roblox.com/asset/?id=20329976"
  1887. m.Scale=Vector3.new(2,2,2)
  1888. coroutine.resume(coroutine.create(function(p,s)
  1889. for i=1, 20 do
  1890. p.Transparency=.5+i/20
  1891. m.Scale=m.Scale + Vector3.new(3.5,-.1,3.5)
  1892. p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(10 + i),0) - Vector3.new(0,.05,0)
  1893. swait()
  1894. end
  1895. p:Remove()
  1896. end),p)
  1897.  
  1898. local p=Par(EffectModel,"Effect","White",vt(1,1,1),"SmoothPlastic")
  1899. p.CFrame=CFrame.new(Character.Torso.Position-Vector3.new(0,1.5,0))*CFrame.Angles(0,math.random(-50,50),0)
  1900. game:GetService("Debris"):AddItem(p,8)
  1901. local m=Instance.new("SpecialMesh",p)
  1902. m.MeshId="http://www.roblox.com/asset/?id=737406442"
  1903. m.Scale=Vector3.new(.1,0,.1)
  1904. coroutine.resume(coroutine.create(function(p,s)
  1905. for i=1, 20 do
  1906. p.Transparency=.5+i/20
  1907. m.Scale=m.Scale + Vector3.new(.01,0,.01)
  1908. p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(10 + i),0)
  1909. swait()
  1910. end
  1911. p:Remove()
  1912. end),p)
  1913.  
  1914. end
  1915. lightning=false
  1916. doingmoves(false)
  1917. end})
  1918.  
  1919. table.insert(MovesTable,{["Key"] = "z" ,["Name"]="", ["CanCancel"] = false ,
  1920. ["Conditions"] = function()
  1921. local Viable = false
  1922. local Move = nil
  1923. for _,p in pairs(MovesTable) do
  1924. if p["Key"] == "z" then
  1925. Move = p
  1926. break
  1927. end
  1928. end
  1929.  
  1930. if CanCancel==true and cooldown1 >= co1 then
  1931. cooldown1=0
  1932. Viable=true
  1933. end
  1934.  
  1935. return Viable
  1936. end,
  1937. ["function"] = function()
  1938. doingmoves(true)
  1939. for i=1,10 do
  1940. swait()
  1941. PlayAnimationFromTable(AnimTab["Z"](1),.3,false)
  1942. local blast2=Par(EffectModel,"Effect","White",vt(.5,.5,.5),"Neon")
  1943. blast2.CFrame=RightArm.CFrame*CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1944. local m=Instance.new("SpecialMesh",blast2)
  1945. m.Scale=Vector3.new(1.5,1.5,1.5)
  1946. m.MeshType="Brick"
  1947. coroutine.resume(coroutine.create(function(p)
  1948. for i=1, 15 do
  1949. blast2.Transparency=i/15
  1950. m.Scale=m.Scale+Vector3.new(.1,.1,.1)
  1951. swait()
  1952. end
  1953. blast2:Remove()
  1954. end),p)
  1955.  
  1956. end
  1957.  
  1958. for i=1,8 do
  1959. BreakEffect(BrickColor.new("White"),RightArm.CFrame*CFrame.new(0,-1.4,0),math.random(20,50)/100,math.random(1,5)*3,math.random(20,50)/100)
  1960. end
  1961.  
  1962. local sref=part(3,nil,0,1,BrickColor.new("Black"),"Reference",vt())
  1963. sref.Anchored=true
  1964. for i=1,math.random(2,4) do
  1965. local MouseLook=cf((RootPart.Position+mouse.Hit.p)/2,mouse.Hit.p)
  1966. local hit,pos=rayCast(RootPart.Position,MouseLook.lookVector,9999,Character)
  1967. local random=cf(math.random(-1000,1000)/100,0,math.random(-1000,1000)/100)
  1968. sref.CFrame=cf(pos)*random
  1969. local hit,pos=rayCast(sref.Position,(CFrame.new(sref.Position,sref.Position - Vector3.new(0,1,0))).lookVector,999,Character)
  1970.  
  1971. local blast2=Par(EffectModel,"Effect","White",vt(1,1,1),"Neon")
  1972. blast2.CFrame=sref.CFrame
  1973. local m=Instance.new("CylinderMesh",blast2)
  1974. m.Scale=Vector3.new(10,.003,10)
  1975. local bmeo=Par(EffectModel,"Effect","Lapis",vt(1,1,1),"Neon")
  1976. bmeo.CFrame=sref.CFrame
  1977. local m=Instance.new("CylinderMesh",bmeo)
  1978. m.Scale=Vector3.new(10,.003,10)
  1979. bmeo.Mesh.Scale=Vector3.new(0,.005,0)
  1980. bmeo.Size=bmeo.Size+Vector3.new(0,0.1,0)
  1981. bmeo.BrickColor=BrickColor.new("Lapis")
  1982. bmeo.Transparency=0.5
  1983. local coo=sref.CFrame
  1984. coroutine.resume(coroutine.create(function(p)
  1985. for i=1, 50 do
  1986. local ee=10/50
  1987. bmeo.Mesh.Scale=bmeo.Mesh.Scale+Vector3.new(ee,0,ee)
  1988. swait()
  1989. end
  1990. for i=1, 2 do
  1991. p=Par(EffectModel,"Effect","White",vt(1,1,1),"SmoothPlastic")
  1992. p.CFrame=coo * CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1993. m=Instance.new("SpecialMesh")
  1994. m.MeshId="http://www.roblox.com/asset/?id=3270017"
  1995. m.Scale=Vector3.new(10,10,0)
  1996. m.Parent=p
  1997. game:GetService("Debris"):AddItem(p,5)
  1998. coroutine.resume(coroutine.create(function(p,l)
  1999. for i=1, 20 do
  2000. p.Transparency=.5+i/20
  2001. p.Mesh.Scale=p.Mesh.Scale+Vector3.new(.5*3,.5*3,0)
  2002. swait()
  2003. end
  2004. p:Remove() end),p,3/3)
  2005. end
  2006.  
  2007. for i=1,8 do
  2008. BreakEffect(BrickColor.new("White"),coo*cf(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100),math.random(20,50)/100,math.random(1,5)*3,math.random(20,50)/100)
  2009. end
  2010. for loel = 1,2 do
  2011. local pc2 = Par2(Vector3.new(1, 1, 1), coo * CFrame.Angles(math.random(-15, 15), math.random(-15, 15), math.random(-15, 15)), "Deep orange", "BlockMesh", Vector3.new(3,3,3))
  2012. pc2.Parent = EffectModel
  2013. pc2.Anchored = true
  2014. pc2.CanCollide = false
  2015. game:GetService("Debris"):AddItem(pc2, 5)
  2016. pc2.Material="Neon"
  2017. coroutine.resume(coroutine.create(function(p, V, x)
  2018. for i = 1, 15 do
  2019. p.Mesh.Scale = p.Mesh.Scale + Vector3.new(14 + loel * 18, 14 + loel * 18, 14 + loel * 18) / 45
  2020. p.Transparency = 0.25 + i / 15
  2021. p.CFrame = p.CFrame * V
  2022. swait()
  2023. end
  2024. p:Remove()
  2025. end), pc2, CFrame.Angles(math.rad(math.random(-8, 8)), math.rad(math.random(-8, 8)), math.rad(math.random(-8, 8))))
  2026. end
  2027. so("338594574",blast2,1,1)
  2028. MagnitudeDamage(blast2,12,math.random(13,20),Vector3.new(0,5,0)+DIR*13,0.5,"H2",0.1,false,false)
  2029. CamShake(blast2,12,.3,10)
  2030. for i=1,25 do
  2031. swait()
  2032. blast2.Transparency=i/25
  2033. bmeo.Transparency=0.5+i/25
  2034. end
  2035. bmeo.Parent=nil
  2036. blast2:Remove()
  2037. end),p)
  2038.  
  2039. end
  2040. sref:Destroy()
  2041. swait(10)
  2042. doingmoves(false)
  2043. end})
  2044.  
  2045. table.insert(MovesTable,{["Key"] = "x" ,["Name"]="", ["CanCancel"] = false ,
  2046. ["Conditions"] = function()
  2047. local Viable = false
  2048. local Move = nil
  2049. for _,p in pairs(MovesTable) do
  2050. if p["Key"] == "x" then
  2051. Move = p
  2052. break
  2053. end
  2054. end
  2055.  
  2056. if CanCancel==true and cooldown2>=co2 then
  2057. cooldown2=0
  2058. Viable=true
  2059. end
  2060.  
  2061. return Viable
  2062. end,
  2063. ["function"] = function()
  2064. doingmoves(true)
  2065. Humanoid.WalkSpeed=0
  2066.  
  2067. local goto=part(3,EffectModel,0,1,BrickColor.new("Black"),"Reference",vt())
  2068. goto.Anchored=true
  2069. goto.CFrame=RootPart.CFrame*CFrame.new(0,0,-10)
  2070. local startpos=part(3,EffectModel,0,1,BrickColor.new("Black"),"Reference",vt())
  2071. startpos.Anchored=true
  2072. startpos.Transparency=1
  2073. goto.Transparency=1
  2074. local num=0
  2075. for i=1,60 do
  2076. PlayAnimationFromTable(AnimTab["X"](1),.3,false)
  2077. swait()
  2078. local DIR=RootPart.CFrame.lookVector
  2079. local CPlayer=char
  2080. local p=Par(EffectModel,"Effect","White",vt(1,1,1),"SmoothPlastic")
  2081. p.Transparency=.5
  2082. p.Anchored=true
  2083. p.CFrame=CFrame.new(startpos.Position,CPlayer["HumanoidRootPart"].Position+DIR*20) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.random(-360,360),0)
  2084. m=Instance.new("SpecialMesh",p)
  2085. m.MeshId="http://www.roblox.com/asset/?id=20329976"
  2086. m.Scale=Vector3.new(2,2,2)
  2087. coroutine.resume(coroutine.create(function(p) for i=1, 15 do
  2088. p.Mesh.Scale=p.Mesh.Scale+Vector3.new(1.5-i*.1,.15,1.5-i*.1)
  2089. p.Transparency=0.5+i/15
  2090. p.CFrame=p.CFrame*CFrame.new(0,.5,0)*CFrame.fromEulerAnglesXYZ(0,math.rad(8),0)
  2091. swait()
  2092. end
  2093. p:Destroy()
  2094. end),p)
  2095. startpos.CFrame=RootPart.CFrame*CFrame.new(0,.5,-3)
  2096. local hit,pos=rayCast(startpos.Position,startpos.CFrame.lookVector,100,Character)
  2097. goto.CFrame=CFrame.new(pos)
  2098. local endpos=goto
  2099. local beam=it("Part",EffectModel)
  2100. beam.Anchored=true
  2101. beam.CanCollide=false
  2102. beam.BrickColor=BrickColor.new("Lapis")
  2103. local beamM=it("CylinderMesh",beam)
  2104. beam.Material="Neon"
  2105. beam.Size = Vector3.new(2, (startpos.Position - endpos.Position).magnitude,2)
  2106. beam.CFrame = CFrame.new((startpos.Position+ endpos.Position)/2, startpos.Position) * CFrame.Angles(math.pi/2, 0, 0)
  2107. coroutine.resume(coroutine.create(function() for i=1,5 do swait() beam.Transparency=i/5 beamM.Scale=beamM.Scale+Vector3.new(.6,0,.6) end beam:Destroy() end))
  2108.  
  2109. num=num+1
  2110. if num>=3 then
  2111.  
  2112. local p =Par(EffectModel,"Effect","Black",vt(1,1,1),"Neon")
  2113. local s = math.random(1,35)/10
  2114. local m = Instance.new("BlockMesh",p)
  2115. m.Scale = Vector3.new(s,s,s)
  2116. p.CFrame = RootPart.CFrame*CFrame.new(math.random(-10,10),math.random(-2,4),math.random(-10,10))*CFrame.Angles(math.random(),math.random(),math.random())
  2117. coroutine.resume(coroutine.create(function(p)
  2118. for i=1,30 do
  2119. swait()
  2120. p.CFrame = p.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))+Vector3.new(0,0.4,0)
  2121. p.Transparency = i/30
  2122. end p.Parent=nil end),p)
  2123.  
  2124. so("183763515", endpos, 1, 1.2)
  2125. so("178452221", endpos, 1, 0.7)
  2126. so("161006069", endpos, 1, 1)
  2127. num=0
  2128. MagnitudeDamage(endpos,10,1,Vector3.new(),.5,"H2",0,false,false)
  2129. CamShake(endpos,10,.2,8)
  2130. CamShake(RootPart,7,.2,8)
  2131. local blast2=Instance.new("Part",EffectModel)
  2132. blast2.Anchored=true
  2133. blast2.CanCollide=false
  2134. blast2.Size=Vector3.new(1,1,1)
  2135. blast2.CFrame=cf(pos)*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2136. m=Instance.new("SpecialMesh",blast2)
  2137. m.Scale=Vector3.new(3.5,3.5,3.5)
  2138. m.MeshType="Brick"
  2139. blast2.BrickColor=BrickColor.new("Lapis")
  2140. blast2.Material="Neon"
  2141. coroutine.resume(coroutine.create(function(p)
  2142. local R = CFrame.Angles(math.random(-3,3),math.random(-4,4),math.random(-5,5))
  2143. local C = Vector3.new(math.random(-5,5)/40,math.random(-5,5)/40,math.random(-5,5)/40)
  2144. for i=1, 20 do
  2145. p.Mesh.Scale = p.Mesh.Scale - Vector3.new(1,1,1)/30
  2146. p.Transparency = .5 + i/40
  2147. p.CFrame = p.CFrame * R - Vector3.new(0,9.82/30/11*i,0) + C
  2148. swait()
  2149. end
  2150. p:Remove()
  2151. end),blast2)
  2152.  
  2153. p=Par(EffectModel,"Effect","White",vt(1,1,1),"SmoothPlastic")
  2154. p.CFrame=cf(pos)* CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2155. m=Instance.new("SpecialMesh")
  2156. m.MeshId="http://www.roblox.com/asset/?id=3270017"
  2157. m.Scale=Vector3.new(10,10,0)
  2158. m.Parent=p
  2159. game:GetService("Debris"):AddItem(p,5)
  2160. coroutine.resume(coroutine.create(function(p,l)
  2161. for i=1, 20 do
  2162. p.Transparency=.5+i/20
  2163. p.Mesh.Scale=p.Mesh.Scale+Vector3.new(.5*1,.5*1,0)
  2164. swait()
  2165. end
  2166. p:Remove() end),p,3/3)
  2167. num=0
  2168. end
  2169. end
  2170.  
  2171. doingmoves(false)
  2172. end})
  2173.  
  2174.  
  2175. -------------[[Click Combo]]----------------------
  2176. ClickOne=function()
  2177. doingmoves(true)
  2178. for i=1,10 do
  2179. swait()
  2180. PlayAnimationFromTable(AnimTab["ClickCombo"](1),.3,false)
  2181. end
  2182. so("200632136",RightArm,1,1)
  2183. for i=1,10 do
  2184. local blast2=Par(EffectModel,"Effect","White",vt(.5,.5,.5),"Neon")
  2185. blast2.CFrame=RightArm.CFrame*CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2186. local m=Instance.new("SpecialMesh",blast2)
  2187. m.Scale=Vector3.new(1.5,1.5,1.5)
  2188. m.MeshType="Sphere"
  2189. coroutine.resume(coroutine.create(function(p)
  2190. for i=1, 15 do
  2191. blast2.Transparency=i/15
  2192. swait()
  2193. end
  2194. blast2:Remove()
  2195. end),p)
  2196. local blast2=Par(EffectModel,"Effect","Deep orange",vt(.5,.5,.5),"Neon")
  2197. blast2.CFrame=RightArm.CFrame*CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2198. local m=Instance.new("SpecialMesh",blast2)
  2199. m.Scale=Vector3.new(3,3,3)
  2200. m.MeshType="Sphere"
  2201. coroutine.resume(coroutine.create(function(p)
  2202. for i=1, 30 do
  2203. blast2.Transparency=i/15
  2204. swait()
  2205. end
  2206. blast2:Remove()
  2207. end),p)
  2208.  
  2209. MagnitudeDamage(RootPart,7,math.random(3,6),Vector3.new(0,2,0)+DIR*3,.5,"H2",.4,false,false)
  2210. swait()
  2211. PlayAnimationFromTable(AnimTab["ClickCombo"](2),.3,false)
  2212. end
  2213. doingmoves(false)
  2214. end
  2215.  
  2216. ClickTwo=function()
  2217. doingmoves(true)
  2218. for i=1,10 do
  2219. swait()
  2220. PlayAnimationFromTable(AnimTab["ClickCombo"](3),.3,false)
  2221. end
  2222. so("200632211",LeftLeg,1,1)
  2223. for i=1,10 do
  2224. local blast2=Par(EffectModel,"Effect","White",vt(.5,.5,.5),"Neon")
  2225. blast2.CFrame=LeftArm.CFrame*CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2226. m=Instance.new("SpecialMesh",blast2)
  2227. m.Scale=Vector3.new(1.5,1.5,1.5)
  2228. m.MeshType="Sphere"
  2229. coroutine.resume(coroutine.create(function(p)
  2230. for i=1, 15 do
  2231. blast2.Transparency=i/15
  2232. swait()
  2233. end
  2234. blast2:Remove()
  2235. end),p)
  2236. local blast2=Par(EffectModel,"Effect","Deep orange",vt(.5,.5,.5),"Neon")
  2237. blast2.CFrame=LeftArm.CFrame*CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2238. m=Instance.new("SpecialMesh",blast2)
  2239. m.Scale=Vector3.new(3,3,3)
  2240. m.MeshType="Sphere"
  2241. coroutine.resume(coroutine.create(function(p)
  2242. for i=1, 30 do
  2243. blast2.Transparency=i/15
  2244. swait()
  2245. end
  2246. blast2:Remove()
  2247. end),p)
  2248.  
  2249. MagnitudeDamage(RootPart,7,math.random(3,6),Vector3.new(0,2,0)+DIR*3,.5,"H2",.4,false,false)
  2250. swait()
  2251. PlayAnimationFromTable(AnimTab["ClickCombo"](4),.3,false)
  2252. end
  2253. doingmoves(false)
  2254. end
  2255.  
  2256. ClickThree=function()
  2257. doingmoves(true)
  2258. local swording=true
  2259. for i=1,10 do
  2260. swait()
  2261. PlayAnimationFromTable(AnimTab["ClickCombo"](5),.3,false)
  2262. end
  2263. local sword = script.sword:clone()
  2264. sword.Anchored=false
  2265. sword.Parent=EffectModel
  2266. sword.CFrame=RightArm.CFrame*CFrame.new(0,-1.1,-2.6)*CFrame.Angles(math.rad(-90),0,math.rad(0))
  2267. local w1=weldBetween(RightArm,sword)
  2268. local sword2 = script.sword:clone()
  2269. sword2.Anchored=false
  2270. sword2.Parent=EffectModel
  2271. sword2.CFrame=LeftArm.CFrame*CFrame.new(0,-1.1,-2.6)*CFrame.Angles(math.rad(-90),0,math.rad(0))
  2272. local w2=weldBetween(LeftArm,sword2)
  2273. coroutine.resume(coroutine.create(function(sw,sw2)
  2274. while swording do
  2275. swait()
  2276. local blast2=Par(EffectModel,"Effect","Lapis",vt(),"Neon")
  2277. local X=sword.Size.X
  2278. local Y=sword.Size.Y
  2279. local Z=sword.Size.Z
  2280. blast2.CFrame=sword.CFrame*CFrame.new(math.random(-X,X),math.random(-Y,Y),math.random(-Z,Z))*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2281. local m=Instance.new("SpecialMesh",blast2)
  2282. m.Scale=Vector3.new(4,4,4)
  2283. m.MeshType="Brick"
  2284. coroutine.resume(coroutine.create(function()
  2285. for i=1, 20 do
  2286. blast2.Transparency=0.25+ i/20
  2287. m.Scale=m.Scale-vt(-.1,-.1,-.1)
  2288. swait()
  2289. blast2.CFrame=blast2.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2290. end
  2291. blast2:Remove()
  2292. end))
  2293. local blast2=Par(EffectModel,"Effect","Lapis",vt(),"Neon")
  2294. local X=4
  2295. local Y=sword.Size.Y
  2296. local Z=sword.Size.Z
  2297. blast2.CFrame=sword2.CFrame*CFrame.new(math.random(-X,X),math.random(-Y,Y),math.random(-Z,Z))*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2298. local m=Instance.new("SpecialMesh",blast2)
  2299. m.Scale=Vector3.new(4,4,4)
  2300. m.MeshType="Brick"
  2301. coroutine.resume(coroutine.create(function()
  2302. for i=1, 20 do
  2303. blast2.Transparency=0.25+ i/20
  2304. m.Scale=m.Scale-vt(-.1,-.1,-.1)
  2305. swait()
  2306. blast2.CFrame=blast2.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2307. end
  2308. blast2:Remove()
  2309. end))
  2310.  
  2311. end
  2312. end))
  2313. so("199146359",sword,1,.6)
  2314. so("228343324",sword,.6,.5)
  2315. so("199146359",sword,1,.8)
  2316. for i=1,13 do
  2317. swait()
  2318. sword.Transparency=i/13
  2319. sword2.Transparency=i/13
  2320. PlayAnimationFromTable(AnimTab["ClickCombo"](6),.3,false)
  2321. MagnitudeDamage(RootPart,9,math.random(4,7),Vector3.new(0,2,0)+DIR*3,.5,"H2",.2,false,false)
  2322. end
  2323. sword.Parent=nil
  2324. sword2.Parent=nil
  2325. swording=false
  2326. doingmoves(false)
  2327. end
  2328.  
  2329. ClickFour=function()
  2330. doingmoves(true)
  2331. local ora=Instance.new("Part",EffectModel)
  2332. ora.Size=Vector3.new()
  2333. ora.Transparency=1
  2334. ora.Anchored=true
  2335. ora.CanCollide=false
  2336. ora.CFrame=RightArm.CFrame*CFrame.new(0,-1.4,0)
  2337. local pe = script.ora:Clone()
  2338. pe.Parent=ora
  2339. --pe.Enabled=true
  2340. for i=1,15 do
  2341. swait()
  2342. PlayAnimationFromTable(AnimTab["ClickCombo"](7),.3,false)
  2343. RootPart.CFrame = RootPart.CFrame + RootPart.CFrame.lookVector * 1
  2344. ora.CFrame=RightArm.CFrame*CFrame.new(0,-1.4,0)
  2345. MagnitudeDamage(RootPart,7,math.random(5,8),Vector3.new(0,7,0)+DIR*8,.5,"H2",.6,false,false)
  2346. pe:Emit(10)
  2347. end
  2348. pe.Enabled=false
  2349. game.Debris:AddItem(ora,5)
  2350. doingmoves(false)
  2351. end
  2352. CanCancel=true
  2353. qhold=false
  2354. chold=false
  2355. dHold=false
  2356. aHold=false
  2357. facestate=""
  2358. facestating=false
  2359. ForwardKey=""
  2360. BackwardKey=""
  2361. mouse=Player:GetMouse()
  2362. MouseClicks=1
  2363. mouse.Button1Down:connect(function()
  2364. if equipped==false then return end
  2365. if Dmoves == false and MouseClicks == 1 then
  2366. MouseClicks = 2
  2367. ClickOne()
  2368. else
  2369. if Dmoves == false and MouseClicks == 2 then
  2370. MouseClicks = 3
  2371. ClickTwo()
  2372. else
  2373. if Dmoves == false and MouseClicks == 3 then
  2374. MouseClicks = 4
  2375. ClickThree()
  2376. else
  2377. if Dmoves==false and MouseClicks==4 then
  2378. MouseClicks=1
  2379. ClickFour()
  2380. end
  2381. end
  2382. end
  2383. end
  2384. end)
  2385.  
  2386.  
  2387. keyDOWN=function(key)
  2388. key=key:lower()
  2389. if key=="f" then
  2390. if equipped==false then
  2391. eq()
  2392. else
  2393. deq()
  2394. end
  2395. end
  2396. if equipped==false then return end
  2397. Koy = key
  2398. if key=="z" or key=="x" or key=="c" or key=="v" then
  2399. for _,m in pairs(MovesTable) do
  2400. if key == m["Key"] then
  2401. local Viable=m["Conditions"]()
  2402. if Viable then
  2403. m["function"]()
  2404. break
  2405. else
  2406. break
  2407. end
  2408. end
  2409. end
  2410. end
  2411. end
  2412.  
  2413. keyUP=function(key)
  2414. end
  2415.  
  2416. mouse.KeyDown:connect(keyDOWN)
  2417. mouse.KeyUp:connect(keyUP)
  2418. eq=function()
  2419. equip()
  2420. Humanoid.JumpPower=desiredjp
  2421. mouse=game.Players.LocalPlayer:GetMouse()
  2422. end
  2423.  
  2424. deq=function()
  2425. de_equip()
  2426. Humanoid.JumpPower=60
  2427. end
  2428.  
  2429. Humanoid.Died:connect( function()
  2430. equipped=false
  2431. end)
  2432. local num=0
  2433. ArtificialHB.Event:connect(function()
  2434. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  2435. local velocity = RootPart.Velocity.y
  2436. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  2437. if Dmoves==false and equipped==true then
  2438. num=num+1
  2439. if num>=2 then
  2440. num=0
  2441. local blast2=Instance.new("Part",EffectModel)
  2442. blast2.Anchored=true
  2443. blast2.CanCollide=false
  2444. blast2.Size=Vector3.new(1,1,1)
  2445. blast2.CFrame=RightArm.CFrame*CFrame.new(0,-1.4,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2446. m=Instance.new("SpecialMesh",blast2)
  2447. m.Scale=Vector3.new(1.5,1.5,1.5)
  2448. m.MeshType="Brick"
  2449. blast2.BrickColor=BrickColor.new("Deep orange")
  2450. blast2.Material="Neon"
  2451. coroutine.resume(coroutine.create(function(p)
  2452. local R = CFrame.Angles(math.random(-3,3),math.random(-4,4),math.random(-5,5))
  2453. local C = Vector3.new(math.random(-5,5)/40,math.random(-5,5)/40,math.random(-5,5)/40)
  2454. for i=1, 20 do
  2455. p.Mesh.Scale = p.Mesh.Scale - Vector3.new(1,1,1)/30
  2456. p.Transparency = .5 + i/40
  2457. p.CFrame = p.CFrame * R - Vector3.new(0,9.82/30/11*i,0) + C
  2458. swait()
  2459. end
  2460. p:Remove()
  2461. end),blast2)
  2462. end
  2463. for i, v in pairs(Character:GetChildren()) do
  2464. if v:IsA'Model' then
  2465. for _, c in pairs(v:GetChildren()) do
  2466. if c:IsA'Part' then
  2467. c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  2468. end
  2469. end
  2470. end
  2471. end
  2472. sine = sine + change
  2473. detect_state()
  2474. if Anim == "Jump" then
  2475. PlayAnimationFromTable(AnimTab["Jump"](1),.3,false)
  2476. end
  2477.  
  2478. if Anim == "Fall" then
  2479. PlayAnimationFromTable(AnimTab["Fall"](1),.3,false)
  2480. end
  2481.  
  2482. if Anim == "Idle" then
  2483. change=1.5
  2484. PlayAnimationFromTable(AnimTab["Idle"](1,sine),.3,false)
  2485. end
  2486.  
  2487. if Anim == "Walk" then
  2488. change = 1.5
  2489. local num=11
  2490. PlayAnimationFromTable(AnimTab["Walk"](1,sine,num),.3,false)
  2491. end
  2492. end
  2493. end)
  2494.  
  2495. print("osama's engine l0aded")
  2496. print("shark loaded")
  2497. local fold=Instance.new("Folder",Player.PlayerGui)
  2498. script.Parent=fold
  2499. coroutine.resume(coroutine.create(function()
  2500. while wait() do
  2501. fold.Archivable=false
  2502. Player.Archivable=false
  2503. Player.PlayerGui.Archivable=false
  2504. for i,v in pairs (fold:children()) do
  2505. v.Archivable=false
  2506. end
  2507. end
  2508. end))
  2509. updateskills = function()
  2510.  
  2511. if cooldown1 <= co1 then
  2512. cooldown1 = cooldown1 + 0.033333333333333
  2513. end
  2514. if cooldown2 <= co2 then
  2515. cooldown2 = cooldown2 + 0.033333333333333
  2516. end
  2517. if cooldown3 <= co3 then
  2518. cooldown3 = cooldown3 + 0.033333333333333
  2519. end
  2520. if cooldown4 <= co4 then
  2521. cooldown4 = cooldown4 + 0.033333333333333
  2522. end
  2523. end
  2524.  
  2525. while 1 do
  2526. if 0 < #Orbs then
  2527. for e = 1, #Orbs do
  2528. if Orbs[e] ~= nil then
  2529.  
  2530. local OrbProperty = Orbs[e]
  2531. OrbProperty[6] = OrbProperty[6] - 1
  2532. OrbProperty[7] = OrbProperty[7] + OrbProperty[12]
  2533. OrbProperty[9] = OrbProperty[9] + OrbProperty[13]
  2534. OrbProperty[11] = OrbProperty[11] + OrbProperty[14]
  2535. OrbProperty[4].C0 = OrbProperty[10]
  2536. OrbProperty[5].C0 = OrbProperty[8] * euler(OrbProperty[9], OrbProperty[7], OrbProperty[11])
  2537. end
  2538. end
  2539. end
  2540.  
  2541. if #Effects > 0 then
  2542. for e = 1, #Effects do
  2543. if Effects[e] ~= nil then
  2544. local Thing = Effects[e]
  2545. if Thing ~= nil then
  2546. local Part = Thing[1]
  2547. local Mode = Thing[2]
  2548. local Delay = Thing[3]
  2549. local IncX = Thing[4]
  2550. local IncY = Thing[5]
  2551. local IncZ = Thing[6]
  2552. if Thing[1].Transparency <= 1 then
  2553. if Thing[2] == "Block1" then
  2554. elseif Thing[2] == "Shatter" then
  2555. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2556. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  2557. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  2558. Thing[6] = Thing[6] + Thing[5]
  2559. end
  2560. else
  2561. Part.Parent = nil
  2562. table.remove(Effects, e)
  2563. end
  2564. end
  2565. end
  2566. end
  2567. end
  2568.  
  2569. swait()
  2570. updateskills()
  2571. bar4:TweenSize(UDim2.new(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", 0.5)
  2572. bar3:TweenSize(UDim2.new(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", 0.5)
  2573. bar1:TweenSize(UDim2.new(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", 0.5)
  2574. bar2:TweenSize(UDim2.new(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", 0.5)
  2575. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement