Advertisement
Kittdy2

Untitled

Jan 20th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.28 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.  
  88.  
  89. me = owner
  90. char = me.Character
  91.  
  92. mo = Instance.new("Model")
  93. mo.Parent = workspace
  94. mo.Name = "Replicators"
  95.  
  96. base = Instance.new("Part")
  97. base.Parent = mo
  98. base.Size = Vector3.new(50, 1, 100)
  99. base.BrickColor = BrickColor.new("Black")
  100. base.CFrame = workspace.Base.CFrame + Vector3.new(0, 5, -75)
  101. mesh = Instance.new("SpecialMesh")
  102. mesh.Parent = base
  103. mesh.Scale = Vector3.new(1, 1, 1)
  104. mesh.MeshType = "Brick"
  105. --
  106. partw = Instance.new("Part")
  107. partw.Parent = mo
  108. partw.Size = Vector3.new(15, 1, 20)
  109. partw.BrickColor = BrickColor.new("Black")
  110. partw:BreakJoints()
  111. mesh = Instance.new("SpecialMesh")
  112. mesh.Parent = partw
  113. mesh.Scale = Vector3.new(1, 1, 1)
  114. mesh.MeshType = "Brick"
  115. weld = Instance.new("Weld")
  116. weld.Parent = partw
  117. weld.Part0 = partw
  118. weld.Part1 = base
  119. weld.C0 = CFrame.new(35, 0, -25)
  120. --
  121. partw = Instance.new("Part")
  122. partw.Parent = mo
  123. partw.Size = Vector3.new(4, 1, 15)
  124. partw.BrickColor = BrickColor.new("White")
  125. partw:BreakJoints()
  126. mesh = Instance.new("SpecialMesh")
  127. mesh.Parent = partw
  128. mesh.Scale = Vector3.new(0.99, 0.99, 0.99)
  129. mesh.MeshType = "Brick"
  130. weld = Instance.new("Weld")
  131. weld.Parent = partw
  132. weld.Part0 = partw
  133. weld.Part1 = base
  134. weld.C0 = CFrame.new(26, 0, -27.5)
  135. --
  136. partw = Instance.new("Part")
  137. partw.Parent = mo
  138. partw.Size = Vector3.new(15, 1, 20)
  139. partw.BrickColor = BrickColor.new("Black")
  140. partw:BreakJoints()
  141. mesh = Instance.new("SpecialMesh")
  142. mesh.Parent = partw
  143. mesh.Scale = Vector3.new(1, 1, 1)
  144. mesh.MeshType = "Brick"
  145. weld = Instance.new("Weld")
  146. weld.Parent = partw
  147. weld.Part0 = partw
  148. weld.Part1 = base
  149. weld.C0 = CFrame.new(-35, 0, -25)
  150. --
  151. partw = Instance.new("Part")
  152. partw.Parent = mo
  153. partw.Size = Vector3.new(4, 1, 15)
  154. partw.BrickColor = BrickColor.new("White")
  155. partw:BreakJoints()
  156. mesh = Instance.new("SpecialMesh")
  157. mesh.Parent = partw
  158. mesh.Scale = Vector3.new(0.99, 0.99, 0.99)
  159. mesh.MeshType = "Brick"
  160. weld = Instance.new("Weld")
  161. weld.Parent = partw
  162. weld.Part0 = partw
  163. weld.Part1 = base
  164. weld.C0 = CFrame.new(-26, 0, -27.5)
  165. --
  166. partw = Instance.new("Part")
  167. partw.Parent = mo
  168. partw.Size = Vector3.new(50, 20, 1)
  169. partw.BrickColor = BrickColor.new("Black")
  170. partw:BreakJoints()
  171. mesh = Instance.new("SpecialMesh")
  172. mesh.Parent = partw
  173. mesh.Scale = Vector3.new(1, 1, 1)
  174. mesh.MeshType = "Brick"
  175. weld = Instance.new("Weld")
  176. weld.Parent = partw
  177. weld.Part0 = partw
  178. weld.Part1 = base
  179. weld.C0 = CFrame.new(0, -10, -49.5)
  180. --
  181. partw = Instance.new("WedgePart")
  182. partw.Parent = mo
  183. partw.Size = Vector3.new(50, 20, 14)
  184. partw.BrickColor = BrickColor.new("Black")
  185. partw:BreakJoints()
  186. mesh = Instance.new("SpecialMesh")
  187. mesh.Parent = partw
  188. mesh.Scale = Vector3.new(1, 1, 1)
  189. mesh.MeshType = "Wedge"
  190. weld = Instance.new("Weld")
  191. weld.Parent = partw
  192. weld.Part0 = partw
  193. weld.Part1 = base
  194. weld.C0 = CFrame.new(0, -10.7, 43)
  195. --
  196. partw = Instance.new("Part")
  197. partw.Parent = mo
  198. partw.Size = Vector3.new(1, 20, 56)
  199. partw.BrickColor = BrickColor.new("Black")
  200. partw:BreakJoints()
  201. mesh = Instance.new("SpecialMesh")
  202. mesh.Parent = partw
  203. mesh.Scale = Vector3.new(1, 1, 1)
  204. mesh.MeshType = "Brick"
  205. weld = Instance.new("Weld")
  206. weld.Parent = partw
  207. weld.Part0 = partw
  208. weld.Part1 = base
  209. weld.C0 = CFrame.new(24.5, -10, 8)
  210. --
  211. partw = Instance.new("Part")
  212. partw.Parent = mo
  213. partw.Size = Vector3.new(1, 20, 56)
  214. partw.BrickColor = BrickColor.new("Black")
  215. partw:BreakJoints()
  216. mesh = Instance.new("SpecialMesh")
  217. mesh.Parent = partw
  218. mesh.Scale = Vector3.new(1, 1, 1)
  219. mesh.MeshType = "Brick"
  220. weld = Instance.new("Weld")
  221. weld.Parent = partw
  222. weld.Part0 = partw
  223. weld.Part1 = base
  224. weld.C0 = CFrame.new(-24.5, -10, 8)
  225. --
  226. partw = Instance.new("Part")
  227. partw.Parent = mo
  228. partw.Size = Vector3.new(1, 20, 14)
  229. partw.BrickColor = BrickColor.new("Black")
  230. partw:BreakJoints()
  231. mesh = Instance.new("SpecialMesh")
  232. mesh.Parent = partw
  233. mesh.Scale = Vector3.new(1, 1, 1)
  234. mesh.MeshType = "Brick"
  235. weld = Instance.new("Weld")
  236. weld.Parent = partw
  237. weld.Part0 = partw
  238. weld.Part1 = base
  239. weld.C0 = CFrame.new(-24.5, -10, -42)
  240. --
  241. partw = Instance.new("Part")
  242. partw.Parent = mo
  243. partw.Size = Vector3.new(1, 20, 14)
  244. partw.BrickColor = BrickColor.new("Black")
  245. partw:BreakJoints()
  246. mesh = Instance.new("SpecialMesh")
  247. mesh.Parent = partw
  248. mesh.Scale = Vector3.new(1, 1, 1)
  249. mesh.MeshType = "Brick"
  250. weld = Instance.new("Weld")
  251. weld.Parent = partw
  252. weld.Part0 = partw
  253. weld.Part1 = base
  254. weld.C0 = CFrame.new(24.5, -10, -42)
  255. --
  256. partw = Instance.new("Part")
  257. partw.Parent = mo
  258. partw.Size = Vector3.new(18, 20, 1)
  259. partw.BrickColor = BrickColor.new("Black")
  260. partw:BreakJoints()
  261. mesh = Instance.new("SpecialMesh")
  262. mesh.Parent = partw
  263. mesh.Scale = Vector3.new(1, 1, 1)
  264. mesh.MeshType = "Brick"
  265. weld = Instance.new("Weld")
  266. weld.Parent = partw
  267. weld.Part0 = partw
  268. weld.Part1 = base
  269. weld.C0 = CFrame.new(-33.5, -10, -34.5)
  270. --
  271. partw = Instance.new("Part")
  272. partw.Parent = mo
  273. partw.Size = Vector3.new(4, 20, 1)
  274. partw.BrickColor = BrickColor.new("Black")
  275. partw:BreakJoints()
  276. mesh = Instance.new("SpecialMesh")
  277. mesh.Parent = partw
  278. mesh.Scale = Vector3.new(1, 1, 1)
  279. mesh.MeshType = "Brick"
  280. weld = Instance.new("Weld")
  281. weld.Parent = partw
  282. weld.Part0 = partw
  283. weld.Part1 = base
  284. weld.C0 = CFrame.new(-26, -10, -20)
  285. --
  286. partw = Instance.new("Part")
  287. partw.Parent = mo
  288. partw.Size = Vector3.new(1, 20, 5)
  289. partw.BrickColor = BrickColor.new("Black")
  290. partw:BreakJoints()
  291. mesh = Instance.new("SpecialMesh")
  292. mesh.Parent = partw
  293. mesh.Scale = Vector3.new(1, 1, 1)
  294. mesh.MeshType = "Brick"
  295. weld = Instance.new("Weld")
  296. weld.Parent = partw
  297. weld.Part0 = partw
  298. weld.Part1 = base
  299. weld.C0 = CFrame.new(-28, -10, -18)
  300. --
  301. partw = Instance.new("Part")
  302. partw.Parent = mo
  303. partw.Size = Vector3.new(1, 20, 20)
  304. partw.BrickColor = BrickColor.new("Black")
  305. partw:BreakJoints()
  306. mesh = Instance.new("SpecialMesh")
  307. mesh.Parent = partw
  308. mesh.Scale = Vector3.new(1, 1, 1)
  309. mesh.MeshType = "Brick"
  310. weld = Instance.new("Weld")
  311. weld.Parent = partw
  312. weld.Part0 = partw
  313. weld.Part1 = base
  314. weld.C0 = CFrame.new(-42, -10, -25)
  315. --
  316. partw = Instance.new("Part")
  317. partw.Parent = mo
  318. partw.Size = Vector3.new(18, 20, 1)
  319. partw.BrickColor = BrickColor.new("Black")
  320. partw:BreakJoints()
  321. mesh = Instance.new("SpecialMesh")
  322. mesh.Parent = partw
  323. mesh.Scale = Vector3.new(1, 1, 1)
  324. mesh.MeshType = "Brick"
  325. weld = Instance.new("Weld")
  326. weld.Parent = partw
  327. weld.Part0 = partw
  328. weld.Part1 = base
  329. weld.C0 = CFrame.new(33.5, -10, -34.5)
  330. --
  331. partw = Instance.new("Part")
  332. partw.Parent = mo
  333. partw.Size = Vector3.new(4, 20, 1)
  334. partw.BrickColor = BrickColor.new("Black")
  335. partw:BreakJoints()
  336. mesh = Instance.new("SpecialMesh")
  337. mesh.Parent = partw
  338. mesh.Scale = Vector3.new(1, 1, 1)
  339. mesh.MeshType = "Brick"
  340. weld = Instance.new("Weld")
  341. weld.Parent = partw
  342. weld.Part0 = partw
  343. weld.Part1 = base
  344. weld.C0 = CFrame.new(26, -10, -20)
  345. --
  346. partw = Instance.new("Part")
  347. partw.Parent = mo
  348. partw.Size = Vector3.new(1, 20, 5)
  349. partw.BrickColor = BrickColor.new("Black")
  350. partw:BreakJoints()
  351. mesh = Instance.new("SpecialMesh")
  352. mesh.Parent = partw
  353. mesh.Scale = Vector3.new(1, 1, 1)
  354. mesh.MeshType = "Brick"
  355. weld = Instance.new("Weld")
  356. weld.Parent = partw
  357. weld.Part0 = partw
  358. weld.Part1 = base
  359. weld.C0 = CFrame.new(28, -10, -18)
  360. --
  361. partw = Instance.new("Part")
  362. partw.Parent = mo
  363. partw.Size = Vector3.new(1, 20, 20)
  364. partw.BrickColor = BrickColor.new("Black")
  365. partw:BreakJoints()
  366. mesh = Instance.new("SpecialMesh")
  367. mesh.Parent = partw
  368. mesh.Scale = Vector3.new(1, 1, 1)
  369. mesh.MeshType = "Brick"
  370. weld = Instance.new("Weld")
  371. weld.Parent = partw
  372. weld.Part0 = partw
  373. weld.Part1 = base
  374. weld.C0 = CFrame.new(42, -10, -25)
  375. --
  376. partw = Instance.new("Part")
  377. partw.Parent = mo
  378. partw.Transparency = 0.5
  379. partw.CanCollide = false
  380. partw.Size = Vector3.new(15, 20, 1)
  381. partw.BrickColor = BrickColor.new("Bright violet")
  382. partw:BreakJoints()
  383. mesh = Instance.new("SpecialMesh")
  384. mesh.Parent = partw
  385. mesh.Scale = Vector3.new(0.99, 0.99, 0.99)
  386. mesh.MeshType = "Brick"
  387. weld = Instance.new("Weld")
  388. weld.Parent = partw
  389. weld.Part0 = partw
  390. weld.Part1 = base
  391. weld.C0 = CFrame.new(35, -10, -15.5)
  392. --
  393. partw = Instance.new("Part")
  394. partw.Parent = mo
  395. partw.Transparency = 0.5
  396. partw.CanCollide = false
  397. partw.Size = Vector3.new(15, 20, 1)
  398. partw.BrickColor = BrickColor.new("Bright violet")
  399. partw:BreakJoints()
  400. mesh = Instance.new("SpecialMesh")
  401. mesh.Parent = partw
  402. mesh.Scale = Vector3.new(0.99, 0.99, 0.99)
  403. mesh.MeshType = "Brick"
  404. weld = Instance.new("Weld")
  405. weld.Parent = partw
  406. weld.Part0 = partw
  407. weld.Part1 = base
  408. weld.C0 = CFrame.new(-35, -10, -15.5)
  409. --
  410. partw = Instance.new("Part")
  411. partw.Parent = mo
  412. partw.Size = Vector3.new(15, 1, 20)
  413. partw.BrickColor = BrickColor.new("Black")
  414. partw:BreakJoints()
  415. mesh = Instance.new("SpecialMesh")
  416. mesh.Parent = partw
  417. mesh.Scale = Vector3.new(1, 1, 1)
  418. mesh.MeshType = "Brick"
  419. weld = Instance.new("Weld")
  420. weld.Parent = partw
  421. weld.Part0 = partw
  422. weld.Part1 = base
  423. weld.C0 = CFrame.new(35, -20, -25)
  424. --
  425. partw = Instance.new("Part")
  426. partw.Parent = mo
  427. partw.Size = Vector3.new(4, 1, 15)
  428. partw.BrickColor = BrickColor.new("White")
  429. partw:BreakJoints()
  430. mesh = Instance.new("SpecialMesh")
  431. mesh.Parent = partw
  432. mesh.Scale = Vector3.new(0.99, 0.99, 0.99)
  433. mesh.MeshType = "Brick"
  434. weld = Instance.new("Weld")
  435. weld.Parent = partw
  436. weld.Part0 = partw
  437. weld.Part1 = base
  438. weld.C0 = CFrame.new(26, -20, -27.5)
  439. --
  440. partw = Instance.new("Part")
  441. partw.Parent = mo
  442. partw.Size = Vector3.new(15, 1, 20)
  443. partw.BrickColor = BrickColor.new("Black")
  444. partw:BreakJoints()
  445. mesh = Instance.new("SpecialMesh")
  446. mesh.Parent = partw
  447. mesh.Scale = Vector3.new(1, 1, 1)
  448. mesh.MeshType = "Brick"
  449. weld = Instance.new("Weld")
  450. weld.Parent = partw
  451. weld.Part0 = partw
  452. weld.Part1 = base
  453. weld.C0 = CFrame.new(-35, -20, -25)
  454. --
  455. partw = Instance.new("Part")
  456. partw.Parent = mo
  457. partw.Size = Vector3.new(4, 1, 15)
  458. partw.BrickColor = BrickColor.new("White")
  459. partw:BreakJoints()
  460. mesh = Instance.new("SpecialMesh")
  461. mesh.Parent = partw
  462. mesh.Scale = Vector3.new(0.99, 0.99, 0.99)
  463. mesh.MeshType = "Brick"
  464. weld = Instance.new("Weld")
  465. weld.Parent = partw
  466. weld.Part0 = partw
  467. weld.Part1 = base
  468. weld.C0 = CFrame.new(-26, -20, -27.5)
  469. --
  470. partw = Instance.new("Part")
  471. partw.Parent = mo
  472. partw.Size = Vector3.new(50, 1, 86)
  473. partw.BrickColor = BrickColor.new("Black")
  474. partw:BreakJoints()
  475. mesh = Instance.new("SpecialMesh")
  476. mesh.Parent = partw
  477. mesh.Scale = Vector3.new(1, 1, 1)
  478. mesh.MeshType = "Brick"
  479. weld = Instance.new("Weld")
  480. weld.Parent = partw
  481. weld.Part0 = partw
  482. weld.Part1 = base
  483. weld.C0 = CFrame.new(0, -20, -7)
  484. --
  485. partw = Instance.new("WedgePart")
  486. partw.Parent = mo
  487. partw.Transparency = 0.5
  488. partw.Size = Vector3.new(50, 20, 14)
  489. partw.BrickColor = BrickColor.new("Bright blue")
  490. partw:BreakJoints()
  491. mesh = Instance.new("SpecialMesh")
  492. mesh.Parent = partw
  493. mesh.Scale = Vector3.new(1, 1, 1)
  494. mesh.MeshType = "Wedge"
  495. weld = Instance.new("Weld")
  496. weld.Parent = partw
  497. weld.Part0 = partw
  498. weld.Part1 = base
  499. weld.C0 = CFrame.new(0, -30.7, 29)
  500. --
  501. partw = Instance.new("Part")
  502. partw.Parent = mo
  503. partw.Size = Vector3.new(1, 20, 72)
  504. partw.BrickColor = BrickColor.new("Black")
  505. partw:BreakJoints()
  506. mesh = Instance.new("SpecialMesh")
  507. mesh.Parent = partw
  508. mesh.Scale = Vector3.new(1, 1, 1)
  509. mesh.MeshType = "Brick"
  510. weld = Instance.new("Weld")
  511. weld.Parent = partw
  512. weld.Part0 = partw
  513. weld.Part1 = base
  514. weld.C0 = CFrame.new(24.5, -30.7, -14)
  515. --
  516. partw = Instance.new("Part")
  517. partw.Parent = mo
  518. partw.Size = Vector3.new(1, 20, 72)
  519. partw.BrickColor = BrickColor.new("Black")
  520. partw:BreakJoints()
  521. mesh = Instance.new("SpecialMesh")
  522. mesh.Parent = partw
  523. mesh.Scale = Vector3.new(1, 1, 1)
  524. mesh.MeshType = "Brick"
  525. weld = Instance.new("Weld")
  526. weld.Parent = partw
  527. weld.Part0 = partw
  528. weld.Part1 = base
  529. weld.C0 = CFrame.new(-24.5, -30.7, -14)
  530. --
  531. partw = Instance.new("Part")
  532. partw.Parent = mo
  533. partw.Size = Vector3.new(50, 20, 1)
  534. partw.BrickColor = BrickColor.new("Black")
  535. partw:BreakJoints()
  536. mesh = Instance.new("SpecialMesh")
  537. mesh.Parent = partw
  538. mesh.Scale = Vector3.new(1, 1, 1)
  539. mesh.MeshType = "Brick"
  540. weld = Instance.new("Weld")
  541. weld.Parent = partw
  542. weld.Part0 = partw
  543. weld.Part1 = base
  544. weld.C0 = CFrame.new(0, -30.7, -49.5)
  545. --
  546. partw = Instance.new("Part")
  547. partw.Parent = mo
  548. partw.Size = Vector3.new(50, 1, 72)
  549. partw.BrickColor = BrickColor.new("Black")
  550. partw:BreakJoints()
  551. mesh = Instance.new("SpecialMesh")
  552. mesh.Parent = partw
  553. mesh.Scale = Vector3.new(1, 1, 1)
  554. mesh.MeshType = "Brick"
  555. weld = Instance.new("Weld")
  556. weld.Parent = partw
  557. weld.Part0 = partw
  558. weld.Part1 = base
  559. weld.C0 = CFrame.new(0, -40.7, -14)
  560. --
  561. telea = Instance.new("Part")
  562. telea.Parent = mo
  563. telea.Size = Vector3.new(5, 1, 5)
  564. telea.BrickColor = BrickColor.new("White")
  565. telea:BreakJoints()
  566. mesh = Instance.new("SpecialMesh")
  567. mesh.Parent = telea
  568. mesh.Scale = Vector3.new(1, 1, 1)
  569. mesh.MeshType = "Brick"
  570. weld = Instance.new("Weld")
  571. weld.Parent = telea
  572. weld.Part0 = telea
  573. weld.Part1 = base
  574. weld.C0 = CFrame.new(0, -1, -45)
  575. --
  576. teleb = Instance.new("Part")
  577. teleb.Parent = mo
  578. teleb.Size = Vector3.new(5, 1, 5)
  579. teleb.BrickColor = BrickColor.new("White")
  580. teleb:BreakJoints()
  581. mesh = Instance.new("SpecialMesh")
  582. mesh.Parent = teleb
  583. mesh.Scale = Vector3.new(1, 1, 1)
  584. mesh.MeshType = "Brick"
  585. weld = Instance.new("Weld")
  586. weld.Parent = teleb
  587. weld.Part0 = teleb
  588. weld.Part1 = base
  589. weld.C0 = CFrame.new(0, -21, -45)
  590. --
  591. seata = Instance.new("VehicleSeat")
  592. seata.Parent = mo
  593. seata.Size = Vector3.new(2, 1, 2)
  594. seata.BrickColor = BrickColor.new("White")
  595. seata:BreakJoints()
  596. mesh = Instance.new("SpecialMesh")
  597. mesh.Parent = seata
  598. mesh.Scale = Vector3.new(1, 1, 1)
  599. mesh.MeshType = "Brick"
  600. weld = Instance.new("Weld")
  601. weld.Parent = seata
  602. weld.Part0 = seata
  603. weld.Part1 = base
  604. weld.C0 = CFrame.new(0, -21, 15)
  605.  
  606. telea.Touched:connect(function(hit)
  607. human = hit.Parent:findFirstChild("Humanoid")
  608. if human then
  609. hit.Parent.Torso.CFrame = base.CFrame * CFrame.new(0, 30, 0)
  610. end
  611. end)
  612.  
  613. teleb.Touched:connect(function(hit)
  614. human = hit.Parent:findFirstChild("Humanoid")
  615. if human then
  616. hit.Parent.Torso.CFrame = base.CFrame * CFrame.new(0, 10, 0)
  617. end
  618. end)
  619.  
  620. gyro = Instance.new("BodyGyro")
  621. gyro.Parent = base
  622. gyro.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  623. positio = Instance.new("BodyPosition")
  624. positio.maxForce = Vector3.new(0, math.huge, 0)
  625. positio.Parent = base
  626. positio.position = Vector3.new(0.1, 5.5, 0)
  627.  
  628. while true do
  629. wait()
  630. if seata.Throttle == 1 then
  631. seata.Velocity = base.CFrame.lookVector * 50
  632. end
  633. if seata.Throttle == 0 then
  634. seata.Velocity = base.CFrame.lookVector * 0
  635. end
  636. if seata.Throttle == -1 then
  637. seata.Velocity = base.CFrame.lookVector * -50
  638. end
  639. if seata.Steer == 1 then
  640. gyro.cframe = base.CFrame * CFrame.fromEulerAnglesXYZ(0, -0.314, 0)
  641. base.CFrame = base.CFrame * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  642. end
  643. if seata.Steer == 0 then
  644. gyro.cframe = base.CFrame * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  645. base.CFrame = base.CFrame * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  646. end
  647. if seata.Steer == -1 then
  648. gyro.cframe = base.CFrame * CFrame.fromEulerAnglesXYZ(0, 0.314, 0)
  649. base.CFrame = base.CFrame * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  650. end
  651. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement