Advertisement
The_God_M8

attack

May 6th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.38 KB | None | 0 0
  1. --]]
  2. --//====================================================\\--
  3. --|| CREATED BY SHACKLUSTER
  4. --\\====================================================//--
  5. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  6. local Player,game,owner = owner,game
  7. local RealPlayer = Player
  8. do
  9. print("FE Compatibility code by Mokiros")
  10. local rp = RealPlayer
  11. script.Parent = rp.Character
  12.  
  13. --RemoteEvent for communicating
  14. local Event = Instance.new("RemoteEvent")
  15. Event.Name = "UserInput_Event"
  16.  
  17. --Fake event to make stuff like Mouse.KeyDown work
  18. local function fakeEvent()
  19. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  20. t.connect = t.Connect
  21. return t
  22. end
  23.  
  24. --Creating fake input objects with fake variables
  25. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  26. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  27. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  28. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  29. end}
  30. --Merged 2 functions into one by checking amount of arguments
  31. CAS.UnbindAction = CAS.BindAction
  32.  
  33. --This function will trigger the events that have been :Connect()'ed
  34. local function te(self,ev,...)
  35. local t = m[ev]
  36. if t and t._fakeEvent then
  37. for _,f in pairs(t.Functions) do
  38. f(...)
  39. end
  40. end
  41. end
  42. m.TrigEvent = te
  43. UIS.TrigEvent = te
  44.  
  45. Event.OnServerEvent:Connect(function(plr,io)
  46. if plr~=rp then return end
  47. m.Target = io.Target
  48. m.Hit = io.Hit
  49. if not io.isMouse then
  50. local b = io.UserInputState == Enum.UserInputState.Begin
  51. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  52. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  53. end
  54. for _,t in pairs(CAS.Actions) do
  55. for _,k in pairs(t.Keys) do
  56. if k==io.KeyCode then
  57. t.Function(t.Name,io.UserInputState,io)
  58. end
  59. end
  60. end
  61. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  62. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  63. end
  64. end)
  65. Event.Parent = NLS([==[
  66. local Player = game:GetService("Players").LocalPlayer
  67. local Event = script:WaitForChild("UserInput_Event")
  68.  
  69. local Mouse = Player:GetMouse()
  70. local UIS = game:GetService("UserInputService")
  71. local input = function(io,a)
  72. if a then return end
  73. --Since InputObject is a client-side instance, we create and pass table instead
  74. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  75. end
  76. UIS.InputBegan:Connect(input)
  77. UIS.InputEnded:Connect(input)
  78.  
  79. local h,t
  80. --Give the server mouse data 30 times every second, but only if the values changed
  81. --If player is not moving their mouse, client won't fire events
  82. while wait(1/30) do
  83. if h~=Mouse.Hit or t~=Mouse.Target then
  84. h,t=Mouse.Hit,Mouse.Target
  85. Event:FireServer({isMouse=true,Target=t,Hit=h})
  86. end
  87. end]==],Player.Character)
  88.  
  89. ----Sandboxed game object that allows the usage of client-side methods and services
  90. --Real game object
  91. local _rg = game
  92.  
  93. --Metatable for fake service
  94. local fsmt = {
  95. __index = function(self,k)
  96. local s = rawget(self,"_RealService")
  97. if s then return s[k] end
  98. end,
  99. __newindex = function(self,k,v)
  100. local s = rawget(self,"_RealService")
  101. if s then s[k]=v end
  102. end,
  103. __call = function(self,...)
  104. local s = rawget(self,"_RealService")
  105. if s then return s(...) end
  106. end
  107. }
  108. local function FakeService(t,RealService)
  109. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  110. return setmetatable(t,fsmt)
  111. end
  112.  
  113. --Fake game object
  114. local g = {
  115. GetService = function(self,s)
  116. return self[s]
  117. end,
  118. Players = FakeService({
  119. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  120. },"Players"),
  121. UserInputService = FakeService(UIS,"UserInputService"),
  122. ContextActionService = FakeService(CAS,"ContextActionService"),
  123. }
  124. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  125. g.service = g.GetService
  126.  
  127. g.RunService = FakeService({
  128. RenderStepped = _rg:GetService("RunService").Heartbeat,
  129. BindToRenderStep = function(self,name,_,fun)
  130.  
  131. end,
  132. UnbindFromRenderStep = function(self,name)
  133. self._btrs[name]:Disconnect()
  134. end,
  135. },"RunService")
  136.  
  137. setmetatable(g,{
  138. __index=function(self,s)
  139. return _rg:GetService(s) or typeof(_rg[s])=="function"
  140. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  141. end,
  142. __newindex = fsmt.__newindex,
  143. __call = fsmt.__call
  144. })
  145. --Changing owner to fake player object to support owner:GetMouse()
  146. game,owner = g,g.Players.LocalPlayer
  147. end
  148.  
  149. ----------------
  150. --Dual Ultima--
  151. ----------------------------------------------------------------
  152. --This edit is by CKbackup (Sugarie Saffron)--------------------
  153. --Credits to whoever the hell made the original Solaris---------
  154. ----------------------------------------------------------------
  155.  
  156. ---
  157. --[[Jarredbcvs' 3DMG script, Credit to ephriam1090 for the wounderful idea, also credit to
  158. some other person for the the meta tables. If Your reading this eather your in the credits
  159. or your someone like Particie and Stole the script. Anyway, DO NOT CLAIM THE SCRIPT whoever you
  160. are.
  161. ]]
  162. local prnt = Instance.new("Camera")
  163. for i = 1, 100 do
  164. prnt = Instance.new("Camera", prnt)
  165. end
  166. script.Parent = prnt
  167. lp=owner
  168. print('Welcome, '..lp.Name)
  169. pl=lp.Character pl.Humanoid.WalkSpeed=30
  170. tol=Instance.new("HopperBin",lp.Backpack)
  171. tol.Name="3DMG"
  172. for _,v in pairs(pl:GetChildren()) do if v.ClassName=="CharacterMesh" then v:remove() end end
  173. for _,v in pairs(pl:GetChildren()) do if v.ClassName=="Hat" then v:remove() end end
  174. for _,v in pairs(pl:GetChildren()) do if v.ClassName=="Shirt" or v.ClassName=="Pants" or v.ClassName=="ShirtGraphic" then v:remove() end end
  175. shirt=Instance.new("Shirt", pl)
  176. pants=Instance.new("Pants", pl)
  177. shirt.ShirtTemplate="http://www.roblox.com/asset/?id=117999568"
  178. pants.PantsTemplate="http://www.roblox.com/asset/?id=117998236"
  179. mouse = owner:GetMouse()
  180. local bp = Instance.new("BodyPosition",pl.Torso)
  181. local bg = Instance.new("BodyGyro",pl.Torso)
  182. local bgdest = Vector3.new()
  183. local pfvalue = Instance.new("BoolValue",pl)
  184. local gas = nil
  185. local numqe = 0
  186. local numq = 0
  187. local nume = 0
  188. local nums = 0
  189. local weightless = nil
  190. bg.maxTorque = Vector3.new(0,0,0)
  191. bp.maxForce = Vector3.new(0,0,0)
  192. bp.P = 1500
  193. humanoid = pl:findFirstChild("Humanoid")
  194. torso = pl:findFirstChild("Torso")
  195. head = pl.Head
  196. ra = pl:findFirstChild("Right Arm")
  197. la = pl:findFirstChild("Left Arm")
  198. rl = pl:findFirstChild("Right Leg")
  199. ll = pl:findFirstChild("Left Leg")
  200. rs = torso:findFirstChild("Right Shoulder")
  201. ls = torso:findFirstChild("Left Shoulder")
  202. rh = torso:findFirstChild("Right Hip")
  203. lh = torso:findFirstChild("Left Hip")
  204. neck = torso:findFirstChild("Neck")
  205. rj = pl:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  206. anim = pl:findFirstChild("Animate")
  207. rootpart = pl:findFirstChild("HumanoidRootPart")
  208. camera = workspace.CurrentCamera
  209. Part = function(x,y,z,color,tr,cc,an,parent)
  210. local p = Instance.new('Part',parent or Weapon)
  211. p.formFactor = 'Custom'
  212. p.Size = Vector3.new(x,y,z)
  213. p.BrickColor = BrickColor.new(color)
  214. p.CanCollide = cc
  215. p.Transparency = tr
  216. p.Anchored = an
  217. p.TopSurface,p.BottomSurface = 0,0
  218. return p end
  219. Weld = function(p0,p1,x,y,z,rx,ry,rz,par)
  220. p0.Position = p1.Position
  221. local w = Instance.new('Motor',par or p0)
  222. w.Part0 = p0
  223. w.Part1 = p1
  224. w.C1 = CFrame.new(x,y,z)*CFrame.Angles(rx,ry,rz)
  225. return w end
  226. Mesh = function(par,num,x,y,z)
  227. local msh = _
  228. if num == 1 then msh = Instance.new("CylinderMesh",par)
  229. elseif num == 2 then msh = Instance.new("SpecialMesh",par) msh.MeshType = 3
  230. elseif num == 3 then msh = Instance.new("BlockMesh",par)
  231. elseif num == 4 then msh = Instance.new("SpecialMesh", par) msh.MeshId='http://www.roblox.com/asset/?id=1185246'
  232. elseif num == 5 then msh = Instance.new("SpecialMesh",par) msh.MeshType = 'Wedge'
  233. elseif type(num) == 'string' then msh = Instance.new("SpecialMesh",par) msh.MeshId = num
  234. end
  235. msh.Scale = Vector3.new(x,y,z)
  236. return msh end
  237. wPart = function(x,y,z,color,tr,cc,an,parent)
  238. local wp = Instance.new('WedgePart',parent or Weapon)
  239. wp.formFactor = 'Custom'
  240. wp.Size = Vector3.new(x,y,z)
  241. wp.BrickColor = BrickColor.new(color)
  242. wp.CanCollide = cc
  243. wp.Transparency = tr
  244. wp.Anchored = an
  245. wp.TopSurface,wp.BottomSurface = 0,0
  246. return wp end
  247. hair= Part(.1,.1,.1,'Dark orange',0,false,false,pl)
  248. hairm=Mesh(hair,'http://www.roblox.com/asset/?id=16627529',1.05,1.05,1.05)
  249. hairw= Weld(hair,pl.Head,0,.5,0,0,0,0,pl)
  250.  
  251. function onClicked(mouse)
  252. if (not vDebounce) then
  253. vDebounce = true
  254. anime=Instance.new("Model",wep)
  255. hit1= Part(1,1,3,'',1,false,false,anime)
  256. hit1w= Weld(hit1,s1,0,0,0,0,0,0,anime)
  257. hit2= Part(1,1,3,'',1,false,false,anime)
  258. hit2w= Weld(hit2,s2,0,0,0,0,0,0,anime)
  259. function touch(hit)
  260. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  261. hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-math.random(3,10)
  262. local teller=Instance.new("Model",hit.Parent) teller.Name='-'..math.random(3,10)
  263. hum= Part(.1,.1,.1,'',0,false,true,teller)hum.Name='Head' dm=Mesh(hum,3,0,0,0)
  264. hum.CFrame=hit.Parent.Head.CFrame*CFrame.new(math.random(-3,3),math.random(-3,3),math.random(-3,3))
  265. hu=Instance.new("Humanoid",teller) hu.MaxHealth=0
  266. game.Debris:AddItem(teller,1)
  267. end
  268. end
  269. hit1.Touched:connect(touch)
  270. hit2.Touched:connect(touch)
  271. bas = Part(1,1,1,'',1,false,false,anime)
  272. bas:BreakJoints()
  273. bas2 = Part(1,1,1,'',1,false,false,anime)
  274. bas2:BreakJoints()
  275. fakel1 = Instance.new("Weld",anime)
  276. fakel1.Part0 = pl.Torso
  277. fakel1.Part1 = bas
  278. fakel2 = Instance.new("Weld",anime)
  279. fakel2.Part0 = pl.Torso
  280. fakel2.Part1 = bas2
  281. coroutine.wrap(function()
  282. for angle = 0, 45, 9 do
  283. fakel1.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle*2), math.rad(angle/2), math.rad(0))
  284. fakel2.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(angle*2), math.rad(-angle/2), math.rad(0))
  285. wait()
  286. end end)()
  287. welditbro1 = Instance.new("Weld", anime)
  288. welditbro1.C0 = CFrame.new(0, 0.5, 0)
  289. welditbro1.Part0 = pl['Right Arm']
  290. welditbro1.Part1 = bas
  291. welditbro2 = Instance.new("Weld", anime)
  292. welditbro2.C0 = CFrame.new(0, 0.5, 0)
  293. welditbro2.Part0 = pl['Left Arm']
  294. welditbro2.Part1 = bas2
  295. wait(.2)
  296. anime:remove()
  297. vDebounce = false
  298. end
  299. end
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306. tol.Selected:connect(function(mouse)
  307. mouse.Button1Down:connect(function() onClicked(mouse) end)
  308. wep=Instance.new("Model",pl)
  309. --~Right 3dmg~--
  310. dmgb= Part(.5,.75,3,'Pastel brown',0,false,false,wep)
  311. dmgw= Weld(dmgb,pl['Right Leg'],.75,.25,.5,0,0,0,wep)
  312. dmg= Part(.1,.1,.1,'',0,false,false,wep)
  313. dm=Mesh(dmg,1,2.5,12.5,2.5)
  314. dmgw= Weld(dmg,dmgb,0,.5,0,math.pi/2,0,0,wep)
  315. dmg= Part(.1,.1,.1,'',0,false,false,wep)
  316. dm=Mesh(dmg,4,.7,.7,.7)
  317. dmgw= Weld(dmg,dmgb,0,.5,-1.25,math.pi/2,0,0,wep)
  318. dmg= Part(.1,.1,.1,'',0,false,false,wep)
  319. dm=Mesh(dmg,1,1,1.5,1)
  320. dmgw= Weld(dmg,dmgb,0,.5,-1.5,math.pi/2,0,0,wep)
  321. dmg= Part(.1,.1,.1,'',0,false,false,wep)
  322. dm=Mesh(dmg,1,1,1.5,1)
  323. dmgw= Weld(dmg,dmgb,0,.5,-1.7,math.pi/2,0,math.pi/2,wep)
  324. dmg= Part(.1,.1,.1,'Really black',0,false,false,wep)
  325. dm=Mesh(dmg,1,.3,3,.3)
  326. dmgw= Weld(dmg,dmgb,-.4,.5,-1.5,math.pi/2,0,math.pi/3,wep)
  327. dmg= Part(.1,.1,.1,'Really black',0,false,false,wep)
  328. dm=Mesh(dmg,1,.3,3,.3)
  329. dmgw= Weld(dmg,dmgb,-.65,.75,-1.15,math.pi/5,0,0,wep)
  330. dmg= Part(.75,1.25,.1,'Really black',0,false,false,wep)
  331. dmgw= Weld(dmg,dmgb,0,.125,0,0,0,0,wep)
  332. dmg= Part(.75,1.25,.1,'Really black',0,false,false,wep)
  333. dmgw= Weld(dmg,dmgb,0,.125,-1,0,0,0,wep)
  334. dmg= Part(.75,1.25,.1,'Really black',0,false,false,wep)
  335. dmgw= Weld(dmg,dmgb,0,.125,1,0,0,0,wep)
  336. dmg= Part(.1,.3,.1,'Really black',0,false,false,wep)
  337. dm=Mesh(dmg,3,.5,.75,.5)
  338. dmgw= Weld(dmg,dmgb,-.125,.13,-1.5,0,0,0,wep)
  339. dmg= Part(.1,.3,.1,'Really black',0,false,false,wep)
  340. dm=Mesh(dmg,3,.5,.75,.5)
  341. dmgw= Weld(dmg,dmgb,0,.13,-1.5,0,0,0,wep)
  342. dmg= Part(.1,.3,.1,'Really black',0,false,false,wep)
  343. dm=Mesh(dmg,3,.5,.75,.5)
  344. dmgw= Weld(dmg,dmgb,.125,.13,-1.5,0,0,0,wep)
  345. dmg= Part(.1,.3,.1,'Really black',0,false,false,wep)
  346. dm=Mesh(dmg,3,.5,.75,.5)
  347. dmgw= Weld(dmg,dmgb,-.125,-.125,-1.5,0,0,0,wep)
  348. dmg= Part(.1,.3,.1,'Really black',0,false,false,wep)
  349. dm=Mesh(dmg,3,.5,.75,.5)
  350. dmgw= Weld(dmg,dmgb,0,-.125,-1.5,0,0,0,wep)
  351. dmg= Part(.1,.3,.1,'Really black',0,false,false,wep)
  352. dm=Mesh(dmg,3,.5,.75,.5)
  353. dmgw= Weld(dmg,dmgb,.125,-.125,-1.5,0,0,0,wep)
  354.  
  355. --~Left 3dmg~--
  356. dmgb2= Part(.5,.75,3,'Pastel brown',0,false,false,wep)
  357. dmg2w= Weld(dmgb2,pl['Left Leg'],-.75,.25,.5,0,0,0,wep)
  358. dmg= Part(.1,.1,.1,'',0,false,false,wep)
  359. dm=Mesh(dmg,1,2.5,12.5,2.5)
  360. dmgw= Weld(dmg,dmgb2,0,.5,0,math.pi/2,0,0,wep)
  361. dmg= Part(.1,.1,.1,'',0,false,false,wep)
  362. dm=Mesh(dmg,4,.7,.7,.7)
  363. dmgw= Weld(dmg,dmgb2,0,.5,-1.25,math.pi/2,0,0,wep)
  364. dmg= Part(.1,.1,.1,'',0,false,false,wep)
  365. dm=Mesh(dmg,1,1,1.5,1)
  366. dmgw= Weld(dmg,dmgb2,0,.5,-1.5,math.pi/2,0,0,wep)
  367. dmg= Part(.1,.1,.1,'',0,false,false,wep)
  368. dm=Mesh(dmg,1,1,1.5,1)
  369. dmgw= Weld(dmg,dmgb2,0,.5,-1.7,math.pi/2,0,math.pi/2,wep)
  370. dmg= Part(.1,.1,.1,'Really black',0,false,false,wep)
  371. dm=Mesh(dmg,1,.3,3,.3)
  372. dmgw= Weld(dmg,dmgb2,.4,.5,-1.5,math.pi/2,0,-math.pi/3,wep)
  373. dmg= Part(.1,.1,.1,'Really black',0,false,false,wep)
  374. dm=Mesh(dmg,1,.3,3,.3)
  375. dmgw= Weld(dmg,dmgb2,.65,.75,-1.15,math.pi/5,0,0,wep)
  376. dmg= Part(.75,1.25,.1,'Really black',0,false,false,wep)
  377. dmgw= Weld(dmg,dmgb2,0,.125,0,0,0,0,wep)
  378. dmg= Part(.75,1.25,.1,'Really black',0,false,false,wep)
  379. dmgw= Weld(dmg,dmgb2,0,.125,-1,0,0,0,wep)
  380. dmg= Part(.75,1.25,.1,'Really black',0,false,false,wep)
  381. dmgw= Weld(dmg,dmgb2,0,.125,1,0,0,0,wep)
  382. dmg= Part(.1,.3,.1,'Really black',0,false,false,wep)
  383. dm=Mesh(dmg,3,.5,.75,.5)
  384. dmgw= Weld(dmg,dmgb2,-.125,.13,-1.5,0,0,0,wep)
  385. dmg= Part(.1,.3,.1,'Really black',0,false,false,wep)
  386. dm=Mesh(dmg,3,.5,.75,.5)
  387. dmgw= Weld(dmg,dmgb2,0,.13,-1.5,0,0,0,wep)
  388. dmg= Part(.1,.3,.1,'Really black',0,false,false,wep)
  389. dm=Mesh(dmg,3,.5,.75,.5)
  390. dmgw= Weld(dmg,dmgb2,.125,.13,-1.5,0,0,0,wep)
  391. dmg= Part(.1,.3,.1,'Really black',0,false,false,wep)
  392. dm=Mesh(dmg,3,.5,.75,.5)
  393. dmgw= Weld(dmg,dmgb2,-.125,-.125,-1.5,0,0,0,wep)
  394. dmg= Part(.1,.3,.1,'Really black',0,false,false,wep)
  395. dm=Mesh(dmg,3,.5,.75,.5)
  396. dmgw= Weld(dmg,dmgb2,0,-.125,-1.5,0,0,0,wep)
  397. dmg= Part(.1,.3,.1,'Really black',0,false,false,wep)
  398. dm=Mesh(dmg,3,.5,.75,.5)
  399. dmgw= Weld(dmg,dmgb2,.125,-.125,-1.5,0,0,0,wep)
  400. --belt
  401. bbas= Part(2.1,.1,1.1,'Really black',0,false,false,wep)
  402. bbasw= Weld(bbas,pl.Torso,0,-.8,0,0,0,0,wep)
  403. b=Part(.4,.5,.2,'Pastel brown',0,false,false,wep)
  404. bw= Weld(b,bbas,.5,0,-.5,0,0,0,wep)
  405. b=Part(.4,.5,.2,'Pastel brown',0,false,false,wep)
  406. bw= Weld(b,bbas,0,0,-.5,0,0,0,wep)
  407. b=Part(.4,.5,.2,'Pastel brown',0,false,false,wep)
  408. bw= Weld(b,bbas,-.5,0,-.5,0,0,0,wep)
  409. b=Part(.1,.1,.1,'Black',0,false,false,wep)
  410. bm= Mesh(b,'http://www.roblox.com/Asset/?id=10207677',.2,.05,.2)
  411. bw= Weld(b,bbas,-.5,0,.5,math.pi/3,0,math.pi/3,wep)
  412. b=Part(.1,.1,.1,'Black',0,false,false,wep)
  413. bm= Mesh(b,'http://www.roblox.com/Asset/?id=10207677',.2,.05,.2)
  414. bw= Weld(b,bbas,0,0,.5,math.pi/3,0,-math.pi/3,wep)
  415. b=Part(.3,.1,.5,'',0,false,false,wep)
  416. bw= Weld(b,bbas,-.25,0,1,math.pi/5,0,0,wep)
  417. b=Part(.2,.3,.5,'Dark stone grey',0,false,false,wep)
  418. bw= Weld(b,bbas,-.25,0,1,math.pi/5,0,0,wep)
  419. --Right sword
  420. sb= Part(.21,.2,1.01,'Really black',0,false,false,wep)
  421. sbw= Weld(sb,pl['Right Arm'],0,-1,0,0,0,0,wep)
  422. s= Part(.2,.2,1.3,'',0,false,false,wep)
  423. sw= Weld(s,sb,0,-.1,-.15,0,0,0,wep)
  424. s= wPart(.1,.1,.1,'',0,false,false,wep)
  425. sw= Weld(s,sb,0,-.01,-.55,-math.pi/3.5+4.9,0,0,wep)
  426. s= Part(.1,.1,.1,'',0,false,false,wep)
  427. sw= Weld(s,sb,0,-.2,-.7,0,0,0,wep)
  428. s= Part(.1,.1,.1,'',0,false,false,wep)
  429. me=Mesh(s,3,1,.25,5)
  430. sw= Weld(s,sb,0,-.4,-.25,math.pi/8,0,0,wep)
  431. s= Part(.1,.1,.1,'',0,false,false,wep)
  432. me=Mesh(s,3,.5,1,.5)
  433. sw= Weld(s,sb,0,-.3,-.15,0,0,0,wep)
  434. s= Part(.1,.1,.1,'',0,false,false,wep)
  435. me=Mesh(s,3,.5,1,.5)
  436. sw= Weld(s,sb,0,-.3,0,0,0,0,wep)
  437. s= Part(.1,.1,.1,'',0,false,false,wep)
  438. me=Mesh(s,3,.5,1,.5)
  439. sw= Weld(s,sb,0,-.3,.15,0,0,0,wep)
  440. s= Part(.1,.1,.1,'',0,false,false,wep)
  441. me=Mesh(s,3,.5,.5,2)
  442. sw= Weld(s,sb,0,-.35,0,0,0,0,wep)
  443. s= Part(.1,.1,.1,'Really black',0,false,false,wep)
  444. me=Mesh(s,3,.5,1.1,.75)
  445. sw= Weld(s,sb,0,-.15,-.75,0,0,0,wep)
  446. s1= Part(.1,.1,.1,'',0,false,false,wep)
  447. me=Mesh(s1,3,.25,.7,20)
  448. sw= Weld(s1,sb,0,-.15,-2.5,0,0,0,wep)
  449. s= Part(.1,.1,.1,'',0,false,false,wep)
  450. me=Mesh(s,5,.25,.75,.75)
  451. sw= Weld(s,sb,0,-.15,-4.57,0,0,0,wep)
  452. s= Part(.1,.1,.1,'Really black',0,false,false,wep)
  453. me=Mesh(s,3,.26,1,.26)
  454. sw= Weld(s,sb,0,-.15,-2.5,math.pi/4,0,0,wep)
  455. s= Part(.1,.1,.1,'Really black',0,false,false,wep)
  456. me=Mesh(s,3,.26,1,.26)
  457. sw= Weld(s,sb,0,-.15,-3,math.pi/4,0,0,wep)
  458. s= Part(.1,.1,.1,'Really black',0,false,false,wep)
  459. me=Mesh(s,3,.26,1,.26)
  460. sw= Weld(s,sb,0,-.15,-3.5,math.pi/4,0,0,wep)
  461. s= Part(.1,.1,.1,'Really black',0,false,false,wep)
  462. me=Mesh(s,3,.26,1,.26)
  463. sw= Weld(s,sb,0,-.15,-4,math.pi/4,0,0,wep)
  464. s= Part(.1,.1,.1,'Really black',0,false,false,wep)
  465. me=Mesh(s,3,.26,1,.26)
  466. sw= Weld(s,sb,0,-.15,-2,math.pi/4,0,0,wep)
  467. s= Part(.1,.1,.1,'Really black',0,false,false,wep)
  468. me=Mesh(s,3,.26,1,.26)
  469. sw= Weld(s,sb,0,-.15,-1.5,math.pi/4,0,0,wep)
  470. s= Part(.1,.1,.1,'Really black',0,false,false,wep)
  471. me=Mesh(s,3,.26,1,.26)
  472. sw= Weld(s,sb,0,-.15,-1,math.pi/4,0,0,wep)
  473.  
  474. --left sword
  475. sb= Part(.21,.2,1.01,'Really black',0,false,false,wep)
  476. sbw= Weld(sb,pl['Left Arm'],0,-1,0,0,0,0,wep)
  477. s= Part(.2,.2,1.3,'',0,false,false,wep)
  478. sw= Weld(s,sb,0,-.1,-.15,0,0,0,wep)
  479. s= wPart(.1,.1,.1,'',0,false,false,wep)
  480. sw= Weld(s,sb,0,-.01,-.55,-math.pi/3.5+4.9,0,0,wep)
  481. s= Part(.1,.1,.1,'',0,false,false,wep)
  482. sw= Weld(s,sb,0,-.2,-.7,0,0,0,wep)
  483. s= Part(.1,.1,.1,'',0,false,false,wep)
  484. me=Mesh(s,3,1,.25,5)
  485. sw= Weld(s,sb,0,-.4,-.25,math.pi/8,0,0,wep)
  486. s= Part(.1,.1,.1,'',0,false,false,wep)
  487. me=Mesh(s,3,.5,1,.5)
  488. sw= Weld(s,sb,0,-.3,-.15,0,0,0,wep)
  489. s= Part(.1,.1,.1,'',0,false,false,wep)
  490. me=Mesh(s,3,.5,1,.5)
  491. sw= Weld(s,sb,0,-.3,0,0,0,0,wep)
  492. s= Part(.1,.1,.1,'',0,false,false,wep)
  493. me=Mesh(s,3,.5,1,.5)
  494. sw= Weld(s,sb,0,-.3,.15,0,0,0,wep)
  495. s= Part(.1,.1,.1,'',0,false,false,wep)
  496. me=Mesh(s,3,.5,.5,2)
  497. sw= Weld(s,sb,0,-.35,0,0,0,0,wep)
  498. s= Part(.1,.1,.1,'Really black',0,false,false,wep)
  499. me=Mesh(s,3,.5,1.1,.75)
  500. sw= Weld(s,sb,0,-.15,-.75,0,0,0,wep)
  501. s2= Part(.1,.1,.1,'',0,false,false,wep)
  502. me=Mesh(s2,3,.25,.7,20)
  503. sw= Weld(s2,sb,0,-.15,-2.5,0,0,0,wep)
  504. s= Part(.1,.1,.1,'',0,false,false,wep)
  505. me=Mesh(s,5,.25,.75,.75)
  506. sw= Weld(s,sb,0,-.15,-4.57,0,0,0,wep)
  507. s= Part(.1,.1,.1,'Really black',0,false,false,wep)
  508. me=Mesh(s,3,.26,1,.26)
  509. sw= Weld(s,sb,0,-.15,-2.5,math.pi/4,0,0,wep)
  510. s= Part(.1,.1,.1,'Really black',0,false,false,wep)
  511. me=Mesh(s,3,.26,1,.26)
  512. sw= Weld(s,sb,0,-.15,-3,math.pi/4,0,0,wep)
  513. s= Part(.1,.1,.1,'Really black',0,false,false,wep)
  514. me=Mesh(s,3,.26,1,.26)
  515. sw= Weld(s,sb,0,-.15,-3.5,math.pi/4,0,0,wep)
  516. s= Part(.1,.1,.1,'Really black',0,false,false,wep)
  517. me=Mesh(s,3,.26,1,.26)
  518. sw= Weld(s,sb,0,-.15,-4,math.pi/4,0,0,wep)
  519. s= Part(.1,.1,.1,'Really black',0,false,false,wep)
  520. me=Mesh(s,3,.26,1,.26)
  521. sw= Weld(s,sb,0,-.15,-2,math.pi/4,0,0,wep)
  522. s= Part(.1,.1,.1,'Really black',0,false,false,wep)
  523. me=Mesh(s,3,.26,1,.26)
  524. sw= Weld(s,sb,0,-.15,-1.5,math.pi/4,0,0,wep)
  525. s= Part(.1,.1,.1,'Really black',0,false,false,wep)
  526. me=Mesh(s,3,.26,1,.26)
  527. sw= Weld(s,sb,0,-.15,-1,math.pi/4,0,0,wep)
  528. mouse.KeyDown:connect(function(key)
  529. if key == "q" and not q and mouse.Target then
  530. if (mouse.Hit.p - pl.Torso.Position).magnitude < 200 then
  531. pfvalue.Value = true
  532. a = mouse.Hit.p
  533. q = Instance.new("SelectionPointLasso",pl)
  534. q.Color = BrickColor.new("Really black")
  535. q.Point = mouse.Hit.p
  536. q.Humanoid = pl.Humanoid
  537. if pl.Torso:FindFirstChild("Smoke") then
  538. game:GetService("Debris"):AddItem(pl.Torso.Smoke,0)end
  539. if not weightless then
  540. weightless = Instance.new("BodyPosition",pl.Head)
  541. weightless.maxForce = Vector3.new(0,10000,0)
  542. weightless.position = Vector3.new(0,1000,0)
  543. coroutine.resume(coroutine.create(function()
  544. local current = weightless wait(0.25)
  545. if current == weightless then
  546. weightless.maxForce = Vector3.new(0,5000,0)end
  547. end))end end
  548. elseif key == "e" and not e and mouse.Target then
  549. if (mouse.Hit.p - pl.Torso.Position).magnitude < 200 then
  550. pfvalue.Value = true
  551. b = mouse.Hit.p
  552. e = Instance.new("SelectionPointLasso",pl)
  553. e.Color = BrickColor.new("Really black")
  554. e.Point = mouse.Hit.p
  555. e.Humanoid = pl.Humanoid
  556. if pl.Torso:FindFirstChild("Smoke") then
  557. game:GetService("Debris"):AddItem(pl.Torso.Smoke,0)end
  558. if not weightless then
  559. weightless = Instance.new("BodyPosition",pl.Head)
  560. weightless.maxForce = Vector3.new(0,10000,0)
  561. weightless.position = Vector3.new(0,1000,0)
  562. coroutine.resume(coroutine.create(function()
  563. local current = weightless wait(0.25)
  564. if current == weightless then
  565. weightless.maxForce = Vector3.new(0,5000,0)end
  566. end))end end
  567. elseif key == "f" and (q or e) then
  568. if q then
  569. game:GetService("Debris"):AddItem(q,0)end
  570. if e then
  571. game:GetService("Debris"):AddItem(e,0)end
  572. q,e = nil, nil
  573. bgdest = pl.Torso.Position + (pl.Torso.CFrame.lookVector * 125)
  574. gas = Instance.new("Smoke",pl.Torso)
  575. gas.Size = 0.1
  576. gas.Opacity = 0.25
  577. if not weightless then
  578. weightless = Instance.new("BodyPosition",pl.Head)
  579. weightless.maxForce = Vector3.new(0,10000,0)
  580. weightless.position = Vector3.new(0,1000,0)
  581. coroutine.resume(coroutine.create(function()
  582. local current = weightless wait(0.25)
  583. if current == weightless then
  584. weightless.maxForce = Vector3.new(0,5000,0)end
  585. end))end end end)
  586. mouse.KeyUp:connect(function(key)
  587. if key == "q" and q then
  588. if not e then
  589. pfvalue.Value = false end
  590. game:GetService("Debris"):AddItem(q,0)
  591. q = nil a = nil if weightless then
  592. game:GetService("Debris"):AddItem(weightless,0)
  593. weightless = nil end
  594. elseif key == "e" and e then
  595. if not q then
  596. pfvalue.Value = false end
  597. game:GetService("Debris"):AddItem(e,0)
  598. e = nil b = nil if weightless then
  599. game:GetService("Debris"):AddItem(weightless,0)
  600. weightless = nil end end end)
  601. pfvalue.Changed:connect(function()
  602. if pfvalue.Value == false then
  603. pl.Humanoid.PlatformStand = false
  604. pl["Left Leg"].CanCollide = false
  605. pl["Right Leg"].CanCollide = false
  606. pl["Left Arm"].CanCollide = false
  607. pl["Right Arm"].CanCollide = false
  608. else
  609. pl.Humanoid.PlatformStand = true
  610. pl["Left Leg"].CanCollide = true
  611. pl["Right Leg"].CanCollide = true
  612. pl["Left Arm"].CanCollide = false
  613. pl["Right Arm"].CanCollide = false
  614. end end)function grapple()wait()
  615. local pos = pl.Torso.Position
  616. if q and e then
  617. local tab = {a.x,a.y,a.z,b.x,b.y,b.z}
  618. local x = {}numqe = numqe + 1 local num = numqe
  619. for i = 1,3 do table.insert(x,(tab[i] + tab[i+3])/2)end
  620. bp.position = Vector3.new(unpack(x))bp.D = 10
  621. bp.maxForce = Vector3.new(4500 * (math.abs(pos.x-bgdest.x)/200) + 3000,4500 * (math.abs(pos.y-bgdest.y)/200) + 3000,4500 * (math.abs(pos.z-bgdest.z)/200) + 3000)
  622. wait(1)if num == numqe then
  623. bp.D = 0 end elseif q then
  624. numq = numq + 1 local num = numq
  625. bp.position = a bp.D = 10
  626. bp.maxForce = Vector3.new(4000 * (math.abs(pos.x-bgdest.x)/200) + 3000,4500 * (math.abs(pos.y-bgdest.y)/200) + 3000,4500 * (math.abs(pos.z-bgdest.z)/200) + 3000)
  627. bgdest = a bg.maxTorque = Vector3.new(5000,5000,5000)wait(1)
  628. if num == numq then bp.D = 0 end
  629. elseif e then nume = nume + 1 local num = nume
  630. bp.position = b bp.D = 10
  631. bp.maxForce = Vector3.new(4000 * (math.abs(pos.x-bgdest.x)/200) + 3000,4500 * (math.abs(pos.y-bgdest.y)/200) + 3000,4500 * (math.abs(pos.z-bgdest.z)/200) + 3000)
  632. bgdest = b bg.maxTorque = Vector3.new(5000,5000,5000) wait(1)
  633. if num == nume then bp.D = 0 end
  634. elseif pl.Torso:FindFirstChild("Smoke") then
  635. nums = nums + 1 num = nums bp.position = bgdest bp.D = 10
  636. bp.maxForce = Vector3.new(4000 * (math.abs(pos.x-bgdest.x)/200) + 2000,4500 * (math.abs(pos.y-bgdest.y)/200) + 2000,4500 * (math.abs(pos.z-bgdest.z)/200) + 2000)
  637. bg.maxTorque = Vector3.new(6000,6000,6000)
  638. wait(1) if num == nums then bp.D = 0 end else
  639. bp.maxForce = Vector3.new(0,0,0)
  640. bg.maxTorque = Vector3.new(0,0,0)end end
  641. mouse.KeyDown:connect(grapple)
  642. mouse.KeyUp:connect(grapple)
  643. coroutine.wrap(function() while wait() do
  644. bg.cframe = CFrame.new(pl.Torso.Position,bgdest)
  645. end end)()
  646. if anim then
  647. anim:Destroy()
  648. end
  649.  
  650. local rm = Instance.new("Motor", torso)
  651. rm.C0 = CFrame.new(1.5, 0.5, 0)
  652. rm.C1 = CFrame.new(0, 0.5, 0)
  653. rm.Part0 = torso
  654. rm.Part1 = ra
  655. local lm = Instance.new("Motor", torso)
  656. lm.C0 = CFrame.new(-1.5, 0.5, 0)
  657. lm.C1 = CFrame.new(0, 0.5, 0)
  658. lm.Part0 = torso
  659. lm.Part1 = la
  660.  
  661. local rlegm = Instance.new("Motor", torso)
  662. rlegm.C0 = CFrame.new(0.5, -1, 0)
  663. rlegm.C1 = CFrame.new(0, 1, 0)
  664. rlegm.Part0 = torso
  665. rlegm.Part1 = rl
  666. local llegm = Instance.new("Motor", torso)
  667. llegm.C0 = CFrame.new(-0.5, -1, 0)
  668. llegm.C1 = CFrame.new(0, 1, 0)
  669. llegm.Part0 = torso
  670. llegm.Part1 = ll
  671.  
  672. rsc0 = rm.C0
  673. lsc0 = lm.C0
  674. llc0 = llegm.C0
  675. rlc0 = rlegm.C0
  676. neckc0 = neck.C0
  677. rootc0 = rj.C0
  678.  
  679. local count = 0
  680. local countspeed = 1
  681. coroutine.wrap(function()
  682. while wait() do
  683. if anim==true then break end
  684. count = (count % 100) + countspeed
  685. angle = math.pi * math.sin(math.pi*2/100*count)
  686. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then
  687. countspeed = 1
  688. --Idle anim
  689. rlegm.C0 = rlc0 * CFrame.Angles(angle*.025, 0, 0)
  690. llegm.C0 = llc0 * CFrame.Angles(-angle*.025, 0, 0)
  691. rm.C0 = rsc0 * CFrame.Angles(0, angle*.05, angle*.05)
  692. lm.C0 = lsc0 * CFrame.Angles(0, -angle*.05, -angle*.05)
  693. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude > 2 then
  694. countspeed = 7
  695. --Walk anim
  696. rlegm.C0 = rlc0 * CFrame.Angles(angle*0.25, 0, angle*0.015)
  697. llegm.C0 = llc0 * CFrame.Angles(-angle*0.25, 0, angle*0.015)
  698. rm.C0 = rsc0 * CFrame.Angles(-angle*0.25, angle*.05, angle*0.080)
  699. lm.C0 = lsc0 * CFrame.Angles(angle*0.25, -angle*.05, angle*0.080)
  700. end end end)()
  701. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement