Advertisement
Josemmoya

OH!

Feb 18th, 2019
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 44.08 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. --xChair--
  87.  
  88. --[[
  89. MODES
  90. ----------
  91. DAMAGE = 'Q'
  92. HATSTEEL = 'E'
  93. BUILD = 'R'
  94. EXPLODE = 'T'
  95. TELEPORT = 'Z'
  96. HEAL = 'H'
  97. BOOST = 'F'
  98. --]]
  99.  
  100. plr = owner
  101. char = plr.Character
  102. mode = 'damage'
  103. local human = char.Humanoid
  104. --[[char.Animate:Destroy()]]--
  105. running = false
  106. human.Running:connect(function(speed)
  107. if speed <= 0 then
  108. running = false
  109. else
  110. running = true
  111. end
  112. end)
  113. local function weldBetween(a, b)
  114. local weld = Instance.new("ManualWeld")
  115. weld.Part0 = a
  116. weld.Part1 = b
  117. weld.C0 = CFrame.new()
  118. weld.C1 = b.CFrame:inverse() * a.CFrame
  119. weld.Parent = a
  120. return weld;
  121. end
  122.  
  123. function takehats(char)
  124. for i,v in pairs(char:GetChildren()) do
  125. if v.ClassName == "Hat" then
  126. v.Parent = owner.Character
  127. end
  128. end
  129. end
  130.  
  131.  
  132. char.Torso.Transparency = 1
  133. --------------------------ARM 1-----------------------------------------
  134. local rawc = char["Right Arm"]:clone()
  135. char["Right Arm"]:Destroy()
  136. rawc.Parent = char
  137. local RAW = weldBetween(char.Torso, char["Right Arm"])
  138. RAW.C1 = CFrame.new(-1.5, 0, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1)
  139. --------------------------LEG 1-----------------------------------------
  140. local rlwc = char["Right Leg"]:clone()
  141. char["Right Leg"]:Destroy()
  142. rlwc.Parent = char
  143. local RLW = weldBetween(char.Torso, char["Right Leg"])
  144. RLW.C1 = CFrame.new(-1.5, 0, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1)
  145. --------------------------LEG 2-----------------------------------------
  146. local llwc = char["Left Leg"]:clone()
  147. char["Left Leg"]:Destroy()
  148. llwc.Parent = char
  149. local LLW = weldBetween(char.Torso, char["Left Leg"])
  150. LLW.C1 = CFrame.new(-1.5, 0, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1)
  151.  
  152. ----------------------------ARM 2---------------------------------------
  153.  
  154. local lawc = char["Left Arm"]:clone()
  155. char["Left Arm"]:Destroy()
  156. lawc.Parent = char
  157. local LAW = weldBetween(char.Torso, char["Left Arm"])
  158. LAW.C1 = CFrame.new(1.5, 0, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1)
  159.  
  160. -----------------------------HEAD----------------------------------
  161. local heaw = weldBetween(char.Torso, char.Head)
  162. -----------------------------------------------------------------------
  163.  
  164.  
  165.  
  166. Tween = function(Weld, Stop, Step,a)
  167. ypcall(function()
  168. local func = function()
  169. local Start = Weld.C1
  170. local X1, Y1, Z1 = Start:toEulerAnglesXYZ()
  171. local Stop = Stop
  172. local X2, Y2, Z2 = Stop:toEulerAnglesXYZ()
  173.  
  174. for i = 0, 1, Step or .1 do
  175. Weld.C1 = CFrame.new( (Start.p.X * (1 - i)) + (Stop.p.X * i),
  176. (Start.p.Y * (1 - i)) + (Stop.p.Y * i),
  177. (Start.p.Z * (1 - i)) + (Stop.p.Z * i)) * CFrame.fromEulerAnglesXYZ(
  178. (X1 * (1 - i)) + (X2 * i), (Y1 * (1 - i)) + (Y2 * i),
  179. (Z1 * (1 - i)) + (Z2 * i) )
  180. wait()
  181. end
  182.  
  183. Weld.C1 = Stop
  184. end
  185.  
  186. if a then coroutine.wrap(func)() else func() end
  187. end)
  188. end
  189.  
  190.  
  191.  
  192.  
  193.  
  194. local Seat = Instance.new("Part", char)
  195. Seat:BreakJoints()
  196. Seat.TopSurface = "Smooth"
  197. Seat.Name = 'Seat'
  198. Seat.BottomSurface = "Smooth"
  199. Seat.FormFactor = "Custom" Seat.CanCollide = false
  200. Seat.BrickColor = BrickColor.new("Medium stone grey")
  201. Seat.Size = Vector3.new(3.71499968, 0.77700007, 3.04400015)
  202. local Seatweld = Instance.new("ManualWeld")
  203. Seatweld.Part0 = char["Torso"]
  204. Seatweld.Part1 = Seat Seatweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  205. Seatweld.C1 = CFrame.new(-0.436842084, 1.27730489, 0.478226662, 0.998842537, 0, 0.0480999425, 0, 1, 0, -0.0480999425, 0, 0.998842537)
  206. Seatweld.Parent = char["Torso"]
  207.  
  208. local Extra = Instance.new("Part", char)
  209. Extra:BreakJoints()
  210. Extra.TopSurface = "Smooth"
  211. Extra.Name = 'Extra'
  212. Extra.BottomSurface = "Smooth"
  213. Extra.FormFactor = "Custom" Extra.CanCollide = false
  214. Extra.BrickColor = BrickColor.new("Medium stone grey")
  215. Extra.Size = Vector3.new(0.568000019, 1.0990001, 0.495000124)
  216. local Extraweld = Instance.new("ManualWeld")
  217. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  218. Extraweld.C1 = CFrame.new(1.54849625, -0.737998962, 1.29749203, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  219. Extraweld.Parent = Extra
  220. local ExtraMesh = Instance.new("CylinderMesh",Extra)
  221. ExtraMesh.Name = "Mesh"
  222. ExtraMesh.Offset = Vector3.new(0, 0, 0)
  223. ExtraMesh.Scale = Vector3.new(1, 1, 1)
  224.  
  225. local Extra = Instance.new("Part", char)
  226. Extra:BreakJoints()
  227. Extra.TopSurface = "Smooth"
  228. Extra.Name = 'Extra'
  229. Extra.BottomSurface = "Smooth"
  230. Extra.FormFactor = "Custom" Extra.CanCollide = false
  231. Extra.BrickColor = BrickColor.new("Medium stone grey")
  232. Extra.Size = Vector3.new(0.568000019, 1.0990001, 0.50300014)
  233. local Extraweld = Instance.new("ManualWeld")
  234. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  235. Extraweld.C1 = CFrame.new(-1.5555079, -0.737998962, 1.26849937, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  236. Extraweld.Parent = Extra
  237. local ExtraMesh = Instance.new("CylinderMesh",Extra)
  238. ExtraMesh.Name = "Mesh"
  239. ExtraMesh.Offset = Vector3.new(0, 0, 0)
  240. ExtraMesh.Scale = Vector3.new(1, 1, 1)
  241.  
  242. local Extra = Instance.new("Part", char)
  243. Extra:BreakJoints()
  244. Extra.TopSurface = "Smooth"
  245. Extra.Name = 'Extra'
  246. Extra.BottomSurface = "Smooth"
  247. Extra.FormFactor = "Custom" Extra.CanCollide = false
  248. Extra.BrickColor = BrickColor.new("Medium stone grey")
  249. Extra.Size = Vector3.new(0.788000047, 0.200000048, 3.19300008)
  250. local Extraweld = Instance.new("ManualWeld")
  251. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  252. Extraweld.C1 = CFrame.new(-1.38551331, -1.24449921, -0.0904994011, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  253. Extraweld.Parent = Extra
  254. local Extra = Instance.new("Part", char)
  255. Extra:BreakJoints()
  256. Extra.TopSurface = "Smooth"
  257. Extra.Name = 'Extra'
  258. Extra.BottomSurface = "Smooth"
  259. Extra.FormFactor = "Custom" Extra.CanCollide = false
  260. Extra.BrickColor = BrickColor.new("Medium stone grey")
  261. Extra.Size = Vector3.new(0.788000047, 0.200000048, 3.25000024)
  262. local Extraweld = Instance.new("ManualWeld")
  263. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  264. Extraweld.C1 = CFrame.new(1.37048721, -1.24449921, -0.0620036125, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  265. Extraweld.Parent = Extra
  266. local Extra = Instance.new("Part", char)
  267. Extra:BreakJoints()
  268. Extra.TopSurface = "Smooth"
  269. Extra.Name = 'Extra'
  270. Extra.BottomSurface = "Smooth"
  271. Extra.FormFactor = "Custom" Extra.CanCollide = false
  272. Extra.BrickColor = BrickColor.new("Medium stone grey")
  273. Extra.Size = Vector3.new(3.60299969, 2.34500003, 0.918000042)
  274. local Extraweld = Instance.new("ManualWeld")
  275. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  276. Extraweld.C1 = CFrame.new(0.0589904785, -1.5719986, -1.23900461, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  277. Extraweld.Parent = Extra
  278. local Extra = Instance.new("Part", char)
  279. Extra:BreakJoints()
  280. Extra.TopSurface = "Smooth"
  281. Extra.Name = 'Extra'
  282. Extra.BottomSurface = "Smooth"
  283. Extra.FormFactor = "Custom" Extra.CanCollide = false
  284. Extra.BrickColor = BrickColor.new("Medium stone grey")
  285. Extra.Size = Vector3.new(3.62799978, 0.34800005, 0.917999983)
  286. local Extraweld = Instance.new("ManualWeld")
  287. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  288. Extraweld.C1 = CFrame.new(0.0454930663, -2.93249893, -1.23600054, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  289. Extraweld.Parent = Extra
  290. local ExtraMesh = Instance.new("SpecialMesh",Extra)
  291. ExtraMesh.MeshId = ""
  292. ExtraMesh.MeshType = Enum.MeshType.Torso ExtraMesh.Name = "Mesh"
  293. ExtraMesh.Offset = Vector3.new(0, 0, 0)
  294. ExtraMesh.Scale = Vector3.new(1, 1, 1)
  295.  
  296. local Extra = Instance.new("WedgePart", char)
  297. Extra:BreakJoints()
  298. Extra.TopSurface = "Smooth"
  299. Extra.Name = 'Extra'
  300. Extra.BottomSurface = "Smooth"
  301. Extra.FormFactor = "Custom" Extra.CanCollide = false
  302. Extra.BrickColor = BrickColor.new("Medium stone grey")
  303. Extra.Size = Vector3.new(3.70700002, 0.75999999, 1.1500001)
  304. local Extraweld = Instance.new("ManualWeld")
  305. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  306. Extraweld.C1 = CFrame.new(0.0117220879, -0.027305603, 2.04488182, 0.999991775, 0, 0.00417119637, 0, 1, 0, -0.00417116284, 0, 0.999991715)
  307. Extraweld.Parent = Extra
  308. local Extra = Instance.new("Part", char)
  309. Extra:BreakJoints()
  310. Extra.TopSurface = "Smooth"
  311. Extra.Name = 'Extra'
  312. Extra.BottomSurface = "Smooth"
  313. Extra.FormFactor = "Custom" Extra.CanCollide = false
  314. Extra.BrickColor = BrickColor.new("Medium stone grey")
  315. Extra.Size = Vector3.new(0.200000003, 0.921000123, 0.634000063)
  316. local Extraweld = Instance.new("ManualWeld")
  317. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  318. Extraweld.C1 = CFrame.new(1.75548577, 0.794002533, 2.21600151, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  319. Extraweld.Parent = Extra
  320. local Extra = Instance.new("Part", char)
  321. Extra:BreakJoints()
  322. Extra.TopSurface = "Smooth"
  323. Extra.Name = 'Extra'
  324. Extra.BottomSurface = "Smooth"
  325. Extra.FormFactor = "Custom" Extra.CanCollide = false
  326. Extra.BrickColor = BrickColor.new("Medium stone grey")
  327. Extra.Size = Vector3.new(0.200000003, 0.921000123, 0.634000063)
  328. local Extraweld = Instance.new("ManualWeld")
  329. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  330. Extraweld.C1 = CFrame.new(-1.68250918, 0.794002533, 2.21599579, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  331. Extraweld.Parent = Extra
  332. local Extra = Instance.new("Part", char)
  333. Extra:BreakJoints()
  334. Extra.TopSurface = "Smooth"
  335. Extra.Name = 'Extra'
  336. Extra.BottomSurface = "Smooth"
  337. Extra.FormFactor = "Custom" Extra.CanCollide = false
  338. Extra.BrickColor = BrickColor.new("Medium stone grey")
  339. Extra.Size = Vector3.new(0.296999991, 0.22600013, 0.634000063)
  340. local Extraweld = Instance.new("ManualWeld")
  341. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  342. Extraweld.C1 = CFrame.new(1.80398464, 1.14150238, 2.21599388, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  343. Extraweld.Parent = Extra
  344. local Extra = Instance.new("Part", char)
  345. Extra:BreakJoints()
  346. Extra.TopSurface = "Smooth"
  347. Extra.Name = 'Extra'
  348. Extra.BottomSurface = "Smooth"
  349. Extra.FormFactor = "Custom" Extra.CanCollide = false
  350. Extra.BrickColor = BrickColor.new("Medium stone grey")
  351. Extra.Size = Vector3.new(0.296999991, 0.22600013, 0.634000063)
  352. local Extraweld = Instance.new("ManualWeld")
  353. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  354. Extraweld.C1 = CFrame.new(-1.72101617, 1.14150238, 2.2159977, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  355. Extraweld.Parent = Extra
  356. local Extra = Instance.new("Part", char)
  357. Extra:BreakJoints()
  358. Extra.TopSurface = "Smooth"
  359. Extra.Name = 'Extra'
  360. Extra.BottomSurface = "Smooth"
  361. Extra.FormFactor = "Custom" Extra.CanCollide = false
  362. Extra.BrickColor = BrickColor.new("Medium stone grey")
  363. Extra.Size = Vector3.new(1.43400002, 0.232000113, 1.14300013)
  364. local Extraweld = Instance.new("ManualWeld")
  365. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  366. 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)
  367. Extraweld.Parent = Extra
  368. local ExtraMesh = Instance.new("CylinderMesh",Extra)
  369. ExtraMesh.Name = "Mesh"
  370. ExtraMesh.Offset = Vector3.new(0, 0, 0)
  371. ExtraMesh.Scale = Vector3.new(1, 1, 1)
  372.  
  373. local Extra = Instance.new("Part", char)
  374. Extra:BreakJoints()
  375. Extra.TopSurface = "Smooth"
  376. Extra.Name = 'Extra'
  377. Extra.BottomSurface = "Smooth"
  378. Extra.FormFactor = "Custom" Extra.CanCollide = false
  379. Extra.BrickColor = BrickColor.new("Really black")
  380. Extra.Size = Vector3.new(1.43400002, 0.232000113, 0.829000115)
  381. local Extraweld = Instance.new("ManualWeld")
  382. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  383. 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)
  384. Extraweld.Parent = Extra
  385. local ExtraMesh = Instance.new("CylinderMesh",Extra)
  386. ExtraMesh.Name = "Mesh"
  387. ExtraMesh.Offset = Vector3.new(0, 0, 0)
  388. ExtraMesh.Scale = Vector3.new(1, 1, 1)
  389.  
  390. local Extra = Instance.new("Part", char)
  391. Extra:BreakJoints()
  392. Extra.TopSurface = "Smooth"
  393. Extra.Name = 'Extra'
  394. Extra.BottomSurface = "Smooth"
  395. Extra.FormFactor = "Custom" Extra.CanCollide = false
  396. Extra.BrickColor = BrickColor.new("Medium stone grey")
  397. Extra.Size = Vector3.new(1.43400002, 0.200000003, 1.14300013)
  398. local Extraweld = Instance.new("ManualWeld")
  399. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  400. 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)
  401. Extraweld.Parent = Extra
  402. local ExtraMesh = Instance.new("CylinderMesh",Extra)
  403. ExtraMesh.Name = "Mesh"
  404. ExtraMesh.Offset = Vector3.new(0, 0, 0)
  405. ExtraMesh.Scale = Vector3.new(1, 1, 1)
  406.  
  407. local Extra = Instance.new("Part", char)
  408. Extra:BreakJoints()
  409. Extra.TopSurface = "Smooth"
  410. Extra.Name = 'Extra'
  411. Extra.BottomSurface = "Smooth"
  412. Extra.FormFactor = "Custom" Extra.CanCollide = false
  413. Extra.BrickColor = BrickColor.new("Really black")
  414. Extra.Size = Vector3.new(1.43400002, 0.200000003, 0.829000115)
  415. local Extraweld = Instance.new("ManualWeld")
  416. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  417. 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)
  418. Extraweld.Parent = Extra
  419. local ExtraMesh = Instance.new("CylinderMesh",Extra)
  420. ExtraMesh.Name = "Mesh"
  421. ExtraMesh.Offset = Vector3.new(0, 0, 0)
  422. ExtraMesh.Scale = Vector3.new(1, 1, 1)
  423.  
  424. local Extra = Instance.new("Part", char)
  425. Extra:BreakJoints()
  426. Extra.TopSurface = "Smooth"
  427. Extra.Name = 'Extra'
  428. Extra.BottomSurface = "Smooth"
  429. Extra.FormFactor = "Custom" Extra.CanCollide = false
  430. Extra.BrickColor = BrickColor.new("Medium stone grey")
  431. Extra.Size = Vector3.new(4.34100008, 0.573000073, 4.08699989)
  432. local Extraweld = Instance.new("ManualWeld")
  433. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  434. 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)
  435. Extraweld.Parent = Extra
  436. local ExtraMesh = Instance.new("CylinderMesh",Extra)
  437. ExtraMesh.Name = "Mesh"
  438. ExtraMesh.Offset = Vector3.new(0, 0, 0)
  439. ExtraMesh.Scale = Vector3.new(1, 1, 1)
  440.  
  441. local Extra = Instance.new("Part", char)
  442. Extra:BreakJoints()
  443. Extra.TopSurface = "Smooth"
  444. Extra.Name = 'Extra'
  445. Extra.BottomSurface = "Smooth"
  446. Extra.FormFactor = "Custom" Extra.CanCollide = false
  447. Extra.BrickColor = BrickColor.new("Really black")
  448. Extra.Size = Vector3.new(4.34100008, 0.573000073, 3.773)
  449. local Extraweld = Instance.new("ManualWeld")
  450. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  451. 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)
  452. Extraweld.Parent = Extra
  453. local ExtraMesh = Instance.new("CylinderMesh",Extra)
  454. ExtraMesh.Name = "Mesh"
  455. ExtraMesh.Offset = Vector3.new(0, 0, 0)
  456. ExtraMesh.Scale = Vector3.new(1, 1, 1)
  457.  
  458. local Extra = Instance.new("Part", char)
  459. Extra:BreakJoints()
  460. Extra.TopSurface = "Smooth"
  461. Extra.Name = 'Extra'
  462. Extra.BottomSurface = "Smooth"
  463. Extra.FormFactor = "Custom" Extra.CanCollide = false
  464. Extra.BrickColor = BrickColor.new("Medium stone grey")
  465. Extra.Size = Vector3.new(4.34100008, 0.573000073, 4.08699989)
  466. local Extraweld = Instance.new("ManualWeld")
  467. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  468. 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)
  469. Extraweld.Parent = Extra
  470. local ExtraMesh = Instance.new("CylinderMesh",Extra)
  471. ExtraMesh.Name = "Mesh"
  472. ExtraMesh.Offset = Vector3.new(0, 0, 0)
  473. ExtraMesh.Scale = Vector3.new(1, 1, 1)
  474.  
  475. local Extra = Instance.new("Part", char)
  476. Extra:BreakJoints()
  477. Extra.TopSurface = "Smooth"
  478. Extra.Name = 'Extra'
  479. Extra.BottomSurface = "Smooth"
  480. Extra.FormFactor = "Custom" Extra.CanCollide = false
  481. Extra.BrickColor = BrickColor.new("Really black")
  482. Extra.Size = Vector3.new(4.34100008, 0.573000073, 3.773)
  483. local Extraweld = Instance.new("ManualWeld")
  484. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  485. 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)
  486. Extraweld.Parent = Extra
  487. local ExtraMesh = Instance.new("CylinderMesh",Extra)
  488. ExtraMesh.Name = "Mesh"
  489. ExtraMesh.Offset = Vector3.new(0, 0, 0)
  490. ExtraMesh.Scale = Vector3.new(1, 1, 1)
  491.  
  492. local Extra = Instance.new("Part", char)
  493. Extra:BreakJoints()
  494. Extra.TopSurface = "Smooth"
  495. Extra.Name = 'Extra'
  496. Extra.BottomSurface = "Smooth"
  497. Extra.FormFactor = "Custom" Extra.CanCollide = false
  498. Extra.BrickColor = BrickColor.new("Dark stone grey")
  499. Extra.Size = Vector3.new(0.413999707, 0.394999981, 1.97000003)
  500. local Extraweld = Instance.new("ManualWeld")
  501. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  502. Extraweld.C1 = CFrame.new(1.54100084, -2.53600311, -2.32900763, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  503. Extraweld.Parent = Extra
  504. local Extra = Instance.new("Part", char)
  505. Extra:BreakJoints()
  506. Extra.TopSurface = "Smooth"
  507. Extra.Name = 'Extra'
  508. Extra.BottomSurface = "Smooth"
  509. Extra.FormFactor = "Custom" Extra.CanCollide = false
  510. Extra.BrickColor = BrickColor.new("Dark stone grey")
  511. Extra.Size = Vector3.new(0.413999707, 0.394999981, 1.97000003)
  512. local Extraweld = Instance.new("ManualWeld")
  513. Extraweld.Part0 = Seat Extraweld.Part1 = Extra Extraweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  514. Extraweld.C1 = CFrame.new(-1.43300843, -2.53600311, -2.32900667, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  515. Extraweld.Parent = Extra
  516. local Sight1 = Instance.new("Part", char)
  517. Sight1:BreakJoints()
  518. Sight1.TopSurface = "Smooth"
  519. Sight1.Name = 'Sight1'
  520. Sight1.BottomSurface = "Smooth"
  521. Sight1.FormFactor = "Custom" Sight1.CanCollide = false
  522. Sight1.BrickColor = BrickColor.new("Really black")
  523. Sight1.Size = Vector3.new(0.375999987, 1.13800001, 0.219000354)
  524. local Sight1weld = Instance.new("ManualWeld")
  525. Sight1weld.Part0 = Seat Sight1weld.Part1 = Sight1 Sight1weld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  526. Sight1weld.C1 = CFrame.new(0.0589828193, -3.94650269, 0.53849411, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  527. Sight1weld.Parent = Sight1
  528. local Pack = Instance.new("Part", char)
  529. Pack:BreakJoints()
  530. Pack.TopSurface = "Smooth"
  531. Pack.Name = 'Pack'
  532. Pack.BottomSurface = "Smooth"
  533. Pack.FormFactor = "Custom" Pack.CanCollide = false
  534. Pack.BrickColor = BrickColor.new("Really black")
  535. Pack.Size = Vector3.new(2.5619998, 2.32999992, 0.987000108)
  536. local Packweld = Instance.new("ManualWeld")
  537. Packweld.Part0 = Seat Packweld.Part1 = Pack Packweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  538. Packweld.C1 = CFrame.new(0.0589860976, -1.5644989, -1.83750725, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  539. Packweld.Parent = Pack
  540. local Sight = Instance.new("Part", char)
  541. Sight:BreakJoints()
  542. Sight.TopSurface = "Smooth"
  543. Sight.Name = 'Sight'
  544. Sight.BottomSurface = "Smooth"
  545. Sight.FormFactor = "Custom" Sight.CanCollide = false
  546. Sight.BrickColor = BrickColor.new("Really black")
  547. Sight.Size = Vector3.new(0.94599998, 0.701999962, 0.219000354)
  548. Sight.Transparency = 0.7
  549. local Sightweld = Instance.new("ManualWeld")
  550. Sightweld.Part0 = Seat Sightweld.Part1 = Sight Sightweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  551. Sightweld.C1 = CFrame.new(-0.227016628, -3.22650146, 0.538492203, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  552. Sightweld.Parent = Sight
  553. local FakeTorso = Instance.new("Part", char)
  554. FakeTorso:BreakJoints()
  555. FakeTorso.TopSurface = "Smooth"
  556. FakeTorso.Name = 'FakeTorso'
  557. FakeTorso.BottomSurface = "Smooth"
  558. FakeTorso.FormFactor = "Custom" FakeTorso.CanCollide = false
  559. FakeTorso.BrickColor = BrickColor.new("Really black")
  560. FakeTorso.Size = Vector3.new(2, 2, 1)
  561. local FakeTorsoweld = Instance.new("ManualWeld")
  562. FakeTorsoweld.Part0 = Seat FakeTorsoweld.Part1 = FakeTorso FakeTorsoweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  563. 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)
  564. FakeTorsoweld.Parent = FakeTorso
  565. local GunStable = Instance.new("Part", char)
  566. GunStable:BreakJoints()
  567. GunStable.TopSurface = "Smooth"
  568. GunStable.Name = 'GunStable'
  569. GunStable.BottomSurface = "Smooth"
  570. GunStable.FormFactor = "Custom" GunStable.CanCollide = false
  571. GunStable.BrickColor = BrickColor.new("Really black")
  572. GunStable.Size = Vector3.new(0.45600003, 2.32999992, 0.370000124)
  573. local GunStableweld = Instance.new("ManualWeld")
  574. GunStableweld.Part0 = Seat GunStableweld.Part1 = GunStable GunStableweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  575. GunStableweld.C1 = CFrame.new(0.0589980781, -3.84950256, -2.08850527, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  576. GunStableweld.Parent = GunStable
  577. local Boostpart = Instance.new("Part", char)
  578. Boostpart:BreakJoints()
  579. Boostpart.TopSurface = "Smooth"
  580. Boostpart.Name = 'Boostpart'
  581. Boostpart.BottomSurface = "Smooth"
  582. Boostpart.FormFactor = "Custom" Boostpart.CanCollide = false
  583. Boostpart.BrickColor = BrickColor.new("Really black")
  584. Boostpart.Size = Vector3.new(0.413999707, 0.394999981, 0.200000003)
  585. local Boostpartweld = Instance.new("ManualWeld")
  586. Boostpartweld.Part0 = Seat Boostpartweld.Part1 = Boostpart Boostpartweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  587. Boostpartweld.C1 = CFrame.new(-1.43300271, -2.53600311, -3.37199974, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  588. Boostpartweld.Parent = Boostpart
  589. local Boostpart2 = Instance.new("Part", char)
  590. Boostpart2:BreakJoints()
  591. Boostpart2.TopSurface = "Smooth"
  592. Boostpart2.Name = 'Boostpart2'
  593. Boostpart2.BottomSurface = "Smooth"
  594. Boostpart2.FormFactor = "Custom" Boostpart2.CanCollide = false
  595. Boostpart2.BrickColor = BrickColor.new("Really black")
  596. Boostpart2.Size = Vector3.new(0.413999707, 0.394999981, 0.200000003)
  597. local Boostpart2weld = Instance.new("ManualWeld")
  598. Boostpart2weld.Part0 = Seat Boostpart2weld.Part1 = Boostpart2 Boostpart2weld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  599. Boostpart2weld.C1 = CFrame.new(1.54098463, -2.53600311, -3.37200499, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  600. Boostpart2weld.Parent = Boostpart2
  601. local GunBarral = Instance.new("Part", char)
  602. GunBarral:BreakJoints()
  603. GunBarral.TopSurface = "Smooth"
  604. GunBarral.Name = 'GunBarral'
  605. GunBarral.BottomSurface = "Smooth"
  606. GunBarral.FormFactor = "Custom" GunBarral.CanCollide = false
  607. GunBarral.BrickColor = BrickColor.new("Really black")
  608. GunBarral.Size = Vector3.new(0.375999987, 0.352999985, 4.88500023)
  609. local GunBarralweld = Instance.new("ManualWeld")
  610. GunBarralweld.Part0 = Seat GunBarralweld.Part1 = GunBarral GunBarralweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  611. GunBarralweld.C1 = CFrame.new(0.0589904487, -4.68700027, -0.35300684, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  612. GunBarralweld.Parent = GunBarral
  613. local GunMag = Instance.new("Part", char)
  614. GunMag:BreakJoints()
  615. GunMag.TopSurface = "Smooth"
  616. GunMag.Name = 'GunMag'
  617. GunMag.BottomSurface = "Smooth"
  618. GunMag.FormFactor = "Custom" GunMag.CanCollide = false
  619. GunMag.BrickColor = BrickColor.new("Really black")
  620. GunMag.Size = Vector3.new(0.824000001, 0.654999971, 0.892000139)
  621. local GunMagweld = Instance.new("ManualWeld")
  622. GunMagweld.Part0 = Seat GunMagweld.Part1 = GunMag GunMagweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  623. GunMagweld.C1 = CFrame.new(0.0589942634, -4.68700027, -2.34950876, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  624. GunMagweld.Parent = GunMag
  625. local GunBlast = Instance.new("Part", char)
  626. GunBlast:BreakJoints()
  627. GunBlast.TopSurface = "Smooth"
  628. GunBlast.Name = 'GunBlast'
  629. GunBlast.BottomSurface = "Smooth"
  630. GunBlast.FormFactor = "Custom" GunBlast.CanCollide = false
  631. GunBlast.BrickColor = BrickColor.new("Really black")
  632. GunBlast.Size = Vector3.new(0.941999972, 0.969999969, 0.200000003)
  633. local GunBlastweld = Instance.new("ManualWeld")
  634. GunBlastweld.Part0 = Seat GunBlastweld.Part1 = GunBlast GunBlastweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  635. GunBlastweld.C1 = CFrame.new(0.0589976311, -4.68700027, 1.98949432, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  636. GunBlastweld.Parent = GunBlast
  637.  
  638.  
  639.  
  640. ------------------------------------------------------------------------------------------
  641.  
  642. 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)
  643. 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)
  644. 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)
  645. 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)
  646. 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)
  647. boosting = false
  648.  
  649. function boost()
  650. if boosting == false then
  651. boosting = true
  652.  
  653. human.WalkSpeed = 300
  654. coroutine.resume(coroutine.create(function()
  655. for i=1, 100 do
  656. wait(0.05)
  657. local p = Instance.new("Part", char)
  658. p.Anchored = true
  659. p.BrickColor = BrickColor.Random()
  660. p.Transparency = 0
  661. p.CanCollide = false
  662. p.FormFactor = "Custom"
  663. p.Name = 'Effect'
  664. p.Size = Vector3.new(2, 2, 2)
  665. p.CFrame = Boostpart.CFrame * CFrame.Angles(math.random(1,360),math.random(1,360),math.random(1,360))
  666. coroutine.resume(coroutine.create(function()
  667. for i=1, 10 do
  668. p.Transparency = p.Transparency + 0.1
  669. wait()
  670. if i == 10 then
  671. p:Destroy()
  672. end
  673. end
  674. end))
  675. end
  676. end))
  677.  
  678.  
  679. for i=1, 100 do
  680. wait(0.05)
  681. local p = Instance.new("Part", char)
  682. p.Anchored = true
  683. p.CanCollide = false
  684. p.BrickColor = BrickColor.Random()
  685. p.Transparency = 0
  686. p.FormFactor = "Custom"
  687. p.Name = 'Effect'
  688. p.Size = Vector3.new(2, 2, 2)
  689. p.CFrame = Boostpart2.CFrame * CFrame.Angles(math.random(1,360),math.random(1,360),math.random(1,360))
  690. coroutine.resume(coroutine.create(function()
  691. for i=1, 10 do
  692. p.Transparency = p.Transparency + 0.1
  693. wait()
  694. if i == 10 then
  695. p:Destroy()
  696. end
  697. end
  698. end))
  699. end
  700. human.WalkSpeed = 16
  701. wait(9)
  702. boosting = false
  703. end
  704. end
  705.  
  706.  
  707. mouse.KeyDown:connect(function(key)
  708. if key == "f" then
  709. boost()
  710. elseif key == 'q' then
  711. mode = "damage"
  712. elseif key == "e" then
  713. mode = "steel"
  714. elseif key == 'r' then
  715. mode = 'draw'
  716. elseif key == 't' then
  717. mode = 'explode'
  718. elseif key == 'h' then
  719. mode = 'heal'
  720. elseif key == 'z' then
  721. mode = 'tele'
  722. end
  723. end)
  724. function shoot()
  725. pcall(function()
  726.  
  727. local ray = Ray.new(GunBlast.CFrame.p, (mouse.Hit.p - GunBlast.CFrame.p).unit*400)
  728. local hit, position = game.Workspace:FindPartOnRay(ray, char)
  729.  
  730. local humanoid = hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid") or hit.Parent.Parent:FindFirstChild("Humanoid")
  731.  
  732. if mode == "damage" then
  733. if humanoid and humanoid.Health ~= 0 then
  734. if hit.Name == 'Head' or hit.Name == 'Handle' then
  735. humanoid:TakeDamage(5000)
  736. else
  737. humanoid:TakeDamage(30)
  738. end
  739. end
  740. elseif mode == "steel" then
  741. if humanoid and humanoid.Health ~= 0 then
  742. takehats(humanoid.Parent)
  743. end
  744. elseif mode == 'draw' then
  745. local p = Instance.new("Part", workspace)
  746. p.Anchored = true
  747. p.Parent = char
  748. p.CFrame = CFrame.new(mouse.Hit.X, mouse.Hit.Y + 0.1, mouse.Hit.Z)
  749. elseif mode == 'explode' then
  750. local p = Instance.new("Part", workspace)
  751. p.Anchored = true
  752. p.Parent = char
  753. p.CFrame = CFrame.new(mouse.Hit.X, mouse.Hit.Y + 0.1, mouse.Hit.Z)
  754. p.Transparency = 1
  755. local ex = Instance.new("Explosion", p)
  756. ex.Position = p.Position
  757. elseif mode == 'tele' then
  758. coroutine.resume(coroutine.create(function()
  759. wait(0.1)
  760. local p = Instance.new("Part", workspace)
  761. p.Anchored = true
  762. p.Parent = char
  763. p.CFrame = CFrame.new(mouse.Hit.X, mouse.Hit.Y + 0.8, mouse.Hit.Z)
  764. p.CanCollide = true
  765. p.Transparency = 1
  766. char.Torso.CFrame = p.CFrame
  767. p:Destroy()
  768. end))
  769. elseif mode == 'heal' then
  770. if humanoid and humanoid.Health ~= 0 then
  771. humanoid.Health = humanoid.Health + 20
  772.  
  773. end
  774. end
  775.  
  776. local distance = (position - GunBlast.CFrame.p).magnitude
  777. local rayPart = Instance.new("Part", char)
  778. rayPart.Name = "RayPart"
  779. if mode == "damage" then
  780. rayPart.BrickColor = BrickColor.new("Really red")
  781. elseif mode == "steel" then
  782. rayPart.BrickColor = BrickColor.new("Royal purple")
  783. elseif mode == 'explode' then
  784. rayPart.BrickColor = BrickColor.new("Bright blue")
  785. elseif mode == 'heal' then
  786. rayPart.BrickColor = BrickColor.new("Lime green")
  787. elseif mode == 'tele' then
  788. rayPart.BrickColor = BrickColor.new("Brown")
  789. end
  790. rayPart.Transparency = 0
  791. rayPart.Anchored = true
  792. rayPart.CanCollide = false
  793. rayPart.TopSurface = Enum.SurfaceType.Smooth
  794. rayPart.BottomSurface = Enum.SurfaceType.Smooth
  795. rayPart.formFactor = Enum.FormFactor.Custom
  796. rayPart.Size = Vector3.new(0.4, 0.4, distance)
  797. rayPart.CFrame = CFrame.new(position, GunBlast.CFrame.p) * CFrame.new(0, 0, -distance/2)
  798.  
  799. local rp2 = Instance.new("Part", char)
  800. rp2.Name = "RayPart"
  801. rp2.BrickColor = BrickColor.new("White")
  802. rp2.Transparency = 0
  803. rp2.Anchored = true
  804. rp2.CanCollide = false
  805. rp2.TopSurface = Enum.SurfaceType.Smooth
  806. rp2.BottomSurface = Enum.SurfaceType.Smooth
  807. rp2.formFactor = Enum.FormFactor.Custom
  808. rp2.Size = Vector3.new(0.1, 0.1, distance)
  809. rp2.CFrame = CFrame.new(position, GunBlast.CFrame.p) * CFrame.new(0, 0, -distance/2)
  810. coroutine.resume(coroutine.create(function()
  811. for i=1, 10 do
  812. rayPart.Transparency = rayPart.Transparency + 0.1
  813. rp2.Transparency = rp2.Transparency + 0.1
  814. wait()
  815. if i == 10 then
  816. rayPart:Destroy()
  817. rp2:Destroy()
  818. end
  819. end
  820. end))
  821. end)
  822. end
  823.  
  824.  
  825. mouse.Button1Down:connect(function()
  826. shoot()
  827. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement