Advertisement
EdgyHedgehog

Eye Suit FE

Sep 29th, 2018
323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.89 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,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("FE Compatibility code by Mokiros")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = game:GetService("Players").LocalPlayer
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 30 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/30) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83. local Name="Invaderzim_fa"
  84. local char=workspace[Name]
  85. color2=BrickColor:Black()
  86. color=BrickColor:White()
  87.  
  88. pcall(function() workspace[Name].Suit:remove() end)
  89. pcall(function() char.Eye:remove() end)
  90. pcall(function() game.Players[Name].PlayerGui:children()[1]:remove() end)
  91. player = game.Players[Name]
  92. player.Character.Humanoid.WalkSpeed = 30
  93. model = Instance.new("Model")
  94. model.Parent = char
  95. model.Name = "Suit"
  96. Eye=Instance.new("Model")
  97. Eye.Name="Eye"
  98. Eye.Parent=char
  99. char.Humanoid.MaxHealth = math.huge
  100. wait(0.5)
  101. char.Humanoid.Health = char.Humanoid.MaxHealth
  102.  
  103. for _,v in pairs(char:children()) do
  104. if v:IsA("Hat") then
  105. v:remove()
  106. end
  107. end
  108.  
  109. Tor=Instance.new("Part")
  110. Tor.Size=char.Torso.Size
  111. Tor.BrickColor=color
  112. Tor.Reflectance=0
  113. Tor.Transparency=0
  114. Tor.CanCollide=false
  115. Tor.Parent=model
  116. Mesh=Instance.new("BlockMesh")
  117. Mesh.Parent=Tor
  118. Mesh.Scale=Vector3.new(1.01,0.9,1.01)
  119. w = Instance.new("Weld")
  120. w.Parent = char.Torso
  121. w.Part0 = w.Parent
  122. w.Part1 = Tor
  123. w.C0 = CFrame.new(0,0,0)
  124.  
  125. Sm=Instance.new("Smoke")
  126. Sm.Size=2
  127. Sm.RiseVelocity=0
  128. Sm.Color=color2.Color
  129. --Sm.Parent=Tor
  130.  
  131. for _,v in pairs(char:children()) do
  132. if string.sub(v.Name,1,4)=="Left" or string.sub(v.Name,1,4)=='Righ' then
  133. Tor=Instance.new("Part")
  134. Tor.Size=v.Size
  135. Tor.BrickColor=color
  136. Tor.Reflectance=0
  137. Tor.Transparency=0
  138. Tor.CanCollide=false
  139. Tor.Parent=model
  140. Mesh=Instance.new("BlockMesh")
  141. Mesh.Parent=Tor
  142. Mesh.Scale=Vector3.new(1.01,0.9,1.01)
  143. w = Instance.new("Weld")
  144. w.Parent = v
  145. w.Part0 = w.Parent
  146. w.Part1 = Tor
  147. w.C0 = CFrame.new(0,0,0)
  148. end
  149. end
  150.  
  151. char.Head.BrickColor=color
  152. pcall(function() char.Head.face:remove() end)
  153.  
  154. ----Eye----
  155. Tor=Instance.new("Part")
  156. Tor.Size=Vector3.new(1,1,1)
  157. Tor.Shape="Ball"
  158. Tor.BrickColor=color
  159. Tor.Reflectance=0
  160. Tor.Transparency=0
  161. Tor.Locked=true
  162. Tor.CanCollide=true
  163. Tor.Parent=Eye
  164. Tor.TopSurface="Smooth"
  165. Tor.BottomSurface="Smooth"
  166. Mesh=Instance.new("SpecialMesh")
  167. Mesh.MeshType="Sphere"
  168. Mesh.Parent=Tor
  169. Mesh.Scale=Vector3.new(1.65,1.65,1.65)
  170. w = Instance.new("Weld")
  171. w.Parent = char.Head
  172. w.Part0 = w.Parent
  173. w.Part1 = Tor
  174. w.C0 = CFrame.new(0,0,0)
  175.  
  176. Tor=Instance.new("Part")
  177. Tor.Size=Vector3.new(1,1,1)
  178. Tor.BrickColor=color2
  179. Tor.Reflectance=0
  180. Tor.Transparency=0
  181. Tor.CanCollide=false
  182. Tor.Parent=Eye
  183. Mesh=Instance.new("SpecialMesh")
  184. Mesh.MeshType="Sphere"
  185. Mesh.Parent=Tor
  186. Mesh.Scale=Vector3.new(.27,0.27,0.27)
  187. w = Instance.new("Weld")
  188. w.Parent = char.Head
  189. w.Part0 = w.Parent
  190. w.Part1 = Tor
  191. w.C0 = CFrame.new(0,0,-0.75)
  192.  
  193. Tor=Instance.new("Part")
  194. Tor.Size=Vector3.new(1,1,1)
  195. Tor.BrickColor=color2
  196. Tor.Reflectance=0
  197. Tor.Transparency=0.2
  198. Tor.CanCollide=false
  199. Tor.Parent=Eye
  200. Mesh=Instance.new("BlockMesh")
  201. Mesh.Parent=Tor
  202. Mesh.Scale=Vector3.new(.3,0.35,0.01)
  203. w = Instance.new("Weld")
  204. w.Parent = char.Head
  205. w.Part0 = w.Parent
  206. w.Part1 = Tor
  207. w.C0 = CFrame.new(0,0,-0.78)
  208.  
  209. Tor=Instance.new("Part")
  210. Tor.Size=Vector3.new(1,1,1)
  211. Tor.BrickColor=color2
  212. Tor.Reflectance=0
  213. Tor.Transparency=0.2
  214. Tor.CanCollide=false
  215. Tor.Parent=Eye
  216. Mesh=Instance.new("BlockMesh")
  217. Mesh.Parent=Tor
  218. Mesh.Scale=Vector3.new(.3,0.35,0.01)
  219. w = Instance.new("Weld")
  220. w.Parent = char.Head
  221. w.Part0 = w.Parent
  222. w.Part1 = Tor
  223. w.C0 = CFrame.new(0,0,-0.78)*CFrame.Angles(0,0,math.rad(90))
  224. ----/Eye----
  225.  
  226. ----Design 1----
  227. Tor=Instance.new("Part")
  228. Tor.Size=Vector3.new(1,1,1)
  229. Tor.BrickColor=color2
  230. Tor.Reflectance=0
  231. Tor.Transparency=0
  232. Tor.CanCollide=false
  233. Tor.Parent=model
  234. Mesh=Instance.new("BlockMesh")
  235. Mesh.Parent=Tor
  236. Mesh.Scale=Vector3.new(.4,0.4,0.01)
  237. w = Instance.new("Weld")
  238. w.Parent = char.Torso
  239. w.Part0 = w.Parent
  240. w.Part1 = Tor
  241. w.C0 = CFrame.new(0,0,-0.51)
  242.  
  243. Tor=Instance.new("Part")
  244. Tor.Size=Vector3.new(1,1,1)
  245. Tor.BrickColor=color2
  246. Tor.Reflectance=0
  247. Tor.Transparency=0
  248. Tor.CanCollide=false
  249. Tor.Parent=model
  250. Mesh=Instance.new("CylinderMesh")
  251. Mesh.Parent=Tor
  252. Mesh.Scale=Vector3.new(.5,0.5,0.049)
  253. w = Instance.new("Weld")
  254. w.Parent = char.Torso
  255. w.Part0 = w.Parent
  256. w.Part1 = Tor
  257. w.C0 = CFrame.new(0,0,-0.49)*CFrame.Angles(0,0,math.rad(90))
  258.  
  259. Tor=Instance.new("Part")
  260. Tor.Size=Vector3.new(1,1,1)
  261. Tor.BrickColor=color2
  262. Tor.Reflectance=0
  263. Tor.Transparency=0
  264. Tor.CanCollide=false
  265. Tor.Parent=model
  266. Mesh=Instance.new("CylinderMesh")
  267. Mesh.Parent=Tor
  268. Mesh.Scale=Vector3.new(.5,0.5,0.049)
  269. w = Instance.new("Weld")
  270. w.Parent = char.Torso
  271. w.Part0 = w.Parent
  272. w.Part1 = Tor
  273. w.C0 = CFrame.new(0,0,-0.49)
  274.  
  275. Tor=Instance.new("Part")
  276. Tor.Size=Vector3.new(1,1,1)
  277. Tor.BrickColor=color
  278. Tor.Reflectance=0
  279. Tor.Transparency=0
  280. Tor.CanCollide=false
  281. Tor.Parent=model
  282. Mesh=Instance.new("SpecialMesh")
  283. Mesh.MeshType="Sphere"
  284. Mesh.Parent=Tor
  285. Mesh.Scale=Vector3.new(.25,.25,.25)
  286. w = Instance.new("Weld")
  287. w.Parent = char.Torso
  288. w.Part0 = w.Parent
  289. w.Part1 = Tor
  290. w.C0 = CFrame.new(0,0,-0.49)
  291.  
  292.  
  293. Tor=Instance.new("Part")
  294. Tor.Size=Vector3.new(1,1,1)
  295. Tor.BrickColor=color2
  296. Tor.Reflectance=0
  297. Tor.Transparency=0
  298. Tor.CanCollide=false
  299. Tor.Parent=model
  300. Mesh=Instance.new("CylinderMesh")
  301. Mesh.Parent=Tor
  302. Mesh.Scale=Vector3.new(.5,0.5,0.049)
  303. w = Instance.new("Weld")
  304. w.Parent = char.Torso
  305. w.Part0 = w.Parent
  306. w.Part1 = Tor
  307. w.C0 = CFrame.new(0.27,0,-0.49)
  308.  
  309. Tor=Instance.new("Part")
  310. Tor.Size=Vector3.new(1,1,1)
  311. Tor.BrickColor=color2
  312. Tor.Reflectance=0
  313. Tor.Transparency=0
  314. Tor.CanCollide=false
  315. Tor.Parent=model
  316. Mesh=Instance.new("CylinderMesh")
  317. Mesh.Parent=Tor
  318. Mesh.Scale=Vector3.new(.5,0.5,0.049)
  319. w = Instance.new("Weld")
  320. w.Parent = char.Torso
  321. w.Part0 = w.Parent
  322. w.Part1 = Tor
  323. w.C0 = CFrame.new(-0.27,0,-0.49)
  324.  
  325. Tor=Instance.new("Part")
  326. Tor.Size=Vector3.new(1,1,1)
  327. Tor.BrickColor=color2
  328. Tor.Reflectance=0
  329. Tor.Transparency=0
  330. Tor.CanCollide=false
  331. Tor.Parent=model
  332. Mesh=Instance.new("CylinderMesh")
  333. Mesh.Parent=Tor
  334. Mesh.Scale=Vector3.new(.5,0.5,0.049)
  335. w = Instance.new("Weld")
  336. w.Parent = char.Torso
  337. w.Part0 = w.Parent
  338. w.Part1 = Tor
  339. w.C0 = CFrame.new(0,0.295,-0.49)*CFrame.Angles(0,0,math.rad(90))
  340.  
  341. Tor=Instance.new("Part")
  342. Tor.Size=Vector3.new(1,1,1)
  343. Tor.BrickColor=color2
  344. Tor.Reflectance=0
  345. Tor.Transparency=0
  346. Tor.CanCollide=false
  347. Tor.Parent=model
  348. Mesh=Instance.new("CylinderMesh")
  349. Mesh.Parent=Tor
  350. Mesh.Scale=Vector3.new(.5,0.5,0.049)
  351. w = Instance.new("Weld")
  352. w.Parent = char.Torso
  353. w.Part0 = w.Parent
  354. w.Part1 = Tor
  355. w.C0 = CFrame.new(0,-0.295,-0.49)*CFrame.Angles(0,0,math.rad(90))
  356. ----/Design 1----
  357.  
  358. ----Design 2----
  359. Tor=Instance.new("Part")
  360. Tor.Size=Vector3.new(1,1,1)
  361. Tor.BrickColor=color2
  362. Tor.Reflectance=0
  363. Tor.Transparency=0
  364. Tor.CanCollide=false
  365. Tor.Parent=model
  366. Mesh=Instance.new("BlockMesh")
  367. Mesh.Parent=Tor
  368. Mesh.Scale=Vector3.new(.72,.05,1.1)
  369. w = Instance.new("Weld")
  370. w.Parent = char["Left Arm"]
  371. w.Part0 = w.Parent
  372. w.Part1 = Tor
  373. w.C0 = CFrame.new(-0.17,-0.275,0)
  374.  
  375. Tor=Instance.new("Part")
  376. Tor.Size=Vector3.new(1,1,1)
  377. Tor.BrickColor=color2
  378. Tor.Reflectance=0
  379. Tor.Transparency=0
  380. Tor.CanCollide=false
  381. Tor.Parent=model
  382. Mesh=Instance.new("BlockMesh")
  383. Mesh.Parent=Tor
  384. Mesh.Scale=Vector3.new(.72,.05,1.1)
  385. w = Instance.new("Weld")
  386. w.Parent = char["Right Arm"]
  387. w.Part0 = w.Parent
  388. w.Part1 = Tor
  389. w.C0 = CFrame.new(0.17,-0.275,0)
  390.  
  391.  
  392.  
  393. Tor=Instance.new("Part")
  394. Tor.Size=Vector3.new(1,1,1)
  395. Tor.BrickColor=color2
  396. Tor.Reflectance=0
  397. Tor.Transparency=0
  398. Tor.CanCollide=false
  399. Tor.Parent=model
  400. Mesh=Instance.new("BlockMesh")
  401. Mesh.Parent=Tor
  402. Mesh.Scale=Vector3.new(.72,.05,1.1)
  403. w = Instance.new("Weld")
  404. w.Parent = char["Left Arm"]
  405. w.Part0 = w.Parent
  406. w.Part1 = Tor
  407. w.C0 = CFrame.new(-0.17,0.3,0)
  408.  
  409. Tor=Instance.new("Part")
  410. Tor.Size=Vector3.new(1,1,1)
  411. Tor.BrickColor=color2
  412. Tor.Reflectance=0
  413. Tor.Transparency=0
  414. Tor.CanCollide=false
  415. Tor.Parent=model
  416. Mesh=Instance.new("BlockMesh")
  417. Mesh.Parent=Tor
  418. Mesh.Scale=Vector3.new(.72,.05,1.1)
  419. w = Instance.new("Weld")
  420. w.Parent = char["Right Arm"]
  421. w.Part0 = w.Parent
  422. w.Part1 = Tor
  423. w.C0 = CFrame.new(0.17,0.3,0)
  424. ----/Design2----
  425.  
  426. ----Design 3----
  427. Tor=Instance.new("Part")
  428. Tor.Size=Vector3.new(1,1,1)
  429. Tor.BrickColor=color2
  430. Tor.Reflectance=0
  431. Tor.Transparency=0
  432. Tor.CanCollide=false
  433. Tor.Parent=model
  434. Mesh=Instance.new("BlockMesh")
  435. Mesh.Parent=Tor
  436. Mesh.Scale=Vector3.new(.72,.05,1.1)
  437. w = Instance.new("Weld")
  438. w.Parent = char["Left Leg"]
  439. w.Part0 = w.Parent
  440. w.Part1 = Tor
  441. w.C0 = CFrame.new(-0.17,-0.275,0)
  442.  
  443. Tor=Instance.new("Part")
  444. Tor.Size=Vector3.new(1,1,1)
  445. Tor.BrickColor=color2
  446. Tor.Reflectance=0
  447. Tor.Transparency=0
  448. Tor.CanCollide=false
  449. Tor.Parent=model
  450. Mesh=Instance.new("BlockMesh")
  451. Mesh.Parent=Tor
  452. Mesh.Scale=Vector3.new(.72,.05,1.1)
  453. w = Instance.new("Weld")
  454. w.Parent = char["Right Leg"]
  455. w.Part0 = w.Parent
  456. w.Part1 = Tor
  457. w.C0 = CFrame.new(0.17,-0.275,0)
  458.  
  459.  
  460.  
  461. Tor=Instance.new("Part")
  462. Tor.Size=Vector3.new(1,1,1)
  463. Tor.BrickColor=color2
  464. Tor.Reflectance=0
  465. Tor.Transparency=0
  466. Tor.CanCollide=false
  467. Tor.Parent=model
  468. Mesh=Instance.new("BlockMesh")
  469. Mesh.Parent=Tor
  470. Mesh.Scale=Vector3.new(.72,.05,1.1)
  471. w = Instance.new("Weld")
  472. w.Parent = char["Left Leg"]
  473. w.Part0 = w.Parent
  474. w.Part1 = Tor
  475. w.C0 = CFrame.new(-0.17,0.3,0)
  476.  
  477. Tor=Instance.new("Part")
  478. Tor.Size=Vector3.new(1,1,1)
  479. Tor.BrickColor=color2
  480. Tor.Reflectance=0
  481. Tor.Transparency=0
  482. Tor.CanCollide=false
  483. Tor.Parent=model
  484. Mesh=Instance.new("BlockMesh")
  485. Mesh.Parent=Tor
  486. Mesh.Scale=Vector3.new(.72,.05,1.1)
  487. w = Instance.new("Weld")
  488. w.Parent = char["Right Leg"]
  489. w.Part0 = w.Parent
  490. w.Part1 = Tor
  491. w.C0 = CFrame.new(0.17,0.3,0)
  492. ----Design3----
  493.  
  494. ----Eye Tool----
  495. function tras(...)
  496. for _,v in pairs(...) do
  497. pcall(function() v.Transparency=1 v.CanCollide=false end)
  498. end
  499. end
  500.  
  501. function nontras(...)
  502. for _,v in pairs(...) do
  503. pcall(function() v.Transparency=0 v.CanCollide=true end)
  504. end
  505. end
  506.  
  507. if script.Parent.className~="HopperBin" then
  508. Hopper=Instance.new("HopperBin")
  509. Hopper.Name="Fly"
  510. Hopper.Parent=player.Backpack
  511.  
  512. LA=Instance.new("HopperBin")
  513. LA.Name="Laser"
  514. LA.Parent=game.Players[Name].Backpack
  515. script.Parent=Hopper
  516.  
  517. Sw=Instance.new("Tool")
  518. Sw.Name="Sword"
  519. Sw.Parent=game.Players[Name].Backpack
  520. end
  521. Hopper=script.Parent
  522. LA=player.Backpack.Laser
  523. Sw=player.Backpack.Sword
  524. Up=1
  525.  
  526. function Button1own(mouse)
  527. BodyP.Parent=nil
  528. local eye=Eye:children()[1]
  529. BodyV=Instance.new("BodyVelocity")
  530. BodyV.Name="BodyV"
  531. BodyV.Parent=char.Head
  532. BodyV.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  533. BodyGyro=Instance.new("BodyGyro")
  534. BodyGyro.maxTorque=Vector3.new(math.huge,math.huge,math.huge)
  535. BodyGyro.Parent=char.Head
  536. Up=0
  537. local spd = 35
  538. repeat
  539. wait(0.2)
  540. BodyGyro.cframe=CFrame.new(char.Head.Position,mouse.Hit.p)
  541. BodyV.velocity=mouse.Hit.lookVector*spd
  542. until Up==1
  543. pcall(function() char.Head.BodyV:remove() end)
  544. pcall(function() char.Head.BodyGyro:remove() end)
  545. pcall(function() char.Head.BodyV:remove() end)
  546. pcall(function() char.Head.BodyGyro:remove() end)
  547. char.Head.Velocity=Vector3.new(0,0,0)
  548. BodyP.position=char.Head.Position
  549. BodyP.Parent=char.Head
  550. end
  551.  
  552. function Button1up(mouse)
  553. Up=1
  554. end
  555.  
  556. function Key(key)
  557. if key=="g" then
  558. local ex = Instance.new("Explosion")
  559. ex.Position = char.Head.Position
  560. ex.Hit:connect(function(hit)
  561. if hit.Parent.Name~=Name and hit.Parent.Name~="Suit" and hit.Parent.Name~="Eye" and hit.Name~="Base" then
  562. hit.Anchored=false
  563. hit:BreakJoints()
  564. hit.Velocity=(hit.Position-ex.Position).unit*-250
  565. end
  566. end)
  567. ex.BlastRadius = 8
  568. ex.BlastPressure = 0
  569. ex.Parent = game.Workspace
  570. end
  571. end
  572.  
  573. Hopper.Selected:connect(function(mouse)
  574. tras(model:children())
  575. tras(char:children())
  576. BodyP=Instance.new('BodyPosition')
  577. BodyP.Name="DroidForce"
  578. BodyP.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  579. BodyP.position=char.Head.Position
  580. BodyP.Parent=char.Head
  581. mouse.Button1Down:connect(function() Button1own(mouse) end)
  582. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  583. mouse.KeyDown:connect(function(key) Key(key) end)
  584. mouse.Button1Up:connect(function() Button1up(mouse) end)
  585. end)
  586.  
  587. Hopper.Deselected:connect(function()
  588. nontras(model:children())
  589. nontras(char:children())
  590. pcall(function() char.Head.BodyV:remove() end)
  591. pcall(function() char.Head.BodyGyro:remove() end)
  592. pcall(function() char.Head.DroidForce:remove() end)
  593. end)
  594. ----/Flying----
  595. ----Laser----
  596. de=1
  597. eye=Eye:children()[1]
  598.  
  599. function BLAG(mouse)
  600. if de==1 then
  601. de=2
  602. BodyGyro=Instance.new("BodyGyro")
  603. BodyGyro.maxTorque=Vector3.new(math.huge,math.huge,math.huge)
  604. BodyGyro.Parent=eye
  605. local Laz=Instance.new("Part")
  606. Laz.Anchored=true
  607. Laz.BrickColor=BrickColor:Red()
  608. Laz.Reflectance=0
  609. Laz.TopSurface="Smooth"
  610. Laz.BottomSurface="Smooth"
  611. Laz.CanCollide=false
  612. Laz.CFrame=CFrame.new((eye.Position+mouse.Hit.p)/2,mouse.Hit.p)
  613. Laz.Parent=eye
  614. Laz.Size=Vector3.new(1,1,2)
  615. Laz.Transparency=0
  616. local Me=Instance.new("BlockMesh")
  617. Me.Parent=Laz
  618. for i=1,15 do
  619. Me.Scale = Vector3.new(i/65,i/65,(eye.Position - mouse.Hit.p).magnitude/2)
  620. Laz.CFrame=CFrame.new((eye.Position+mouse.Hit.p)/2,mouse.Hit.p)
  621. BodyGyro.cframe=CFrame.new(eye.Position,mouse.Hit.p)
  622. wait()
  623. end
  624. ex=Instance.new("Explosion")
  625. ex.Position=mouse.Hit.p
  626. ex.BlastPressure=200000
  627. ex.BlastRadius=5
  628. ex.Parent=char
  629. wait()
  630. for i=1,3 do
  631. wait(0.15)
  632. Laz.Transparency=Laz.Transparency+0.3
  633. end
  634. Laz:remove()
  635. BodyGyro:remove()
  636. wait(0.2)
  637. de=1
  638. end
  639. end
  640.  
  641. function BOOM(mouse)
  642. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  643. mouse.Button1Down:connect(function() BLAG(mouse) end)
  644. end
  645.  
  646. LA.Selected:connect(BOOM)
  647. ----/Laser----
  648.  
  649. ----Swords On Back----
  650. Tor=Instance.new("Part")
  651. Tor.Size=Vector3.new(1,3,1)
  652. Tor.BrickColor=color2
  653. Tor.Reflectance=0
  654. Tor.Transparency=0
  655. Tor.CanCollide=false
  656. Tor.Parent=model
  657. Tor.Name="Sword"
  658. Mesh=Instance.new("SpecialMesh")
  659. Mesh.MeshType="FileMesh"
  660. Mesh.MeshId="http://www.roblox.com/asset/?id=20719463"
  661. Mesh.Parent=Tor
  662. Mesh.Scale=Vector3.new(1,.9,1)
  663. w = Instance.new("Weld")
  664. w.Parent = char["Torso"]
  665. w.Part0 = w.Parent
  666. w.Part1 = Tor
  667. w.C0 = CFrame.new(0,0,.6)*CFrame.Angles(3.14*1.5,1.6*1.5,3.14)
  668. ----/Sword On Back----
  669.  
  670. ----Sword----
  671. Tor=Instance.new("Part")
  672. Tor.Size=Vector3.new(1,1,4)
  673. Tor.BrickColor=color2
  674. Tor.Reflectance=0
  675. Tor.Transparency=0
  676. Tor.CanCollide=True
  677. Tor.Parent=Sw
  678. Tor.Name="Handle"
  679. Mesh=Instance.new("SpecialMesh")
  680. Mesh.MeshType="FileMesh"
  681. Mesh.MeshId="http://www.roblox.com/asset/?id=20719463"
  682. Mesh.Parent=Tor
  683. Mesh.Scale=Vector3.new(1,.9,1)
  684. -----------------
  685. Sword=Sw
  686. Sword.GripForward=Vector3.new(-1, -0, -0)
  687. Sword.GripPos=Vector3.new(0, 0, -1.75)
  688. Sword.GripRight=Vector3.new(0,1,0)
  689. Sword.GripUp=Vector3.new(0,0,1)
  690. grip=Sword.GripUp
  691. De=1
  692.  
  693. function Hit(h)
  694. if h.Parent~=nil and h.Parent.Name~=Name then
  695. pcall(function() h.Parent.Humanoid:TakeDamage(2000) end)
  696. end
  697. end
  698.  
  699. function swordOut()
  700. if De==1 then
  701. De=0
  702. for i=1,9 do
  703. Sword.GripUp=Sword.GripUp+Vector3.new((8/36),0,0)
  704. wait()
  705. end
  706. wait(0.25)
  707. for i=1,8 do
  708. Sword.GripUp=Sword.GripUp+Vector3.new((-8/36),0,0)
  709. wait()
  710. end
  711. Sword.GripUp=grip
  712. wait()
  713. De=1
  714. end
  715. end
  716.  
  717. Tor.Touched:connect(Hit)
  718. Sword.Equipped:connect(function() pcall(function() model.Sword.Transparency=1 end) end)
  719. Sword.Unequipped:connect(function() pcall(function() model.Sword.Transparency=0 end) end)
  720. Sword.Activated:connect(swordOut)
  721. ----/Sword----
  722.  
  723. for _,v in pairs(model:children()) do
  724. pcall(function() v.Locked=true end)
  725. end
  726. for _,v in pairs(Eye:children()) do
  727. pcall(function() v.Locked=true end)
  728. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement