Advertisement
doryna2281337

Untitled

Aug 20th, 2018
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.38 KB | None | 0 0
  1. ---[[mediafire]]---
  2.  
  3. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  4. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  5. do
  6. print("FE Compatibility code by Mokiros")
  7. script.Parent = Player.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,Connect=function(self,f)self.Function=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 and t.Function then
  33. t.Function(...)
  34. end
  35. end
  36. m.TrigEvent = te
  37. UIS.TrigEvent = te
  38.  
  39. Event.OnServerEvent:Connect(function(plr,io)
  40. if plr~=Player then return end
  41. if io.isMouse then
  42. m.Target = io.Target
  43. m.Hit = io.Hit
  44. else
  45. local b = io.UserInputState == Enum.UserInputState.Begin
  46. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  47. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  48. end
  49. for _,t in pairs(CAS.Actions) do
  50. for _,k in pairs(t.Keys) do
  51. if k==io.KeyCode then
  52. t.Function(t.Name,io.UserInputState,io)
  53. end
  54. end
  55. end
  56. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  57. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  58. end
  59. end)
  60. Event.Parent = NLS([==[
  61. local Player = game:GetService("Players").LocalPlayer
  62. local Event = script:WaitForChild("UserInput_Event")
  63.  
  64. local UIS = game:GetService("UserInputService")
  65. local input = function(io,a)
  66. if a then return end
  67. --Since InputObject is a client-side instance, we create and pass table instead
  68. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  69. end
  70. UIS.InputBegan:Connect(input)
  71. UIS.InputEnded:Connect(input)
  72.  
  73. local Mouse = Player:GetMouse()
  74. local h,t
  75. --Give the server mouse data 30 times every second, but only if the values changed
  76. --If player is not moving their mouse, client won't fire events
  77. while wait(1/30) do
  78. if h~=Mouse.Hit or t~=Mouse.Target then
  79. h,t=Mouse.Hit,Mouse.Target
  80. Event:FireServer({isMouse=true,Target=t,Hit=h})
  81. end
  82. end]==],Player.Character)
  83. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  84. end
  85.  
  86. ply = owner
  87. char = ply.Character
  88. name = "Hat"
  89. m = Instance.new("Model",char) m.Name = "clowe"
  90. local originalsubject = Workspace.CurrentCamera.CameraSubject
  91. function upd()
  92. torso = char.Torso
  93. holding = false
  94. shoulder = nil
  95. body = {["Head"] = char.Head,["Torso"] = char.Torso}
  96. body.A = {["R"] = char["Right Arm"], ["L"] = char["Left Arm"]}
  97. body.L = {["R"] = char["Right Leg"], ["L"] = char["Left Leg"]}
  98. end
  99. upd()
  100.  
  101.  
  102. ------TOOOOOLS------
  103. T = {["P"] = function(x,y,z,color,transparency,cancollide,anchored,parent)
  104. c = Instance.new("Part",m)
  105. c.TopSurface,c.BottomSurface = 0,0
  106. c.formFactor = "Custom"
  107. c.Size = Vector3.new(x,y,z)
  108. c.BrickColor = BrickColor.new(color)
  109. c.Transparency = transparency
  110. c.CanCollide = cancollide
  111. if anchored ~= nil then c.Anchored = anchored end
  112. if parent ~= nil then c.Parent = parent end
  113. return c
  114.  
  115. end
  116. ,
  117. ["R"] = function(part,x,y,z)
  118. if part == "lleg" then
  119. legw[1].C1 = CFrame.new(.5,-1.5,0)*ang(x,y,z)
  120. elseif part == "rleg" then
  121. legw[2].C1 = CFrame.new(-.5,-1.5,0)*ang(x,y,z)
  122. elseif part == "larm" then
  123. armw[1].C1 = CFrame.new(1.5,.5,0)*ang(x,y,z)
  124. elseif part == "rarm" then
  125. armw[2].C1 = CFrame.new(-1.5,.5,0)*ang(x,y,z)
  126. end
  127. end
  128. ,
  129. ["C"] = function(func) coroutine.resume(coroutine.create(func)) end
  130. ,
  131. ["W"] = function(part0,part1,x,y,z,rx,ry,rz)
  132. w = Instance.new("Weld",m)
  133. w.Part0,w.Part1 = part0,part1
  134. w.C1 = CFrame.new(x,y,z) * CFrame.Angles(rx,ry,rz)
  135. return w
  136. end
  137. ,
  138. ["BG"] = function(parent)
  139. local c = Instance.new("BodyGyro",parent)
  140. c.P = 20e+003
  141. c.cframe = parent.CFrame
  142. c.maxTorque = Vector3.new(c.P,c.P,c.P)
  143. return c
  144. end
  145. ,
  146. ["BP"] = function(parent,position)
  147. local bp = Instance.new("BodyPosition",parent)
  148. bp.maxForce = Vector3.new()*math.huge
  149. bp.position = position
  150. return bp
  151. end
  152. ,
  153. ["F"] = function(parent,size,heat,color,secondcolor,enabled)
  154. f = Instance.new("Fire",parent)
  155. f.Size = size
  156. f.Heat = heat
  157. if enabled ~= nil then f.Enabled = enabled end
  158. if color ~= nil then f.Color = BrickColor.new(color).Color end
  159. if secondcolor ~= nil then f.SecondaryColor = BrickColor.new(secondcolor).Color end
  160. return f
  161. end
  162. ,
  163. ["Track"] = function(bol,obj,s,t,lt,color,fade)
  164. bol = true
  165. coroutine.resume(coroutine.create(function()
  166. while bol do
  167. old = obj.Position
  168. wait()
  169. new = obj.Position
  170.  
  171. mag = (old-new).magnitude
  172. dist = (old+new)/2
  173.  
  174. local ray = T.P(s,mag+.2,s,obj.Color,t,false,true)
  175. Instance.new("CylinderMesh",ray)
  176. ray.CFrame = CFrame.new(dist,old)*ang(math.pi/2,0,0)
  177. if fade ~= nil then
  178. delay(lt,function()
  179. for i = t,1,fade do wait() ray.Transparency = i end ray:Remove() end)
  180. else
  181. game:GetService("Debris"):AddItem(ray,lt)
  182. end
  183. if color ~= nil then ray.BrickColor = BrickColor.new(color) end
  184.  
  185. end
  186. end)) end,
  187.  
  188.  
  189. ["D"] = function(hit) if hit.Parent:findFirstChild("Humanoid") then h=hit.Parent.Humanoid h.Health = h.Health -dmg end end
  190. ,
  191. ["FM"] = function(parent,meshid,x,y,z,meshtexture)
  192. if meshid == "cylinder" then
  193. mesh = Instance.new("CylinderMesh",parent)
  194. mesh.Scale = Vector3.new(x,y,z)
  195. return mesh
  196. else
  197. mesh = Instance.new("SpecialMesh",parent)
  198.  
  199. if meshid ~= "sphere" then
  200. if type(meshid) == "number" then mesh.MeshId = "rbxassetid://"..meshid else
  201. mesh.MeshId = "rbxassetid://"..meshids[meshid]
  202. end
  203.  
  204. else mesh.MeshType = 3 end
  205.  
  206. mesh.Scale = Vector3.new(x,y,z)
  207.  
  208. if meshtexture ~= nil then
  209. if type(meshtexture) == "number" then mesh.TextureId = "rbxassetid://"..meshtexture else
  210. mesh.TextureId = "rbxassetid://"..textureids[meshtexture] end
  211.  
  212. end
  213.  
  214. return mesh
  215. end
  216. end
  217. }
  218. --------------------------------------------------
  219. pcall(function() char:FindFirstChild("Suit"):remove() end)
  220. suit = Instance.new("Model",m) suit.Name = "Suit"
  221. function damage(hit,amount,show,del)
  222. for i,v in pairs(hit:GetChildren()) do
  223. if v:IsA("Humanoid") and v.Parent ~= char then
  224.  
  225. amo = 0
  226. function showa(p)
  227. if show == true then
  228. for i,o in pairs(p:GetChildren()) do
  229. if o:IsA("BillboardGui") and o.Name == "satuttava" then
  230. amo = amo+1
  231. end end
  232.  
  233.  
  234. local bbg = Instance.new("BillboardGui",p)
  235. bbg.Adornee = p.Torso
  236. bbg.Name = "satuttava"
  237. bbg.Size = UDim2.new(2,0,2,0)
  238. bbg.StudsOffset = Vector3.new(0,6+amo*2,0)
  239.  
  240. local box = Instance.new("TextLabel",bbg)
  241. box.Size = UDim2.new(1,0,1,0)
  242. box.BackgroundColor = BrickColor.new("White")
  243. box.Text = amount
  244. box.Position = UDim2.new(0,0,0,0)
  245. box.TextScaled = true
  246. game:GetService("Debris"):AddItem(bbg,.5)
  247. end
  248. end
  249.  
  250. if del ~= nil then
  251. local find = v.Parent:FindFirstChild("hitted")
  252. if find == nil then
  253. v.Health=v.Health - amount
  254. showa(v.Parent)
  255. val = Instance.new("BoolValue",v.Parent)val.Name="hitted"
  256. game:GetService("Debris"):AddItem(val,del)
  257. end
  258. elseif del == nil then
  259. v.Health = v.Health - amount
  260. showa(v.Parent)
  261.  
  262. end
  263.  
  264. end
  265. end
  266. end
  267.  
  268. meshids = {["penguin"] = 15853464, ["ring"] = 3270017,
  269. ["spike"] = 1033714,["cone"] = 1082802,["crown"] = 20329976,["crossbow"] = 15886761,
  270. ["cloud"] = 1095708,["mjolnir"] = 1279013,["diamond"] = 9756362, ["hand"] = 37241605,
  271. ["fist"] = 65322375,["skull"] = 36869983,["totem"] = 35624068,["spikeb"] = 9982590,["dragon"] = 58430372,["fish"] = 31221717, ["coffee"] = 15929962,["spiral"] = 1051557,
  272. ["ramen"] = 19380188}---some meshids
  273. textureids = {["cone"] = 1082804,["rainbow"] = 28488599,["fish"] = 31221733, ["coffee"] = 24181455,["monster"] = 33366441,["ramen"] = 19380153}
  274.  
  275. cfn,ang = CFrame.new,CFrame.Angles
  276. v3n = Vector3.new
  277.  
  278. ---MATH SHORTENINGS---
  279. M = {["R"] = function(a,b) return math.random(a,b) end,
  280. ["Cos"] = function(a) return math.cos(a) end,
  281. ["Sin"] = function(a) return math.sin(a) end,
  282. ["D"] = function(a) return math.rad(a) end
  283. }
  284. holding = false
  285.  
  286. function explode()
  287. e = Instance.new("Explosion",Workspace)
  288. e.Position = torso.Position
  289. e.BlastPressure = 0
  290. e.Hit:connect(function(hit) damage(hit.Parent,5,true) end)
  291. end
  292.  
  293.  
  294. function fire()
  295. p = T.P(1,1,1,"Deep blue",0,false,false,suit)
  296. p2 = T.P(1,1,1,"Deep blue",0,false,false,suit)
  297.  
  298. stick = T.P(.5,2,.5,"Nougat",0,false,false,suit)
  299. T.FM(stick,"cylinder",1,1,1)
  300. T.W(stick,body.Head,0,1,0,0,0,0)
  301.  
  302. spike = T.P(3,1,3,"White",0,false,false,suit)
  303. T.FM(spike,"spike",3,1,3)
  304. T.W(spike,stick,0,.8,0,0,0,0)
  305.  
  306. r = -2
  307. for i = 20,360+20,360/5 do
  308.  
  309. skull = T.P(1,1,1,"Black",0,false,false,suit)
  310. T.FM(skull,"skull",.5,.5,.5)
  311.  
  312. T.W(skull,spike,M.Cos(M.D(i))*r,.15,M.Sin(M.D(i))*r,M.D(-20),0,0)
  313.  
  314. end
  315. r = 5
  316. for i = 1,360,3 do
  317. c = T.P(.5,.5,.5,"Magenta",0,false,false,suit)
  318.  
  319. T.W(c,torso,M.Cos(M.D(i))*r,M.Sin(i*100/3),M.Sin(M.D(i))*r,0,0,0)
  320. if M.Sin(i*100/3) > .85 then T.F(c,1,1,"White","New Yeller") end
  321. end
  322.  
  323. T.FM(p,"diamond",1,1,1)
  324. T.FM(p2,"diamond",1,1,1)
  325. T.F(p,2,1,"Magenta","Olive")
  326. T.F(p2,2,1,"Magenta","Olive")
  327.  
  328. T.W(p,body.A.R,0,-1,0,0,0,0)
  329. T.W(p2,body.A.L,0,-1,0,0,0,0)
  330. end
  331.  
  332. function pillars(mouse)
  333. r = 5
  334. local pos = cfn(mouse.hit.p)
  335. local tar = mouse.Target
  336. for i = 1,360,15 do
  337. wait()
  338. local c = T.P(2,.5,2,"Magenta",.3,true,true)
  339. c.Size = v3n(2,20+M.Sin(i*300/15),2)
  340. T.FM(c,"cylinder",1,1,1)
  341. c.CFrame = pos*cfn(M.Cos(M.D(i))*r,0,M.Sin(M.D(i))*r) + v3n(0,c.Size.y/2,0)
  342. end
  343.  
  344. end
  345.  
  346. function plague(mouse)
  347. local touching = false
  348. c = T.P(50,.1,50,"White",1,false,true)
  349. c.CFrame = cfn(mouse.hit.p)
  350. c.Name = "plague"
  351.  
  352. local dec = Instance.new("Decal",c)
  353. dec.Face = "Top"
  354. dec.Texture = 'http://www.roblox.com/asset/?id=23862105'
  355. dec.Transparency = 1
  356. for i = 1,0,-.05 do
  357. wait()
  358. dec.Transparency = i
  359. end
  360. c.Touched:connect(function(hit)
  361. damage(hit.Parent,10,true,.05)
  362. end)
  363.  
  364. end
  365.  
  366. ---GUI---
  367. gui = Instance.new("ScreenGui")
  368.  
  369. mfr = Instance.new("Frame",gui)
  370. mfr.Size = UDim2.new(.2,0,.2,0)
  371. mfr.Position = UDim2.new(0,0,.5,0)
  372. fr = Instance.new("Frame",mfr)
  373. fr.Size = UDim2.new(.8,0,.8,0)
  374. fr.BackgroundColor = BrickColor.new("Earth green")
  375. fr.ClipsDescendants = true
  376. fr.Position = UDim2.new(0,0,.1,0)
  377.  
  378. center = UDim2.new(.5,0,.5,0)
  379. dist = 100
  380.  
  381. lista = Instance.new("Frame",mfr)
  382. lista.Size = UDim2.new(.2,0,.9,0)
  383. lista.Position = UDim2.new(.8,0,0,0)
  384.  
  385. inf = Instance.new("TextLabel",mfr)
  386. inf.Size = UDim2.new(1,0,.1,0)
  387.  
  388. torp = Instance.new("Frame",fr)
  389. torp.Size = UDim2.new(.1,0,.1,0)
  390. torp.Position = center
  391. torp.BackgroundColor = BrickColor.new("Deep blue")
  392.  
  393. T.C(function()
  394. while wait() do
  395. wait()
  396. poa = torso.Position
  397. for _,v in pairs(fr:GetChildren()) do if v ~= torp then v:Remove() end end
  398. for _,v in pairs(lista:GetChildren()) do v:Remove() end
  399. for i,v in pairs(clowns) do
  400.  
  401. local b = Instance.new("TextLabel",fr)
  402. b.Size = UDim2.new(.05,0,.05,0)
  403. b.Position = UDim2.new(center.X.Scale + (v.Torso.Position.x-poa.x)/dist/2+.025,0,center.Y.Scale+(v.Torso.Position.z-poa.z)/dist/2+.025,0)
  404. b.TextScaled = true
  405. b.Text = 'C'..i
  406.  
  407. o = 1/#clowns
  408. opfr = Instance.new("Frame",lista)
  409. opfr.Size = UDim2.new(1,0,o,0)
  410. opfr.BackgroundColor = BrickColor.new("White")
  411. opfr.Position = UDim2.new(0,0,-o,0) + UDim2.new(0,0,o*i,0)
  412. local b2 = Instance.new("TextButton",opfr)
  413. b2.Size = UDim2.new(.5,0,1,0)
  414. b2.Text = "C"..i
  415. b2.BackgroundTransparency = 1
  416. b2.BackgroundColor = BrickColor.new("White")
  417. b2.TextScaled = true
  418.  
  419. b3 = b2:Clone()
  420. b3.Parent = opfr
  421. b3.Position = UDim2.new(.5,0,0,0)
  422. b3.Text = "T"
  423. b2.MouseButton1Down:connect(function() Workspace.CurrentCamera.CameraSubject = v.Humanoid
  424. Workspace.CurrentCamera.CameraType = 4 end)
  425. b3.MouseButton1Down:connect(function() char:MoveTo(v.Torso.Position) end)
  426.  
  427. end
  428.  
  429.  
  430.  
  431. for i,v in pairs(clowns) do
  432. if ply.PlayerGui:FindFirstChild("C"..i) == nil then
  433. bbg = Instance.new("BillboardGui",ply.PlayerGui)
  434. bbg.Name = "C"..i
  435. bbg.Adornee = v.Torso
  436. bbg.StudsOffset = v3n(0,5,0)
  437. bbg.Size = UDim2.new(2,0,2,0)
  438.  
  439. lab = Instance.new("TextLabel",bbg)
  440. lab.Size = UDim2.new(1,0,1,0)
  441. lab.BackgroundTransparency = 1
  442. lab.FontSize = 6
  443.  
  444. lab.Text = 'C'..i
  445. end
  446. end
  447. end
  448. end)
  449.  
  450. resetbut = Instance.new("TextButton",mfr)
  451. resetbut.Size = UDim2.new(1,0,.1,0)
  452. resetbut.Position = UDim2.new(0,0,.9,0)
  453. resetbut.Text = "RESET"
  454. resetbut.TextScaled = true
  455. resetbut.MouseButton1Down:connect(function()Workspace.CurrentCamera.CameraSubject = originalsubject Workspace.CurrentCamera.CameraType = 5 plae = nil end)
  456.  
  457. -------
  458.  
  459. function point(mouse)
  460. if char ~= ply.Character then char = ply.Character upd()
  461. elseif char == ply.Character then
  462. if mouse.Target ~= nil then
  463. laz = T.P(1,1,1,"Deep blue",0,false,true)
  464. T.C(function()
  465. while true do
  466. for i = 0,.5,.05 do
  467. wait()
  468. laz.Transparency = i
  469. end
  470. for i = .5,0,-.05 do
  471. wait()
  472. laz.Transparency = i
  473. end
  474. end
  475. end)
  476. T.FM(laz,"cylinder",1,1,1)
  477. holding = true
  478. while holding do
  479. wait()
  480. if mouse.Target ~= nil then
  481. mag = (mouse.hit.p-torso.Position).magnitude
  482. laz.Size = v3n(1,mag,1)
  483. laz.CFrame = (cfn(torso.Position,mouse.hit.p)*cfn(0,0,-mag/2))*ang(math.pi/2,0,0)
  484. end
  485. end
  486. laz:Remove()
  487.  
  488. local tar = mouse.Target
  489. if tar.Parent:FindFirstChild("Humanoid") ~= nil then
  490. char = tar.Parent
  491. upd()
  492. end
  493.  
  494. end
  495. end
  496. end
  497.  
  498. flbp = nil
  499.  
  500. function levitate()
  501. if flbp == nil then
  502. flbp = T.BP(torso,torso.Position)
  503. elseif flbp ~= nil then
  504. flbp:Remove() flbp = nil
  505. end
  506. end
  507.  
  508. clowns = {}
  509. function decoy(a)
  510. if a == 1 then
  511. char.Archivable = true
  512. local clown = char:Clone()
  513. clown.Parent = Workspace
  514.  
  515. clown.Humanoid.Died:connect(function() clown:Remove() end)
  516. Workspace.ChildRemoved:connect(function(child) if child == clown then for i,v in pairs(clowns) do if v == clown then table.remove(clowns,i) end end end end)
  517. for i,v in pairs(clown["clowe"]:GetChildren()) do
  518. if v.Name ~= "Suit" and v.className ~= "Weld" then
  519. v:Remove()
  520. end
  521. end
  522. table.insert(clowns,clown)
  523. char.Archivable = false
  524. elseif a == 0 then
  525. for i,v in pairs(clowns) do v:Remove() end
  526. end
  527. end
  528.  
  529. function dragon(mouse)
  530. local wp = mouse.hit.p
  531. local tp = torso.Position
  532. unit = (tp-wp).unit*-1
  533. hed = T.P(10,10,10,"Magenta",.5,false,true)
  534. hed.Name = "dragon"
  535. hed.Touched:connect(function(hit) damage(hit.Parent,50,true,.5) end)
  536. T.FM(hed,"dragon",10,10,10)
  537. pos = cfn(tp) + unit*5 + v3n(0,-2,0)
  538. pos2 = cfn(pos.p,wp)
  539. for i = 5,10 do
  540. wait()
  541. hed.CFrame = (pos2 + unit * i) + v3n(0,i,0)
  542. end
  543. end
  544.  
  545. function fly(mouse)
  546. if flbp ~= nil and holding == false then
  547. holding = true
  548. while holding do
  549. wait()
  550. flbp.position = torso.Position + (torso.Position-mouse.hit.p).unit*-10
  551. end
  552.  
  553. end
  554. end
  555.  
  556. function hide()
  557. local namn = hop.Name
  558. if char.Parent ~= Workspace.CurrentCamera then
  559. char.Parent = Workspace.CurrentCamera
  560. hop.Name = name..'(Invisible)'
  561. elseif char.Parent == Workspace.CurrentCamera then
  562. char.Parent = Workspace
  563. hop.Name = name
  564. end
  565. end
  566.  
  567. function clear()
  568. for i,v in pairs(m:GetChildren()) do
  569. if v.className ~= "Weld" and v.Name ~= "Suit" then
  570. v:Remove()
  571. end
  572. end
  573. end
  574.  
  575. chage = false
  576. klist = {
  577. {"r",function(a) plague(a) end},
  578. {"e",function(a) point(a) end,true},
  579. {"q",function() levitate() end},
  580. {"f",function(a) fly(a) end,true},
  581. {"v",function() hide() end},
  582. {"c",function(a) dragon(a) end},
  583. {"x",function() decoy(1) end},{"z",function() decoy(0) end},
  584. {"h",function() clear() end},
  585. {string.char(48), function() explode() end},
  586. {"g",function() if gui.Parent ~= nil then gui.Parent = nil elseif gui.Parent == nil then gui.Parent = ply.PlayerGui end end},
  587. {"n",function() if chage == true then chage = false char = Workspace.CurrentCamera.CameraSubject.Parent elseif chage == false then chage = true char = ply.Character end end}
  588. }
  589.  
  590. fire()
  591. hop = Instance.new("HopperBin",ply.Backpack)
  592. hop.Name = name
  593. hop.Selected:connect(function(mouse)
  594. mouse.Button1Down:connect(function() pillars(mouse) end)
  595. mouse.KeyDown:connect(function(key)
  596. for i,v in pairs(klist) do
  597. if key == v[1] then v[2](mouse) end
  598. end
  599. end)
  600. mouse.KeyUp:connect(function(a) for i,v in pairs(klist) do if a == v[1] and v[3] ~= nil then holding = false end end upd() end)
  601. end)
  602.  
  603. ply.Character.Humanoid.Died:connect(function() Workspace.CurrentCamera:ClearAllChildren() end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement