Advertisement
StarzoZero

Roblox Austrlium Knife Script

Dec 16th, 2018
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.59 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  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 UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  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. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87.  
  88. --==Made by LuisPambid==--
  89.  
  90.  
  91. local player = owner
  92. local char=player.Character
  93. repeat wait() until player and char
  94. local torso=char.Torso
  95. local head=char.Head
  96. local human=char.Humanoid
  97. local arm={Left=char["Left Arm"], Right=char["Right Arm"]}
  98. local leg={Left=char["Left Leg"], Right=char["Right Leg"]}
  99. local c=function(f) coroutine.resume(coroutine.create(f)) end
  100. local p=function(f) pcall(f) end
  101. local add = {
  102. Part=function(par, a, c, col, t, s, cf, ms)
  103. local p=Instance.new("Part", par) pcall(function() p.TopSurface="Smooth" p.BottomSurface="Smooth" p.formFactor="Custom" p.Anchored=a p.CanCollide=c p.BrickColor=BrickColor.new(col) p.Transparency=t p.Size=s p.CFrame=cf or CFrame.new() end)
  104. local m=Instance.new("BlockMesh", p) pcall(function() m.Scale=ms or Vector3.new(1, 1, 1) end)
  105. return p
  106. end,
  107. Wedge=function(par, a, c, col, t, s, cf, ms)
  108. local p=Instance.new("WedgePart", par) pcall(function() p.TopSurface="Smooth" p.BottomSurface="Smooth" p.formFactor="Custom" p.Anchored=a p.CanCollide=c p.BrickColor=BrickColor.new(col) p.Transparency=t p.Size=s p.CFrame=cf or CFrame.new() end)
  109. local m=Instance.new("SpecialMesh", p) pcall(function() m.Scale=ms or Vector3.new(1, 1, 1) m.MeshType="Wedge" end)
  110. return p
  111. end,
  112. Gui=function(ins, par, bc, bg, tc, fs, text, t, s, pos)
  113. local g=Instance.new(ins, par) pcall(function() g.BorderColor=BridckColor.new(bc) g.BackgroundColor=BrickColor.new(bg) g.TextColor=BrickColor.new(tc) g.FontSize=fs g.Font="ArialBold" g.Text=text g.Transparency=t g.Size=s g.Position=pos end)
  114. return g
  115. end,
  116. Weld=function(par, p1, cf)
  117. local w=Instance.new("Weld", par) pcall(function() w.Part0=w.Parent or par w.Part1=p1 w.C1=cf or CFrame.new() end)
  118. return w
  119. end,
  120. Mesh=function(ins, par, s, of, t)
  121. local m=Instance.new(ins, par) pcall(function() m.Scale=s or Vector3.new() m.Offset=of or Vector3.new() m.MeshType=t end)
  122. return m
  123. end,
  124. Sound=function(parent, id, volume, pitch)
  125. local s=Instance.new("Sound", parent) pcall(function() s.SoundId=id s.Volume=volume s.Pitch=pitch end)
  126. return s
  127. end,
  128. }
  129. local scriptname="Spy" --Name here
  130. pcall(function() player.Backpack[scriptname]:remove() char[scriptname]:remove() char["Objects"]:remove() player.PlayerGui[scriptname]:remove() end)
  131. local model=Instance.new("Model", char) model.Name="Objects"
  132. local modelB=Instance.new("Model", char) modelB.Name=scriptname
  133. local gui=Instance.new("ScreenGui", player.PlayerGui) gui.Name=scriptname
  134. local bin=Instance.new("HopperBin", player.Backpack) bin.Name=scriptname
  135. local skincolor="Really black"
  136. local body={}
  137. local animate={}
  138. local obj={}
  139. function createParts()
  140. --==PARTS==--
  141. body.Torso=add.Part(model, false, false, skincolor, 1, Vector3.new(2, 2, 1), nil)
  142. body.ArmLeft, body.ArmRight=add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil), add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil)
  143. body.LegLeft, body.LegRight=add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil), add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil)
  144. --==WELDS==--
  145. body.TorsoW=add.Weld(body.Torso, torso, nil)
  146. body.ArmLeftW, body.ArmRightW=add.Weld(body.ArmLeft, body.Torso, CFrame.new(-1.5, .5, 0)), add.Weld(body.ArmRight, body.Torso, CFrame.new(1.5, .5, 0))
  147. body.LegLeftW, body.LegRightW=add.Weld(body.LegLeft, body.Torso, CFrame.new(-.5, -1.5, 0)), add.Weld(body.LegRight, body.Torso, CFrame.new(.5, -1.5, 0))
  148. --==MESHES==--
  149. add.Weld(arm.Left, body.ArmLeft, CFrame.new(0, -.5, 0))
  150. add.Weld(arm.Right, body.ArmRight, CFrame.new(0, -.5, 0))
  151. torso["Left Hip"].Part0=body.Torso
  152. torso["Right Hip"].Part0=body.Torso
  153. ---------------------------------------------------------------------------------------
  154. animate={
  155. ["Torso"]=function(cf) body.Torso.Transparency=0 torso.Transparency=1
  156. body.TorsoW.C1=cf
  157. end;
  158. ["ArmLeft"]=function(cf)
  159. body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*cf
  160. end;
  161. ["ArmRight"]=function(cf)
  162. body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*cf
  163. end;
  164. ["LegLeft"]=function(cf)
  165. body.LegLeftW.C1=CFrame.new(-.5, -1.5, 0)*cf
  166. end;
  167. ["LegRight"]=function(cf)
  168. body.LegRightW.C1=CFrame.new(.5, -1.5, 0)*cf
  169. end;
  170. }
  171. --==Objects==--
  172. obj.HandleBack=add.Part(modelB, false, false, "Really black", 0, Vector3.new(.2, 1, .2), nil)
  173. obj.HandleBackW=add.Weld(obj.HandleBack, body.ArmRight, CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, 0))
  174. obj.EdgeBot=add.Part(modelB, false, false, "Really black", 0, Vector3.new(.2, .2, .2), nil)
  175. obj.EdgeBotM=add.Mesh("CylinderMesh", obj.EdgeBot, Vector3.new(1, 1, 1), nil, nil)
  176. obj.EdgeBotW=add.Weld(obj.EdgeBot, obj.HandleBack, CFrame.new(0, -.5, 0)*CFrame.Angles(math.rad(90), 0, math.rad(90)))
  177. obj.EdgeTopR=add.Part(modelB, false, false, "Really black", 0, Vector3.new(.2, .2, .2), nil)
  178. obj.EdgeTopRM=add.Mesh("CylinderMesh", obj.EdgeTopR, Vector3.new(1, 1, 1), nil, nil)
  179. obj.EdgeTopRW=add.Weld(obj.EdgeTopR, obj.HandleBack, CFrame.new(0, .5, 0)*CFrame.Angles(math.rad(90), 0, math.rad(90)))
  180.  
  181. obj.Blade=add.Part(modelB, false, false, "Gold", 0, Vector3.new(.2, .8, .2), nil)
  182. obj.BladeM=add.Mesh("BlockMesh", obj.Blade, Vector3.new(.5, 1, 1), nil, nil)
  183. obj.BladeW=add.Weld(obj.Blade, obj.EdgeTopR, CFrame.new(-.1, 0, -.4)*CFrame.Angles(-math.rad(90), math.rad(90), 0))
  184. obj.Point=add.Part(modelB, false, false, "Gold", 0, Vector3.new(.2, .4, .2), nil)
  185. obj.PointM=add.Mesh("SpecialMesh", obj.Point, Vector3.new(.5, 1, .5), nil, "Wedge")
  186. obj.PointW=add.Weld(obj.Point, obj.Blade, CFrame.new(0, .6, .05)*CFrame.Angles(0, math.rad(180), 0))
  187. obj.Point2=add.Part(modelB, false, false, "Gold", 0, Vector3.new(.2, .4, .2), nil)
  188. obj.Point2M=add.Mesh("SpecialMesh", obj.Point2, Vector3.new(.5, 1, .5), nil, "Wedge")
  189. obj.Point2W=add.Weld(obj.Point2, obj.Blade, CFrame.new(0, .6, -.05))
  190.  
  191. obj.Joints=add.Part(modelB, false, false, "Gold", 0, Vector3.new(.2, .25, .2), nil)
  192. obj.JointsM=add.Mesh("CylinderMesh", obj.Joints, Vector3.new(.5, 1, .5), nil, nil)
  193. obj.JointsW=add.Weld(obj.Joints, obj.EdgeBot, nil)
  194. obj.Joints=add.Part(modelB, false, false, "Gold", 0, Vector3.new(.2, .25, .2), nil)
  195. obj.JointsM=add.Mesh("CylinderMesh", obj.Joints, Vector3.new(.5, 1, .5), nil, nil)
  196. obj.JointsW=add.Weld(obj.Joints, obj.EdgeTopR, nil)
  197.  
  198. obj.EdgeTopR2=add.Part(modelB, false, false, "Really black", 0, Vector3.new(.2, .2, .2), nil)
  199. obj.EdgeTopR2M=add.Mesh("CylinderMesh", obj.EdgeTopR2, Vector3.new(1, 1, 1), nil, nil)
  200. obj.EdgeTopR2W=add.Weld(obj.EdgeTopR2, obj.Blade, CFrame.new(0, -.4, -.1)*CFrame.Angles(math.rad(90), 0, math.rad(90)))
  201. obj.HandleFor=add.Part(modelB, false, false, "Really black", 0, Vector3.new(.2, 1, .2), nil)
  202. obj.HandleForW=add.Weld(obj.HandleFor, obj.EdgeTopR2, CFrame.new(0, 0, .5)*CFrame.Angles(-math.rad(90), -math.rad(90), 0))
  203. obj.EdgeBot=add.Part(modelB, false, false, "Really black", 0, Vector3.new(.2, .2, .2), nil)
  204. obj.EdgeBotM=add.Mesh("CylinderMesh", obj.EdgeBot, Vector3.new(1, 1, 1), nil, nil)
  205. obj.EdgeBotW=add.Weld(obj.EdgeBot, obj.HandleFor, CFrame.new(0, -.5, 0)*CFrame.Angles(math.rad(90), 0, math.rad(90)))
  206. obj.Joints=add.Part(modelB, false, false, "Gold", 0, Vector3.new(.2, .25, .2), nil)
  207. obj.JointsM=add.Mesh("CylinderMesh", obj.Joints, Vector3.new(.5, 1, .5), nil, nil)
  208. obj.JointsW=add.Weld(obj.Joints, obj.EdgeBot, nil)
  209. obj.Joints=add.Part(modelB, false, false, "Gold", 0, Vector3.new(.2, .25, .2), nil)
  210. obj.JointsM=add.Mesh("CylinderMesh", obj.Joints, Vector3.new(.5, 1, .5), nil, nil)
  211. obj.JointsW=add.Weld(obj.Joints, obj.EdgeTopR2, nil)
  212. end
  213. function removeParts()
  214. p(function()
  215. if torso then
  216. torso["Left Hip"].Part0=torso
  217. torso["Right Hip"].Part0=torso
  218. end
  219. for i, v in pairs(model:children()) do v:remove() end for i, v in pairs(modelB:children()) do v:remove() end for i, v in pairs(char:children()) do v.Transparency=0 end
  220. end)
  221. end
  222. --Variables--
  223. local trailDeb=false
  224. local using=false
  225. local combo=1
  226. local onStab=false
  227. local keyDeb=false
  228. local switch=false
  229. local switch2=false
  230. local keyDeb2=false
  231. local hitDeb=false
  232. local dmg=math.random(5, 10)
  233. local speed=20
  234. local pitch=.8
  235. local Slash=add.Sound(torso, "rbxasset://sounds//swordslash.wav", 2, pitch)
  236. local Hit=add.Sound(torso, "http://www.roblox.com/asset/?id=30715280", 2, 2)
  237. local Abscond=add.Sound(torso, "http://www.roblox.com/asset/?id=2767090", 2, 2)
  238. local Equip=add.Sound(torso, "http://www.roblox.com/asset/?id=13510737", 2, 2)
  239. local attackLabel=add.Gui("TextLabel", gui, "Gold", "Gold", "Gold", "Size18", "Invisible(Q)", 0, UDim2.new(0, 150, 0, 50), UDim2.new(0, 0, 0, 150))
  240. local attackLabel2=add.Gui("TextLabel", attackLabel, "Gold", "Gold", "Gold", "Size18", "Disguise(E)", 0, UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 1, 0))
  241.  
  242. function lightningGen(startPos, endPos)
  243. local magnitude=(startPos-endPos).magnitude
  244. local distance=(startPos+endPos)/2
  245. local pattern=add.Part(workspace, true, false, "Gold", 1, Vector3.new(.2, .2, magnitude), CFrame.new(distance, startPos))
  246. local startPosProx=startPos
  247. for i=1, 9 do
  248. local startPosProx2=startPosProx
  249. local random=Vector3.new(math.random(-1, 1), math.random(-1, 1), math.random(-1, 1))
  250. local findSize=pattern.Size.z/10
  251. local findOffSet=pattern.CFrame.lookVector*-1
  252. local compute=i*findSize*findOffSet
  253. local newStartPos=startPos
  254. local newEndPos=CFrame.new(random+compute+newStartPos).p
  255. local magnitude=(startPosProx2-newEndPos).magnitude
  256. local distance=(startPosProx2+newEndPos)/2
  257. local lightning=add.Part(workspace, true, false, "Bright yellow", 0, Vector3.new(.2, .2, magnitude), CFrame.new(distance, startPosProx2))
  258. c(function()
  259. for i=0, 1, .1 do wait()
  260. lightning.Transparency=i
  261. end
  262. lightning:remove()
  263. end)
  264. startPosProx=newEndPos
  265. end
  266. pattern:remove()
  267. end
  268. function computePos(pos, pos2)
  269. local pos3=Vector3.new(pos2.x, pos.y, pos2.z)
  270. torso.CFrame=CFrame.new(pos, pos3)
  271. return pos3
  272. end
  273. function nearTorso(pos, dis)
  274. local temp
  275. local distance=dis
  276. for i, v in pairs(workspace:children()) do
  277. if v:isA("Model") then
  278. temp=v:findFirstChild("Torso")
  279. local humanoid=v:findFirstChild("Humanoid")
  280. if temp and humanoid and v~=char and (temp.CFrame.p-pos).magnitude<distance then
  281. distance=(temp.CFrame.p-pos).magnitude
  282. return temp
  283. end
  284. end
  285. end
  286. end
  287. function trail(pos, cf, col)
  288. c(function()
  289. local old=(pos.CFrame*cf).p
  290. while trailDeb==true do
  291. wait()
  292. local new=(pos.CFrame*cf).p
  293. local mag=(old-new).magnitude
  294. local dis=(old+new)/2
  295. local trail=add.Part(workspace, true, false, col, 0, Vector3.new(.2, mag, .2), CFrame.new(dis, new)*CFrame.Angles(math.pi/2, 0, 0)) trail.Name="Trail"
  296. local tMesh=add.Mesh("CylinderMesh", trail, Vector3.new(.5, 1, .5), nil, nil)
  297. old=new
  298. c(function()
  299. for i=1, 0, -.1 do
  300. wait()
  301. tMesh.Scale=tMesh.Scale*Vector3.new(i, 1, i)
  302. end
  303. trail:remove()
  304. end)
  305. c(function()
  306. for i=0, 1, .1 do
  307. wait()
  308. trail.Transparency=i
  309. end
  310. end)
  311. end
  312. end)
  313. end
  314.  
  315. function running()
  316. animate.ArmLeft(CFrame.Angles(-math.rad(45), 0, -math.rad(15)))
  317. animate.ArmRight(CFrame.Angles(math.rad(45), 0, math.rad(15)))
  318. obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, 0)
  319. end
  320.  
  321. function hit(h)
  322. if using==true then
  323. if switch==false then
  324. if onStab==false and h.Parent:findFirstChild("Humanoid") and h.Parent~=char and hitDeb==false then hitDeb=true print("ErrorUnNamed") Hit:play()
  325. local hHuman=h.Parent:findFirstChild("Humanoid")
  326. hHuman.Health=hHuman.Health-dmg
  327. local fakeM=Instance.new("Model", workspace) fakeM.Name=-dmg
  328. local fakeH=Instance.new("Humanoid", fakeM) fakeH.MaxHealth=0 fakeH.Health=0
  329. local effect=add.Part(fakeM, false, false, "Gold", 0, Vector3.new(1, 1, 1), h.CFrame) effect.Name="Head"
  330. local fakeMesh=add.Mesh("CylinderMesh", effect, Vector3.new(1, .5, 1), nil, nil)
  331. local bp=Instance.new("BodyPosition", effect) bp.maxForce=Vector3.new(math.huge, math.huge, math.huge) bp.position=h.Position+Vector3.new(0, 4, 0)
  332. game.Debris:addItem(fakeM, 2)
  333. wait(1)
  334. hitDeb=false
  335. end
  336. if onStab==true and h.Parent~=char and h.Parent:findFirstChild("Humanoid") and hitDeb==false then hitDeb=true print("Error") Hit:play()
  337. h.Parent:breakJoints()
  338. local fakeM=Instance.new("Model", workspace) fakeM.Name="Tr1st4bb3d"
  339. local fakeH=Instance.new("Humanoid", fakeM) fakeH.MaxHealth=0 fakeH.Health=0
  340. local effect=add.Part(fakeM, false, false, "Bright red", 0, Vector3.new(1, 1, 1), h.CFrame) effect.Name="Head"
  341. local fakeMesh=add.Mesh("CylinderMesh", effect, Vector3.new(1, .5, 1), nil, nil)
  342. local bp=Instance.new("BodyPosition", effect) bp.maxForce=Vector3.new(math.huge, math.huge, math.huge) bp.position=h.Position+Vector3.new(0, 4, 0)
  343. game.Debris:addItem(fakeM, 2)
  344. wait(1)
  345. hitDeb=false
  346. end
  347. end
  348. end
  349. end
  350.  
  351. function findStab()
  352. while using==false do wait()
  353. --pcall(function()
  354. local nTorso=nearTorso(torso.CFrame.p, 3)
  355. if nTorso then
  356. local offSet=nTorso.CFrame:toObjectSpace(torso.CFrame)
  357. if offSet.z>0 then
  358. onStab=true
  359. animate.ArmRight(CFrame.Angles(math.rad(135), 0, 0))
  360. obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(math.rad(90), 0, 0)
  361. else
  362. onStab=false
  363. running()
  364. end
  365. else
  366. onStab=false
  367. running()
  368. end
  369. --end)
  370. end
  371. end
  372.  
  373. function attack() combo=combo+1
  374. if using==false then using=true for i, v in pairs(modelB:children()) do v.Touched:connect(hit) end
  375. if combo==1 and onStab==false then Slash:play()
  376. --[[trailDeb=true
  377. trail(obj.Blade, CFrame.new(0, 1, 0), "Gold")]]
  378. for i=0, 1, .2 do wait()
  379. animate.Torso(CFrame.Angles(0, math.rad(45)*i, 0))
  380. animate.ArmRight(CFrame.Angles(math.rad(90)*i, 0, 0))
  381. obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, math.rad(45)*i)
  382. end
  383. for i=1, 0, -.2 do wait()
  384. animate.Torso(CFrame.Angles(0, math.rad(45)*i, 0))
  385. animate.ArmRight(CFrame.Angles(math.rad(90)*i, 0, 0))
  386. obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), 0, math.rad(45)*i)
  387. end
  388. if combo>1 and onStab==false then combo=2 Slash:play()
  389. for i=0, 1, .2 do wait()
  390. animate.Torso(CFrame.Angles(0, math.rad(45)*i, 0))
  391. animate.ArmRight(CFrame.Angles(math.rad(90)*i, 0, math.rad(45)*i))
  392. obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90+(90*i)), 0, 0)
  393. end
  394. for i=1, 0, -.2 do wait()
  395. animate.Torso(CFrame.Angles(0, math.rad(45)*i, 0))
  396. animate.ArmRight(CFrame.Angles(math.rad(90)*i, 0, math.rad(45)*i))
  397. obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90+(90*i)), 0, 0)
  398. end
  399. end
  400. end
  401. if onStab==true then
  402. for i=0, 1, .2 do wait()
  403. animate.ArmRight(CFrame.Angles(math.rad(135-(45*i)), 0, 0))
  404. obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(math.rad(90), 0, 0)
  405. end
  406. onStab=false
  407. end
  408. using=false
  409. --trailDeb=false
  410. combo=0
  411. body.Torso.Transparency=1 torso.Transparency=0
  412. running()
  413. findStab()
  414. end
  415. end
  416.  
  417. bin.Selected:connect(function(mouse) createParts()
  418. human.WalkSpeed=speed
  419. running()
  420. using=true
  421. Equip:play()
  422. for i=1, 0, -.1 do wait()
  423. obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), math.rad(180)*i, 0)
  424. obj.EdgeTopRW.C1=CFrame.new(0, .5, 0)*CFrame.Angles(math.rad(90)+math.rad(180)*i, 0, math.rad(90))
  425. obj.EdgeTopR2W.C1=CFrame.new(0, -.4, -.1)*CFrame.Angles(math.rad(90)+math.rad(180)*i, 0, math.rad(90))
  426. end
  427. using=false
  428. mouse.Button1Down:connect(attack)
  429. mouse.KeyDown:connect(function(key)
  430. local key=key:lower()
  431. --INVISBLE--
  432. if key=="q" and keyDeb==false and switch==false and using==false then keyDeb=true switch=true using=true
  433. attackLabel.Text="Visible(Q)" print("1") Abscond:play()
  434. pcall(function() char.Sound.Disabled=true end)
  435. for i, v in pairs(char:children()) do
  436. c(function()
  437. for i=0, 1, .2 do wait()
  438. pcall(function()
  439. c(function() if v.Head~=nil then head.Transparency=1 end end)
  440. v.Transparency=i
  441. end)
  442. pcall(function() v.Handle.Transparency=i end)
  443. pcall(function() v.face.Transparency=i end)
  444. pcall(function() v.roblox.Transparency=i end)
  445. pcall(function() v.Head.Transparency=i end)
  446. end
  447. end)
  448. end
  449. for i, v in pairs(modelB:children()) do
  450. c(function()
  451. for i=0, 1, .2 do wait()
  452. pcall(function()
  453. v.Transparency=i
  454. end)
  455. pcall(function() v.Handle.Transparency=i end)
  456. pcall(function() v.face.Transparency=i end)
  457. end
  458. end)
  459. end
  460. wait(.5)
  461. local fakeModel=Instance.new("Model", workspace.CurrentCamera) fakeModel.Name="Spy"
  462. local fakeHumanoid=Instance.new("Humanoid", fakeModel) fakeHumanoid.Health=0 fakeHumanoid.MaxHealth=0
  463. local fakeHead=add.Part(fakeModel, false, false, "Really black", 0, Vector3.new(1, 1, 1), nil) fakeHead.Name="Head"
  464. local fakeHeadM=add.Mesh("SpecialMesh", fakeHead, Vector3.new(1, 1.5, 1), nil, "File")
  465. fakeHeadM.MeshId="http://www.roblox.com/Asset/?id=9756362"
  466. local fakeHeadW=add.Weld(fakeHead, torso, CFrame.new(0, 1.5, 0))
  467. modelB.Parent=workspace.CurrentCamera
  468. for i, v in pairs(modelB:children()) do
  469. c(function()
  470. for i=0, 1, .2 do wait()
  471. pcall(function()
  472. v.Transparency=.5
  473. end)
  474. pcall(function() v.Handle.Transparency=.5 end)
  475. pcall(function() v.face.Transparency=.5 end)
  476. end
  477. end)
  478. end
  479. keyDeb=false
  480. elseif key=="q" and keyDeb==false and switch==true and using==true then keyDeb=true switch=false using=false
  481. attackLabel.Text="Invisible(Q)" print("2") Abscond:play()
  482. pcall(function() char.Sound.Disabled=false end)
  483. modelB.Parent=char
  484. for i, v in pairs(char:children()) do
  485. c(function()
  486. for i=1, 0, -.2 do wait()
  487. pcall(function()
  488. c(function() if v.Head~=nil then head.Transparency=1 end end)
  489. v.Transparency=i
  490. end)
  491. pcall(function() v.Handle.Transparency=i end)
  492. pcall(function() v.face.Transparency=i end)
  493. pcall(function() v.roblox.Transparency=i end)
  494. pcall(function() v.Head.Transparency=i end)
  495. end
  496. end)
  497. end
  498. for i, v in pairs(modelB:children()) do
  499. c(function()
  500. for i=1, 0, -.2 do wait()
  501. pcall(function()
  502. v.Transparency=i
  503. end)
  504. pcall(function() v.Handle.Transparency=i end)
  505. pcall(function() v.face.Transparency=i end)
  506. end
  507. end)
  508. end
  509. for i, v in pairs(workspace.CurrentCamera:children()) do pcall(function() v:remove() end) end
  510. wait(.5)
  511. keyDeb=false
  512. findStab()
  513. end
  514. --DISGUISE MENU--
  515. local xSpace=0
  516. if key=="e" and keyDeb2==false and switch2==false then keyDeb2=true switch2=true
  517. attackLabel2.Text="Menu:"
  518. for i, v in pairs(game.Players:children()) do
  519. if v~=player then xSpace=xSpace+1
  520. local playersLabel=add.Gui("TextButton", attackLabel2, "Gold", "Gold", "Gold", "Size18", v.Name, 0, UDim2.new(1, 0, 1, 0), UDim2.new(xSpace, 0, 0, 0))
  521. playersLabel.MouseButton1Click:connect(function() Abscond:play()
  522. pcall(function()
  523. for i, v in pairs(char:children()) do
  524. pcall(function() v.face:remove() end)
  525. pcall(function() v.roblox:remove() end)
  526. pcall(function() v.Head:remove() end)
  527. if v:IsA("BodyColors") then v:remove() end
  528. if v:IsA("Hat") then v:remove() end
  529. if v:IsA("ShirtGraphic") then v:remove() end
  530. if v:IsA("Pants") then v:remove() end
  531. if v:IsA("Shirt") then v:remove() end
  532. if v:IsA("CharacterMesh") then v:remove() end
  533. if v:IsA("BodyColors") then v:remove() end
  534. end
  535. for i, v in pairs(game.Players[playersLabel.Text].Character:children()) do
  536. pcall(function() local cloned=v.face:clone() cloned.Parent=head if switch==true then pcall(function() cloned.Transparency=1 end) end end)
  537. pcall(function() v.roblox:clone().Parent=torso end)
  538. if v:IsA("BodyColors") then v:clone().Parent=char end
  539. if v:IsA("Hat") then local cloned=v:clone() cloned.Parent=char if switch==true then pcall(function() cloned.Handle.Transparency=1 end) end end
  540. if v:IsA("ShirtGraphic") then v:clone().Parent=char end
  541. if v:IsA("Pants") then v:clone().Parent=char end
  542. if v:IsA("Shirt") then v:clone().Parent=char end
  543. if v:IsA("CharacterMesh") then v:clone().Parent=char end
  544. if v:IsA("BodyColors") then v:clone().Parent=char end
  545. end
  546. head.Transparency=1
  547. local fakeModel=Instance.new("Model", char) fakeModel.Name=playersLabel.Text
  548. local fakeHumanoid=Instance.new("Humanoid", fakeModel) fakeHumanoid.Health=125 fakeHumanoid.MaxHealth=125
  549. local fakeHead=add.Part(fakeModel, false, false, game.Players[playersLabel.Text].Character.Head.Color, 0, Vector3.new(1, 1, 1), nil) fakeHead.Name="Head"
  550. if switch==true then fakeHead.Transparency=1 end
  551. local fakeHeadM=add.Mesh("SpecialMesh", fakeHead, Vector3.new(1.25, 1.25, 1.25), nil, "Head")
  552. local fakeHeadW=add.Weld(fakeHead, torso, CFrame.new(0, 1.5, 0))
  553. end)
  554. end)
  555. end
  556. end
  557. keyDeb2=false
  558. elseif key=="e" and keyDeb2==false and switch2==true then keyDeb2=true switch2=false
  559. attackLabel2.Text="Disguise(E)"
  560. for i, v in pairs(attackLabel2:children()) do
  561. pcall(function()v:remove()end)
  562. end
  563. keyDeb2=false
  564. end
  565. end)
  566. findStab()
  567. end)
  568. bin.Deselected:connect(function()
  569. Equip:play()
  570. for i=0, 1, .1 do wait()
  571. obj.HandleBackW.C1=CFrame.new(0, -1.5, 0)*CFrame.Angles(-math.rad(90), math.rad(180)*i, 0)
  572. obj.EdgeTopRW.C1=CFrame.new(0, .5, 0)*CFrame.Angles(math.rad(90)+math.rad(180)*i, 0, math.rad(90))
  573. obj.EdgeTopR2W.C1=CFrame.new(0, -.4, -.1)*CFrame.Angles(math.rad(90)+math.rad(180)*i, 0, math.rad(90))
  574. end
  575. switch2=false using=false for i, v in pairs(attackLabel2:children()) do pcall(function()v:remove()end) end removeParts() end)--mediafire
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement