Advertisement
Void_scripter0

AOT

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