Advertisement
Createok

Untitled

Dec 20th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 44.11 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.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,Connect=function(self,f)self.Function=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()}
  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 and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87. --xChair--
  88.  
  89. --[[
  90. MODES
  91. ----------
  92. DAMAGE = 'Q'
  93. HATSTEEL = 'E'
  94. BUILD = 'R'
  95. EXPLODE = 'T'
  96. TELEPORT = 'Z'
  97. HEAL = 'H'
  98. BOOST = 'F'
  99. --]]
  100.  
  101. plr = game.Players.hsdfsfsdfds
  102. char = plr.Character
  103. mode = 'damage'
  104. local human = char.Humanoid
  105. char.Animate:Destroy()
  106. running = false
  107. human.Running:connect(function(speed)
  108. if speed <= 0 then
  109. running = false
  110. else
  111. running = true
  112. end
  113. end)
  114. local function weldBetween(a, b)
  115. local weld = Instance.new("ManualWeld")
  116. weld.Part0 = a
  117. weld.Part1 = b
  118. weld.C0 = CFrame.new()
  119. weld.C1 = b.CFrame:inverse() * a.CFrame
  120. weld.Parent = a
  121. return weld;
  122. end
  123.  
  124. function takehats(char)
  125. for i,v in pairs(char:GetChildren()) do
  126. if v.ClassName == "Hat" then
  127. v.Parent = game.Players.hsdfsfsdfds.Character
  128. end
  129. end
  130. end
  131.  
  132.  
  133. char.Torso.Transparency = 1
  134. --------------------------ARM 1-----------------------------------------
  135. local rawc = char["Right Arm"]:clone()
  136. char["Right Arm"]:Destroy()
  137. rawc.Parent = char
  138. local RAW = weldBetween(char.Torso, char["Right Arm"])
  139. RAW.C1 = CFrame.new(-1.5, 0, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1)
  140. --------------------------LEG 1-----------------------------------------
  141. local rlwc = char["Right Leg"]:clone()
  142. char["Right Leg"]:Destroy()
  143. rlwc.Parent = char
  144. local RLW = weldBetween(char.Torso, char["Right Leg"])
  145. RLW.C1 = CFrame.new(-1.5, 0, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1)
  146. --------------------------LEG 2-----------------------------------------
  147. local llwc = char["Left Leg"]:clone()
  148. char["Left Leg"]:Destroy()
  149. llwc.Parent = char
  150. local LLW = weldBetween(char.Torso, char["Left Leg"])
  151. LLW.C1 = CFrame.new(-1.5, 0, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1)
  152.  
  153. ----------------------------ARM 2---------------------------------------
  154.  
  155. local lawc = char["Left Arm"]:clone()
  156. char["Left Arm"]:Destroy()
  157. lawc.Parent = char
  158. local LAW = weldBetween(char.Torso, char["Left Arm"])
  159. LAW.C1 = CFrame.new(1.5, 0, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1)
  160.  
  161. -----------------------------HEAD----------------------------------
  162. local heaw = weldBetween(char.Torso, char.Head)
  163. -----------------------------------------------------------------------
  164.  
  165.  
  166.  
  167. Tween = function(Weld, Stop, Step,a)
  168. ypcall(function()
  169. local func = function()
  170. local Start = Weld.C1
  171. local X1, Y1, Z1 = Start:toEulerAnglesXYZ()
  172. local Stop = Stop
  173. local X2, Y2, Z2 = Stop:toEulerAnglesXYZ()
  174.  
  175. for i = 0, 1, Step or .1 do
  176. Weld.C1 = CFrame.new( (Start.p.X * (1 - i)) + (Stop.p.X * i),
  177. (Start.p.Y * (1 - i)) + (Stop.p.Y * i),
  178. (Start.p.Z * (1 - i)) + (Stop.p.Z * i)) * CFrame.fromEulerAnglesXYZ(
  179. (X1 * (1 - i)) + (X2 * i), (Y1 * (1 - i)) + (Y2 * i),
  180. (Z1 * (1 - i)) + (Z2 * i) )
  181. wait()
  182. end
  183.  
  184. Weld.C1 = Stop
  185. end
  186.  
  187. if a then coroutine.wrap(func)() else func() end
  188. end)
  189. end
  190.  
  191.  
  192.  
  193.  
  194.  
  195. local Seat = Instance.new("Part", char)
  196. Seat:BreakJoints()
  197. Seat.TopSurface = "Smooth"
  198. Seat.Name = 'Seat'
  199. Seat.BottomSurface = "Smooth"
  200. Seat.FormFactor = "Custom" Seat.CanCollide = false
  201. Seat.BrickColor = BrickColor.new("Medium stone grey")
  202. Seat.Size = Vector3.new(3.71499968, 0.77700007, 3.04400015)
  203. local Seatweld = Instance.new("ManualWeld")
  204. Seatweld.Part0 = char["Torso"]
  205. Seatweld.Part1 = Seat Seatweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  206. Seatweld.C1 = CFrame.new(-0.436842084, 1.27730489, 0.478226662, 0.998842537, 0, 0.0480999425, 0, 1, 0, -0.0480999425, 0, 0.998842537)
  207. Seatweld.Parent = char["Torso"]
  208.  
  209. local Extra = Instance.new("Part", char)
  210. Extra:BreakJoints()
  211. Extra.TopSurface = "Smooth"
  212. Extra.Name = 'Extra'
  213. Extra.BottomSurface = "Smooth"
  214. Extra.FormFactor = "Custom" Extra.CanCollide = false
  215. Extra.BrickColor = BrickColor.new("Medium stone grey")
  216. Extra.Size = Vector3.new(0.568000019, 1.0990001, 0.495000124)
  217. local Extraweld = Instance.new("ManualWeld")
  218. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  219. Extraweld.C1 = CFrame.new(1.54849625, -0.737998962, 1.29749203, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  220. Extraweld.Parent = Extra
  221. local ExtraMesh = Instance.new("CylinderMesh",Extra)
  222. ExtraMesh.Name = "Mesh"
  223. ExtraMesh.Offset = Vector3.new(0, 0, 0)
  224. ExtraMesh.Scale = Vector3.new(1, 1, 1)
  225.  
  226. local Extra = Instance.new("Part", char)
  227. Extra:BreakJoints()
  228. Extra.TopSurface = "Smooth"
  229. Extra.Name = 'Extra'
  230. Extra.BottomSurface = "Smooth"
  231. Extra.FormFactor = "Custom" Extra.CanCollide = false
  232. Extra.BrickColor = BrickColor.new("Medium stone grey")
  233. Extra.Size = Vector3.new(0.568000019, 1.0990001, 0.50300014)
  234. local Extraweld = Instance.new("ManualWeld")
  235. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  236. Extraweld.C1 = CFrame.new(-1.5555079, -0.737998962, 1.26849937, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  237. Extraweld.Parent = Extra
  238. local ExtraMesh = Instance.new("CylinderMesh",Extra)
  239. ExtraMesh.Name = "Mesh"
  240. ExtraMesh.Offset = Vector3.new(0, 0, 0)
  241. ExtraMesh.Scale = Vector3.new(1, 1, 1)
  242.  
  243. local Extra = Instance.new("Part", char)
  244. Extra:BreakJoints()
  245. Extra.TopSurface = "Smooth"
  246. Extra.Name = 'Extra'
  247. Extra.BottomSurface = "Smooth"
  248. Extra.FormFactor = "Custom" Extra.CanCollide = false
  249. Extra.BrickColor = BrickColor.new("Medium stone grey")
  250. Extra.Size = Vector3.new(0.788000047, 0.200000048, 3.19300008)
  251. local Extraweld = Instance.new("ManualWeld")
  252. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  253. Extraweld.C1 = CFrame.new(-1.38551331, -1.24449921, -0.0904994011, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  254. Extraweld.Parent = Extra
  255. local Extra = Instance.new("Part", char)
  256. Extra:BreakJoints()
  257. Extra.TopSurface = "Smooth"
  258. Extra.Name = 'Extra'
  259. Extra.BottomSurface = "Smooth"
  260. Extra.FormFactor = "Custom" Extra.CanCollide = false
  261. Extra.BrickColor = BrickColor.new("Medium stone grey")
  262. Extra.Size = Vector3.new(0.788000047, 0.200000048, 3.25000024)
  263. local Extraweld = Instance.new("ManualWeld")
  264. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  265. Extraweld.C1 = CFrame.new(1.37048721, -1.24449921, -0.0620036125, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  266. Extraweld.Parent = Extra
  267. local Extra = Instance.new("Part", char)
  268. Extra:BreakJoints()
  269. Extra.TopSurface = "Smooth"
  270. Extra.Name = 'Extra'
  271. Extra.BottomSurface = "Smooth"
  272. Extra.FormFactor = "Custom" Extra.CanCollide = false
  273. Extra.BrickColor = BrickColor.new("Medium stone grey")
  274. Extra.Size = Vector3.new(3.60299969, 2.34500003, 0.918000042)
  275. local Extraweld = Instance.new("ManualWeld")
  276. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  277. Extraweld.C1 = CFrame.new(0.0589904785, -1.5719986, -1.23900461, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  278. Extraweld.Parent = Extra
  279. local Extra = Instance.new("Part", char)
  280. Extra:BreakJoints()
  281. Extra.TopSurface = "Smooth"
  282. Extra.Name = 'Extra'
  283. Extra.BottomSurface = "Smooth"
  284. Extra.FormFactor = "Custom" Extra.CanCollide = false
  285. Extra.BrickColor = BrickColor.new("Medium stone grey")
  286. Extra.Size = Vector3.new(3.62799978, 0.34800005, 0.917999983)
  287. local Extraweld = Instance.new("ManualWeld")
  288. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  289. Extraweld.C1 = CFrame.new(0.0454930663, -2.93249893, -1.23600054, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  290. Extraweld.Parent = Extra
  291. local ExtraMesh = Instance.new("SpecialMesh",Extra)
  292. ExtraMesh.MeshId = ""
  293. ExtraMesh.MeshType = Enum.MeshType.Torso ExtraMesh.Name = "Mesh"
  294. ExtraMesh.Offset = Vector3.new(0, 0, 0)
  295. ExtraMesh.Scale = Vector3.new(1, 1, 1)
  296.  
  297. local Extra = Instance.new("WedgePart", char)
  298. Extra:BreakJoints()
  299. Extra.TopSurface = "Smooth"
  300. Extra.Name = 'Extra'
  301. Extra.BottomSurface = "Smooth"
  302. Extra.FormFactor = "Custom" Extra.CanCollide = false
  303. Extra.BrickColor = BrickColor.new("Medium stone grey")
  304. Extra.Size = Vector3.new(3.70700002, 0.75999999, 1.1500001)
  305. local Extraweld = Instance.new("ManualWeld")
  306. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  307. Extraweld.C1 = CFrame.new(0.0117220879, -0.027305603, 2.04488182, 0.999991775, 0, 0.00417119637, 0, 1, 0, -0.00417116284, 0, 0.999991715)
  308. Extraweld.Parent = Extra
  309. local Extra = Instance.new("Part", char)
  310. Extra:BreakJoints()
  311. Extra.TopSurface = "Smooth"
  312. Extra.Name = 'Extra'
  313. Extra.BottomSurface = "Smooth"
  314. Extra.FormFactor = "Custom" Extra.CanCollide = false
  315. Extra.BrickColor = BrickColor.new("Medium stone grey")
  316. Extra.Size = Vector3.new(0.200000003, 0.921000123, 0.634000063)
  317. local Extraweld = Instance.new("ManualWeld")
  318. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  319. Extraweld.C1 = CFrame.new(1.75548577, 0.794002533, 2.21600151, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  320. Extraweld.Parent = Extra
  321. local Extra = Instance.new("Part", char)
  322. Extra:BreakJoints()
  323. Extra.TopSurface = "Smooth"
  324. Extra.Name = 'Extra'
  325. Extra.BottomSurface = "Smooth"
  326. Extra.FormFactor = "Custom" Extra.CanCollide = false
  327. Extra.BrickColor = BrickColor.new("Medium stone grey")
  328. Extra.Size = Vector3.new(0.200000003, 0.921000123, 0.634000063)
  329. local Extraweld = Instance.new("ManualWeld")
  330. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  331. Extraweld.C1 = CFrame.new(-1.68250918, 0.794002533, 2.21599579, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  332. Extraweld.Parent = Extra
  333. local Extra = Instance.new("Part", char)
  334. Extra:BreakJoints()
  335. Extra.TopSurface = "Smooth"
  336. Extra.Name = 'Extra'
  337. Extra.BottomSurface = "Smooth"
  338. Extra.FormFactor = "Custom" Extra.CanCollide = false
  339. Extra.BrickColor = BrickColor.new("Medium stone grey")
  340. Extra.Size = Vector3.new(0.296999991, 0.22600013, 0.634000063)
  341. local Extraweld = Instance.new("ManualWeld")
  342. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  343. Extraweld.C1 = CFrame.new(1.80398464, 1.14150238, 2.21599388, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  344. Extraweld.Parent = Extra
  345. local Extra = Instance.new("Part", char)
  346. Extra:BreakJoints()
  347. Extra.TopSurface = "Smooth"
  348. Extra.Name = 'Extra'
  349. Extra.BottomSurface = "Smooth"
  350. Extra.FormFactor = "Custom" Extra.CanCollide = false
  351. Extra.BrickColor = BrickColor.new("Medium stone grey")
  352. Extra.Size = Vector3.new(0.296999991, 0.22600013, 0.634000063)
  353. local Extraweld = Instance.new("ManualWeld")
  354. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  355. Extraweld.C1 = CFrame.new(-1.72101617, 1.14150238, 2.2159977, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  356. Extraweld.Parent = Extra
  357. local Extra = Instance.new("Part", char)
  358. Extra:BreakJoints()
  359. Extra.TopSurface = "Smooth"
  360. Extra.Name = 'Extra'
  361. Extra.BottomSurface = "Smooth"
  362. Extra.FormFactor = "Custom" Extra.CanCollide = false
  363. Extra.BrickColor = BrickColor.new("Medium stone grey")
  364. Extra.Size = Vector3.new(1.43400002, 0.232000113, 1.14300013)
  365. local Extraweld = Instance.new("ManualWeld")
  366. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  367. 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)
  368. Extraweld.Parent = Extra
  369. local ExtraMesh = Instance.new("CylinderMesh",Extra)
  370. ExtraMesh.Name = "Mesh"
  371. ExtraMesh.Offset = Vector3.new(0, 0, 0)
  372. ExtraMesh.Scale = Vector3.new(1, 1, 1)
  373.  
  374. local Extra = Instance.new("Part", char)
  375. Extra:BreakJoints()
  376. Extra.TopSurface = "Smooth"
  377. Extra.Name = 'Extra'
  378. Extra.BottomSurface = "Smooth"
  379. Extra.FormFactor = "Custom" Extra.CanCollide = false
  380. Extra.BrickColor = BrickColor.new("Really black")
  381. Extra.Size = Vector3.new(1.43400002, 0.232000113, 0.829000115)
  382. local Extraweld = Instance.new("ManualWeld")
  383. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  384. 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)
  385. Extraweld.Parent = Extra
  386. local ExtraMesh = Instance.new("CylinderMesh",Extra)
  387. ExtraMesh.Name = "Mesh"
  388. ExtraMesh.Offset = Vector3.new(0, 0, 0)
  389. ExtraMesh.Scale = Vector3.new(1, 1, 1)
  390.  
  391. local Extra = Instance.new("Part", char)
  392. Extra:BreakJoints()
  393. Extra.TopSurface = "Smooth"
  394. Extra.Name = 'Extra'
  395. Extra.BottomSurface = "Smooth"
  396. Extra.FormFactor = "Custom" Extra.CanCollide = false
  397. Extra.BrickColor = BrickColor.new("Medium stone grey")
  398. Extra.Size = Vector3.new(1.43400002, 0.200000003, 1.14300013)
  399. local Extraweld = Instance.new("ManualWeld")
  400. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  401. 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)
  402. Extraweld.Parent = Extra
  403. local ExtraMesh = Instance.new("CylinderMesh",Extra)
  404. ExtraMesh.Name = "Mesh"
  405. ExtraMesh.Offset = Vector3.new(0, 0, 0)
  406. ExtraMesh.Scale = Vector3.new(1, 1, 1)
  407.  
  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("Really black")
  415. Extra.Size = Vector3.new(1.43400002, 0.200000003, 0.829000115)
  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.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)
  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("Medium stone grey")
  432. Extra.Size = Vector3.new(4.34100008, 0.573000073, 4.08699989)
  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(-0.117188454, -2.12586164, -0.534004211, 0.016806718, 0.999858737, 5.82076609e-010, -0.999858737, 0.0168067198, -1.11758709e-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("Really black")
  449. Extra.Size = Vector3.new(4.34100008, 0.573000073, 3.773)
  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(-0.11719501, -2.17586231, -0.534002304, 0.0168067198, 0.999858797, 5.82076609e-010, -0.999858797, 0.0168067198, 0, 0, 0, 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("Medium stone grey")
  466. Extra.Size = Vector3.new(4.34100008, 0.573000073, 4.08699989)
  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(-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)
  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("Really black")
  483. Extra.Size = Vector3.new(4.34100008, 0.573000073, 3.773)
  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.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)
  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("Dark stone grey")
  500. Extra.Size = Vector3.new(0.413999707, 0.394999981, 1.97000003)
  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(1.54100084, -2.53600311, -2.32900763, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  504. Extraweld.Parent = Extra
  505. local Extra = Instance.new("Part", char)
  506. Extra:BreakJoints()
  507. Extra.TopSurface = "Smooth"
  508. Extra.Name = 'Extra'
  509. Extra.BottomSurface = "Smooth"
  510. Extra.FormFactor = "Custom" Extra.CanCollide = false
  511. Extra.BrickColor = BrickColor.new("Dark stone grey")
  512. Extra.Size = Vector3.new(0.413999707, 0.394999981, 1.97000003)
  513. local Extraweld = Instance.new("ManualWeld")
  514. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  515. Extraweld.C1 = CFrame.new(-1.43300843, -2.53600311, -2.32900667, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  516. Extraweld.Parent = Extra
  517. local Sight1 = Instance.new("Part", char)
  518. Sight1:BreakJoints()
  519. Sight1.TopSurface = "Smooth"
  520. Sight1.Name = 'Sight1'
  521. Sight1.BottomSurface = "Smooth"
  522. Sight1.FormFactor = "Custom" Sight1.CanCollide = false
  523. Sight1.BrickColor = BrickColor.new("Really black")
  524. Sight1.Size = Vector3.new(0.375999987, 1.13800001, 0.219000354)
  525. local Sight1weld = Instance.new("ManualWeld")
  526. Sight1weld.Part0 = Seat Sight1weld.Part1 = Sight1 Sight1weld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  527. Sight1weld.C1 = CFrame.new(0.0589828193, -3.94650269, 0.53849411, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  528. Sight1weld.Parent = Sight1
  529. local Pack = Instance.new("Part", char)
  530. Pack:BreakJoints()
  531. Pack.TopSurface = "Smooth"
  532. Pack.Name = 'Pack'
  533. Pack.BottomSurface = "Smooth"
  534. Pack.FormFactor = "Custom" Pack.CanCollide = false
  535. Pack.BrickColor = BrickColor.new("Really black")
  536. Pack.Size = Vector3.new(2.5619998, 2.32999992, 0.987000108)
  537. local Packweld = Instance.new("ManualWeld")
  538. Packweld.Part0 = Seat Packweld.Part1 = Pack Packweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  539. Packweld.C1 = CFrame.new(0.0589860976, -1.5644989, -1.83750725, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  540. Packweld.Parent = Pack
  541. local Sight = Instance.new("Part", char)
  542. Sight:BreakJoints()
  543. Sight.TopSurface = "Smooth"
  544. Sight.Name = 'Sight'
  545. Sight.BottomSurface = "Smooth"
  546. Sight.FormFactor = "Custom" Sight.CanCollide = false
  547. Sight.BrickColor = BrickColor.new("Really black")
  548. Sight.Size = Vector3.new(0.94599998, 0.701999962, 0.219000354)
  549. Sight.Transparency = 0.7
  550. local Sightweld = Instance.new("ManualWeld")
  551. Sightweld.Part0 = Seat Sightweld.Part1 = Sight Sightweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  552. Sightweld.C1 = CFrame.new(-0.227016628, -3.22650146, 0.538492203, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  553. Sightweld.Parent = Sight
  554. local FakeTorso = Instance.new("Part", char)
  555. FakeTorso:BreakJoints()
  556. FakeTorso.TopSurface = "Smooth"
  557. FakeTorso.Name = 'FakeTorso'
  558. FakeTorso.BottomSurface = "Smooth"
  559. FakeTorso.FormFactor = "Custom" FakeTorso.CanCollide = false
  560. FakeTorso.BrickColor = BrickColor.new("Really black")
  561. FakeTorso.Size = Vector3.new(2, 2, 1)
  562. local FakeTorsoweld = Instance.new("ManualWeld")
  563. FakeTorsoweld.Part0 = Seat FakeTorsoweld.Part1 = FakeTorso FakeTorsoweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  564. 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)
  565. FakeTorsoweld.Parent = FakeTorso
  566. local GunStable = Instance.new("Part", char)
  567. GunStable:BreakJoints()
  568. GunStable.TopSurface = "Smooth"
  569. GunStable.Name = 'GunStable'
  570. GunStable.BottomSurface = "Smooth"
  571. GunStable.FormFactor = "Custom" GunStable.CanCollide = false
  572. GunStable.BrickColor = BrickColor.new("Really black")
  573. GunStable.Size = Vector3.new(0.45600003, 2.32999992, 0.370000124)
  574. local GunStableweld = Instance.new("ManualWeld")
  575. GunStableweld.Part0 = Seat GunStableweld.Part1 = GunStable GunStableweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  576. GunStableweld.C1 = CFrame.new(0.0589980781, -3.84950256, -2.08850527, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  577. GunStableweld.Parent = GunStable
  578. local Boostpart = Instance.new("Part", char)
  579. Boostpart:BreakJoints()
  580. Boostpart.TopSurface = "Smooth"
  581. Boostpart.Name = 'Boostpart'
  582. Boostpart.BottomSurface = "Smooth"
  583. Boostpart.FormFactor = "Custom" Boostpart.CanCollide = false
  584. Boostpart.BrickColor = BrickColor.new("Really black")
  585. Boostpart.Size = Vector3.new(0.413999707, 0.394999981, 0.200000003)
  586. local Boostpartweld = Instance.new("ManualWeld")
  587. Boostpartweld.Part0 = Seat Boostpartweld.Part1 = Boostpart Boostpartweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  588. Boostpartweld.C1 = CFrame.new(-1.43300271, -2.53600311, -3.37199974, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  589. Boostpartweld.Parent = Boostpart
  590. local Boostpart2 = Instance.new("Part", char)
  591. Boostpart2:BreakJoints()
  592. Boostpart2.TopSurface = "Smooth"
  593. Boostpart2.Name = 'Boostpart2'
  594. Boostpart2.BottomSurface = "Smooth"
  595. Boostpart2.FormFactor = "Custom" Boostpart2.CanCollide = false
  596. Boostpart2.BrickColor = BrickColor.new("Really black")
  597. Boostpart2.Size = Vector3.new(0.413999707, 0.394999981, 0.200000003)
  598. local Boostpart2weld = Instance.new("ManualWeld")
  599. Boostpart2weld.Part0 = Seat Boostpart2weld.Part1 = Boostpart2 Boostpart2weld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  600. Boostpart2weld.C1 = CFrame.new(1.54098463, -2.53600311, -3.37200499, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  601. Boostpart2weld.Parent = Boostpart2
  602. local GunBarral = Instance.new("Part", char)
  603. GunBarral:BreakJoints()
  604. GunBarral.TopSurface = "Smooth"
  605. GunBarral.Name = 'GunBarral'
  606. GunBarral.BottomSurface = "Smooth"
  607. GunBarral.FormFactor = "Custom" GunBarral.CanCollide = false
  608. GunBarral.BrickColor = BrickColor.new("Really black")
  609. GunBarral.Size = Vector3.new(0.375999987, 0.352999985, 4.88500023)
  610. local GunBarralweld = Instance.new("ManualWeld")
  611. GunBarralweld.Part0 = Seat GunBarralweld.Part1 = GunBarral GunBarralweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  612. GunBarralweld.C1 = CFrame.new(0.0589904487, -4.68700027, -0.35300684, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  613. GunBarralweld.Parent = GunBarral
  614. local GunMag = Instance.new("Part", char)
  615. GunMag:BreakJoints()
  616. GunMag.TopSurface = "Smooth"
  617. GunMag.Name = 'GunMag'
  618. GunMag.BottomSurface = "Smooth"
  619. GunMag.FormFactor = "Custom" GunMag.CanCollide = false
  620. GunMag.BrickColor = BrickColor.new("Really black")
  621. GunMag.Size = Vector3.new(0.824000001, 0.654999971, 0.892000139)
  622. local GunMagweld = Instance.new("ManualWeld")
  623. GunMagweld.Part0 = Seat GunMagweld.Part1 = GunMag GunMagweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  624. GunMagweld.C1 = CFrame.new(0.0589942634, -4.68700027, -2.34950876, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  625. GunMagweld.Parent = GunMag
  626. local GunBlast = Instance.new("Part", char)
  627. GunBlast:BreakJoints()
  628. GunBlast.TopSurface = "Smooth"
  629. GunBlast.Name = 'GunBlast'
  630. GunBlast.BottomSurface = "Smooth"
  631. GunBlast.FormFactor = "Custom" GunBlast.CanCollide = false
  632. GunBlast.BrickColor = BrickColor.new("Really black")
  633. GunBlast.Size = Vector3.new(0.941999972, 0.969999969, 0.200000003)
  634. local GunBlastweld = Instance.new("ManualWeld")
  635. GunBlastweld.Part0 = Seat GunBlastweld.Part1 = GunBlast GunBlastweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  636. GunBlastweld.C1 = CFrame.new(0.0589976311, -4.68700027, 1.98949432, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  637. GunBlastweld.Parent = GunBlast
  638.  
  639.  
  640.  
  641. ------------------------------------------------------------------------------------------
  642.  
  643. 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)
  644. 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)
  645. 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)
  646. 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)
  647. 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)
  648. boosting = false
  649.  
  650. function boost()
  651. if boosting == false then
  652. boosting = true
  653.  
  654. human.WalkSpeed = 300
  655. coroutine.resume(coroutine.create(function()
  656. for i=1, 100 do
  657. wait(0.05)
  658. local p = Instance.new("Part", char)
  659. p.Anchored = true
  660. p.BrickColor = BrickColor.Random()
  661. p.Transparency = 0
  662. p.CanCollide = false
  663. p.FormFactor = "Custom"
  664. p.Name = 'Effect'
  665. p.Size = Vector3.new(2, 2, 2)
  666. p.CFrame = Boostpart.CFrame * CFrame.Angles(math.random(1,360),math.random(1,360),math.random(1,360))
  667. coroutine.resume(coroutine.create(function()
  668. for i=1, 10 do
  669. p.Transparency = p.Transparency + 0.1
  670. wait()
  671. if i == 10 then
  672. p:Destroy()
  673. end
  674. end
  675. end))
  676. end
  677. end))
  678.  
  679.  
  680. for i=1, 100 do
  681. wait(0.05)
  682. local p = Instance.new("Part", char)
  683. p.Anchored = true
  684. p.CanCollide = false
  685. p.BrickColor = BrickColor.Random()
  686. p.Transparency = 0
  687. p.FormFactor = "Custom"
  688. p.Name = 'Effect'
  689. p.Size = Vector3.new(2, 2, 2)
  690. p.CFrame = Boostpart2.CFrame * CFrame.Angles(math.random(1,360),math.random(1,360),math.random(1,360))
  691. coroutine.resume(coroutine.create(function()
  692. for i=1, 10 do
  693. p.Transparency = p.Transparency + 0.1
  694. wait()
  695. if i == 10 then
  696. p:Destroy()
  697. end
  698. end
  699. end))
  700. end
  701. human.WalkSpeed = 16
  702. wait(9)
  703. boosting = false
  704. end
  705. end
  706.  
  707.  
  708. mouse.KeyDown:connect(function(key)
  709. if key == "f" then
  710. boost()
  711. elseif key == 'q' then
  712. mode = "damage"
  713. elseif key == "e" then
  714. mode = "steel"
  715. elseif key == 'r' then
  716. mode = 'draw'
  717. elseif key == 't' then
  718. mode = 'explode'
  719. elseif key == 'h' then
  720. mode = 'heal'
  721. elseif key == 'z' then
  722. mode = 'tele'
  723. end
  724. end)
  725. function shoot()
  726. pcall(function()
  727.  
  728. local ray = Ray.new(GunBlast.CFrame.p, (mouse.Hit.p - GunBlast.CFrame.p).unit*400)
  729. local hit, position = game.Workspace:FindPartOnRay(ray, char)
  730.  
  731. local humanoid = hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid") or hit.Parent.Parent:FindFirstChild("Humanoid")
  732.  
  733. if mode == "damage" then
  734. if humanoid and humanoid.Health ~= 0 then
  735. if hit.Name == 'Head' or hit.Name == 'Handle' then
  736. humanoid:TakeDamage(5000)
  737. else
  738. humanoid:TakeDamage(30)
  739. end
  740. end
  741. elseif mode == "steel" then
  742. if humanoid and humanoid.Health ~= 0 then
  743. takehats(humanoid.Parent)
  744. end
  745. elseif mode == 'draw' then
  746. local p = Instance.new("Part", workspace)
  747. p.Anchored = true
  748. p.Parent = char
  749. p.CFrame = CFrame.new(mouse.Hit.X, mouse.Hit.Y + 0.1, mouse.Hit.Z)
  750. elseif mode == 'explode' then
  751. local p = Instance.new("Part", workspace)
  752. p.Anchored = true
  753. p.Parent = char
  754. p.CFrame = CFrame.new(mouse.Hit.X, mouse.Hit.Y + 0.1, mouse.Hit.Z)
  755. p.Transparency = 1
  756. local ex = Instance.new("Explosion", p)
  757. ex.Position = p.Position
  758. elseif mode == 'tele' then
  759. coroutine.resume(coroutine.create(function()
  760. wait(0.1)
  761. local p = Instance.new("Part", workspace)
  762. p.Anchored = true
  763. p.Parent = char
  764. p.CFrame = CFrame.new(mouse.Hit.X, mouse.Hit.Y + 0.8, mouse.Hit.Z)
  765. p.CanCollide = true
  766. p.Transparency = 1
  767. char.Torso.CFrame = p.CFrame
  768. p:Destroy()
  769. end))
  770. elseif mode == 'heal' then
  771. if humanoid and humanoid.Health ~= 0 then
  772. humanoid.Health = humanoid.Health + 20
  773.  
  774. end
  775. end
  776.  
  777. local distance = (position - GunBlast.CFrame.p).magnitude
  778. local rayPart = Instance.new("Part", char)
  779. rayPart.Name = "RayPart"
  780. if mode == "damage" then
  781. rayPart.BrickColor = BrickColor.new("Really red")
  782. elseif mode == "steel" then
  783. rayPart.BrickColor = BrickColor.new("Royal purple")
  784. elseif mode == 'explode' then
  785. rayPart.BrickColor = BrickColor.new("Bright blue")
  786. elseif mode == 'heal' then
  787. rayPart.BrickColor = BrickColor.new("Lime green")
  788. elseif mode == 'tele' then
  789. rayPart.BrickColor = BrickColor.new("Brown")
  790. end
  791. rayPart.Transparency = 0
  792. rayPart.Anchored = true
  793. rayPart.CanCollide = false
  794. rayPart.TopSurface = Enum.SurfaceType.Smooth
  795. rayPart.BottomSurface = Enum.SurfaceType.Smooth
  796. rayPart.formFactor = Enum.FormFactor.Custom
  797. rayPart.Size = Vector3.new(0.4, 0.4, distance)
  798. rayPart.CFrame = CFrame.new(position, GunBlast.CFrame.p) * CFrame.new(0, 0, -distance/2)
  799.  
  800. local rp2 = Instance.new("Part", char)
  801. rp2.Name = "RayPart"
  802. rp2.BrickColor = BrickColor.new("White")
  803. rp2.Transparency = 0
  804. rp2.Anchored = true
  805. rp2.CanCollide = false
  806. rp2.TopSurface = Enum.SurfaceType.Smooth
  807. rp2.BottomSurface = Enum.SurfaceType.Smooth
  808. rp2.formFactor = Enum.FormFactor.Custom
  809. rp2.Size = Vector3.new(0.1, 0.1, distance)
  810. rp2.CFrame = CFrame.new(position, GunBlast.CFrame.p) * CFrame.new(0, 0, -distance/2)
  811. coroutine.resume(coroutine.create(function()
  812. for i=1, 10 do
  813. rayPart.Transparency = rayPart.Transparency + 0.1
  814. rp2.Transparency = rp2.Transparency + 0.1
  815. wait()
  816. if i == 10 then
  817. rayPart:Destroy()
  818. rp2:Destroy()
  819. end
  820. end
  821. end))
  822. end)
  823. end
  824.  
  825.  
  826. mouse.Button1Down:connect(function()
  827. shoot()
  828. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement