Advertisement
Guest User

Untitled

a guest
Jan 24th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.44 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6. print("FE Compatibility code V2 by Mokiros")
  7. local RealPlayer = RealPlayer
  8. script.Parent = RealPlayer.Character
  9.  
  10. --Fake event to make stuff like Mouse.KeyDown work
  11. local Disconnect_Function = function(this)
  12. this[1].Functions[this[2]] = nil
  13. end
  14. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  15. local FakeEvent_Metatable = {__index={
  16. Connect = function(this,f)
  17. local i = tostring(math.random(0,10000))
  18. while this.Functions[i] do
  19. i = tostring(math.random(0,10000))
  20. end
  21. this.Functions[i] = f
  22. return setmetatable({this,i},Disconnect_Metatable)
  23. end
  24. }}
  25. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  26. local function fakeEvent()
  27. return setmetatable({Functions={}},FakeEvent_Metatable)
  28. end
  29.  
  30. --Creating fake input objects with fake variables
  31. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  32. FakeMouse.keyUp = FakeMouse.KeyUp
  33. FakeMouse.keyDown = FakeMouse.KeyDown
  34. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  35. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  36. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  37. end}
  38. --Merged 2 functions into one by checking amount of arguments
  39. CAS.UnbindAction = CAS.BindAction
  40.  
  41. --This function will trigger the events that have been :Connect()'ed
  42. local function TriggerEvent(self,ev,...)
  43. for _,f in pairs(self[ev].Functions) do
  44. f(...)
  45. end
  46. end
  47. FakeMouse.TriggerEvent = TriggerEvent
  48. UIS.TriggerEvent = TriggerEvent
  49.  
  50. --Client communication
  51. local Event = Instance.new("RemoteEvent")
  52. Event.Name = "UserInput_Event"
  53. Event.OnServerEvent:Connect(function(plr,io)
  54. if plr~=RealPlayer then return end
  55. FakeMouse.Target = io.Target
  56. FakeMouse.Hit = io.Hit
  57. if not io.isMouse then
  58. local b = io.UserInputState == Enum.UserInputState.Begin
  59. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  60. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  61. end
  62. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  63. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  64. end
  65. for _,t in pairs(CAS.Actions) do
  66. for _,k in pairs(t.Keys) do
  67. if k==io.KeyCode then
  68. t.Function(t.Name,io.UserInputState,io)
  69. end
  70. end
  71. end
  72. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  73. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  74. end
  75. end)
  76. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  77. local Mouse = owner:GetMouse()
  78. local UIS = game:GetService("UserInputService")
  79. local input = function(io,RobloxHandled)
  80. if RobloxHandled then return end
  81. --Since InputObject is a client-side instance, we create and pass table instead
  82. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  83. end
  84. UIS.InputBegan:Connect(input)
  85. UIS.InputEnded:Connect(input)
  86. local h,t
  87. --Give the server mouse data every second frame, but only if the values changed
  88. --If player is not moving their mouse, client won't fire events
  89. local HB = game:GetService("RunService").Heartbeat
  90. while true do
  91. if h~=Mouse.Hit or t~=Mouse.Target then
  92. h,t=Mouse.Hit,Mouse.Target
  93. Event:FireServer({isMouse=true,Target=t,Hit=h})
  94. end
  95. --Wait 2 frames
  96. for i=1,2 do
  97. HB:Wait()
  98. end
  99. end]==],script)
  100.  
  101. ----Sandboxed game object that allows the usage of client-side methods and services
  102. --Real game object
  103. local RealGame = game
  104.  
  105. --Metatable for fake service
  106. local FakeService_Metatable = {
  107. __index = function(self,k)
  108. local s = rawget(self,"_RealService")
  109. if s then
  110. return typeof(s[k])=="function"
  111. and function(_,...)return s[k](s,...)end or s[k]
  112. end
  113. end,
  114. __newindex = function(self,k,v)
  115. local s = rawget(self,"_RealService")
  116. if s then s[k]=v end
  117. end
  118. }
  119. local function FakeService(t,RealService)
  120. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  121. return setmetatable(t,FakeService_Metatable)
  122. end
  123.  
  124. --Fake game object
  125. local FakeGame = {
  126. GetService = function(self,s)
  127. return rawget(self,s) or RealGame:GetService(s)
  128. end,
  129. Players = FakeService({
  130. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  131. },"Players"),
  132. UserInputService = FakeService(UIS,"UserInputService"),
  133. ContextActionService = FakeService(CAS,"ContextActionService"),
  134. RunService = FakeService({
  135. _btrs = {},
  136. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  137. BindToRenderStep = function(self,name,_,fun)
  138. self._btrs[name] = self.Heartbeat:Connect(fun)
  139. end,
  140. UnbindFromRenderStep = function(self,name)
  141. self._btrs[name]:Disconnect()
  142. end,
  143. },"RunService")
  144. }
  145. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  146. FakeGame.service = FakeGame.GetService
  147. FakeService(FakeGame,game)
  148. --Changing owner to fake player object to support owner:GetMouse()
  149. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  150. end
  151.  
  152. local player = game.Players.LocalPlayer
  153. local powerlevel = 3
  154. --[[if player:GetRankInGroup(1164009) == 1 or player:IsInGroup(1164002) then -- Group rankings for power levels.
  155. powerlevel = 2
  156. end
  157. if player:GetRankInGroup(1156932) == 15 or player.userId == 18422431 then
  158. powerlevel = 3
  159. end
  160. if player:GetRankInGroup(1156932) >= 16 then
  161. powerlevel = 4
  162. end
  163. if player.userId == -1 then
  164. powerlevel = 3
  165. end]]
  166. repeat wait(0.01) until player.Character
  167. local character = player.Character
  168. local b1d = false
  169. local target = nil
  170. local nbpos = Instance.new("BodyPosition")
  171. nbpos.maxForce = Vector3.new(999999999,999999999,999999999)
  172. local bpos = nil
  173. local dist = 0
  174. local ldebounce = false
  175. local factor = 1
  176. local keys = {}
  177. local LightningBin = nil
  178. local choked = false
  179. function LPart()
  180. local np = Instance.new("Part")
  181. np.Transparency = 1
  182. np.CanCollide = false
  183. np.Anchored = true
  184. np.FormFactor = Enum.FormFactor.Custom
  185. local ntex = Instance.new("Texture",np)
  186. ntex.Shiny = 20
  187. ntex.Specular = 1
  188. ntex.StudsPerTileU = 27
  189. ntex.StudsPerTileV = 6
  190. ntex.Texture = 'rbxassetid://171316532'
  191. ntex.Transparency = 0.1
  192. ntex.Face = "Left"
  193. local ntex2 = Instance.new("Texture",np)
  194. ntex2.Shiny = 20
  195. ntex2.Specular = 1
  196. ntex2.StudsPerTileU = 27
  197. ntex2.StudsPerTileV = 6
  198. ntex2.Texture = 'rbxassetid://171316532'
  199. ntex2.Transparency = 0.1
  200. ntex2.Face = "Right"
  201. return np
  202. end
  203. function Start()
  204. if target then
  205. local startp = target.CFrame.p
  206. if not bpos then
  207. bpos = nbpos:clone()
  208. bpos.Parent = script.Parent
  209. end
  210. if not character:findFirstChild("Torso") then
  211. return
  212. end
  213. if nrw and nlw then
  214. nrw:remove()
  215. nlw:remove()
  216. end
  217. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].Part1 = nil
  218. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].Part1 = nil
  219. nrw = Instance.new("ManualWeld",game.Players.LocalPlayer.Character.Torso)
  220. nrw.Part0 = game.Players.LocalPlayer.Character.Torso
  221. nrw.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  222. nrw.C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0
  223. nrw.C1 = CFrame.new(-.5,.5,0)*CFrame.Angles(0,math.rad(90),math.rad(-90))
  224. nlw = Instance.new("ManualWeld",game.Players.LocalPlayer.Character.Torso)
  225. nlw.Part0 = game.Players.LocalPlayer.Character.Torso
  226. nlw.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  227. nlw.C0 = game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0
  228. nlw.C1 = CFrame.new(.5,.5,0)*CFrame.Angles(0,math.rad(-90),math.rad(90))
  229. dist = (character.Torso.CFrame.p - target.CFrame.p).magnitude
  230. bpos.position = character:findFirstChild("Torso").CFrame.p + player:GetMouse().Hit.lookVector*dist
  231. bpos.Parent = target
  232. local looped = 0
  233. repeat
  234. if not choking then
  235. looped = looped+1/30
  236. if looped >= 5 and target then
  237. if target.Parent:findFirstChild("Humanoid") then
  238. b1d = false
  239. end
  240. end
  241. wait(1/30)
  242. if not character:findFirstChild("Torso") then
  243. return
  244. end
  245. if not bpos then
  246. bpos = nbpos:clone()
  247. bpos.Parent = script.Parent
  248. end
  249. bpos.position = character:findFirstChild("Torso").CFrame.p + player:GetMouse().Hit.lookVector*dist
  250. end
  251. until b1d == false
  252. target = nil
  253. end
  254. if bpos then
  255. bpos.Parent = script.Parent
  256. end
  257. local ya = false
  258. for n,i in pairs(keys) do
  259. if i then
  260. ya = true
  261. end
  262. end
  263. if b1d then ya = true end
  264. if not ya and nrw and nlw then
  265. nrw:remove()
  266. nlw:remove()
  267. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  268. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  269. end
  270. end
  271. function Fire()
  272. if ldebounce then
  273. return
  274. end
  275. ldebounce = true
  276. if not game.Players.LocalPlayer.Character then
  277. ldebounce = false
  278. return
  279. end
  280. repeat
  281. if nrw and nlw then nrw:remove() nlw:remove() end
  282. if not LightningBin then
  283. LightningBin = Instance.new("Model",workspace)
  284. LightningBin.Name = game.Players.LocalPlayer.Name.."'s Lightning Bin"
  285. end
  286. local hit = player:GetMouse().Hit
  287. if target then
  288. hit = target.CFrame
  289. end
  290. hit = CFrame.new(game.Players.LocalPlayer.Character.Torso.CFrame.p,hit.p)*CFrame.new(0,0,-100)
  291. local ray = Ray.new(game.Players.LocalPlayer.Character.Torso.CFrame.p,hit.lookVector*(100))
  292. local phit,hit = workspace:findPartOnRay(ray,game.Players.LocalPlayer.Character)
  293. if phit and phit.Parent and phit.Parent:findFirstChild("Humanoid") then
  294. phit.Parent:findFirstChild("Humanoid"):TakeDamage(3)
  295. end
  296. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].Part1 = nil
  297. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].Part1 = nil
  298. nrw = Instance.new("ManualWeld",game.Players.LocalPlayer.Character.Torso)
  299. nrw.Part0 = game.Players.LocalPlayer.Character.Torso
  300. nrw.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  301. nrw.C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0
  302. nrw.C1 = CFrame.new(-.5,.5,0)*CFrame.Angles(0,math.rad(90),math.rad(-90))
  303. nlw = Instance.new("ManualWeld",game.Players.LocalPlayer.Character.Torso)
  304. nlw.Part0 = game.Players.LocalPlayer.Character.Torso
  305. nlw.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  306. nlw.C0 = game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0
  307. nlw.C1 = CFrame.new(.5,.5,0)*CFrame.Angles(0,math.rad(-90),math.rad(90))
  308. local racf = game.Players.LocalPlayer.Character["Right Arm"].CFrame*CFrame.new(0,-1,0)
  309. local lacf = game.Players.LocalPlayer.Character["Left Arm"].CFrame*CFrame.new(0,-1,0)
  310. for i = 1,2 do
  311. local rand = math.random(2)
  312. local rand2 = math.random(2)
  313. local np = LPart()
  314. np.Size = Vector3.new(0.2,6,(hit-racf.p).magnitude)
  315. local rhit = CFrame.new(hit,racf.p)*CFrame.new(-1.5,0,0)
  316. rhit = rhit.p
  317. np.CFrame = CFrame.new(rhit,racf.p)*CFrame.new(0,0,-(rhit-racf.p).magnitude/2)*CFrame.Angles(math.rad(180*rand2),math.rad(180*rand),math.rad(90*i))
  318. np.Parent = LightningBin
  319. for i2 = 1, math.random(1,2) do
  320. local dist = (rhit-racf.p).magnitude
  321. local nnpos = CFrame.new(rhit,racf.p)*CFrame.new(0,0,-(rhit-racf.p).magnitude/(math.random(13,20)/10))
  322. local roll1 = math.random(-5,5)
  323. local roll2 = math.random(-5,5)
  324. local roll3 = math.random(-45,45)
  325. local roll4 = math.random(-3-dist/30,3+dist/30)
  326. local roll5 = math.random(-3-dist/30,3+dist/30)
  327. local nnp = LPart()
  328. nnp.Size = Vector3.new(0.2,6,(rhit-nnpos.p).magnitude/(math.random(25,40)/10))
  329. nnp.CFrame = nnpos*CFrame.Angles(math.rad(roll1),math.rad(roll2),math.rad(roll3))*CFrame.new(0,0,nnp.Size.Z/2)
  330. local nnpc = nnp:clone()
  331. nnpc.CFrame = nnp.CFrame*CFrame.Angles(math.rad(180*rand2),math.rad(180*rand),math.rad(90*i))
  332. local nnp2 = LPart()
  333. local nnp2origin = nnp.CFrame*CFrame.new(0,0,nnp.Size.Z/2)
  334. nnp2.Size = Vector3.new(0.2,6,(rhit-nnp2origin.p).magnitude)
  335. local nhit = CFrame.new(rhit,racf.p)*CFrame.new(roll4,roll5,0)
  336. nnp2.CFrame = CFrame.new(nnp2origin.p,nhit.p)*CFrame.new(0,0,-nnp2.Size.Z/2)
  337. local nnp2c = nnp2:clone()
  338. nnp2c.CFrame = nnp2.CFrame*CFrame.Angles(math.rad(180*rand2),math.rad(180*rand),math.rad(90*i))
  339. nnp.Parent = LightningBin
  340. nnp2.Parent = LightningBin
  341. nnpc.Parent = LightningBin
  342. nnp2c.Parent = LightningBin
  343. end
  344. local np2 = LPart()
  345. local rand21 = math.random(2)
  346. local rand22 = math.random(2)
  347. local lhit = CFrame.new(hit,lacf.p)*CFrame.new(1.5,0,0)
  348. lhit = lhit.p
  349. np2.Size = Vector3.new(0.2,6,(lhit-lacf.p).magnitude)
  350. np2.CFrame = CFrame.new(lhit,lacf.p)*CFrame.new(0,0,-(lhit-lacf.p).magnitude/2)*CFrame.Angles(math.rad(180*rand22),math.rad(180*rand21),math.rad(90*i))
  351. np2.Parent = LightningBin
  352. for i2 = 1, math.random(1,2) do
  353. local dist = (lhit-racf.p).magnitude
  354. local nnpos = CFrame.new(lhit,lacf.p)*CFrame.new(0,0,-(lhit-lacf.p).magnitude/(math.random(13,20)/10))
  355. local roll1 = math.random(-5,5)
  356. local roll2 = math.random(-5,5)
  357. local roll3 = math.random(-45,45)
  358. local roll4 = math.random(-3-dist/30,3+dist/30)
  359. local roll5 = math.random(-3-dist/30,3+dist/30)
  360. local nnp = LPart()
  361. nnp.Size = Vector3.new(0.2,6,(lhit-nnpos.p).magnitude/(math.random(25,40)/10))
  362. nnp.CFrame = nnpos*CFrame.Angles(math.rad(roll1),math.rad(roll2),math.rad(roll3))*CFrame.new(0,0,nnp.Size.Z/2)
  363. local nnpc = nnp:clone()
  364. nnpc.CFrame = nnp.CFrame*CFrame.Angles(math.rad(180*rand2),math.rad(180*rand),math.rad(90*i))
  365. local nnp2 = LPart()
  366. local nnp2origin = nnp.CFrame*CFrame.new(0,0,nnp.Size.Z/2)
  367. nnp2.Size = Vector3.new(0.2,6,(lhit-nnp2origin.p).magnitude)
  368. local nhit = CFrame.new(lhit,lacf.p)*CFrame.new(roll4,roll5,0)
  369. nnp2.CFrame = CFrame.new(nnp2origin.p,nhit.p)*CFrame.new(0,0,-nnp2.Size.Z/2)
  370. local nnp2c = nnp2:clone()
  371. nnp2c.CFrame = nnp2.CFrame*CFrame.Angles(math.rad(180*rand2),math.rad(180*rand),math.rad(90*i))
  372. nnp.Parent = LightningBin
  373. nnp2.Parent = LightningBin
  374. nnpc.Parent = LightningBin
  375. nnp2c.Parent = LightningBin
  376. end
  377. end
  378. wait(1/10)
  379. for n,i in pairs(LightningBin:GetChildren()) do
  380. i:remove()
  381. end
  382. until not keys["f"]
  383. ldebounce = false
  384. local ya = false
  385. for n,i in pairs(keys) do
  386. if i then
  387. ya = true
  388. end
  389. end
  390. if b1d then ya = true end
  391. if not ya and nrw and nlw then
  392. nrw:remove()
  393. nlw:remove()
  394. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  395. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  396. end
  397. end
  398. function Choke()
  399. if target.Parent:findFirstChild("Humanoid") and target.Parent:findFirstChild("Right Arm") and target.Parent:findFirstChild("Left Arm") and target.Parent:findFirstChild("Torso") then
  400. local targ = target.Parent
  401. targ.Torso["Right Shoulder"].Part1 = nil
  402. targ.Torso["Left Shoulder"].Part1 = nil
  403. local nrw2 = Instance.new("ManualWeld",targ.Torso)
  404. nrw2.Part0 = targ.Torso
  405. nrw2.Part1 = targ["Right Arm"]
  406. nrw2.C0 = targ.Torso["Right Shoulder"].C0
  407. nrw2.C1 = CFrame.new(0.1,0.5,0.5)*CFrame.Angles(0,math.rad(90),0)*CFrame.Angles(math.rad(-110),0,0)*CFrame.Angles(0,0,math.rad(30))
  408. local nlw2 = Instance.new("ManualWeld",targ.Torso)
  409. nlw2.Part0 = targ.Torso
  410. nlw2.Part1 = targ["Left Arm"]
  411. nlw2.C0 = targ.Torso["Left Shoulder"].C0
  412. nlw2.C1 = CFrame.new(-.10,0.5,0.5)*CFrame.Angles(0,math.rad(-90),0)*CFrame.Angles(math.rad(-110),0,0)*CFrame.Angles(0,0,math.rad(-30))
  413. local looped = 0
  414. local choking = true
  415. repeat
  416. looped = looped+1/30
  417. wait(1/30)
  418. targ:findFirstChild("Humanoid"):TakeDamage(.5)
  419. until (not keys["r"] or
  420. not b1d or
  421. not targ:findFirstChild("Humanoid") or
  422. targ.Humanoid.Health <= 0 or
  423. looped > 3)
  424. keys["r"] = false
  425. local choking = false
  426. if nrw2 and nlw2 then
  427. nrw2:remove()
  428. nlw2:remove()
  429. end
  430. targ.Torso["Right Shoulder"].Part1 = targ["Right Arm"]
  431. targ.Torso["Left Shoulder"].Part1 = targ["Left Arm"]
  432. end
  433. end
  434. player:GetMouse().Button1Down:connect(function()
  435. if script.Parent.Active then
  436. choked = false
  437. target = player:GetMouse().Target
  438. if target then
  439. if not character:findFirstChild("Torso") then return end
  440. if (target.CFrame.p - character.Torso.CFrame.p).magnitude > 10 and powerlevel == 1 then return end
  441. if (target.CFrame.p - character.Torso.CFrame.p).magnitude > 100 and (powerlevel == 2 or powerlevel == 3) then return end
  442. if (target.CFrame.p - character.Torso.CFrame.p).magnitude > 1000 and powerlevel == 4 then return end
  443. end
  444. b1d = true
  445. if target then
  446. target = target:GetRootPart()
  447. end
  448. Start()
  449. end
  450. end)
  451. player:GetMouse().KeyDown:connect(function(k)
  452. if k == "q" then
  453. keys["q"] = true
  454. repeat
  455. if choking then return end
  456. if dist > 15 and powerlevel == 1 then break end
  457. if dist > 150 and (powerlevel == 2 or powerlevel == 3) then break end
  458. if dist > 1500 and powerlevel == 4 then break end
  459. wait(1/30)
  460. dist = dist+factor
  461. until not keys["q"]
  462. elseif k == "e" then
  463. keys["e"] = true
  464. repeat
  465. if choking then return end
  466. if dist < 3 then break end
  467. wait(1/30)
  468. dist = dist-factor
  469. until not keys["e"]
  470. elseif k == "4" and powerlevel >= 2 then
  471. factor = 10
  472. if choking then return end
  473. elseif k == "f" and powerlevel >= 3 then
  474. keys["f"] = true
  475. if choking then return end
  476. Fire(false)
  477. elseif k == "r" and powerlevel >= 2 and target and b1d then
  478. keys["r"] = true
  479. choked = true
  480. Choke()
  481. end
  482. end)
  483. player:GetMouse().KeyUp:connect(function(k)
  484. if k == "4" then
  485. factor = 1
  486. elseif k == "q" then
  487. keys["q"] = false
  488. elseif k == "e" then
  489. keys["e"] = false
  490. elseif k == "f" then
  491. keys["f"] = false
  492. elseif k == "r" then
  493. keys["r"] = false
  494. end
  495. end)
  496. player:GetMouse().Button1Up:connect(function()
  497. b1d = false
  498. end)
  499. script.Parent.Selected:connect(function()
  500. LightningBin = Instance.new("Model",workspace)
  501. LightningBin.Name = game.Players.LocalPlayer.Name.."'s Lightning Bin"
  502. end)
  503. script.Parent.Deselected:connect(function()
  504. b1d = false
  505. down = false
  506. if LightningBin then
  507. LightningBin:remove()
  508. end
  509. end)
  510. character.Humanoid.Died:connect(function()
  511. b1d = false
  512. down = false
  513. if LightningBin then
  514. LightningBin:remove()
  515. end
  516. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement