McSans

Fe test

Mar 2nd, 2019
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 45.84 KB | None | 0 0
  1.  
  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,game,owner = owner,game
  5. local RealPlayer = Player
  6. do
  7. print("FE Compatibility code by retram")
  8. local rp = RealPlayer
  9. script.Parent = rp.Character
  10.  
  11. --RemoteEvent for communicating
  12. local Event = Instance.new("RemoteEvent")
  13. Event.Name = "UserInput_Event"
  14.  
  15. --Fake event to make stuff like Mouse.KeyDown work
  16. local function fakeEvent()
  17. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  18. t.connect = t.Connect
  19. return t
  20. end
  21.  
  22. --Creating fake input objects with fake variables
  23. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  24. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  25. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  26. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  27. end}
  28. --Merged 2 functions into one by checking amount of arguments
  29. CAS.UnbindAction = CAS.BindAction
  30.  
  31. --This function will trigger the events that have been :Connect()'ed
  32. local function te(self,ev,...)
  33. local t = m[ev]
  34. if t and t._fakeEvent then
  35. for _,f in pairs(t.Functions) do
  36. f(...)
  37. end
  38. end
  39. end
  40. m.TrigEvent = te
  41. UIS.TrigEvent = te
  42.  
  43. Event.OnServerEvent:Connect(function(plr,io)
  44. if plr~=rp then return end
  45. m.Target = io.Target
  46. m.Hit = io.Hit
  47. if not io.isMouse then
  48. local b = io.UserInputState == Enum.UserInputState.Begin
  49. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  50. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  51. end
  52. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  53. return m:TrigEvent(b and "Button2Down" or "Button2Up")
  54. end
  55. for _,t in pairs(CAS.Actions) do
  56. for _,k in pairs(t.Keys) do
  57. if k==io.KeyCode then
  58. t.Function(t.Name,io.UserInputState,io)
  59. end
  60. end
  61. end
  62. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  63. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  64. end
  65. end)
  66. Event.Parent = NLS([==[
  67. local Player = game:GetService("Players").LocalPlayer
  68. local Event = script:WaitForChild("UserInput_Event")
  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. local h,t
  79. --Give the server mouse data 30 times every second, but only if the values changed
  80. --If player is not moving their mouse, client won't fire events
  81. while wait(1/30) do
  82. if h~=Mouse.Hit or t~=Mouse.Target then
  83. h,t=Mouse.Hit,Mouse.Target
  84. Event:FireServer({isMouse=true,Target=t,Hit=h})
  85. end
  86. end]==],Player.Character)
  87.  
  88. ----Sandboxed game object that allows the usage of client-side methods and services
  89. --Real game object
  90. local _rg = game
  91.  
  92. --Metatable for fake service
  93. local fsmt = {
  94. __index = function(self,k)
  95. local s = rawget(self,"_RealService")
  96. if s then
  97. return typeof(s[k])=="function"
  98. and function(_,...)return s[k](s,...)end or s[k]
  99. end
  100. end,
  101. __newindex = function(self,k,v)
  102. local s = rawget(self,"_RealService")
  103. if s then s[k]=v end
  104. end
  105. }
  106. local function FakeService(t,RealService)
  107. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  108. return setmetatable(t,fsmt)
  109. end
  110.  
  111. --Fake game object
  112. local g = {
  113. GetService = function(self,s)
  114. return rawget(self,s) or _rg:GetService(s)
  115. end,
  116. Players = FakeService({
  117. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  118. },"Players"),
  119. UserInputService = FakeService(UIS,"UserInputService"),
  120. ContextActionService = FakeService(CAS,"ContextActionService"),
  121. RunService = FakeService({
  122. _btrs = {},
  123. RenderStepped = _rg:GetService("RunService").Heartbeat,
  124. BindToRenderStep = function(self,name,_,fun)
  125. self._btrs[name] = self.Heartbeat:Connect(fun)
  126. end,
  127. UnbindFromRenderStep = function(self,name)
  128. self._btrs[name]:Disconnect()
  129. end,
  130. },"RunService")
  131. }
  132. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  133. g.service = g.GetService
  134. FakeService(g,game)
  135. --Changing owner to fake player object to support owner:GetMouse()
  136. game,owner = g,g.Players.LocalPlayer
  137. end --xChair--
  138.  
  139. --[[
  140. MODES
  141. ----------
  142. DAMAGE = 'Q'
  143. HATSTEEL = 'E'
  144. BUILD = 'R'
  145. EXPLODE = 'T'
  146. TELEPORT = 'Z'
  147. HEAL = 'H'
  148. BOOST = 'F'
  149. --]]
  150.  
  151. plr = game.Players.LocalPlayer
  152. char = plr.Character
  153. local mouse = plr:GetMouse()
  154. mode = 'damage'
  155. local human = char.Humanoid
  156. char.Animate:Destroy()
  157. running = false
  158. human.Running:connect(function(speed)
  159. if speed <= 0 then
  160. running = false
  161. else
  162. running = true
  163. end
  164. end)
  165. local function weldBetween(a, b)
  166. local weld = Instance.new("ManualWeld")
  167. weld.Part0 = a
  168. weld.Part1 = b
  169. weld.C0 = CFrame.new()
  170. weld.C1 = b.CFrame:inverse() * a.CFrame
  171. weld.Parent = a
  172. return weld;
  173. end
  174.  
  175. function takehats(char)
  176. for i,v in pairs(char:GetChildren()) do
  177. if v.ClassName == "Hat" then
  178. v.Parent = game.Players.LocalPlayer.Character
  179. end
  180. end
  181. end
  182.  
  183.  
  184. char.Torso.Transparency = 1
  185. --------------------------ARM 1-----------------------------------------
  186. local rawc = char["Right Arm"]:clone()
  187. char["Right Arm"]:Destroy()
  188. rawc.Parent = char
  189. local RAW = weldBetween(char.Torso, char["Right Arm"])
  190. RAW.C1 = CFrame.new(-1.5, 0, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1)
  191. --------------------------LEG 1-----------------------------------------
  192. local rlwc = char["Right Leg"]:clone()
  193. char["Right Leg"]:Destroy()
  194. rlwc.Parent = char
  195. local RLW = weldBetween(char.Torso, char["Right Leg"])
  196. RLW.C1 = CFrame.new(-1.5, 0, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1)
  197. --------------------------LEG 2-----------------------------------------
  198. local llwc = char["Left Leg"]:clone()
  199. char["Left Leg"]:Destroy()
  200. llwc.Parent = char
  201. local LLW = weldBetween(char.Torso, char["Left Leg"])
  202. LLW.C1 = CFrame.new(-1.5, 0, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1)
  203.  
  204. ----------------------------ARM 2---------------------------------------
  205.  
  206. local lawc = char["Left Arm"]:clone()
  207. char["Left Arm"]:Destroy()
  208. lawc.Parent = char
  209. local LAW = weldBetween(char.Torso, char["Left Arm"])
  210. LAW.C1 = CFrame.new(1.5, 0, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1)
  211.  
  212. -----------------------------HEAD----------------------------------
  213. local heaw = weldBetween(char.Torso, char.Head)
  214. -----------------------------------------------------------------------
  215.  
  216.  
  217.  
  218. Tween = function(Weld, Stop, Step,a)
  219. ypcall(function()
  220. local func = function()
  221. local Start = Weld.C1
  222. local X1, Y1, Z1 = Start:toEulerAnglesXYZ()
  223. local Stop = Stop
  224. local X2, Y2, Z2 = Stop:toEulerAnglesXYZ()
  225.  
  226. for i = 0, 1, Step or .1 do
  227. Weld.C1 = CFrame.new( (Start.p.X * (1 - i)) + (Stop.p.X * i),
  228. (Start.p.Y * (1 - i)) + (Stop.p.Y * i),
  229. (Start.p.Z * (1 - i)) + (Stop.p.Z * i)) * CFrame.fromEulerAnglesXYZ(
  230. (X1 * (1 - i)) + (X2 * i), (Y1 * (1 - i)) + (Y2 * i),
  231. (Z1 * (1 - i)) + (Z2 * i) )
  232. wait()
  233. end
  234.  
  235. Weld.C1 = Stop
  236. end
  237.  
  238. if a then coroutine.wrap(func)() else func() end
  239. end)
  240. end
  241.  
  242.  
  243.  
  244.  
  245.  
  246. local Seat = Instance.new("Part", char)
  247. Seat:BreakJoints()
  248. Seat.TopSurface = "Smooth"
  249. Seat.Name = 'Seat'
  250. Seat.BottomSurface = "Smooth"
  251. Seat.FormFactor = "Custom" Seat.CanCollide = false
  252. Seat.BrickColor = BrickColor.new("Medium stone grey")
  253. Seat.Size = Vector3.new(3.71499968, 0.77700007, 3.04400015)
  254. local Seatweld = Instance.new("ManualWeld")
  255. Seatweld.Part0 = char["Torso"]
  256. Seatweld.Part1 = Seat Seatweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  257. Seatweld.C1 = CFrame.new(-0.436842084, 1.27730489, 0.478226662, 0.998842537, 0, 0.0480999425, 0, 1, 0, -0.0480999425, 0, 0.998842537)
  258. Seatweld.Parent = char["Torso"]
  259.  
  260. local Extra = Instance.new("Part", char)
  261. Extra:BreakJoints()
  262. Extra.TopSurface = "Smooth"
  263. Extra.Name = 'Extra'
  264. Extra.BottomSurface = "Smooth"
  265. Extra.FormFactor = "Custom" Extra.CanCollide = false
  266. Extra.BrickColor = BrickColor.new("Medium stone grey")
  267. Extra.Size = Vector3.new(0.568000019, 1.0990001, 0.495000124)
  268. local Extraweld = Instance.new("ManualWeld")
  269. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  270. Extraweld.C1 = CFrame.new(1.54849625, -0.737998962, 1.29749203, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  271. Extraweld.Parent = Extra
  272. local ExtraMesh = Instance.new("CylinderMesh",Extra)
  273. ExtraMesh.Name = "Mesh"
  274. ExtraMesh.Offset = Vector3.new(0, 0, 0)
  275. ExtraMesh.Scale = Vector3.new(1, 1, 1)
  276.  
  277. local Extra = Instance.new("Part", char)
  278. Extra:BreakJoints()
  279. Extra.TopSurface = "Smooth"
  280. Extra.Name = 'Extra'
  281. Extra.BottomSurface = "Smooth"
  282. Extra.FormFactor = "Custom" Extra.CanCollide = false
  283. Extra.BrickColor = BrickColor.new("Medium stone grey")
  284. Extra.Size = Vector3.new(0.568000019, 1.0990001, 0.50300014)
  285. local Extraweld = Instance.new("ManualWeld")
  286. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  287. Extraweld.C1 = CFrame.new(-1.5555079, -0.737998962, 1.26849937, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  288. Extraweld.Parent = Extra
  289. local ExtraMesh = Instance.new("CylinderMesh",Extra)
  290. ExtraMesh.Name = "Mesh"
  291. ExtraMesh.Offset = Vector3.new(0, 0, 0)
  292. ExtraMesh.Scale = Vector3.new(1, 1, 1)
  293.  
  294. local Extra = Instance.new("Part", char)
  295. Extra:BreakJoints()
  296. Extra.TopSurface = "Smooth"
  297. Extra.Name = 'Extra'
  298. Extra.BottomSurface = "Smooth"
  299. Extra.FormFactor = "Custom" Extra.CanCollide = false
  300. Extra.BrickColor = BrickColor.new("Medium stone grey")
  301. Extra.Size = Vector3.new(0.788000047, 0.200000048, 3.19300008)
  302. local Extraweld = Instance.new("ManualWeld")
  303. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  304. Extraweld.C1 = CFrame.new(-1.38551331, -1.24449921, -0.0904994011, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  305. Extraweld.Parent = Extra
  306. local Extra = Instance.new("Part", char)
  307. Extra:BreakJoints()
  308. Extra.TopSurface = "Smooth"
  309. Extra.Name = 'Extra'
  310. Extra.BottomSurface = "Smooth"
  311. Extra.FormFactor = "Custom" Extra.CanCollide = false
  312. Extra.BrickColor = BrickColor.new("Medium stone grey")
  313. Extra.Size = Vector3.new(0.788000047, 0.200000048, 3.25000024)
  314. local Extraweld = Instance.new("ManualWeld")
  315. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  316. Extraweld.C1 = CFrame.new(1.37048721, -1.24449921, -0.0620036125, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  317. Extraweld.Parent = Extra
  318. local Extra = Instance.new("Part", char)
  319. Extra:BreakJoints()
  320. Extra.TopSurface = "Smooth"
  321. Extra.Name = 'Extra'
  322. Extra.BottomSurface = "Smooth"
  323. Extra.FormFactor = "Custom" Extra.CanCollide = false
  324. Extra.BrickColor = BrickColor.new("Medium stone grey")
  325. Extra.Size = Vector3.new(3.60299969, 2.34500003, 0.918000042)
  326. local Extraweld = Instance.new("ManualWeld")
  327. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  328. Extraweld.C1 = CFrame.new(0.0589904785, -1.5719986, -1.23900461, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  329. Extraweld.Parent = Extra
  330. local Extra = Instance.new("Part", char)
  331. Extra:BreakJoints()
  332. Extra.TopSurface = "Smooth"
  333. Extra.Name = 'Extra'
  334. Extra.BottomSurface = "Smooth"
  335. Extra.FormFactor = "Custom" Extra.CanCollide = false
  336. Extra.BrickColor = BrickColor.new("Medium stone grey")
  337. Extra.Size = Vector3.new(3.62799978, 0.34800005, 0.917999983)
  338. local Extraweld = Instance.new("ManualWeld")
  339. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  340. Extraweld.C1 = CFrame.new(0.0454930663, -2.93249893, -1.23600054, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  341. Extraweld.Parent = Extra
  342. local ExtraMesh = Instance.new("SpecialMesh",Extra)
  343. ExtraMesh.MeshId = ""
  344. ExtraMesh.MeshType = Enum.MeshType.Torso ExtraMesh.Name = "Mesh"
  345. ExtraMesh.Offset = Vector3.new(0, 0, 0)
  346. ExtraMesh.Scale = Vector3.new(1, 1, 1)
  347.  
  348. local Extra = Instance.new("WedgePart", char)
  349. Extra:BreakJoints()
  350. Extra.TopSurface = "Smooth"
  351. Extra.Name = 'Extra'
  352. Extra.BottomSurface = "Smooth"
  353. Extra.FormFactor = "Custom" Extra.CanCollide = false
  354. Extra.BrickColor = BrickColor.new("Medium stone grey")
  355. Extra.Size = Vector3.new(3.70700002, 0.75999999, 1.1500001)
  356. local Extraweld = Instance.new("ManualWeld")
  357. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  358. Extraweld.C1 = CFrame.new(0.0117220879, -0.027305603, 2.04488182, 0.999991775, 0, 0.00417119637, 0, 1, 0, -0.00417116284, 0, 0.999991715)
  359. Extraweld.Parent = Extra
  360. local Extra = Instance.new("Part", char)
  361. Extra:BreakJoints()
  362. Extra.TopSurface = "Smooth"
  363. Extra.Name = 'Extra'
  364. Extra.BottomSurface = "Smooth"
  365. Extra.FormFactor = "Custom" Extra.CanCollide = false
  366. Extra.BrickColor = BrickColor.new("Medium stone grey")
  367. Extra.Size = Vector3.new(0.200000003, 0.921000123, 0.634000063)
  368. local Extraweld = Instance.new("ManualWeld")
  369. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  370. Extraweld.C1 = CFrame.new(1.75548577, 0.794002533, 2.21600151, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  371. Extraweld.Parent = Extra
  372. local Extra = Instance.new("Part", char)
  373. Extra:BreakJoints()
  374. Extra.TopSurface = "Smooth"
  375. Extra.Name = 'Extra'
  376. Extra.BottomSurface = "Smooth"
  377. Extra.FormFactor = "Custom" Extra.CanCollide = false
  378. Extra.BrickColor = BrickColor.new("Medium stone grey")
  379. Extra.Size = Vector3.new(0.200000003, 0.921000123, 0.634000063)
  380. local Extraweld = Instance.new("ManualWeld")
  381. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  382. Extraweld.C1 = CFrame.new(-1.68250918, 0.794002533, 2.21599579, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  383. Extraweld.Parent = Extra
  384. local Extra = Instance.new("Part", char)
  385. Extra:BreakJoints()
  386. Extra.TopSurface = "Smooth"
  387. Extra.Name = 'Extra'
  388. Extra.BottomSurface = "Smooth"
  389. Extra.FormFactor = "Custom" Extra.CanCollide = false
  390. Extra.BrickColor = BrickColor.new("Medium stone grey")
  391. Extra.Size = Vector3.new(0.296999991, 0.22600013, 0.634000063)
  392. local Extraweld = Instance.new("ManualWeld")
  393. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  394. Extraweld.C1 = CFrame.new(1.80398464, 1.14150238, 2.21599388, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  395. Extraweld.Parent = Extra
  396. local Extra = Instance.new("Part", char)
  397. Extra:BreakJoints()
  398. Extra.TopSurface = "Smooth"
  399. Extra.Name = 'Extra'
  400. Extra.BottomSurface = "Smooth"
  401. Extra.FormFactor = "Custom" Extra.CanCollide = false
  402. Extra.BrickColor = BrickColor.new("Medium stone grey")
  403. Extra.Size = Vector3.new(0.296999991, 0.22600013, 0.634000063)
  404. local Extraweld = Instance.new("ManualWeld")
  405. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  406. Extraweld.C1 = CFrame.new(-1.72101617, 1.14150238, 2.2159977, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  407. Extraweld.Parent = Extra
  408. local Extra = Instance.new("Part", char)
  409. Extra:BreakJoints()
  410. Extra.TopSurface = "Smooth"
  411. Extra.Name = 'Extra'
  412. Extra.BottomSurface = "Smooth"
  413. Extra.FormFactor = "Custom" Extra.CanCollide = false
  414. Extra.BrickColor = BrickColor.new("Medium stone grey")
  415. Extra.Size = Vector3.new(1.43400002, 0.232000113, 1.14300013)
  416. local Extraweld = Instance.new("ManualWeld")
  417. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  418. Extraweld.C1 = CFrame.new(1.43379831, -1.95537186, 2.23299217, 0.0168066788, 0.999856353, 5.82076609e-010, -0.999856353, 0.0168066788, 6.33299351e-008, 0, 0, 1)
  419. Extraweld.Parent = Extra
  420. local ExtraMesh = Instance.new("CylinderMesh",Extra)
  421. ExtraMesh.Name = "Mesh"
  422. ExtraMesh.Offset = Vector3.new(0, 0, 0)
  423. ExtraMesh.Scale = Vector3.new(1, 1, 1)
  424.  
  425. local Extra = Instance.new("Part", char)
  426. Extra:BreakJoints()
  427. Extra.TopSurface = "Smooth"
  428. Extra.Name = 'Extra'
  429. Extra.BottomSurface = "Smooth"
  430. Extra.FormFactor = "Custom" Extra.CanCollide = false
  431. Extra.BrickColor = BrickColor.new("Really black")
  432. Extra.Size = Vector3.new(1.43400002, 0.232000113, 0.829000115)
  433. local Extraweld = Instance.new("ManualWeld")
  434. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  435. Extraweld.C1 = CFrame.new(1.43379307, -2.00535631, 2.23299789, 0.0168066509, 0.999854743, 5.82076609e-010, -0.999854743, 0.0168066509, 6.33299351e-008, 0, 0, 1)
  436. Extraweld.Parent = Extra
  437. local ExtraMesh = Instance.new("CylinderMesh",Extra)
  438. ExtraMesh.Name = "Mesh"
  439. ExtraMesh.Offset = Vector3.new(0, 0, 0)
  440. ExtraMesh.Scale = Vector3.new(1, 1, 1)
  441.  
  442. local Extra = Instance.new("Part", char)
  443. Extra:BreakJoints()
  444. Extra.TopSurface = "Smooth"
  445. Extra.Name = 'Extra'
  446. Extra.BottomSurface = "Smooth"
  447. Extra.FormFactor = "Custom" Extra.CanCollide = false
  448. Extra.BrickColor = BrickColor.new("Medium stone grey")
  449. Extra.Size = Vector3.new(1.43400002, 0.200000003, 1.14300013)
  450. local Extraweld = Instance.new("ManualWeld")
  451. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  452. Extraweld.C1 = CFrame.new(1.38780296, -1.85258067, -2.23299694, 0.0168067049, 0.999858499, 4.07453626e-010, 0.999858499, -0.0168067217, 8.94069672e-008, 8.94069672e-008, -1.46930046e-009, -1)
  453. Extraweld.Parent = Extra
  454. local ExtraMesh = Instance.new("CylinderMesh",Extra)
  455. ExtraMesh.Name = "Mesh"
  456. ExtraMesh.Offset = Vector3.new(0, 0, 0)
  457. ExtraMesh.Scale = Vector3.new(1, 1, 1)
  458.  
  459. local Extra = Instance.new("Part", char)
  460. Extra:BreakJoints()
  461. Extra.TopSurface = "Smooth"
  462. Extra.Name = 'Extra'
  463. Extra.BottomSurface = "Smooth"
  464. Extra.FormFactor = "Custom" Extra.CanCollide = false
  465. Extra.BrickColor = BrickColor.new("Really black")
  466. Extra.Size = Vector3.new(1.43400002, 0.200000003, 0.829000115)
  467. local Extraweld = Instance.new("ManualWeld")
  468. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  469. Extraweld.C1 = CFrame.new(1.3878001, -1.90258074, -2.23299599, 0.0168067086, 0.999858558, 9.89530236e-010, 0.999858558, -0.0168067235, 1.2665987e-007, 8.94069672e-008, -1.46930046e-009, -1)
  470. Extraweld.Parent = Extra
  471. local ExtraMesh = Instance.new("CylinderMesh",Extra)
  472. ExtraMesh.Name = "Mesh"
  473. ExtraMesh.Offset = Vector3.new(0, 0, 0)
  474. ExtraMesh.Scale = Vector3.new(1, 1, 1)
  475.  
  476. local Extra = Instance.new("Part", char)
  477. Extra:BreakJoints()
  478. Extra.TopSurface = "Smooth"
  479. Extra.Name = 'Extra'
  480. Extra.BottomSurface = "Smooth"
  481. Extra.FormFactor = "Custom" Extra.CanCollide = false
  482. Extra.BrickColor = BrickColor.new("Medium stone grey")
  483. Extra.Size = Vector3.new(4.34100008, 0.573000073, 4.08699989)
  484. local Extraweld = Instance.new("ManualWeld")
  485. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  486. Extraweld.C1 = CFrame.new(-0.117188454, -2.12586164, -0.534004211, 0.016806718, 0.999858737, 5.82076609e-010, -0.999858737, 0.0168067198, -1.11758709e-008, 0, 0, 1)
  487. Extraweld.Parent = Extra
  488. local ExtraMesh = Instance.new("CylinderMesh",Extra)
  489. ExtraMesh.Name = "Mesh"
  490. ExtraMesh.Offset = Vector3.new(0, 0, 0)
  491. ExtraMesh.Scale = Vector3.new(1, 1, 1)
  492.  
  493. local Extra = Instance.new("Part", char)
  494. Extra:BreakJoints()
  495. Extra.TopSurface = "Smooth"
  496. Extra.Name = 'Extra'
  497. Extra.BottomSurface = "Smooth"
  498. Extra.FormFactor = "Custom" Extra.CanCollide = false
  499. Extra.BrickColor = BrickColor.new("Really black")
  500. Extra.Size = Vector3.new(4.34100008, 0.573000073, 3.773)
  501. local Extraweld = Instance.new("ManualWeld")
  502. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  503. Extraweld.C1 = CFrame.new(-0.11719501, -2.17586231, -0.534002304, 0.0168067198, 0.999858797, 5.82076609e-010, -0.999858797, 0.0168067198, 0, 0, 0, 1)
  504. Extraweld.Parent = Extra
  505. local ExtraMesh = Instance.new("CylinderMesh",Extra)
  506. ExtraMesh.Name = "Mesh"
  507. ExtraMesh.Offset = Vector3.new(0, 0, 0)
  508. ExtraMesh.Scale = Vector3.new(1, 1, 1)
  509.  
  510. local Extra = Instance.new("Part", char)
  511. Extra:BreakJoints()
  512. Extra.TopSurface = "Smooth"
  513. Extra.Name = 'Extra'
  514. Extra.BottomSurface = "Smooth"
  515. Extra.FormFactor = "Custom" Extra.CanCollide = false
  516. Extra.BrickColor = BrickColor.new("Medium stone grey")
  517. Extra.Size = Vector3.new(4.34100008, 0.573000073, 4.08699989)
  518. local Extraweld = Instance.new("ManualWeld")
  519. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  520. Extraweld.C1 = CFrame.new(-0.117194057, -2.01313376, 0.534003735, 0.0168067031, 0.999856472, 5.82076609e-010, 0.999856472, -0.0168066565, 5.21540642e-008, 8.94069672e-008, -1.46929091e-009, -1)
  521. Extraweld.Parent = Extra
  522. local ExtraMesh = Instance.new("CylinderMesh",Extra)
  523. ExtraMesh.Name = "Mesh"
  524. ExtraMesh.Offset = Vector3.new(0, 0, 0)
  525. ExtraMesh.Scale = Vector3.new(1, 1, 1)
  526.  
  527. local Extra = Instance.new("Part", char)
  528. Extra:BreakJoints()
  529. Extra.TopSurface = "Smooth"
  530. Extra.Name = 'Extra'
  531. Extra.BottomSurface = "Smooth"
  532. Extra.FormFactor = "Custom" Extra.CanCollide = false
  533. Extra.BrickColor = BrickColor.new("Really black")
  534. Extra.Size = Vector3.new(4.34100008, 0.573000073, 3.773)
  535. local Extraweld = Instance.new("ManualWeld")
  536. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  537. Extraweld.C1 = CFrame.new(-0.117191076, -2.0631218, 0.534003735, 0.0168067031, 0.999856532, 5.82076609e-010, 0.999856532, -0.0168066584, 5.21540642e-008, 8.94069672e-008, -1.46929091e-009, -1)
  538. Extraweld.Parent = Extra
  539. local ExtraMesh = Instance.new("CylinderMesh",Extra)
  540. ExtraMesh.Name = "Mesh"
  541. ExtraMesh.Offset = Vector3.new(0, 0, 0)
  542. ExtraMesh.Scale = Vector3.new(1, 1, 1)
  543.  
  544. local Extra = Instance.new("Part", char)
  545. Extra:BreakJoints()
  546. Extra.TopSurface = "Smooth"
  547. Extra.Name = 'Extra'
  548. Extra.BottomSurface = "Smooth"
  549. Extra.FormFactor = "Custom" Extra.CanCollide = false
  550. Extra.BrickColor = BrickColor.new("Dark stone grey")
  551. Extra.Size = Vector3.new(0.413999707, 0.394999981, 1.97000003)
  552. local Extraweld = Instance.new("ManualWeld")
  553. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  554. Extraweld.C1 = CFrame.new(1.54100084, -2.53600311, -2.32900763, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  555. Extraweld.Parent = Extra
  556. local Extra = Instance.new("Part", char)
  557. Extra:BreakJoints()
  558. Extra.TopSurface = "Smooth"
  559. Extra.Name = 'Extra'
  560. Extra.BottomSurface = "Smooth"
  561. Extra.FormFactor = "Custom" Extra.CanCollide = false
  562. Extra.BrickColor = BrickColor.new("Dark stone grey")
  563. Extra.Size = Vector3.new(0.413999707, 0.394999981, 1.97000003)
  564. local Extraweld = Instance.new("ManualWeld")
  565. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  566. Extraweld.C1 = CFrame.new(-1.43300843, -2.53600311, -2.32900667, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  567. Extraweld.Parent = Extra
  568. local Sight1 = Instance.new("Part", char)
  569. Sight1:BreakJoints()
  570. Sight1.TopSurface = "Smooth"
  571. Sight1.Name = 'Sight1'
  572. Sight1.BottomSurface = "Smooth"
  573. Sight1.FormFactor = "Custom" Sight1.CanCollide = false
  574. Sight1.BrickColor = BrickColor.new("Really black")
  575. Sight1.Size = Vector3.new(0.375999987, 1.13800001, 0.219000354)
  576. local Sight1weld = Instance.new("ManualWeld")
  577. Sight1weld.Part0 = Seat Sight1weld.Part1 = Sight1 Sight1weld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  578. Sight1weld.C1 = CFrame.new(0.0589828193, -3.94650269, 0.53849411, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  579. Sight1weld.Parent = Sight1
  580. local Pack = Instance.new("Part", char)
  581. Pack:BreakJoints()
  582. Pack.TopSurface = "Smooth"
  583. Pack.Name = 'Pack'
  584. Pack.BottomSurface = "Smooth"
  585. Pack.FormFactor = "Custom" Pack.CanCollide = false
  586. Pack.BrickColor = BrickColor.new("Really black")
  587. Pack.Size = Vector3.new(2.5619998, 2.32999992, 0.987000108)
  588. local Packweld = Instance.new("ManualWeld")
  589. Packweld.Part0 = Seat Packweld.Part1 = Pack Packweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  590. Packweld.C1 = CFrame.new(0.0589860976, -1.5644989, -1.83750725, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  591. Packweld.Parent = Pack
  592. local Sight = Instance.new("Part", char)
  593. Sight:BreakJoints()
  594. Sight.TopSurface = "Smooth"
  595. Sight.Name = 'Sight'
  596. Sight.BottomSurface = "Smooth"
  597. Sight.FormFactor = "Custom" Sight.CanCollide = false
  598. Sight.BrickColor = BrickColor.new("Really black")
  599. Sight.Size = Vector3.new(0.94599998, 0.701999962, 0.219000354)
  600. Sight.Transparency = 0.7
  601. local Sightweld = Instance.new("ManualWeld")
  602. Sightweld.Part0 = Seat Sightweld.Part1 = Sight Sightweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  603. Sightweld.C1 = CFrame.new(-0.227016628, -3.22650146, 0.538492203, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  604. Sightweld.Parent = Sight
  605. local FakeTorso = Instance.new("Part", char)
  606. FakeTorso:BreakJoints()
  607. FakeTorso.TopSurface = "Smooth"
  608. FakeTorso.Name = 'FakeTorso'
  609. FakeTorso.BottomSurface = "Smooth"
  610. FakeTorso.FormFactor = "Custom" FakeTorso.CanCollide = false
  611. FakeTorso.BrickColor = BrickColor.new("Really black")
  612. FakeTorso.Size = Vector3.new(2, 2, 1)
  613. local FakeTorsoweld = Instance.new("ManualWeld")
  614. FakeTorsoweld.Part0 = Seat FakeTorsoweld.Part1 = FakeTorso FakeTorsoweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  615. FakeTorsoweld.C1 = CFrame.new(0.0261787176, -1.84207273, 0.207453251, 0.999655664, 0.0114495121, -0.0235939212, -0.00555597525, 0.971703291, 0.236139566, 0.0256299879, -0.235926434, 0.971433282)
  616. FakeTorsoweld.Parent = FakeTorso
  617. local GunStable = Instance.new("Part", char)
  618. GunStable:BreakJoints()
  619. GunStable.TopSurface = "Smooth"
  620. GunStable.Name = 'GunStable'
  621. GunStable.BottomSurface = "Smooth"
  622. GunStable.FormFactor = "Custom" GunStable.CanCollide = false
  623. GunStable.BrickColor = BrickColor.new("Really black")
  624. GunStable.Size = Vector3.new(0.45600003, 2.32999992, 0.370000124)
  625. local GunStableweld = Instance.new("ManualWeld")
  626. GunStableweld.Part0 = Seat GunStableweld.Part1 = GunStable GunStableweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  627. GunStableweld.C1 = CFrame.new(0.0589980781, -3.84950256, -2.08850527, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  628. GunStableweld.Parent = GunStable
  629. local Boostpart = Instance.new("Part", char)
  630. Boostpart:BreakJoints()
  631. Boostpart.TopSurface = "Smooth"
  632. Boostpart.Name = 'Boostpart'
  633. Boostpart.BottomSurface = "Smooth"
  634. Boostpart.FormFactor = "Custom" Boostpart.CanCollide = false
  635. Boostpart.BrickColor = BrickColor.new("Really black")
  636. Boostpart.Size = Vector3.new(0.413999707, 0.394999981, 0.200000003)
  637. local Boostpartweld = Instance.new("ManualWeld")
  638. Boostpartweld.Part0 = Seat Boostpartweld.Part1 = Boostpart Boostpartweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  639. Boostpartweld.C1 = CFrame.new(-1.43300271, -2.53600311, -3.37199974, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  640. Boostpartweld.Parent = Boostpart
  641. local Boostpart2 = Instance.new("Part", char)
  642. Boostpart2:BreakJoints()
  643. Boostpart2.TopSurface = "Smooth"
  644. Boostpart2.Name = 'Boostpart2'
  645. Boostpart2.BottomSurface = "Smooth"
  646. Boostpart2.FormFactor = "Custom" Boostpart2.CanCollide = false
  647. Boostpart2.BrickColor = BrickColor.new("Really black")
  648. Boostpart2.Size = Vector3.new(0.413999707, 0.394999981, 0.200000003)
  649. local Boostpart2weld = Instance.new("ManualWeld")
  650. Boostpart2weld.Part0 = Seat Boostpart2weld.Part1 = Boostpart2 Boostpart2weld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  651. Boostpart2weld.C1 = CFrame.new(1.54098463, -2.53600311, -3.37200499, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  652. Boostpart2weld.Parent = Boostpart2
  653. local GunBarral = Instance.new("Part", char)
  654. GunBarral:BreakJoints()
  655. GunBarral.TopSurface = "Smooth"
  656. GunBarral.Name = 'GunBarral'
  657. GunBarral.BottomSurface = "Smooth"
  658. GunBarral.FormFactor = "Custom" GunBarral.CanCollide = false
  659. GunBarral.BrickColor = BrickColor.new("Really black")
  660. GunBarral.Size = Vector3.new(0.375999987, 0.352999985, 4.88500023)
  661. local GunBarralweld = Instance.new("ManualWeld")
  662. GunBarralweld.Part0 = Seat GunBarralweld.Part1 = GunBarral GunBarralweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  663. GunBarralweld.C1 = CFrame.new(0.0589904487, -4.68700027, -0.35300684, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  664. GunBarralweld.Parent = GunBarral
  665. local GunMag = Instance.new("Part", char)
  666. GunMag:BreakJoints()
  667. GunMag.TopSurface = "Smooth"
  668. GunMag.Name = 'GunMag'
  669. GunMag.BottomSurface = "Smooth"
  670. GunMag.FormFactor = "Custom" GunMag.CanCollide = false
  671. GunMag.BrickColor = BrickColor.new("Really black")
  672. GunMag.Size = Vector3.new(0.824000001, 0.654999971, 0.892000139)
  673. local GunMagweld = Instance.new("ManualWeld")
  674. GunMagweld.Part0 = Seat GunMagweld.Part1 = GunMag GunMagweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  675. GunMagweld.C1 = CFrame.new(0.0589942634, -4.68700027, -2.34950876, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  676. GunMagweld.Parent = GunMag
  677. local GunBlast = Instance.new("Part", char)
  678. GunBlast:BreakJoints()
  679. GunBlast.TopSurface = "Smooth"
  680. GunBlast.Name = 'GunBlast'
  681. GunBlast.BottomSurface = "Smooth"
  682. GunBlast.FormFactor = "Custom" GunBlast.CanCollide = false
  683. GunBlast.BrickColor = BrickColor.new("Really black")
  684. GunBlast.Size = Vector3.new(0.941999972, 0.969999969, 0.200000003)
  685. local GunBlastweld = Instance.new("ManualWeld")
  686. GunBlastweld.Part0 = Seat GunBlastweld.Part1 = GunBlast GunBlastweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  687. GunBlastweld.C1 = CFrame.new(0.0589976311, -4.68700027, 1.98949432, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  688. GunBlastweld.Parent = GunBlast
  689.  
  690.  
  691.  
  692. ------------------------------------------------------------------------------------------
  693.  
  694. Tween(heaw, CFrame.new(-0.413999856, -1.92999959, -0.210000008, 1, 0, 0, 0, 0.978148043, -0.207911745, 0, 0.207911745, 0.978148043) , .1, true)
  695. Tween(RAW, CFrame.new(-1.87999964, 1.04999948, 1.06999934, 0.881515563, 0.241381884, 0.405797154, -0.467570841, 0.326720238, 0.821365237, 0.0656802952, -0.913782716, 0.400870949), .1, true)
  696. Tween(LAW, CFrame.new(0.270001173, -1.18999922, -1.43999898, 0.788093567, 0.286842585, -0.544639528, -0.539656579, -0.103669383, -0.835481584, -0.296113938, 0.952355325, 0.0730953068), .1, true)
  697. Tween(LLW,CFrame.new(0.120000415, -1.66999829, 0.400000453, 0.999980032, -0.00637814868, 0.000165756792, -0.000388266519, -0.0867659673, -0.996230364, 0.00636848854, 0.99620986, -0.0867666453) , .1, true)
  698. Tween(RLW, CFrame.new(-1.03999949, 1.54999995, -0.25000003, 0.999847949, 0.00182427373, 0.0173568055, -0.0173860081, 0.190793589, 0.981477916, -0.00152108353, -0.981630087, 0.190796345), .1, true)
  699. boosting = false
  700.  
  701. function boost()
  702. if boosting == false then
  703. boosting = true
  704.  
  705. human.WalkSpeed = 300
  706. coroutine.resume(coroutine.create(function()
  707. for i=1, 100 do
  708. wait(0.05)
  709. local p = Instance.new("Part", char)
  710. p.Anchored = true
  711. p.BrickColor = BrickColor.Random()
  712. p.Transparency = 0
  713. p.CanCollide = false
  714. p.FormFactor = "Custom"
  715. p.Name = 'Effect'
  716. p.Size = Vector3.new(2, 2, 2)
  717. p.CFrame = Boostpart.CFrame * CFrame.Angles(math.random(1,360),math.random(1,360),math.random(1,360))
  718. coroutine.resume(coroutine.create(function()
  719. for i=1, 10 do
  720. p.Transparency = p.Transparency + 0.1
  721. wait()
  722. if i == 10 then
  723. p:Destroy()
  724. end
  725. end
  726. end))
  727. end
  728. end))
  729.  
  730.  
  731. for i=1, 100 do
  732. wait(0.05)
  733. local p = Instance.new("Part", char)
  734. p.Anchored = true
  735. p.CanCollide = false
  736. p.BrickColor = BrickColor.Random()
  737. p.Transparency = 0
  738. p.FormFactor = "Custom"
  739. p.Name = 'Effect'
  740. p.Size = Vector3.new(2, 2, 2)
  741. p.CFrame = Boostpart2.CFrame * CFrame.Angles(math.random(1,360),math.random(1,360),math.random(1,360))
  742. coroutine.resume(coroutine.create(function()
  743. for i=1, 10 do
  744. p.Transparency = p.Transparency + 0.1
  745. wait()
  746. if i == 10 then
  747. p:Destroy()
  748. end
  749. end
  750. end))
  751. end
  752. human.WalkSpeed = 16
  753. wait(9)
  754. boosting = false
  755. end
  756. end
  757.  
  758.  
  759. mouse.KeyDown:connect(function(key)
  760. if key == "f" then
  761. boost()
  762. elseif key == 'q' then
  763. mode = "damage"
  764. elseif key == "e" then
  765. mode = "steel"
  766. elseif key == 'r' then
  767. mode = 'draw'
  768. elseif key == 't' then
  769. mode = 'explode'
  770. elseif key == 'h' then
  771. mode = 'heal'
  772. elseif key == 'z' then
  773. mode = 'tele'
  774. end
  775. end)
  776. function shoot()
  777. pcall(function()
  778.  
  779. local ray = Ray.new(GunBlast.CFrame.p, (mouse.Hit.p - GunBlast.CFrame.p).unit*400)
  780. local hit, position = game.Workspace:FindPartOnRay(ray, char)
  781.  
  782. local humanoid = hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid") or hit.Parent.Parent:FindFirstChild("Humanoid")
  783.  
  784. if mode == "damage" then
  785. if humanoid and humanoid.Health ~= 0 then
  786. if hit.Name == 'Head' or hit.Name == 'Handle' then
  787. humanoid:TakeDamage(5000)
  788. else
  789. humanoid:TakeDamage(30)
  790. end
  791. end
  792. elseif mode == "steel" then
  793. if humanoid and humanoid.Health ~= 0 then
  794. takehats(humanoid.Parent)
  795. end
  796. elseif mode == 'draw' then
  797. local p = Instance.new("Part", workspace)
  798. p.Anchored = true
  799. p.Parent = char
  800. p.CFrame = CFrame.new(mouse.Hit.X, mouse.Hit.Y + 0.1, mouse.Hit.Z)
  801. elseif mode == 'explode' then
  802. local p = Instance.new("Part", workspace)
  803. p.Anchored = true
  804. p.Parent = char
  805. p.CFrame = CFrame.new(mouse.Hit.X, mouse.Hit.Y + 0.1, mouse.Hit.Z)
  806. p.Transparency = 1
  807. local ex = Instance.new("Explosion", p)
  808. ex.Position = p.Position
  809. elseif mode == 'tele' then
  810. coroutine.resume(coroutine.create(function()
  811. wait(0.1)
  812. local p = Instance.new("Part", workspace)
  813. p.Anchored = true
  814. p.Parent = char
  815. p.CFrame = CFrame.new(mouse.Hit.X, mouse.Hit.Y + 0.8, mouse.Hit.Z)
  816. p.CanCollide = true
  817. p.Transparency = 1
  818. char.Torso.CFrame = p.CFrame
  819. p:Destroy()
  820. end))
  821. elseif mode == 'heal' then
  822. if humanoid and humanoid.Health ~= 0 then
  823. humanoid.Health = humanoid.Health + 20
  824.  
  825. end
  826. end
  827.  
  828. local distance = (position - GunBlast.CFrame.p).magnitude
  829. local rayPart = Instance.new("Part", char)
  830. rayPart.Name = "RayPart"
  831. if mode == "damage" then
  832. rayPart.BrickColor = BrickColor.new("Really red")
  833. elseif mode == "steel" then
  834. rayPart.BrickColor = BrickColor.new("Royal purple")
  835. elseif mode == 'explode' then
  836. rayPart.BrickColor = BrickColor.new("Bright blue")
  837. elseif mode == 'heal' then
  838. rayPart.BrickColor = BrickColor.new("Lime green")
  839. elseif mode == 'tele' then
  840. rayPart.BrickColor = BrickColor.new("Brown")
  841. end
  842. rayPart.Transparency = 0
  843. rayPart.Anchored = true
  844. rayPart.CanCollide = false
  845. rayPart.TopSurface = Enum.SurfaceType.Smooth
  846. rayPart.BottomSurface = Enum.SurfaceType.Smooth
  847. rayPart.formFactor = Enum.FormFactor.Custom
  848. rayPart.Size = Vector3.new(0.4, 0.4, distance)
  849. rayPart.CFrame = CFrame.new(position, GunBlast.CFrame.p) * CFrame.new(0, 0, -distance/2)
  850.  
  851. local rp2 = Instance.new("Part", char)
  852. rp2.Name = "RayPart"
  853. rp2.BrickColor = BrickColor.new("White")
  854. rp2.Transparency = 0
  855. rp2.Anchored = true
  856. rp2.CanCollide = false
  857. rp2.TopSurface = Enum.SurfaceType.Smooth
  858. rp2.BottomSurface = Enum.SurfaceType.Smooth
  859. rp2.formFactor = Enum.FormFactor.Custom
  860. rp2.Size = Vector3.new(0.1, 0.1, distance)
  861. rp2.CFrame = CFrame.new(position, GunBlast.CFrame.p) * CFrame.new(0, 0, -distance/2)
  862. coroutine.resume(coroutine.create(function()
  863. for i=1, 10 do
  864. rayPart.Transparency = rayPart.Transparency + 0.1
  865. rp2.Transparency = rp2.Transparency + 0.1
  866. wait()
  867. if i == 10 then
  868. rayPart:Destroy()
  869. rp2:Destroy()
  870. end
  871. end
  872. end))
  873. end)
  874. end
  875.  
  876.  
  877. mouse.Button1Down:connect(function()
  878. shoot()
  879. end)
Add Comment
Please, Sign In to add comment