Advertisement
Kittdy2

Untitled

Jan 20th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.04 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. plyr = game.Players.Gaminhyena
  90. char = plyr.Character
  91. fire = Instance.new("Fire", char.Head)
  92. fire.Heat = 255
  93. fire.Color = Color3.new(1, 0, 0)
  94. fire.Size = 2555
  95.  
  96. local part = Instance.new("Part", char)
  97. part.Anchored = true
  98. part.Size = Vector3.new(10, 50, 10)
  99. part.CFrame = CFrame.new(0, 25, 0)
  100. part.BrickColor = BrickColor.new("Really black")
  101. fire2 = Instance.new("Fire", part)
  102. fire2.Heat = 255
  103. fire2.Color = Color3.new(1, 0, 0)
  104. fire2.Size = 2555
  105. local part2 = Instance.new("Part", char)
  106. part2.Anchored = true
  107. part2.Size = Vector3.new(40, 15, 9)
  108. part2.CFrame = CFrame.new(0, 15, 0)
  109. part2.BrickColor = BrickColor.new("Really black")
  110. fire3 = Instance.new("Fire", part2)
  111. fire3.Heat = 255
  112. fire3.Color = Color3.new(1, 0, 0)
  113. fire3.Size = 2555
  114.  
  115. Game.Workspace.Gaminhyena["Right Arm"].Transparency = 1
  116. local h = Instance.new("Part")
  117. h.Name = "Handle"
  118. h.Parent = Workspace.Gaminhyena
  119. h.Size = Vector3.new(1,2,1)
  120. h.formFactor = "Brick"
  121. h.BrickColor = BrickColor.new("Bright red")
  122. h.TopSurface = "Smooth"
  123. h.BottomSurface = "Smooth"
  124. h:BreakJoints()
  125. h.Transparency = 0
  126. h.Reflectance = 0
  127. ---------------------mesh
  128. m = Instance.new("BlockMesh")
  129. m.Parent = h
  130. m.Scale = Vector3.new(1.1, 1.1, 1.1)
  131. -----------------------------------------weldling
  132. w1 = Instance.new("Weld")
  133. w1.Parent = Workspace.Gaminhyena ["Right Arm"]
  134. w1.Part0 = h
  135. w1.Part1 = Workspace.Gaminhyena ["Right Arm"]
  136. w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, 0, 0)
  137.  
  138. Game.Workspace.Gaminhyena["Left Arm"].Transparency = 1
  139. local h = Instance.new("Part")
  140. h.Name = "Handle"
  141. h.Parent = Workspace.Gaminhyena
  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:BreakJoints()
  148. h.Transparency = 0
  149. h.Reflectance = 0
  150. ---------------------mesh
  151. m = Instance.new("BlockMesh")
  152. m.Parent = h
  153. m.Scale = Vector3.new(1.1, 1.1, 1.1)
  154. -----------------------------------------weldling
  155. w1 = Instance.new("Weld")
  156. w1.Parent = Workspace.Gaminhyena ["Left Arm"]
  157. w1.Part0 = h
  158. w1.Part1 = Workspace.Gaminhyena ["Left Arm"]
  159. w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, 0, 0)
  160.  
  161. Game.Workspace.Gaminhyena["Left Leg"].Transparency = 1
  162. local h = Instance.new("Part")
  163. h.Name = "Handle"
  164. h.Parent = Workspace.Gaminhyena
  165. h.Size = Vector3.new(1,2,1)
  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:BreakJoints()
  172. h.Reflectance = 0
  173. ---------------------mesh
  174. m = Instance.new("BlockMesh")
  175. m.Parent = h
  176. m.Scale = Vector3.new(1.1, 1.1, 1.1)
  177. -----------------------------------------weldling
  178. w1 = Instance.new("Weld")
  179. w1.Parent = Workspace.Gaminhyena ["Left Leg"]
  180. w1.Part0 = h
  181. w1.Part1 = Workspace.Gaminhyena ["Left Leg"]
  182. w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, 0, 0)
  183.  
  184. Game.Workspace.Gaminhyena["Right Leg"].Transparency = 1
  185. local h = Instance.new("Part")
  186. h.Name = "Handle"
  187. h.Parent = Workspace.Gaminhyena
  188. h.Size = Vector3.new(1,2,1)
  189. h:BreakJoints()
  190. h.formFactor = "Brick"
  191. h.BrickColor = BrickColor.new("Bright red")
  192. h.TopSurface = "Smooth"
  193. h.BottomSurface = "Smooth"
  194. h.Transparency = 0
  195. h.Reflectance = 0
  196. ---------------------mesh
  197. m = Instance.new("BlockMesh")
  198. m.Parent = h
  199. m.Scale = Vector3.new(1.1, 1.1, 1.1)
  200. -----------------------------------------weldling
  201. w1 = Instance.new("Weld")
  202. w1.Parent = Workspace.Gaminhyena ["Right Leg"]
  203. w1.Part0 = h
  204. w1.Part1 = Workspace.Gaminhyena ["Right Leg"]
  205. w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, 0, 0)
  206.  
  207. Game.Workspace.Gaminhyena["Left Leg"].Transparency = 1
  208. local h = Instance.new("Part")
  209. h.Name = "Handle"
  210. h.Parent = Workspace.Gaminhyena
  211. h.Size = Vector3.new(1,2,1)
  212. h.formFactor = "Brick"
  213. h.BrickColor = BrickColor.new("Bright red")
  214. h.TopSurface = "Smooth"
  215. h:BreakJoints()
  216. h.BottomSurface = "Smooth"
  217. h.Transparency = 0
  218. h.Reflectance = 0
  219. ---------------------mesh
  220. m = Instance.new("BlockMesh")
  221. m.Parent = h
  222. m.Scale = Vector3.new(1.1, 1.1, 1.1)
  223. -----------------------------------------weldling
  224. w1 = Instance.new("Weld")
  225. w1.Parent = Workspace.Gaminhyena ["Left Leg"]
  226. w1.Part0 = h
  227. w1.Part1 = Workspace.Gaminhyena ["Left Leg"]
  228. w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, 0, 0)
  229.  
  230. Game.Workspace.Gaminhyena.Torso.Transparency = 1
  231. local h = Instance.new("Part")
  232. h.Name = "Handle"
  233. h.Parent = Workspace.Gaminhyena
  234. h.Size = Vector3.new(2,2,1)
  235. h.formFactor = "Brick"
  236. h.BrickColor = BrickColor.new("Bright red")
  237. h.TopSurface = "Smooth"
  238. h:BreakJoints()
  239. h.BottomSurface = "Smooth"
  240. h.Transparency = 0
  241. h.Reflectance = 0
  242. ---------------------mesh
  243. m = Instance.new("BlockMesh")
  244. m.Parent = h
  245. m.Scale = Vector3.new(1.1, 1.1, 1.1)
  246. -----------------------------------------weldling
  247. w1 = Instance.new("Weld")
  248. w1.Parent = Workspace.Gaminhyena.Torso
  249. w1.Part0 = h
  250. w1.Part1 = Workspace.Gaminhyena.Torso
  251. w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, 0, 0)
  252.  
  253. Game.Workspace.Gaminhyena.Head.Transparency = 1
  254. local h = Instance.new("Part")
  255. h.Name = "Handle"
  256. h.Parent = Workspace.Gaminhyena
  257. h.Size = Vector3.new(1,1,1)
  258. h:BreakJoints()
  259. h.formFactor = "Brick"
  260. h.BrickColor = BrickColor.new("Bright red")
  261. h.TopSurface = "Smooth"
  262. h.BottomSurface = "Smooth"
  263. h.Transparency = 0
  264. h.Reflectance = 0
  265. ---------------------mesh
  266. m = Instance.new("SpecialMesh")
  267. m.Parent = h
  268. m.Scale = Vector3.new(1.3, 1.3, 1.3)
  269. -----------------------------------------weldling
  270. w1 = Instance.new("Weld")
  271. w1.Parent = Workspace.Gaminhyena.Head
  272. w1.Part0 = h
  273. w1.Part1 = Workspace.Gaminhyena.Head
  274. w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, 0, 0)
  275.  
  276. local h = Instance.new("Part")
  277. h.Name = "Handle"
  278. h.Parent = Workspace.Gaminhyena
  279. h.Size = Vector3.new(2,3,1)
  280. h.formFactor = "Brick"
  281. h.BrickColor = BrickColor.new("Really black")
  282. h.TopSurface = "Smooth"
  283. h.BottomSurface = "Smooth"
  284. h.Transparency = 0
  285. h.Reflectance = 0
  286. h:BreakJoints()
  287. ---------------------mesh
  288. m = Instance.new("BlockMesh")
  289. m.Parent = h
  290. m.Scale = Vector3.new(1.1, 1.1, 1.1)
  291. -----------------------------------------weldling
  292. w1 = Instance.new("Weld")
  293. w1.Parent = Workspace.Gaminhyena.Torso
  294. w1.Part0 = h
  295. w1.Part1 = Workspace.Gaminhyena.Torso
  296. w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0.5, -0.5, -1)
  297.  
  298. local h = Instance.new("Part")
  299. h.Name = "Handle"
  300. h.Parent = Workspace.Gaminhyena
  301. h.Size = Vector3.new(2,3,1)
  302. h.formFactor = "Brick"
  303. h.BrickColor = BrickColor.new("Really black")
  304. h.TopSurface = "Smooth"
  305. h.BottomSurface = "Smooth"
  306. h:BreakJoints()
  307. h.Transparency = 0
  308. h.Reflectance = 0
  309. ---------------------mesh
  310. m = Instance.new("BlockMesh")
  311. m.Parent = h
  312. m.Scale = Vector3.new(1.1, 1.1, 1.1)
  313. -----------------------------------------weldling
  314. w1 = Instance.new("Weld")
  315. w1.Parent = Workspace.Gaminhyena.Torso
  316. w1.Part0 = h
  317. w1.Part1 = Workspace.Gaminhyena.Torso
  318. w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(-0.5, -0.5, -1)
  319.  
  320. local h = Instance.new("Part")
  321. h.Name = "Handle"
  322. h.Parent = Workspace.Gaminhyena
  323. h.Size = Vector3.new(2,3,1)
  324. h.formFactor = "Brick"
  325. h.BrickColor = BrickColor.new("Really black")
  326. h.TopSurface = "Smooth"
  327. h:BreakJoints()
  328. h.BottomSurface = "Smooth"
  329. h.Transparency = 0
  330. h.Reflectance = 0
  331. ---------------------mesh
  332. m = Instance.new("BlockMesh")
  333. m.Parent = h
  334. m.Scale = Vector3.new(1.1, 1.1, 1.1)
  335. -----------------------------------------weldling
  336. w1 = Instance.new("Weld")
  337. w1.Parent = Workspace.Gaminhyena.Torso
  338. w1.Part0 = h
  339. w1.Part1 = Workspace.Gaminhyena.Torso
  340. w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(1.5, -1.5, -1)
  341.  
  342. local h = Instance.new("Part")
  343. h.Name = "Handle"
  344. h.Parent = Workspace.Gaminhyena
  345. h.Size = Vector3.new(2,3,1)
  346. h.formFactor = "Brick"
  347. h.BrickColor = BrickColor.new("Really black")
  348. h.TopSurface = "Smooth"
  349. h.BottomSurface = "Smooth"
  350. h.Transparency = 0
  351. h:BreakJoints()
  352. h.Reflectance = 0
  353. ---------------------mesh
  354. m = Instance.new("BlockMesh")
  355. m.Parent = h
  356. m.Scale = Vector3.new(1.1, 1.1, 1.1)
  357. -----------------------------------------weldling
  358. w1 = Instance.new("Weld")
  359. w1.Parent = Workspace.Gaminhyena.Torso
  360. w1.Part0 = h
  361. w1.Part1 = Workspace.Gaminhyena.Torso
  362. w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(-1.5, -1.5, -1)
  363.  
  364.  
  365. local h = Instance.new("Part")
  366. h.Name = "Handle"
  367. h.Parent = Workspace.Gaminhyena
  368. h.Size = Vector3.new(2,3,1)
  369. h.formFactor = "Brick"
  370. h.BrickColor = BrickColor.new("Really black")
  371. h.TopSurface = "Smooth"
  372. h.BottomSurface = "Smooth"
  373. h.Transparency = 0
  374. h:BreakJoints()
  375. h.Reflectance = 0
  376. ---------------------mesh
  377. m = Instance.new("BlockMesh")
  378. m.Parent = h
  379. m.Scale = Vector3.new(1.1, 1.1, 1.1)
  380. -----------------------------------------weldling
  381. w1 = Instance.new("Weld")
  382. w1.Parent = Workspace.Gaminhyena.Torso
  383. w1.Part0 = h
  384. w1.Part1 = Workspace.Gaminhyena.Torso
  385. w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(3.5, -3.5, -1)
  386.  
  387. local h = Instance.new("Part")
  388. h.Name = "Handle"
  389. h.Parent = Workspace.Gaminhyena
  390. h.Size = Vector3.new(2,3,1)
  391. h.formFactor = "Brick"
  392. h.BrickColor = BrickColor.new("Really black")
  393. h.TopSurface = "Smooth"
  394. h.BottomSurface = "Smooth"
  395. h.Transparency = 0
  396. h.Reflectance = 0
  397. h:BreakJoints()
  398. ---------------------mesh
  399. m = Instance.new("BlockMesh")
  400. m.Parent = h
  401. m.Scale = Vector3.new(1.1, 1.1, 1.1)
  402. -----------------------------------------weldling
  403. w1 = Instance.new("Weld")
  404. w1.Parent = Workspace.Gaminhyena.Torso
  405. w1.Part0 = h
  406. w1.Part1 = Workspace.Gaminhyena.Torso
  407. w1.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(-3.5, -3.5, -1)
  408.  
  409. t = Instance.new("Tool")
  410. t.Parent = game.Players.Gaminhyena.Backpack
  411. t.Name = "Devil"
  412.  
  413. local handlee = Instance.new("Part")
  414. handlee.Name = "Handle"
  415. handlee.Parent = t
  416. handlee.Shape = "Ball"
  417. handlee.BrickColor = BrickColor.new("New Yeller")
  418. handlee.Size = Vector3.new(1, 1, 1)
  419. handlee.TopSurface = "Smooth"
  420. handlee.BottomSurface = "Smooth"
  421. handlee.Transparency = 0
  422. handlee.Reflectance = 0
  423. -----------------------------------------mesh
  424. m = Instance.new("BlockMesh")
  425. m.Parent = handlee
  426. m.Scale = Vector3.new(0.5, 1.0, 0.5)
  427. -----------------------------------------Brick2
  428. local brick3 = Instance.new("Part")
  429. brick3.Name = "Part"
  430. brick3.Parent = t
  431. brick3.formFactor = "Plate"
  432. brick3.BrickColor = BrickColor.new("Neon orange")
  433. brick3.Size = Vector3.new(2, 1, 1)
  434. brick3.TopSurface = "Smooth"
  435. brick3.BottomSurface = "Smooth"
  436. brick3.Transparency = 0
  437. brick3.Reflectance = 0
  438. -----------------------------------------mesh
  439. m = Instance.new("CylinderMesh")
  440. m.Parent = brick3
  441. m.Scale = Vector3.new(1.4, 0.3, 1.4)
  442. -----------------------------------------weld
  443. w2 = Instance.new("Weld")
  444. w2.Parent = handlee
  445. w2.Part0 = brick3
  446. w2.Part1 = handlee
  447. w2.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, -2, 0)
  448. -----------------------------------------Brick2
  449. local brick2 = Instance.new("Part")
  450. brick2.Name = "Part"
  451. brick2.Parent = t
  452. brick2.formFactor = "Plate"
  453. brick2.BrickColor = BrickColor.new("Bright red")
  454. brick2.Size = Vector3.new(1, 1, 1)
  455. brick2.TopSurface = "Smooth"
  456. brick2.BottomSurface = "Smooth"
  457. brick2.Transparency = 0.5
  458. brick2.Reflectance = 0
  459. -----------------------------------------mesh
  460. m = Instance.new("CylinderMesh")
  461. m.Parent = brick2
  462. m.Scale = Vector3.new(5, 10000, 5)
  463. m.Offset = Vector3.new(0, -5000, 0)
  464. -----------------------------------------weld
  465. w2 = Instance.new("Weld")
  466. w2.Parent = handlee
  467. w2.Part0 = brick2
  468. w2.Part1 = handlee
  469. w2.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, -2, 0)
  470.  
  471. ---------------------Part 2
  472. ---------------------Part 2
  473. ---------------------Part 2
  474.  
  475. r = game:service("RunService")
  476.  
  477.  
  478. local damage = 100000
  479.  
  480.  
  481. local slash_damage = 100000
  482.  
  483.  
  484. sword = brick3
  485. Tool = t
  486.  
  487. function attack()
  488. local anim = Instance.new("StringValue")
  489. anim.Name = "toolanim"
  490. anim.Value = "Slash"
  491. anim.Parent = Tool
  492. end
  493.  
  494.  
  495. function swordUp()
  496. Tool.GripForward = Vector3.new(-1,0,0)
  497. Tool.GripRight = Vector3.new(0,1,0)
  498. Tool.GripUp = Vector3.new(0,0,1)
  499. end
  500.  
  501. function swordOut()
  502. Tool.GripForward = Vector3.new(0,0,1)
  503. Tool.GripRight = Vector3.new(0,-1,0)
  504. Tool.GripUp = Vector3.new(-1,0,0)
  505. end
  506.  
  507.  
  508.  
  509. Tool.Enabled = true
  510.  
  511. function onActivated()
  512.  
  513. if not Tool.Enabled then
  514. return
  515. end
  516.  
  517. Tool.Enabled = false
  518.  
  519. local character = Tool.Parent;
  520. local humanoid = character.Humanoid
  521. if humanoid == nil then
  522. print("Humanoid not found")
  523. return
  524. end
  525.  
  526.  
  527.  
  528. attack()
  529.  
  530. wait()
  531.  
  532. Tool.Enabled = true
  533. end
  534.  
  535.  
  536. function onEquipped()
  537.  
  538. end
  539.  
  540.  
  541. ------part 3
  542. ------part 3
  543. ------part 3
  544. function onTouched(hit)
  545. h = hit.Parent:findFirstChild("Humanoid")
  546. if h ~= nil then
  547. h.Health = 0
  548. end
  549. end
  550.  
  551.  
  552. Tool.Activated:connect(onActivated)
  553. Tool.Equipped:connect(onEquipped)
  554. sword.Touched:connect(onTouched)
  555.  
  556. t = Instance.new("Tool")
  557. t.Parent = game.Players.Gaminhyena.Backpack
  558. t.Name = "Claw"
  559.  
  560. local handlee = Instance.new("Part")
  561. handlee.Name = "Handle"
  562. handlee.Parent = t
  563. handlee.BrickColor = BrickColor.new("Really black")
  564. handlee.Size = Vector3.new(1, 1, 2)
  565. handlee.TopSurface = "Smooth"
  566. handlee.BottomSurface = "Smooth"
  567. handlee.Transparency = 0
  568. handlee.Reflectance = 0
  569. -----------------------------------------mesh
  570. m = Instance.new("BlockMesh")
  571. m.Parent = handlee
  572. m.Scale = Vector3.new(0.2, 0.2, 1)
  573. -----------------------------------------Brick2
  574. local brick3 = Instance.new("Part")
  575. brick3.Name = "Part"
  576. brick3.Parent = t
  577. brick3.formFactor = "Plate"
  578. brick3.BrickColor = BrickColor.new("Really black")
  579. brick3.Size = Vector3.new(1, 1, 2)
  580. brick3.TopSurface = "Smooth"
  581. brick3.BottomSurface = "Smooth"
  582. brick3.Transparency = 0
  583. brick3.Reflectance = 0
  584. -----------------------------------------mesh
  585. m = Instance.new("BlockMesh")
  586. m.Parent = brick3
  587. m.Scale = Vector3.new(0.2, 0.2, 1)
  588. -----------------------------------------weld
  589. w2 = Instance.new("Weld")
  590. w2.Parent = handlee
  591. w2.Part0 = brick3
  592. w2.Part1 = handlee
  593. w2.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(-0.3, 0, 0)
  594. -----------------------------------------Brick2
  595. local brick4 = Instance.new("Part")
  596. brick4.Name = "Part"
  597. brick4.Parent = t
  598. brick4.formFactor = "Plate"
  599. brick4.BrickColor = BrickColor.new("Really black")
  600. brick4.Size = Vector3.new(1, 1, 2)
  601. brick4.TopSurface = "Smooth"
  602. brick4.BottomSurface = "Smooth"
  603. brick4.Transparency = 0
  604. brick4.Reflectance = 0
  605. -----------------------------------------mesh
  606. m = Instance.new("BlockMesh")
  607. m.Parent = brick4
  608. m.Scale = Vector3.new(0.2, 0.2, 1)
  609. -----------------------------------------weld
  610. w2 = Instance.new("Weld")
  611. w2.Parent = handlee
  612. w2.Part0 = brick4
  613. w2.Part1 = handlee
  614. w2.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0.3, 0, 0)
  615.  
  616. ---------------------Part 2
  617. ---------------------Part 2
  618. ---------------------Part 2
  619.  
  620. r = game:service("RunService")
  621.  
  622.  
  623. local damage = 100000
  624.  
  625.  
  626. local slash_damage = 100000
  627.  
  628.  
  629. sword = brick4
  630. Tool = t
  631.  
  632. function attack()
  633. local anim = Instance.new("StringValue")
  634. anim.Name = "toolanim"
  635. anim.Value = "Slash"
  636. anim.Parent = Tool
  637. end
  638.  
  639.  
  640. function swordUp()
  641. Tool.GripForward = Vector3.new(-1,0,0)
  642. Tool.GripRight = Vector3.new(0,1,0)
  643. Tool.GripUp = Vector3.new(0,0,1)
  644. end
  645.  
  646. function swordOut()
  647. Tool.GripForward = Vector3.new(0,0,1)
  648. Tool.GripRight = Vector3.new(0,-1,0)
  649. Tool.GripUp = Vector3.new(-1,0,0)
  650. end
  651.  
  652.  
  653.  
  654. Tool.Enabled = true
  655.  
  656. function onActivated()
  657.  
  658. if not Tool.Enabled then
  659. return
  660. end
  661.  
  662. Tool.Enabled = false
  663.  
  664. local character = Tool.Parent;
  665. local humanoid = character.Humanoid
  666. if humanoid == nil then
  667. print("Humanoid not found")
  668. return
  669. end
  670.  
  671.  
  672.  
  673. attack()
  674.  
  675. wait()
  676.  
  677. Tool.Enabled = true
  678. end
  679.  
  680.  
  681. function onEquipped()
  682.  
  683. end
  684.  
  685.  
  686. ------part 3
  687. ------part 3
  688. ------part 3
  689. function onTouched(hit)
  690. h = hit.Parent:findFirstChild("Humanoid")
  691. if h ~= nil then
  692. h:TakeDamage(25)
  693. end
  694. end
  695.  
  696.  
  697. Tool.Activated:connect(onActivated)
  698. Tool.Equipped:connect(onEquipped)
  699. sword.Touched:connect(onTouched)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement