Advertisement
Kittdy2

Untitled

Jan 20th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.88 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.  
  89.  
  90. owner["Right Arm"].Transparency = 1
  91. local h = Instance.new("Part")
  92. h.Name = "Handle"
  93. h.Parent = owner
  94. h.Size = Vector3.new(1,2,1)
  95. h.formFactor = "Brick"
  96. h.BrickColor = BrickColor.new("Bright red")
  97. h.TopSurface = "Smooth"
  98. h.BottomSurface = "Smooth"
  99. h:BreakJoints()
  100. h.Transparency = 0
  101. h.Reflectance = 0
  102. ---------------------mesh
  103. m = Instance.new("BlockMesh")
  104. m.Parent = h
  105. m.Scale = Vector3.new(1.1, 1.1, 1.1)
  106. -----------------------------------------weldling
  107. w1 = Instance.new("Weld")
  108. w1.Parent = owner ["Right Arm"]
  109. w1.Part0 = h
  110. w1.Part1 = owner ["Right Arm"]
  111. w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, 0, 0)
  112.  
  113. owner["Left Arm"].Transparency = 1
  114. local h = Instance.new("Part")
  115. h.Name = "Handle"
  116. h.Parent = owner
  117. h.Size = Vector3.new(1,2,1)
  118. h.formFactor = "Brick"
  119. h.BrickColor = BrickColor.new("Bright red")
  120. h.TopSurface = "Smooth"
  121. h.BottomSurface = "Smooth"
  122. h:BreakJoints()
  123. h.Transparency = 0
  124. h.Reflectance = 0
  125. ---------------------mesh
  126. m = Instance.new("BlockMesh")
  127. m.Parent = h
  128. m.Scale = Vector3.new(1.1, 1.1, 1.1)
  129. -----------------------------------------weldling
  130. w1 = Instance.new("Weld")
  131. w1.Parent = owner ["Left Arm"]
  132. w1.Part0 = h
  133. w1.Part1 = owner ["Left Arm"]
  134. w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, 0, 0)
  135.  
  136. owner["Left Leg"].Transparency = 1
  137. local h = Instance.new("Part")
  138. h.Name = "Handle"
  139. h:BreakJoints()
  140. h.Parent = owner
  141. h.Size = Vector3.new(1,2,1)
  142. h.formFactor = "Brick"
  143. h.BrickColor = BrickColor.new("Bright red")
  144. h.TopSurface = "Smooth"
  145. h.BottomSurface = "Smooth"
  146. h.Transparency = 0
  147. h.Reflectance = 0
  148. ---------------------mesh
  149. m = Instance.new("BlockMesh")
  150. m.Parent = h
  151. m.Scale = Vector3.new(1.1, 1.1, 1.1)
  152. -----------------------------------------weldling
  153. w1 = Instance.new("Weld")
  154. w1.Parent = owner ["Left Leg"]
  155. w1.Part0 = h
  156. w1.Part1 = owner ["Left Leg"]
  157. w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, 0, 0)
  158.  
  159. owner["Right Leg"].Transparency = 1
  160. local h = Instance.new("Part")
  161. h.Name = "Handle"
  162. h.Parent = owner
  163. h.Size = Vector3.new(1,2,1)
  164. h:BreakJoints()
  165. h.formFactor = "Brick"
  166. h.BrickColor = BrickColor.new("Bright red")
  167. h.TopSurface = "Smooth"
  168. h.BottomSurface = "Smooth"
  169. h.Transparency = 0
  170. h.Reflectance = 0
  171. ---------------------mesh
  172. m = Instance.new("BlockMesh")
  173. m.Parent = h
  174. m.Scale = Vector3.new(1.1, 1.1, 1.1)
  175. -----------------------------------------weldling
  176. w1 = Instance.new("Weld")
  177. w1.Parent = owner ["Right Leg"]
  178. w1.Part0 = h
  179. w1.Part1 = owner ["Right Leg"]
  180. w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, 0, 0)
  181.  
  182. owner["Left Leg"].Transparency = 1
  183. local h = Instance.new("Part")
  184. h.Name = "Handle"
  185. h.Parent = owner
  186. h.Size = Vector3.new(1,2,1)
  187. h.formFactor = "Brick"
  188. h.BrickColor = BrickColor.new("Bright red")
  189. h.TopSurface = "Smooth"
  190. h:BreakJoints()
  191. h.BottomSurface = "Smooth"
  192. h.Transparency = 0
  193. h.Reflectance = 0
  194. ---------------------mesh
  195. m = Instance.new("BlockMesh")
  196. m.Parent = h
  197. m.Scale = Vector3.new(1.1, 1.1, 1.1)
  198. -----------------------------------------weldling
  199. w1 = Instance.new("Weld")
  200. w1.Parent = owner ["Left Leg"]
  201. w1.Part0 = h
  202. w1.Part1 = owner ["Left Leg"]
  203. w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, 0, 0)
  204.  
  205. owner.Torso.Transparency = 1
  206. local h = Instance.new("Part")
  207. h.Name = "Handle"
  208. h.Parent = owner
  209. h.Size = Vector3.new(2,2,1)
  210. h.formFactor = "Brick"
  211. h.BrickColor = BrickColor.new("Bright red")
  212. h.TopSurface = "Smooth"
  213. h:BreakJoints()
  214. h.BottomSurface = "Smooth"
  215. h.Transparency = 0
  216. h.Reflectance = 0
  217. ---------------------mesh
  218. m = Instance.new("BlockMesh")
  219. m.Parent = h
  220. m.Scale = Vector3.new(1.1, 1.1, 1.1)
  221. -----------------------------------------weldling
  222. w1 = Instance.new("Weld")
  223. w1.Parent = owner.Torso
  224. w1.Part0 = h
  225. w1.Part1 = owner.Torso
  226. w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, 0, 0)
  227.  
  228. owner.Head.Transparency = 1
  229. local h = Instance.new("Part")
  230. h.Name = "Handle"
  231. h.Parent = owner
  232. h.Size = Vector3.new(1,1,1)
  233. h:BreakJoints()
  234. h.formFactor = "Brick"
  235. h.BrickColor = BrickColor.new("Bright red")
  236. h.TopSurface = "Smooth"
  237. h.BottomSurface = "Smooth"
  238. h.Transparency = 0
  239. h.Reflectance = 0
  240. ---------------------mesh
  241. m = Instance.new("SpecialMesh")
  242. m.Parent = h
  243. m.Scale = Vector3.new(1.3, 1.3, 1.3)
  244. -----------------------------------------weldling
  245. w1 = Instance.new("Weld")
  246. w1.Parent = owner.Head
  247. w1.Part0 = h
  248. w1.Part1 = owner.Head
  249. w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, 0, 0)
  250.  
  251. local h = Instance.new("Part")
  252. h.Name = "Handle"
  253. h.Parent = owner
  254. h:BreakJoints()
  255. h.Size = Vector3.new(2,3,1)
  256. h.formFactor = "Brick"
  257. h.BrickColor = BrickColor.new("Really black")
  258. h.TopSurface = "Smooth"
  259. h.BottomSurface = "Smooth"
  260. h.Transparency = 0
  261. h.Reflectance = 0
  262. ---------------------mesh
  263. m = Instance.new("BlockMesh")
  264. m.Parent = h
  265. m.Scale = Vector3.new(1.1, 1.1, 1.1)
  266. -----------------------------------------weldling
  267. w1 = Instance.new("Weld")
  268. w1.Parent = owner.Torso
  269. w1.Part0 = h
  270. w1.Part1 = owner.Torso
  271. w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0.5, -0.5, -1)
  272.  
  273. local h = Instance.new("Part")
  274. h.Name = "Handle"
  275. h.Parent = owner
  276. h.Size = Vector3.new(2,3,1)
  277. h.formFactor = "Brick"
  278. h.BrickColor = BrickColor.new("Really black")
  279. h.TopSurface = "Smooth"
  280. h.BottomSurface = "Smooth"
  281. h:BreakJoints()
  282. h.Transparency = 0
  283. h.Reflectance = 0
  284. ---------------------mesh
  285. m = Instance.new("BlockMesh")
  286. m.Parent = h
  287. m.Scale = Vector3.new(1.1, 1.1, 1.1)
  288. -----------------------------------------weldling
  289. w1 = Instance.new("Weld")
  290. w1.Parent = owner.Torso
  291. w1.Part0 = h
  292. w1.Part1 = owner.Torso
  293. w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(-0.5, -0.5, -1)
  294.  
  295. local h = Instance.new("Part")
  296. h.Name = "Handle"
  297. h.Parent = owner
  298. h.Size = Vector3.new(2,3,1)
  299. h.formFactor = "Brick"
  300. h.BrickColor = BrickColor.new("Really black")
  301. h.TopSurface = "Smooth"
  302. h:BreakJoints()
  303. h.BottomSurface = "Smooth"
  304. h.Transparency = 0
  305. h.Reflectance = 0
  306. ---------------------mesh
  307. m = Instance.new("BlockMesh")
  308. m.Parent = h
  309. m.Scale = Vector3.new(1.1, 1.1, 1.1)
  310. -----------------------------------------weldling
  311. w1 = Instance.new("Weld")
  312. w1.Parent = owner.Torso
  313. w1.Part0 = h
  314. w1.Part1 = owner.Torso
  315. w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(1.5, -1.5, -1)
  316.  
  317. local h = Instance.new("Part")
  318. h.Name = "Handle"
  319. h.Parent = owner
  320. h:BreakJoints()
  321. h.Size = Vector3.new(2,3,1)
  322. h.formFactor = "Brick"
  323. h.BrickColor = BrickColor.new("Really black")
  324. h.TopSurface = "Smooth"
  325. h.BottomSurface = "Smooth"
  326. h.Transparency = 0
  327. h.Reflectance = 0
  328. ---------------------mesh
  329. m = Instance.new("BlockMesh")
  330. m.Parent = h
  331. m.Scale = Vector3.new(1.1, 1.1, 1.1)
  332. -----------------------------------------weldling
  333. w1 = Instance.new("Weld")
  334. w1.Parent = owner.Torso
  335. w1.Part0 = h
  336. w1.Part1 = owner.Torso
  337. w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(-1.5, -1.5, -1)
  338.  
  339.  
  340. local h = Instance.new("Part")
  341. h.Name = "Handle"
  342. h.Parent = owner
  343. h.Size = Vector3.new(2,3,1)
  344. h.formFactor = "Brick"
  345. h.BrickColor = BrickColor.new("Really black")
  346. h.TopSurface = "Smooth"
  347. h.BottomSurface = "Smooth"
  348. h.Transparency = 0
  349. h:BreakJoints()
  350. h.Reflectance = 0
  351. ---------------------mesh
  352. m = Instance.new("BlockMesh")
  353. m.Parent = h
  354. m.Scale = Vector3.new(1.1, 1.1, 1.1)
  355. -----------------------------------------weldling
  356. w1 = Instance.new("Weld")
  357. w1.Parent = owner.Torso
  358. w1.Part0 = h
  359. w1.Part1 = owner.Torso
  360. w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(3.5, -3.5, -1)
  361.  
  362. local h = Instance.new("Part")
  363. h.Name = "Handle"
  364. h.Parent = owner
  365. h:BreakJoints()
  366. h.Size = Vector3.new(2,3,1)
  367. h.formFactor = "Brick"
  368. h.BrickColor = BrickColor.new("Really black")
  369. h.TopSurface = "Smooth"
  370. h.BottomSurface = "Smooth"
  371. h.Transparency = 0
  372. h.Reflectance = 0
  373. ---------------------mesh
  374. m = Instance.new("BlockMesh")
  375. m.Parent = h
  376. m.Scale = Vector3.new(1.1, 1.1, 1.1)
  377. -----------------------------------------weldling
  378. w1 = Instance.new("Weld")
  379. w1.Parent = owner.Torso
  380. w1.Part0 = h
  381. w1.Part1 = owner.Torso
  382. w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(-3.5, -3.5, -1)
  383.  
  384. owner["Right Arm"].Transparency = 1
  385. local h = Instance.new("Part")
  386. h.Name = "Handle"
  387. h.Parent = owner
  388. h.Size = Vector3.new(1,2,1)
  389. h.formFactor = "Brick"
  390. h.BrickColor = BrickColor.new("White")
  391. h.TopSurface = "Smooth"
  392. h.BottomSurface = "Smooth"
  393. h:BreakJoints()
  394. h.Transparency = 0
  395. h.Reflectance = 0
  396. ---------------------mesh
  397. m = Instance.new("BlockMesh")
  398. m.Parent = h
  399. m.Scale = Vector3.new(1.1, 1.1, 1.1)
  400. -----------------------------------------weldling
  401. w1 = Instance.new("Weld")
  402. w1.Parent = owner ["Right Arm"]
  403. w1.Part0 = h
  404. w1.Part1 = owner ["Right Arm"]
  405. w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, 0, 0)
  406.  
  407. owner["Left Arm"].Transparency = 1
  408. local h = Instance.new("Part")
  409. h.Name = "Handle"
  410. h.Parent = owner
  411. h.Size = Vector3.new(1,2,1)
  412. h.formFactor = "Brick"
  413. h.BrickColor = BrickColor.new("White")
  414. h.TopSurface = "Smooth"
  415. h.BottomSurface = "Smooth"
  416. h:BreakJoints()
  417. h.Transparency = 0
  418. h.Reflectance = 0
  419. ---------------------mesh
  420. m = Instance.new("BlockMesh")
  421. m.Parent = h
  422. m.Scale = Vector3.new(1.1, 1.1, 1.1)
  423. -----------------------------------------weldling
  424. w1 = Instance.new("Weld")
  425. w1.Parent = owner ["Left Arm"]
  426. w1.Part0 = h
  427. w1.Part1 = owner ["Left Arm"]
  428. w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, 0, 0)
  429.  
  430. owner["Left Leg"].Transparency = 1
  431. local h = Instance.new("Part")
  432. h.Name = "Handle"
  433. h:BreakJoints()
  434. h.Parent = owner
  435. h.Size = Vector3.new(1,2,1)
  436. h.formFactor = "Brick"
  437. h.BrickColor = BrickColor.new("White")
  438. h.TopSurface = "Smooth"
  439. h.BottomSurface = "Smooth"
  440. h.Transparency = 0
  441. h.Reflectance = 0
  442. ---------------------mesh
  443. m = Instance.new("BlockMesh")
  444. m.Parent = h
  445. m.Scale = Vector3.new(1.1, 1.1, 1.1)
  446. -----------------------------------------weldling
  447. w1 = Instance.new("Weld")
  448. w1.Parent = owner ["Left Leg"]
  449. w1.Part0 = h
  450. w1.Part1 = owner ["Left Leg"]
  451. w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, 0, 0)
  452.  
  453. owner["Right Leg"].Transparency = 1
  454. local h = Instance.new("Part")
  455. h.Name = "Handle"
  456. h.Parent = owner
  457. h.Size = Vector3.new(1,2,1)
  458. h.formFactor = "Brick"
  459. h.BrickColor = BrickColor.new("White")
  460. h:BreakJoints()
  461. h.TopSurface = "Smooth"
  462. h.BottomSurface = "Smooth"
  463. h.Transparency = 0
  464. h.Reflectance = 0
  465. ---------------------mesh
  466. m = Instance.new("BlockMesh")
  467. m.Parent = h
  468. m.Scale = Vector3.new(1.1, 1.1, 1.1)
  469. -----------------------------------------weldling
  470. w1 = Instance.new("Weld")
  471. w1.Parent = owner ["Right Leg"]
  472. w1.Part0 = h
  473. w1.Part1 = owner ["Right Leg"]
  474. w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, 0, 0)
  475.  
  476. owner["Left Leg"].Transparency = 1
  477. local h = Instance.new("Part")
  478. h.Name = "Handle"
  479. h.Parent = owner
  480. h.Size = Vector3.new(1,2,1)
  481. h.formFactor = "Brick"
  482. h.BrickColor = BrickColor.new("White")
  483. h:BreakJoints()
  484. h.TopSurface = "Smooth"
  485. h.BottomSurface = "Smooth"
  486. h.Transparency = 0
  487. h.Reflectance = 0
  488. ---------------------mesh
  489. m = Instance.new("BlockMesh")
  490. m.Parent = h
  491. m.Scale = Vector3.new(1.1, 1.1, 1.1)
  492. -----------------------------------------weldling
  493. w1 = Instance.new("Weld")
  494. w1.Parent = owner ["Left Leg"]
  495. w1.Part0 = h
  496. w1.Part1 = owner ["Left Leg"]
  497. w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, 0, 0)
  498.  
  499. owner.Torso.Transparency = 1
  500. local h = Instance.new("Part")
  501. h.Name = "Handle"
  502. h.Parent = owner
  503. h.Size = Vector3.new(2,2,1)
  504. h.formFactor = "Brick"
  505. h.BrickColor = BrickColor.new("White")
  506. h.TopSurface = "Smooth"
  507. h.BottomSurface = "Smooth"
  508. h:BreakJoints()
  509. h.Transparency = 0
  510. h.Reflectance = 0
  511. ---------------------mesh
  512. m = Instance.new("BlockMesh")
  513. m.Parent = h
  514. m.Scale = Vector3.new(1.1, 1.1, 1.1)
  515. -----------------------------------------weldling
  516. w1 = Instance.new("Weld")
  517. w1.Parent = owner.Torso
  518. w1.Part0 = h
  519. w1.Part1 = owner.Torso
  520. w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, 0, 0)
  521.  
  522. owner.Head.Transparency = 1
  523. local h = Instance.new("Part")
  524. h.Name = "Handle"
  525. h.Parent = owner
  526. h.Size = Vector3.new(1,1,1)
  527. h.formFactor = "Brick"
  528. h.BrickColor = BrickColor.new("White")
  529. h.TopSurface = "Smooth"
  530. h:BreakJoints()
  531. h.BottomSurface = "Smooth"
  532. h.Transparency = 0
  533. h.Reflectance = 0
  534. ---------------------mesh
  535. m = Instance.new("SpecialMesh")
  536. m.Parent = h
  537. m.Scale = Vector3.new(1.3, 1.3, 1.3)
  538. -----------------------------------------weldling
  539. w1 = Instance.new("Weld")
  540. w1.Parent = owner.Head
  541. w1.Part0 = h
  542. w1.Part1 = owner.Head
  543. w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, 0, 0)
  544.  
  545. local h = Instance.new("Part")
  546. h.Name = "Handle"
  547. h.Parent = owner
  548. h.Size = Vector3.new(2,2,1)
  549. h.formFactor = "Brick"
  550. h.BrickColor = BrickColor.new("Mid grey")
  551. h.TopSurface = "Smooth"
  552. h.BottomSurface = "Smooth"
  553. h.Transparency = 0
  554. h:BreakJoints()
  555. h.Reflectance = 0
  556. ---------------------mesh
  557. m = Instance.new("BlockMesh")
  558. m.Parent = h
  559. m.Scale = Vector3.new(1.1, 1.1, 1.1)
  560. -----------------------------------------weldling
  561. w1 = Instance.new("Weld")
  562. w1.Parent = owner.Torso
  563. w1.Part0 = h
  564. w1.Part1 = owner.Torso
  565. w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0.5, -0.5, -1)
  566.  
  567. local h = Instance.new("Part")
  568. h.Name = "Handle"
  569. h.Parent = owner
  570. h.Size = Vector3.new(2,2,1)
  571. h.formFactor = "Brick"
  572. h.BrickColor = BrickColor.new("Mid grey")
  573. h.TopSurface = "Smooth"
  574. h:BreakJoints()
  575. h.BottomSurface = "Smooth"
  576. h.Transparency = 0
  577. h.Reflectance = 0
  578. ---------------------mesh
  579. m = Instance.new("BlockMesh")
  580. m.Parent = h
  581. m.Scale = Vector3.new(1.1, 1.1, 1.1)
  582. -----------------------------------------weldling
  583. w1 = Instance.new("Weld")
  584. w1.Parent = owner.Torso
  585. w1.Part0 = h
  586. w1.Part1 = owner.Torso
  587. w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(-0.5, -0.5, -1)
  588.  
  589. local h = Instance.new("Part")
  590. h.Name = "Handle"
  591. h.Parent = owner
  592. h.Size = Vector3.new(2,2,1)
  593. h.formFactor = "Brick"
  594. h.BrickColor = BrickColor.new("Mid grey")
  595. h.TopSurface = "Smooth"
  596. h.BottomSurface = "Smooth"
  597. h:BreakJoints()
  598. h.Transparency = 0
  599. h.Reflectance = 0
  600. ---------------------mesh
  601. m = Instance.new("BlockMesh")
  602. m.Parent = h
  603. m.Scale = Vector3.new(1.1, 1.1, 1.1)
  604. -----------------------------------------weldling
  605. w1 = Instance.new("Weld")
  606. w1.Parent = owner.Torso
  607. w1.Part0 = h
  608. w1.Part1 = owner.Torso
  609. w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(1.5, -1.5, -1)
  610.  
  611. local h = Instance.new("Part")
  612. h.Name = "Handle"
  613. h.Parent = owner
  614. h.Size = Vector3.new(2,2,1)
  615. h.formFactor = "Brick"
  616. h.BrickColor = BrickColor.new("Mid grey")
  617. h.TopSurface = "Smooth"
  618. h.BottomSurface = "Smooth"
  619. h:BreakJoints()
  620. h.Transparency = 0
  621. h.Reflectance = 0
  622. ---------------------mesh
  623. m = Instance.new("BlockMesh")
  624. m.Parent = h
  625. m.Scale = Vector3.new(1.1, 1.1, 1.1)
  626. -----------------------------------------weldling
  627. w1 = Instance.new("Weld")
  628. w1.Parent = owner.Torso
  629. w1.Part0 = h
  630. w1.Part1 = owner.Torso
  631. w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(-1.5, -1.5, -1)
  632.  
  633.  
  634. local h = Instance.new("Part")
  635. h.Name = "Handle"
  636. h.Parent = owner
  637. h.Size = Vector3.new(2,2,1)
  638. h.formFactor = "Brick"
  639. h.BrickColor = BrickColor.new("Mid grey")
  640. h.TopSurface = "Smooth"
  641. h.BottomSurface = "Smooth"
  642. h.Transparency = 0
  643. h:BreakJoints()
  644. h.Reflectance = 0
  645. ---------------------mesh
  646. m = Instance.new("BlockMesh")
  647. m.Parent = h
  648. m.Scale = Vector3.new(1.1, 1.1, 1.1)
  649. -----------------------------------------weldling
  650. w1 = Instance.new("Weld")
  651. w1.Parent = owner.Torso
  652. w1.Part0 = h
  653. w1.Part1 = owner.Torso
  654. w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(3.5, -3.5, -1)
  655.  
  656. local h = Instance.new("Part")
  657. h.Name = "Handle"
  658. h.Parent = owner
  659. h.Size = Vector3.new(2,2,1)
  660. h.formFactor = "Brick"
  661. h.BrickColor = BrickColor.new("Mid grey")
  662. h.TopSurface = "Smooth"
  663. h.BottomSurface = "Smooth"
  664. h:BreakJoints()
  665. h.Transparency = 0
  666. h.Reflectance = 0
  667. ---------------------mesh
  668. m = Instance.new("BlockMesh")
  669. m.Parent = h
  670. m.Scale = Vector3.new(1.1, 1.1, 1.1)
  671. -----------------------------------------weldling
  672. w1 = Instance.new("Weld")
  673. w1.Parent = owner.Torso
  674. w1.Part0 = h
  675. w1.Part1 = owner.Torso
  676. w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(-3.5, -3.5, -1)
  677.  
  678. t = Instance.new("Tool")
  679. t.Parent = game.Players.yfc.Backpack
  680. t.Name = "Heal"
  681.  
  682. local handlee = Instance.new("Part")
  683. handlee.Name = "Handle"
  684. handlee.Parent = t
  685. handlee.Shape = "Ball"
  686. handlee.BrickColor = BrickColor.new("New Yeller")
  687. handlee.Size = Vector3.new(1, 1, 1)
  688. handlee.TopSurface = "Smooth"
  689. handlee.BottomSurface = "Smooth"
  690. handlee.Transparency = 0
  691. handlee.Reflectance = 0
  692. -----------------------------------------mesh
  693. m = Instance.new("BlockMesh")
  694. m.Parent = handlee
  695. m.Scale = Vector3.new(0.5, 1.0, 0.5)
  696. -----------------------------------------Brick2
  697. local brick3 = Instance.new("Part")
  698. brick3.Name = "Part"
  699. brick3.Parent = t
  700. brick3.formFactor = "Plate"
  701. brick3.BrickColor = BrickColor.new("Neon orange")
  702. brick3.Size = Vector3.new(2, 1, 1)
  703. brick3.TopSurface = "Smooth"
  704. brick3.BottomSurface = "Smooth"
  705. brick3.Transparency = 0
  706. brick3.Reflectance = 0
  707. -----------------------------------------mesh
  708. m = Instance.new("CylinderMesh")
  709. m.Parent = brick3
  710. m.Scale = Vector3.new(1.4, 0.3, 1.4)
  711. -----------------------------------------weld
  712. w2 = Instance.new("Weld")
  713. w2.Parent = handlee
  714. w2.Part0 = brick3
  715. w2.Part1 = handlee
  716. w2.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, -2, 0)
  717. -----------------------------------------Brick2
  718. local brick2 = Instance.new("Part")
  719. brick2.Name = "Part"
  720. brick2.Parent = t
  721. brick2.formFactor = "Plate"
  722. brick2.BrickColor = BrickColor.new("Bright yellow")
  723. brick2.Size = Vector3.new(1, 1, 1)
  724. brick2.TopSurface = "Smooth"
  725. brick2.BottomSurface = "Smooth"
  726. brick2.Transparency = 0.5
  727. brick2.Reflectance = 0
  728. -----------------------------------------mesh
  729. m = Instance.new("CylinderMesh")
  730. m.Parent = brick2
  731. m.Scale = Vector3.new(5, 10000, 5)
  732. -----------------------------------------weld
  733. w2 = Instance.new("Weld")
  734. w2.Parent = handlee
  735. w2.Part0 = brick2
  736. w2.Part1 = handlee
  737. w2.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, -2, 0)
  738.  
  739. ---------------------Part 2
  740. ---------------------Part 2
  741. ---------------------Part 2
  742.  
  743. r = game:service("RunService")
  744.  
  745.  
  746. local damage = 100000
  747.  
  748.  
  749. local slash_damage = 100000
  750.  
  751.  
  752. sword = brick3
  753. Tool = t
  754.  
  755. function attack()
  756. local anim = Instance.new("StringValue")
  757. anim.Name = "toolanim"
  758. anim.Value = "Slash"
  759. anim.Parent = Tool
  760. end
  761.  
  762.  
  763. function swordUp()
  764. Tool.GripForward = Vector3.new(-1,0,0)
  765. Tool.GripRight = Vector3.new(0,1,0)
  766. Tool.GripUp = Vector3.new(0,0,1)
  767. end
  768.  
  769. function swordOut()
  770. Tool.GripForward = Vector3.new(0,0,1)
  771. Tool.GripRight = Vector3.new(0,-1,0)
  772. Tool.GripUp = Vector3.new(-1,0,0)
  773. end
  774.  
  775.  
  776.  
  777. Tool.Enabled = true
  778.  
  779. function onActivated()
  780.  
  781. if not Tool.Enabled then
  782. return
  783. end
  784.  
  785. Tool.Enabled = false
  786.  
  787. local character = Tool.Parent;
  788. local humanoid = character.Humanoid
  789. if humanoid == nil then
  790. print("Humanoid not found")
  791. return
  792. end
  793.  
  794.  
  795.  
  796. attack()
  797.  
  798. wait()
  799.  
  800. Tool.Enabled = true
  801. end
  802.  
  803.  
  804. function onEquipped()
  805.  
  806. end
  807.  
  808.  
  809. ------part 3
  810. ------part 3
  811. ------part 3
  812. function onTouched(hit)
  813. h = hit.Parent:findFirstChild("Humanoid")
  814. if h ~= nil then
  815. h.MaxHealth = Huge
  816. end
  817. end
  818.  
  819.  
  820. Tool.Activated:connect(onActivated)
  821. Tool.Equipped:connect(onEquipped)
  822. sword.Touched:connect(onTouched)
  823.  
  824. t = Instance.new("Tool")
  825. t.Parent = game.Players.yfc.Backpack
  826. t.Name = "Devil"
  827.  
  828. local handlee = Instance.new("Part")
  829. handlee.Name = "Handle"
  830. handlee.Parent = t
  831. handlee.Shape = "Ball"
  832. handlee.BrickColor = BrickColor.new("New Yeller")
  833. handlee.Size = Vector3.new(1, 1, 1)
  834. handlee.TopSurface = "Smooth"
  835. handlee.BottomSurface = "Smooth"
  836. handlee.Transparency = 0
  837. handlee.Reflectance = 0
  838. -----------------------------------------mesh
  839. m = Instance.new("BlockMesh")
  840. m.Parent = handlee
  841. m.Scale = Vector3.new(0.5, 1.0, 0.5)
  842. -----------------------------------------Brick2
  843. local brick3 = Instance.new("Part")
  844. brick3.Name = "Part"
  845. brick3.Parent = t
  846. brick3.formFactor = "Plate"
  847. brick3.BrickColor = BrickColor.new("Neon orange")
  848. brick3.Size = Vector3.new(2, 1, 1)
  849. brick3.TopSurface = "Smooth"
  850. brick3.BottomSurface = "Smooth"
  851. brick3.Transparency = 0
  852. brick3.Reflectance = 0
  853. -----------------------------------------mesh
  854. m = Instance.new("CylinderMesh")
  855. m.Parent = brick3
  856. m.Scale = Vector3.new(1.4, 0.3, 1.4)
  857. -----------------------------------------weld
  858. w2 = Instance.new("Weld")
  859. w2.Parent = handlee
  860. w2.Part0 = brick3
  861. w2.Part1 = handlee
  862. w2.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, -2, 0)
  863. -----------------------------------------Brick2
  864. local brick2 = Instance.new("Part")
  865. brick2.Name = "Part"
  866. brick2.Parent = t
  867. brick2.formFactor = "Plate"
  868. brick2.BrickColor = BrickColor.new("Bright red")
  869. brick2.Size = Vector3.new(1, 1, 1)
  870. brick2.TopSurface = "Smooth"
  871. brick2.BottomSurface = "Smooth"
  872. brick2.Transparency = 0.5
  873. brick2.Reflectance = 0
  874. -----------------------------------------mesh
  875. m = Instance.new("CylinderMesh")
  876. m.Parent = brick2
  877. m.Scale = Vector3.new(5, 10000, 5)
  878. m.Offset = Vector3.new(0, -5000, 0)
  879. -----------------------------------------weld
  880. w2 = Instance.new("Weld")
  881. w2.Parent = handlee
  882. w2.Part0 = brick2
  883. w2.Part1 = handlee
  884. w2.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, -2, 0)
  885.  
  886. ---------------------Part 2
  887. ---------------------Part 2
  888. ---------------------Part 2
  889.  
  890. r = game:service("RunService")
  891.  
  892.  
  893. local damage = 100000
  894.  
  895.  
  896. local slash_damage = 100000
  897.  
  898.  
  899. sword = brick3
  900. Tool = t
  901.  
  902. function attack()
  903. local anim = Instance.new("StringValue")
  904. anim.Name = "toolanim"
  905. anim.Value = "Slash"
  906. anim.Parent = Tool
  907. end
  908.  
  909.  
  910. function swordUp()
  911. Tool.GripForward = Vector3.new(-1,0,0)
  912. Tool.GripRight = Vector3.new(0,1,0)
  913. Tool.GripUp = Vector3.new(0,0,1)
  914. end
  915.  
  916. function swordOut()
  917. Tool.GripForward = Vector3.new(0,0,1)
  918. Tool.GripRight = Vector3.new(0,-1,0)
  919. Tool.GripUp = Vector3.new(-1,0,0)
  920. end
  921.  
  922.  
  923.  
  924. Tool.Enabled = true
  925.  
  926. function onActivated()
  927.  
  928. if not Tool.Enabled then
  929. return
  930. end
  931.  
  932. Tool.Enabled = false
  933.  
  934. local character = Tool.Parent;
  935. local humanoid = character.Humanoid
  936. if humanoid == nil then
  937. print("Humanoid not found")
  938. return
  939. end
  940.  
  941.  
  942.  
  943. attack()
  944.  
  945. wait()
  946.  
  947. Tool.Enabled = true
  948. end
  949.  
  950.  
  951. function onEquipped()
  952.  
  953. end
  954.  
  955.  
  956. ------part 3
  957. ------part 3
  958. ------part 3
  959. function onTouched(hit)
  960. h = hit.Parent:findFirstChild("Humanoid")
  961. if h ~= nil then
  962. h.Health = 0
  963. end
  964. end
  965.  
  966.  
  967. Tool.Activated:connect(onActivated)
  968. Tool.Equipped:connect(onEquipped)
  969. sword.Touched:connect(onTouched)
  970.  
  971. t = Instance.new("Tool")
  972. t.Parent = game.Players.yfc.Backpack
  973. t.Name = "Claw"
  974.  
  975. local handlee = Instance.new("Part")
  976. handlee.Name = "Handle"
  977. handlee.Parent = t
  978. handlee.BrickColor = BrickColor.new("Really black")
  979. handlee.Size = Vector3.new(1, 1, 2)
  980. handlee.TopSurface = "Smooth"
  981. handlee.BottomSurface = "Smooth"
  982. handlee.Transparency = 0
  983. handlee.Reflectance = 0
  984. -----------------------------------------mesh
  985. m = Instance.new("BlockMesh")
  986. m.Parent = handlee
  987. m.Scale = Vector3.new(0.2, 0.2, 1)
  988. -----------------------------------------Brick2
  989. local brick3 = Instance.new("Part")
  990. brick3.Name = "Part"
  991. brick3.Parent = t
  992. brick3.formFactor = "Plate"
  993. brick3.BrickColor = BrickColor.new("Really black")
  994. brick3.Size = Vector3.new(1, 1, 2)
  995. brick3.TopSurface = "Smooth"
  996. brick3.BottomSurface = "Smooth"
  997. brick3.Transparency = 0
  998. brick3.Reflectance = 0
  999. -----------------------------------------mesh
  1000. m = Instance.new("BlockMesh")
  1001. m.Parent = brick3
  1002. m.Scale = Vector3.new(0.2, 0.2, 1)
  1003. -----------------------------------------weld
  1004. w2 = Instance.new("Weld")
  1005. w2.Parent = handlee
  1006. w2.Part0 = brick3
  1007. w2.Part1 = handlee
  1008. w2.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(-0.3, 0, 0)
  1009. -----------------------------------------Brick2
  1010. local brick4 = Instance.new("Part")
  1011. brick4.Name = "Part"
  1012. brick4.Parent = t
  1013. brick4.formFactor = "Plate"
  1014. brick4.BrickColor = BrickColor.new("Really black")
  1015. brick4.Size = Vector3.new(1, 1, 2)
  1016. brick4.TopSurface = "Smooth"
  1017. brick4.BottomSurface = "Smooth"
  1018. brick4.Transparency = 0
  1019. brick4.Reflectance = 0
  1020. -----------------------------------------mesh
  1021. m = Instance.new("BlockMesh")
  1022. m.Parent = brick4
  1023. m.Scale = Vector3.new(0.2, 0.2, 1)
  1024. -----------------------------------------weld
  1025. w2 = Instance.new("Weld")
  1026. w2.Parent = handlee
  1027. w2.Part0 = brick4
  1028. w2.Part1 = handlee
  1029. w2.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0.3, 0, 0)
  1030.  
  1031. ---------------------Part 2
  1032. ---------------------Part 2
  1033. ---------------------Part 2
  1034.  
  1035. r = game:service("RunService")
  1036.  
  1037.  
  1038. local damage = 100000
  1039.  
  1040.  
  1041. local slash_damage = 100000
  1042.  
  1043.  
  1044. sword = brick4
  1045. Tool = t
  1046.  
  1047. function attack()
  1048. local anim = Instance.new("StringValue")
  1049. anim.Name = "toolanim"
  1050. anim.Value = "Slash"
  1051. anim.Parent = Tool
  1052. end
  1053.  
  1054.  
  1055. function swordUp()
  1056. Tool.GripForward = Vector3.new(-1,0,0)
  1057. Tool.GripRight = Vector3.new(0,1,0)
  1058. Tool.GripUp = Vector3.new(0,0,1)
  1059. end
  1060.  
  1061. function swordOut()
  1062. Tool.GripForward = Vector3.new(0,0,1)
  1063. Tool.GripRight = Vector3.new(0,-1,0)
  1064. Tool.GripUp = Vector3.new(-1,0,0)
  1065. end
  1066.  
  1067.  
  1068.  
  1069. Tool.Enabled = true
  1070.  
  1071. function onActivated()
  1072.  
  1073. if not Tool.Enabled then
  1074. return
  1075. end
  1076.  
  1077. Tool.Enabled = false
  1078.  
  1079. local character = Tool.Parent;
  1080. local humanoid = character.Humanoid
  1081. if humanoid == nil then
  1082. print("Humanoid not found")
  1083. return
  1084. end
  1085.  
  1086.  
  1087.  
  1088. attack()
  1089.  
  1090. wait()
  1091.  
  1092. Tool.Enabled = true
  1093. end
  1094.  
  1095.  
  1096. function onEquipped()
  1097.  
  1098. end
  1099.  
  1100.  
  1101. ------part 3
  1102. ------part 3
  1103. ------part 3
  1104. function onTouched(hit)
  1105. h = hit.Parent:findFirstChild("Humanoid")
  1106. if h ~= nil then
  1107. h:TakeDamage(25)
  1108. end
  1109. end
  1110.  
  1111.  
  1112. Tool.Activated:connect(onActivated)
  1113. Tool.Equipped:connect(onEquipped)
  1114. sword.Touched:connect(onTouched)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement