Advertisement
Kittdy2

Untitled

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