Advertisement
Adog1656

hoverchair

Sep 23rd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.18 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 by Mokiros")
  7. local rp = RealPlayer
  8. script.Parent = rp.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,Functions={},Connect=function(self,f)table.insert(self.Functions,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(),Button2Up=fakeEvent(),Button2Down=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 then
  34. for _,f in pairs(t.Functions) do
  35. f(...)
  36. end
  37. end
  38. end
  39. m.TrigEvent = te
  40. UIS.TrigEvent = te
  41.  
  42. Event.OnServerEvent:Connect(function(plr,io)
  43. if plr~=rp then return end
  44. m.Target = io.Target
  45. m.Hit = io.Hit
  46. if not io.isMouse then
  47. local b = io.UserInputState == Enum.UserInputState.Begin
  48. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  49. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  50. end
  51. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  52. return m:TrigEvent(b and "Button2Down" or "Button2Up")
  53. end
  54. for _,t in pairs(CAS.Actions) do
  55. for _,k in pairs(t.Keys) do
  56. if k==io.KeyCode then
  57. t.Function(t.Name,io.UserInputState,io)
  58. end
  59. end
  60. end
  61. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  62. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  63. end
  64. end)
  65. Event.Parent = NLS([==[
  66. local Player = game:GetService("Players").LocalPlayer
  67. local Event = script:WaitForChild("UserInput_Event")
  68.  
  69. local Mouse = Player:GetMouse()
  70. local UIS = game:GetService("UserInputService")
  71. local input = function(io,a)
  72. if a then return end
  73. --Since InputObject is a client-side instance, we create and pass table instead
  74. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  75. end
  76. UIS.InputBegan:Connect(input)
  77. UIS.InputEnded:Connect(input)
  78.  
  79. local h,t
  80. --Give the server mouse data 30 times every second, but only if the values changed
  81. --If player is not moving their mouse, client won't fire events
  82. while wait(1/30) do
  83. if h~=Mouse.Hit or t~=Mouse.Target then
  84. h,t=Mouse.Hit,Mouse.Target
  85. Event:FireServer({isMouse=true,Target=t,Hit=h})
  86. end
  87. end]==],Player.Character)
  88.  
  89. ----Sandboxed game object that allows the usage of client-side methods and services
  90. --Real game object
  91. local _rg = game
  92.  
  93. --Metatable for fake service
  94. local fsmt = {
  95. __index = function(self,k)
  96. local s = rawget(self,"_RealService")
  97. if s then
  98. return typeof(s[k])=="function"
  99. and function(_,...)return s[k](s,...)end or s[k]
  100. end
  101. end,
  102. __newindex = function(self,k,v)
  103. local s = rawget(self,"_RealService")
  104. if s then s[k]=v end
  105. end
  106. }
  107. local function FakeService(t,RealService)
  108. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  109. return setmetatable(t,fsmt)
  110. end
  111.  
  112. --Fake game object
  113. local g = {
  114. GetService = function(self,s)
  115. return rawget(self,s) or _rg:GetService(s)
  116. end,
  117. Players = FakeService({
  118. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  119. },"Players"),
  120. UserInputService = FakeService(UIS,"UserInputService"),
  121. ContextActionService = FakeService(CAS,"ContextActionService"),
  122. RunService = FakeService({
  123. _btrs = {},
  124. RenderStepped = _rg:GetService("RunService").Heartbeat,
  125. BindToRenderStep = function(self,name,_,fun)
  126. self._btrs[name] = self.Heartbeat:Connect(fun)
  127. end,
  128. UnbindFromRenderStep = function(self,name)
  129. self._btrs[name]:Disconnect()
  130. end,
  131. },"RunService")
  132. }
  133. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  134. g.service = g.GetService
  135. FakeService(g,game)
  136. --Changing owner to fake player object to support owner:GetMouse()
  137. game,owner = g,g.Players.LocalPlayer
  138. end
  139.  
  140. if script.ClassName~="LocalScript" then wait(math.huge) end
  141. peron = game.Players["lifeepic"]
  142. Player=peron
  143. player=peron
  144. person=peron
  145. Person=peron
  146. script.Parent=peron
  147. FF=false
  148. FF2=Instance.new("ForceField")
  149. --if peron.Backpack:findFirstChild("Chair") == nil then
  150. -- local h = Instance.new("HopperBin")
  151. -- h.Name = "Chair" h.Parent = peron.Backpack
  152. -- script.Parent = h
  153. -- p = Instance.new("IntValue")
  154. -- p.Name = "Damage" p.Parent = h
  155. -- p.Value = 75
  156. -- wait(math.huge)
  157. -- end
  158. range = 50
  159. speed = 15
  160. function chair()
  161. local h = Instance.new("HopperBin")
  162. FIRE=false
  163. h.Name = "Chair" h.Parent = peron.Backpack
  164. p = Instance.new("IntValue")
  165. p.Name = "Damage" p.Parent = h
  166. p.Value = 75
  167. wait(1)
  168. local bin = peron.Backpack.Chair
  169. me1 = peron me = peron.Character
  170. distance = 3/2
  171. follow = false
  172. damage = bin.Damage
  173. p = Instance.new("IntValue")
  174. p.Name = "Safe" p.Parent = me
  175. if me:findFirstChild("part1") == nil then
  176. local part1 = Instance.new("Seat")
  177. part1.BrickColor = BrickColor.new("Black")
  178. part1.Transparency = 0 part1.TopSurface = 0 part1.BottomSurface = 0 part1.Reflectance = math.huge part1.Locked = true part1.Size = Vector3.new(1,1,1) part1.Anchored = false part1.Shape = 0 part1.CanCollide = false part1.Name = "part1"
  179. local mesh = Instance.new("SpecialMesh") mesh.Parent = part1 part1.Reflectance=math.huge mesh.Scale = Vector3.new(2,1.75,2) mesh.MeshType = "Sphere"
  180. bp = Instance.new("BodyPosition") bp.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  181. bp.Parent = part1
  182. bp.position=peron.Character.Torso.Position
  183. part1.CFrame=peron.Character.Torso.CFrame
  184. local bg = Instance.new("BodyGyro") bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge) bg.Parent = part1
  185. main = part1:Clone()
  186. local part2 = Instance.new("Part") part2.BrickColor = BrickColor.new("White") part2.Transparency = 0 part2.TopSurface = 0 part2.BottomSurface = 0 part2.Locked = true part2.Size = Vector3.new(1,1,1) part2.Anchored = false part2.Shape = 0 part2.CanCollide = false part2.Name = "part2"
  187. local mesh = Instance.new("BlockMesh") mesh.Parent = part2 mesh.Scale = Vector3.new(3,0.75,3)
  188. local part3 = Instance.new("Part") part3.BrickColor = BrickColor.new("White") part3.Transparency = 0 part3.TopSurface = 0 part3.BottomSurface = 0 part3.Locked = true part3.Size = Vector3.new(1,0.5,1) part3.Anchored = false part3.Shape = 0 part3.CanCollide = false part3.Name = "part3"
  189. local mesh = Instance.new("CylinderMesh") mesh.Parent = part3 mesh.Scale = Vector3.new(2.5,0.5,2.5)
  190. local part4 = Instance.new("Part") part4.BrickColor = BrickColor.new("White") part4.Transparency = 0 part4.TopSurface = 0 part4.BottomSurface = 0 part4.Locked = true part4.Size = Vector3.new(1,1,1) part4.Anchored = false part4.Shape = 0 part4.CanCollide = false part4.Name = "part4"
  191. local mesh = Instance.new("BlockMesh") mesh.Parent = part4 mesh.Scale = Vector3.new(3,3,0.5)
  192. local part5 = Instance.new("Part") part5.BrickColor = BrickColor.new("White") part5.Transparency = 0 part5.TopSurface = 0 part5.BottomSurface = 0 part5.Locked = true part5.Size = Vector3.new(1,0.5,1) part5.Anchored = false part5.Shape = 0 part5.CanCollide = false part5.Name = "part5"
  193. local mesh = Instance.new("CylinderMesh") mesh.Parent = part5 mesh.Scale = Vector3.new(1.5,0.5,1.5)
  194. local part6 = Instance.new("Part") part6.BrickColor = BrickColor.new("Black") part6.Transparency = 0 part6.TopSurface = 0 part6.BottomSurface = 0 part6.Locked = true part6.Size = Vector3.new(1,1,1) part6.Anchored = false part6.Shape = 0 part6.CanCollide = false part6.Name = "part6"
  195. local mesh1 = Instance.new("SpecialMesh") mesh1.Parent = part6 part6.Reflectance=math.huge mesh1.Scale = Vector3.new(1,1,1) mesh1.MeshType = "Sphere"
  196. local part7 = Instance.new("Part") part7.BrickColor = BrickColor.new("White") part7.Transparency = 0 part7.TopSurface = 0 part7.BottomSurface = 0 part7.Locked = true part7.Size = Vector3.new(1,1,1) part7.Anchored = false part7.Shape = 0 part7.CanCollide = false part7.Name = "part7"
  197. local mesh = Instance.new("BlockMesh") mesh.Parent = part7 mesh.Scale = Vector3.new(1,0.25,1)
  198. local part8 = Instance.new("Part") part8.BrickColor = BrickColor.new("White") part8.Transparency = 0 part8.TopSurface = 0 part8.BottomSurface = 0 part8.Locked = true part8.Size = Vector3.new(1,1,1) part8.Anchored = false part8.Shape = 0 part8.CanCollide = false part8.Name = "part8"
  199. local mesh = Instance.new("BlockMesh") mesh.Parent = part8 mesh.Scale = Vector3.new(1,0.25,1)
  200. local part9 = Instance.new("Part") part9.BrickColor = BrickColor.new("White") part9.Transparency = 0 part9.TopSurface = 0 part9.BottomSurface = 0 part9.Locked = true part9.Size = Vector3.new(1,1,1) part9.Anchored = false part9.Shape = 0 part9.CanCollide = false part9.Name = "part9"
  201. local mesh = Instance.new("BlockMesh") mesh.Parent = part9 mesh.Scale = Vector3.new(1,0.25,3)
  202. local part10 = Instance.new("Part") part10.BrickColor = BrickColor.new("White") part10.Transparency = 0 part10.TopSurface = 0 part10.BottomSurface = 0 part10.Locked = true part10.Size = Vector3.new(1,1,1) part10.Anchored = false part10.Shape = 0 part10.CanCollide = false part10.Name = "part10"
  203. local mesh = Instance.new("BlockMesh") mesh.Parent = part10 mesh.Scale = Vector3.new(1,0.25,3)
  204. part11 = Instance.new("Part") part11.BrickColor = BrickColor.new("Black") part11.Transparency = 0 part11.TopSurface = 0 part11.BottomSurface = 0 part11.Locked = true part11.Size = Vector3.new(1,1,1) part11.Anchored = false part11.Shape = 0 part11.CanCollide = false part11.Name = "part11"
  205. local mesh = Instance.new("BlockMesh") mesh.Parent = part11 mesh.Scale = Vector3.new(0.2,0.2,0.5)
  206. part12 = Instance.new("Part") part12.BrickColor = BrickColor.new("Black") part12.Transparency = 0 part12.TopSurface = 0 part12.BottomSurface = 0 part12.Locked = true part12.Size = Vector3.new(1,1,1) part12.Anchored = false part12.Shape = 0 part12.CanCollide = false part12.Name = "part12"
  207. local mesh = Instance.new("BlockMesh") mesh.Parent = part12 mesh.Scale = Vector3.new(0.2,0.2,0.5) main.Parent = me part2.Parent = me part3.Parent = me part4.Parent = me part5.Parent = me part6.Parent = me part7.Parent = me part8.Parent = me part9.Parent = me part10.Parent = me part11.Parent = me part12.Parent = me
  208.  
  209. local weld = Instance.new("Weld") weld.Parent = main weld.Part0 = main weld.Part1 = part2 weld.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, -0.5, 0)
  210. local weld = Instance.new("Weld") weld.Parent = main weld.Part0 = main weld.Part1 = part3 weld.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  211. local weld = Instance.new("Weld") weld.Parent = main weld.Part0 = main weld.Part1 = part4 weld.C1 = CFrame.fromEulerAnglesXYZ(-0.1, 0, 0) * CFrame.new(0, -2, -0.75)
  212. local weld = Instance.new("Weld") weld.Parent = main weld.Part0 = main weld.Part1 = part5 weld.C1 = CFrame.fromEulerAnglesXYZ(-4.815, 0, 0) * CFrame.new(0, -2, -1)
  213. local weld = Instance.new("Weld") weld.Parent = main weld.Part0 = main weld.Part1 = part6 weld.C1 = CFrame.fromEulerAnglesXYZ(-4.815, 0, 0) * CFrame.new(0, -2, -1.25)
  214. local weld = Instance.new("Weld") weld.Parent = main weld.Part0 = main weld.Part1 = part7 weld.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(1.75, -0.5, 0)
  215. local weld = Instance.new("Weld") weld.Parent = main weld.Part0 = main weld.Part1 = part8 weld.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(-1.75, -0.5, 0)
  216.  
  217. local weld = Instance.new("Weld") weld.Parent = main weld.Part0 = main weld.Part1 = part9 weld.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(-1.5, -1.875, 0)
  218. local weld = Instance.new("Weld") weld.Parent = main weld.Part0 = main weld.Part1 = part10 weld.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(1.5, -1.875, 0)
  219.  
  220. local weld = Instance.new("Weld") weld.Parent = main weld.Part0 = main weld.Part1 = part11 weld.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(2, -0.5, 0.75)
  221. local weld = Instance.new("Weld") weld.Parent = main weld.Part0 = main weld.Part1 = part12 weld.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(-2, -0.5, 0.75)
  222.  
  223. end
  224. beam=Instance.new("Part")
  225. beam1=Instance.new("Part")
  226. function wire(pos1,pos2,ref)
  227. local P = beam
  228. local P2 = pos1
  229. local P1 = pos2
  230. P.Parent=peron
  231. P.Name = "Beam"
  232. local Place0 = CFrame.new(P2.x,P2.y,P2.z)
  233. P.formFactor = 0
  234. --P.Size = Vector3.new(1,1,(P1 - P2).magnitude)
  235. P.Size=Vector3.new(0.1,0.1,0.1)
  236. P.CFrame = CFrame.new((P1 + P2)/2,Place0.p)
  237. P.Parent = player.Character
  238. P.BrickColor = BrickColor.new("Bright blue")
  239. P.Transparency = 0.5
  240. P.Reflectance = ref
  241. P.Anchored = true
  242. P.CanCollide = false
  243. P.TopSurface = "Smooth"
  244. P.BottomSurface = "Smooth"
  245. local m = Instance.new("SpecialMesh")
  246. m.Parent = P
  247. m.MeshType = "Brick"
  248. m.Scale = Vector3.new(.1,.1,(P1 - P2).magnitude)
  249. return P
  250. end
  251.  
  252.  
  253. function wire2(pos1,pos2,ref)
  254. local P = beam1
  255. local P2 = pos1
  256. local P1 = pos2
  257. P.Name = "Beam"
  258. local Place0 = CFrame.new(P2.x,P2.y,P2.z)
  259. P.formFactor = 0
  260. P.Parent=peron
  261. --P.Size = Vector3.new(1,1,(P1 - P2).magnitude)
  262. P.Size=Vector3.new(0.1,0.1,0.1)
  263. P.CFrame = CFrame.new((P1 + P2)/2,Place0.p)
  264. P.Parent = player.Character
  265. P.BrickColor = BrickColor.new("Bright blue")
  266. P.Transparency = 0.5
  267. P.Reflectance = ref
  268. P.Anchored = true
  269. P.CanCollide = false
  270. P.TopSurface = "Smooth"
  271. P.BottomSurface = "Smooth"
  272. local m = Instance.new("SpecialMesh")
  273. m.Parent = P
  274. m.MeshType = "Brick"
  275. m.Scale = Vector3.new(.1,.1,(P1 - P2).magnitude)
  276. return P
  277. end
  278.  
  279.  
  280.  
  281. function Balefire(pos, obj)
  282. hum = obj.Parent:findFirstChild("Humanoid")
  283. if hum ~= nil then
  284. local P = Instance.new("Part")
  285. P.Name = "Laser"
  286. local Place0 = me.part12.CFrame
  287. P.formFactor = 0
  288. P.Parent = game.Workspace
  289. P.Color = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
  290. P.Transparency = 0.25 P.Reflectance = 0.25 P.Anchored = true P.formFactor = "Plate" P.CanCollide = false
  291. pl = Instance.new("BlockMesh")
  292. pl.Scale = Vector3.new(0.1,0.2,1)
  293. pl.Parent = P
  294. P.Size = Vector3.new(1,0.4,(Place0.p - pos).magnitude)
  295. P.CFrame = CFrame.new((Place0.p + pos)/2, Place0.p)
  296. if hum.Health <= 100 then
  297. hum.Health = hum.Health - damage.Value else hum.Health = 0 end wait(0.01) P:Remove() end
  298. end
  299. function Balefire1(pos, obj)
  300. hum = obj.Parent:findFirstChild("Humanoid")
  301. if hum ~= nil then
  302. local P = Instance.new("Part") P.Name = "Laser"
  303. local Place0 = me.part11.CFrame P.formFactor = 0 P.Parent = game.Workspace
  304. P.Color = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
  305. P.Transparency = 0.25 P.Reflectance = 0.25 P.Anchored = true P.formFactor = "Plate" P.CanCollide = false
  306. pl = Instance.new("BlockMesh") pl.Scale = Vector3.new(0.1,0.2,1) pl.Parent = P
  307. P.Size = Vector3.new(1,0.4,(Place0.p - pos).magnitude) P.CFrame = CFrame.new((Place0.p + pos)/2, Place0.p)
  308. if hum.Health <= 100 then hum.Health = hum.Health - damage.Value else hum.Health = 0 end wait(0.01) P:Remove() end
  309. end
  310. function findNearestTorso(pos)
  311. local list = game.Workspace:getChildren()
  312. local torso = nil
  313. local dist = range
  314. local temp = nil
  315. local human = nil
  316. local temp2 = nil
  317. for x = 1, #list do
  318. temp2 = list[x]
  319. local safe = temp2:findFirstChild("Safe")
  320. if (temp2.className == "Model") and (safe == nil) and damage.Value > 0 then
  321. temp = temp2:findFirstChild("Torso") human = temp2:findFirstChild("Humanoid")
  322. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  323. if (temp.Position - pos).magnitude < dist then
  324. torso = temp dist = (temp.Position - pos).magnitude
  325. end
  326. end
  327. end
  328. if (temp2.className == "Model") and damage.Value <= 0 then
  329. temp = temp2:findFirstChild("Torso")
  330. human = temp2:findFirstChild("Humanoid")
  331. if (temp ~= nil) and (human ~= nil) and (human.Health < 100) then
  332. if (temp.Position - pos).magnitude < dist then
  333. torso = temp
  334. dist = (temp.Position - pos).magnitude
  335. end
  336. end
  337. end
  338. end
  339. return torso
  340. end
  341. function onButton1Down(mouse)
  342. local player = peron
  343. main = me.part1
  344. main.Anchored = false
  345. me1 = peron
  346. follow = true
  347. while follow == true do
  348. distance = 3/2 mousehit = mouse.Hit.p if (main.BodyPosition.position - mousehit).magnitude >speed then
  349. main_mousehit = (main.BodyPosition.position - mousehit).unit*speed
  350. else
  351. main_mousehit = (main.BodyPosition.position - mousehit).unit*1
  352. end
  353. start1 = main.BodyPosition.position-main_mousehit
  354. main.BodyPosition.position = Vector3.new(start1.x, start1.y, start1.z)
  355. local dir = (mousehit - main.Position).unit
  356. local spawnPos = main.Position
  357. local pos = spawnPos + (dir * 1)
  358. local dir = (pos - main.Position)
  359. local Angle = ((mouse.ViewSizeX/2)-mouse.X)/100
  360. if math.abs(Angle) > 1 then if Angle > 0 then Angle = Angle - 1 else Angle = Angle + 1 end
  361.  
  362. Angle = Angle * math.abs(26) / 70 main.BodyGyro.cframe = CFrame.new(pos, pos + dir) * CFrame.fromEulerAnglesXYZ(0, 0, Angle) else main.BodyGyro.cframe = CFrame.new(pos, pos + dir) end
  363. wait() end end
  364. function onButton1Up(mouse)
  365. main = me.part1
  366. main.Anchored = false
  367. follow = false
  368. end
  369. local msg = Instance.new("Hint")
  370.  
  371. function say(tehmessage)
  372. msg.Parent = me1
  373. msg.Text = tehmessage
  374. wait(2)
  375. msg.Parent = nil
  376. end
  377.  
  378. function onKeyUp(key,mouse)
  379. if (key=="e") then FIRE=false end
  380. end
  381.  
  382. function onKeyDown(key,mouse)
  383. if (key~=nil) then
  384. if (key=="f") then speed = speed+1 say("speed: "..speed)
  385. elseif (key=="c") then
  386. speed = speed-1 say("speed: "..speed)
  387. elseif (key=="g") then
  388. range = range+1 say("range: "..range)
  389. elseif (key=="x") then
  390. FF3=Instance.new("ForceField",peron.Character)
  391. main.Anchored=true
  392. X=Instance.new("Explosion")
  393. X.Parent=workspace
  394. X.BlastPressure=math.huge
  395. X.BlastRadius=10
  396. X.Position=peron.Character.Torso.Position
  397. while X.Parent do wait() end
  398. wait()
  399. FF3:remove()
  400. main.Anchored=false
  401. elseif (key=="v") then
  402. if range == 0 then return end
  403. range = range-1 say("range: "..range)
  404. elseif (key=="h") then
  405. damage.Value = damage.Value+1 say("damage: "..damage.Value)
  406. elseif (key=="m") then
  407. main.CFrame=peron.Character.Torso.CFrame
  408. main.BodyPosition.position=peron.Character.Torso.Position
  409. elseif (key=="n") then
  410. FF=not FF
  411. if FF then FF2.Parent=peron.Character else FF2.Parent=nil end
  412. elseif (key=="b") then
  413. damage.Value = damage.Value-1 say("damage: "..damage.Value)
  414. elseif (key=="r") then
  415. speed = 2 range = 0 damage.Value = 0 say("speed: "..speed) say("damage: "..damage.Value) say("range: "..range)
  416. elseif (key=="e") then
  417. FIRE=true
  418. while FIRE do
  419. wire(part11.Position,mouse.Hit.p,math.huge)
  420. wire2(part12.Position,mouse.Hit.p,math.huge)
  421. if mouse.Target then
  422. mouse.Target:breakJoints()
  423. if mouse.Target:getMass()<1000 then mouse.Target.Anchored=false end
  424. end
  425. wait()
  426. end
  427. beam.Parent=nil
  428. beam1.Parent=nil
  429. elseif (key=="q") then
  430. local target = findNearestTorso(me.Torso.Position)
  431. if target ~= nil then
  432. baned = game.Players:children()
  433. for x = 1, #baned do
  434. if baned[x].Name == peron.Name then
  435. head = target.Parent:findFirstChild("Humanoid")
  436. if head.Health ~= 0 then
  437. tag = Instance.new("ObjectValue") tag.Value = baned[x] tag.Name = "creator" tag.Parent = head
  438. Balefire(target.Position, target) Balefire1(target.Position, target)
  439. end
  440. end
  441. end
  442. end
  443. end
  444. end
  445. end
  446.  
  447. function onSelected(mouse)
  448. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  449. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  450. mouse.Button1Up:connect(function() onButton1Up(mouse) end)
  451. mouse.KeyDown:connect(function(key) onKeyDown(key,mouse) end)
  452. mouse.KeyUp:connect(function(key) onKeyUp(key,mouse) end)
  453. end
  454.  
  455. bin.Selected:connect(onSelected) -- LEGO
  456. end
  457. peron.CharacterAdded:connect(function() wait() chair() end)
  458. chair()
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465. local HINT=Instance.new("ScreenGui",peron.PlayerGui)
  466. local Text=Instance.new("Frame",HINT)
  467. --Instance.new("ForceField",peron.Character)
  468. Text.Position=UDim2.new(0.290000057, 0, 0.00999999978, 0)
  469. Text.Size=UDim2.new(0.45, 0, 0.0399999991, 0)
  470. --Text.Style="RobloxRound"
  471. Text.BackgroundTransparency=0.5
  472. local INNER=Instance.new("TextLabel")
  473. INNER.Parent=Text
  474. INNER.Position=UDim2.new(0.5,0,0.5,0)
  475. INNER.TextColor3=Color3.new(1,1,1)
  476. while wait() do
  477. INNER.Text="HoverChair OS | F Speed: "..speed.." C | To Fire YAR LAZERS, press Q. | N for FF, M to call "
  478. Text.Parent=HINT
  479. INNER.Parent=Text
  480. HINT.Parent=peron.PlayerGui
  481. end
  482.  
  483. --mediafire gtfo password
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement