Advertisement
Guest User

Untitled

a guest
Dec 10th, 2019
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.30 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE script by divcore")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  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 Mouse = Player:GetMouse()
  66. local UIS = game:GetService("UserInputService")
  67. local input = function(io,a)
  68. if a then return end
  69. --Since InputObject is a client-side instance, we create and pass table instead
  70. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  71. end
  72. UIS.InputBegan:Connect(input)
  73. UIS.InputEnded:Connect(input)
  74.  
  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.  
  85. ----Sandboxed game object that allows the usage of client-side methods and services
  86. --Real game object
  87. local _rg = game
  88.  
  89. --Metatable for fake service
  90. local fsmt = {
  91. __index = function(self,k)
  92. local s = rawget(self,"_RealService")
  93. if s then return s[k] end
  94. end,
  95. __newindex = function(self,k,v)
  96. local s = rawget(self,"_RealService")
  97. if s then s[k]=v end
  98. end,
  99. __call = function(self,...)
  100. local s = rawget(self,"_RealService")
  101. if s then return s(...) end
  102. end
  103. }
  104. local function FakeService(t,RealService)
  105. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  106. return setmetatable(t,fsmt)
  107. end
  108.  
  109. --Fake game object
  110. local g = {
  111. GetService = function(self,s)
  112. return self[s]
  113. end,
  114. Players = FakeService({
  115. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  116. },"Players"),
  117. UserInputService = FakeService(UIS,"UserInputService"),
  118. ContextActionService = FakeService(CAS,"ContextActionService"),
  119. }
  120. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  121. g.service = g.GetService
  122.  
  123. g.RunService = FakeService({
  124. RenderStepped = _rg:GetService("RunService").Heartbeat,
  125. BindToRenderStep = function(self,name,_,fun)
  126.  
  127. end,
  128. UnbindFromRenderStep = function(self,name)
  129. self._btrs[name]:Disconnect()
  130. end,
  131. },"RunService")
  132.  
  133. setmetatable(g,{
  134. __index=function(self,s)
  135. return _rg:GetService(s) or typeof(_rg[s])=="function"
  136. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  137. end,
  138. __newindex = fsmt.__newindex,
  139. __call = fsmt.__call
  140. })
  141. --Changing owner to fake player object to support owner:GetMouse()
  142. game,owner = g,g.Players.LocalPlayer
  143. end
  144.  
  145. Bp = game.Players.LocalPlayer.Backpack
  146. jun = Bp.Parent
  147. local o = 0
  148.  
  149. BlastRing = Instance.new("Part")
  150. BlastRing.Parent = game.Lighting
  151. BlastRing.Name = "BlastRing"
  152. BlastRing.formFactor = "Symmetric"
  153. BlastRing.Size = Vector3.new(0, 0, 0)
  154. BlastRing.CanCollide = false
  155. BlastRing.TopSurface = "Smooth"
  156. BlastRing.BottomSurface = "Smooth"
  157. BlastRing.BrickColor = BrickColor.new("Really red")
  158. BlastRing.Reflectance = 0
  159. BlastRing.Anchored = true
  160. Mesh2 = Instance.new("SpecialMesh")
  161. Mesh2.Parent = BlastRing
  162. Mesh2.MeshType = "FileMesh"
  163. Mesh2.MeshId = "http://www.roblox.com/Asset/?id=9982590"
  164. Mesh2.Scale = Vector3.new(1, 1, 1)
  165.  
  166. ExsplosionRing = Instance.new("Part")
  167. ExsplosionRing.Parent = game.Lighting
  168. ExsplosionRing.Name = "Explosion Ring"
  169. ExsplosionRing.formFactor = "Symmetric"
  170. ExsplosionRing.Size = Vector3.new(0, 0, 0)
  171. ExsplosionRing.CanCollide = false
  172. ExsplosionRing.TopSurface = "Smooth"
  173. ExsplosionRing.BottomSurface = "Smooth"
  174. ExsplosionRing.BrickColor = BrickColor.new("Black")
  175. ExsplosionRing.Transparency = 0.3
  176. ExsplosionRing.Reflectance = 0
  177. ExsplosionRing.Anchored = true
  178. Mesh3 = Instance.new("SpecialMesh")
  179. Mesh3.Parent = ExsplosionRing
  180. Mesh3.MeshType = "FileMesh"
  181. Mesh3.MeshId = "http://www.roblox.com/Asset/?id=20329976"
  182. Mesh3.Scale = Vector3.new(1, 1, 1)
  183. Mesh3.Offset = Vector3.new(0,-2,0)
  184.  
  185.  
  186. jun.Character.Humanoid.WalkSpeed = 0
  187.  
  188. blastring2 = BlastRing:clone()
  189. blastring2.Parent = jun.Character
  190. blastring2.Position = jun.Character.Torso.Position
  191. blastring2.BrickColor = BrickColor.new("Really red")
  192. blastring2.Transparency = 0.5
  193. blastring2.Reflectance = 0
  194.  
  195. mk = Instance.new("Sound",blastring2)
  196. mk.Volume = 1
  197. mk.SoundId = "http://www.roblox.com/Asset?ID=211422742"
  198. mk:Play()
  199.  
  200. c = Instance.new("Sound",blastring2)
  201. c.Volume = 1
  202. c.SoundId = "http://www.roblox.com/Asset?ID=244578827"
  203. c:Play()
  204.  
  205. for i = 1, 50 do
  206. wait(0.03)
  207. blastring2.Mesh.Scale = blastring2.Mesh.Scale + Vector3.new(0.1, 0.1, 0.1)
  208. blastring2.Transparency = blastring2.Transparency + 0.01
  209. end
  210.  
  211. blastring3 = ExsplosionRing:clone()
  212. blastring3.Parent = jun.Character
  213. blastring3.Position = jun.Character.Torso.Position
  214. blastring3.BrickColor = BrickColor.new("Black")
  215. blastring3.Transparency = 0.3
  216. blastring3.Reflectance = 0
  217.  
  218. p = Instance.new("Sound",blastring3)
  219. p.Volume = 1
  220. p.SoundId = "http://www.roblox.com/Asset?ID=180120107"
  221.  
  222. for i = 1, 50 do
  223. wait(0.03)
  224. blastring3.Mesh.Scale = blastring3.Mesh.Scale + Vector3.new(0.1, 0.1, 0.1)
  225. blastring3.Transparency = blastring3.Transparency + 0.01
  226. end
  227. c:Stop()
  228. wait(.5)
  229. mk:Stop()
  230. p:Play()
  231. blastring2:remove()
  232. blastring3:Destroy()
  233.  
  234. game.Players.LocalPlayer.Character.Torso.BrickColor = BrickColor.new("Dark stone grey")
  235. game.Players.LocalPlayer.Character['Right Arm'].BrickColor = BrickColor.new("Dark stone grey")
  236. game.Players.LocalPlayer.Character['Left Arm'].BrickColor = BrickColor.new("Dark stone grey")
  237. game.Players.LocalPlayer.Character['Right Leg'].BrickColor = BrickColor.new("Dark stone grey")
  238. game.Players.LocalPlayer.Character['Left Leg'].BrickColor = BrickColor.new("Dark stone grey")
  239. game.Players.LocalPlayer.Character.Head.BrickColor = BrickColor.new("Dark stone grey")
  240. game.Players.LocalPlayer.Character["Body Colors"].HeadColor = BrickColor.new("Dark stone grey")
  241. game.Players.LocalPlayer.Character["Body Colors"].LeftArmColor = BrickColor.new("Dark stone grey")
  242. game.Players.LocalPlayer.Character["Body Colors"].RightArmColor = BrickColor.new("Dark stone grey")
  243. game.Players.LocalPlayer.Character["Body Colors"].LeftLegColor = BrickColor.new("Dark stone grey")
  244. game.Players.LocalPlayer.Character["Body Colors"].RightLegColor = BrickColor.new("Dark stone grey")
  245. game.Players.LocalPlayer.Character["Body Colors"].TorsoColor = BrickColor.new("Dark stone grey")
  246. for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  247. if v.ClassName == "Hat" then
  248. v:Destroy()
  249. end
  250. end
  251. for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  252. if v.ClassName == "Shirt" then
  253. v:Destroy()
  254. end
  255. end
  256. for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  257. if v.ClassName == "Pants" then
  258. v:Destroy()
  259. end
  260. end
  261. for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  262. if v.ClassName == "ShirtGraphic" then
  263. v:Destroy()
  264. end
  265. end
  266. st = Instance.new("Shirt",game.Players.LocalPlayer.Character)
  267. st.ShirtTemplate = "http://www.roblox.com/asset/?id=146541677"
  268. pt = Instance.new("Pants",game.Players.LocalPlayer.Character)
  269. pt.PantsTemplate = "http://www.roblox.com/asset/?id=146542180"
  270. sg = Instance.new("ShirtGraphic",game.Players.LocalPlayer.Character)
  271. sg.Graphic = "http://www.roblox.com/asset/?id=273262785"
  272. wait(.5)
  273. game.Players.LocalPlayer.Character.Humanoid.MaxHealth = 21e8
  274. wait(.5)
  275. game.Players.LocalPlayer.Character.Humanoid.Health = 21e8
  276. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 32
  277.  
  278. local Reaper = AddInstance("Part",{
  279. Parent = hed,
  280. CFrame = hed.CFrame,
  281. formFactor = "Symmetric",
  282. Size = Vector3.new(1, 1, 1),
  283. CanCollide = false,
  284. TopSurface = "Smooth",
  285. BottomSurface = "Smooth",
  286. Locked = true,
  287. Transparency = "1"
  288. })
  289. local Weld = AddInstance("Weld",{
  290. Parent = Reaper,
  291. Part0 = hed,
  292. C0 = CFrame.new(0, 1, 0)*CFrame.Angles(0, 0, 0),
  293. Part1 = Reaper,
  294. })
  295. local Mesh = AddInstance("SpecialMesh",{
  296. Parent = Reaper,
  297. MeshId = "rbxassetid://16150814",
  298. TextureId = "rbxassetid://16150799",
  299. Scale = Vector3.new(1 ,1 ,1),
  300. VertexColor = Vector3.new(1, 1, 1),
  301. })
  302.  
  303. bill = Instance.new("BillboardGui", game.Players.LocalPlayer.Character.Head)
  304. bill.Size = UDim2.new(4, 0, 4.5, 0)
  305. bill.AlwaysOnTop = true
  306.  
  307. label = Instance.new("TextLabel", bill)
  308. label.Size = UDim2.new(2, 0, 1, 0)
  309. label.Position = UDim2.new(-0.5, 0, -0.5, 0)
  310. label.BackgroundTransparency = 1
  311. label.FontSize = "Size14"
  312. label.TextColor3 = Color3.new(170, 0, 0)
  313. label.TextStrokeColor3 = Color3.new(0 ,0 ,0)
  314. label.TextStrokeTransparency = 0
  315. label.Text = "Grim Reaper"
  316.  
  317. Stick = Instance.new("Tool", Bp)
  318. Stick.Name = "Scythe"
  319. Stick.GripPos = Vector3.new(0,0.1,0.7)
  320. Stick.GripForward = Vector3.new(0.1,-1,0)
  321. Stick.GripRight = Vector3.new(-0.5,0.01,0)
  322. Stick.GripUp = Vector3.new(0,0,1)
  323. Stick.CanBeDropped = false
  324.  
  325. Handle = Instance.new("Part", Stick)
  326. Handle.Name = "Handle"
  327. Handle.Size = Vector3.new(1, 1.2, 5)
  328.  
  329. sm = Instance.new("SpecialMesh",Handle)
  330. sm.MeshId = "http://www.roblox.com/asset/?id=28140935"
  331. sm.TextureId = "http://www.roblox.com/asset/?id=27739981"
  332.  
  333. a = Instance.new("Animation")
  334. a.Parent = game.Workspace
  335. a.Name = "Slash"
  336. a.AnimationId = "http://www.roblox.com/Asset?ID=28090109"
  337.  
  338. v = Instance.new("StringValue")
  339. v.Parent = game.Players.LocalPlayer.Backpack.Scythe
  340. v.Name = "name"
  341. v.Value = "Slash"
  342.  
  343. anime = Bp.Scythe.name.Value
  344.  
  345. s = Instance.new("Sound",Stick)
  346. s.Volume = 1
  347. s.SoundId = "http://www.roblox.com/Asset?ID=220834000"
  348.  
  349. q = Instance.new("Sound",Stick)
  350. q.Volume = 1
  351. q.SoundId = "http://www.roblox.com/Asset?ID=264486467"
  352.  
  353. f = Instance.new("Sound",Stick)
  354. f.Volume = 1
  355. f.SoundId = "http://www.roblox.com/Asset?ID=178038408"
  356.  
  357. z = Instance.new("Sound",Stick)
  358. z.Volume = 1
  359. z.SoundId = "http://www.roblox.com/Asset?ID=174048316"
  360.  
  361. t = Instance.new("Sound",Stick)
  362. t.Volume = 1
  363. t.SoundId = "http://www.roblox.com/Asset?ID=151710120"
  364.  
  365. gg = Instance.new("Sound",Stick)
  366. gg.Volume = 1
  367. gg.SoundId = "http://www.roblox.com/Asset?ID=142392721"
  368.  
  369. l = Instance.new("Sound",Stick)
  370. l.Volume = 1
  371. l.SoundId = "http://www.roblox.com/Asset?ID=158012252"
  372.  
  373. k = Instance.new("Sound",Stick)
  374. k.Volume = 1
  375. k.SoundId = "http://www.roblox.com/Asset?ID=148348789"
  376.  
  377. j = Instance.new("Sound",Stick)
  378. j.Volume = 1
  379. j.SoundId = "http://www.roblox.com/Asset?ID=148348855"
  380.  
  381. u = Instance.new("Sound",Stick)
  382. u.Volume = 1
  383. u.SoundId = "http://www.roblox.com/Asset?ID=151710118"
  384.  
  385. i = Instance.new("Sound",Stick)
  386. i.Volume = 1
  387. i.SoundId = "http://www.roblox.com/Asset?ID=271787865"
  388.  
  389. qq = Instance.new("Sound",Stick)
  390. qq.Volume = 1
  391. qq.SoundId = "http://www.roblox.com/Asset?ID=131076695"
  392.  
  393. function onChatted(msg)
  394. if msg == "death" then
  395. for i,v in pairs(game.Players:GetChildren()) do
  396. v.Character.Humanoid.Health = v.Character.Humanoid.Health-1000
  397. end
  398. end
  399. end
  400. game.Players.LocalPlayer.Chatted:connect(onChatted)
  401.  
  402. Bp.Scythe.Equipped:connect(function(m)
  403. f:Play()
  404. wait(4.5)
  405. z:Play()
  406. m.Button1Down:connect(function()
  407. hum = game.Players.LocalPlayer.Character.Humanoid
  408. anim_feet = hum:LoadAnimation(game.Workspace.Slash)
  409. current = anim_feet
  410. current:Play()
  411. s:Play()
  412. wait(.5)
  413. s:Play()
  414. wait(.5)
  415. s:Play()
  416. end)
  417. end)
  418.  
  419. Bp.Scythe.Unequipped:connect(function(m)
  420. f:Stop()
  421. z:Stop()
  422. o = 0
  423. end)
  424.  
  425. mouse = game.Players.LocalPlayer:GetMouse()
  426. function onKeyed(key)
  427. if key == "f" then
  428. left = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]
  429. for i = 1, 15 do
  430. left.C0 = left.C0 *CFrame.Angles(0,0,-0.1)
  431. wait(0.025)
  432. end
  433. de = Instance.new("Part", game.Players.LocalPlayer.Character["Left Arm"])
  434. de.Transparency = 1
  435. de.CanCollide = false
  436. de.CFrame = game.Players.LocalPlayer.Character["Left Arm"].CFrame*CFrame.new(0,-2,0)
  437. fe = Instance.new("Fire", de)
  438. fe.Color = Color3.new(0,0,0)
  439. fe.Heat = 5
  440. fe.SecondaryColor = Color3.new(90,90,90)
  441. fe.Size = 3
  442. be = Instance.new("BodyVelocity", de)
  443. be.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  444. be.velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*20
  445. for i = 1, 15 do
  446. left.C0 = left.C0 *CFrame.Angles(0,0,0.1)
  447. wait(0.025)
  448. end
  449. function onTouched(hit)
  450. local humanoid = hit.Parent:findFirstChild("Humanoid")
  451. if (humanoid ~=nil) then
  452. hit.Parent.Humanoid.Health = 0
  453. de:Destroy()
  454. end
  455. end
  456. de.Touched:connect(onTouched)
  457. wait(15)
  458. de:Destroy()
  459. end
  460. end
  461. mouse.KeyDown:connect(onKeyed)
  462.  
  463. mouse = game.Players.LocalPlayer:GetMouse()
  464. function onKeyed(key)
  465. if key == "g" then
  466. game.Players.LocalPlayer.Character["Right Arm"].Anchored = true
  467. game.Players.LocalPlayer.Character["Left Arm"].Anchored = true
  468. game.Players.LocalPlayer.Character["Right Leg"].Anchored = true
  469. game.Players.LocalPlayer.Character["Left Leg"].Anchored = true
  470. game.Players.LocalPlayer.Character.Torso.Anchored = true
  471. game.Players.LocalPlayer.Character.Head.Anchored = true
  472. for i = 1, 60 do
  473. Handle.CFrame = Handle.CFrame * CFrame.fromEulerAnglesXYZ(0,0.5,0)
  474. Handle.CFrame = Handle.CFrame * CFrame.new(0,-1.5,0)
  475. wait(0.02)
  476. end
  477. for i = 1, 60 do
  478. Handle.CFrame = Handle.CFrame * CFrame.fromEulerAnglesXYZ(0,-0.5,0)
  479. Handle.CFrame = Handle.CFrame * CFrame.new(0,1.5,0)
  480. wait(0.02)
  481. end
  482. wait(.5)
  483. game.Players.LocalPlayer.Character["Right Arm"].Anchored = false
  484. game.Players.LocalPlayer.Character["Left Arm"].Anchored = false
  485. game.Players.LocalPlayer.Character["Right Leg"].Anchored = false
  486. game.Players.LocalPlayer.Character["Left Leg"].Anchored = false
  487. game.Players.LocalPlayer.Character.Torso.Anchored = false
  488. game.Players.LocalPlayer.Character.Head.Anchored = false
  489. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 32
  490. end
  491. end
  492. mouse.KeyDown:connect(onKeyed)
  493.  
  494. local color1 = Color3.new(86, 86, 86)
  495. local color2 = Color3.new(255, 255, 255)
  496. local sequence = ColorSequence.new(color1,color2)
  497. function onTouch(part)
  498. local humanoid = part.Parent:findFirstChild("Humanoid")
  499. if (humanoid ~=nil) then
  500. if part.Parent.Name == game.Players.LocalPlayer.Name then
  501. print("Can't Kill Owner")
  502. else
  503. q:Play()
  504. z:Stop()
  505. pe = Instance.new("ParticleEmitter",part.Parent.Torso)
  506. pe.Texture = "http://www.roblox.com/asset/?id=251300537"
  507. pe.Acceleration = Vector3.new(0,-10,0)
  508. pe.Rate = 20
  509. pe.Color = sequence
  510. humanoid.Health = 0
  511. local g = part.Parent.Torso:findFirstChild("Ghost")
  512. if g then
  513. print('Ghost Already Exists')
  514. else
  515. o = o+1
  516. if o == 5 then
  517. l:Play()
  518. end
  519. if o == 1 then
  520. gg:Play()
  521. end
  522. if o == 3 then
  523. t:Play()
  524. end
  525. if o == 10 then
  526. k:Play()
  527. end
  528. if o == 15 then
  529. j:Play()
  530. end
  531. if o == 2 then
  532. u:Play()
  533. end
  534. if o == 8 then
  535. i:Play()
  536. end
  537. if o == 13 then
  538. qq:Play()
  539. end
  540. pe = Instance.new("Part",part.Parent.Torso)
  541. pe.Position = part.Parent.Torso.Position
  542. pe.Name = "Ghost"
  543. pe.CanCollide = false
  544. sp = Instance.new("SpecialMesh",pe)
  545. sp.MeshId = "http://www.roblox.com/asset/?id=64445076"
  546. sp.TextureId = "http://www.roblox.com/asset/?id=64445059"
  547. bv = Instance.new("BodyVelocity",pe)
  548. bv.velocity = Vector3.new(0,4,0)
  549. wait(1)
  550. pe:Destroy()
  551. end
  552. end
  553. end
  554. end
  555. Bp.Scythe.Handle.Touched:connect(onTouch)
  556.  
  557. local mouse = game.Players.LocalPlayer:GetMouse()
  558. lp = game.Players.LocalPlayer
  559. lpc = game.Players.LocalPlayer.Character
  560.  
  561. local shock = Instance.new("Sound", lpc["Left Arm"])
  562. shock.Volume = 1
  563. shock.SoundId = "http://www.roblox.com/asset/?id=184211520"
  564.  
  565. fire = false
  566. fired = 0
  567.  
  568. mouse.Button2Down:connect(function(click)
  569. orb = Instance.new("Part", lpc)
  570. orb.Name = "orb"
  571. orb.Shape = "Ball"
  572. orb.Size = Vector3.new(1.47, 1.47, 1.47)
  573. orb.BrickColor = BrickColor.new("Really black")
  574. orb.Transparency = 0.3
  575.  
  576. local w = Instance.new("Weld", orb)
  577. w.Part0 = orb
  578. w.Part1 = lpc["Left Arm"]
  579. w.C0 = CFrame.new(0,1,0)
  580.  
  581. fire = true
  582. while fire do
  583. fired = fired+1
  584.  
  585. if fired == 30 then
  586. fired = 0
  587. for i,v in pairs(game.Workspace:GetChildren()) do
  588. if v.Name == "strike" then
  589. v:Destroy()
  590. end
  591. end
  592. end
  593.  
  594. wait(0)
  595. local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 300)
  596. local part, position = workspace:FindPartOnRay(ray, lp.Character, false, true)
  597.  
  598. local strike = Instance.new("Part", workspace)
  599. strike.BrickColor = BrickColor.new("Really black")
  600. strike.FormFactor = "Custom"
  601. strike.Transparency = 0.25
  602. strike.Name = "strike"
  603. strike.BottomSurface = "Smooth"
  604. strike.TopSurface = "Smooth"
  605. strike.Anchored = true
  606. strike.Locked = true
  607. strike.CanCollide = false
  608.  
  609. local distance = (orb.CFrame.p - position).magnitude
  610. strike.Size = Vector3.new(0.3, 0.3, distance)
  611. strike.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  612. shock:Stop()
  613. shock:Play()
  614.  
  615. game:GetService("Debris"):AddItem(strike, 0.1)
  616.  
  617. if part then
  618. local humanoid = part.Parent:FindFirstChild("Humanoid")
  619.  
  620. if not humanoid then
  621. humanoid = part.Parent.Parent:FindFirstChild("Humanoid")
  622. end
  623.  
  624. if humanoid then
  625. humanoid:TakeDamage(2)
  626. end
  627. end
  628. end
  629. end)
  630.  
  631. mouse.Button2Up:connect(function(click)
  632. orb:Destroy()
  633. fire = false
  634. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement