Advertisement
wamandnj

Untitled

Oct 23rd, 2018
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.47 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. m = owner
  88. char = m.Character
  89. local txt = Instance.new("BillboardGui", char)
  90. txt.Adornee = char.Head
  91. txt.Name = "_status"
  92. txt.Size = UDim2.new(2, 0, 1.2, 0)
  93. txt.StudsOffset = Vector3.new(-9, 8, 0)
  94. local text = Instance.new("TextLabel", txt)
  95. text.Size = UDim2.new(10, 0, 7, 0)
  96. text.FontSize = "Size24"
  97. text.TextScaled = true
  98. text.TextTransparency = 0
  99. text.BackgroundTransparency = 1
  100. text.TextTransparency = 0
  101. text.TextStrokeTransparency = 0
  102. text.Font = "Bodoni"
  103. text.TextStrokeColor3 = Color3.new(0, 0, 0)
  104. v = Instance.new("Part")
  105. v.Name = "ColorBrick"
  106. v.Parent = m.Character
  107. v.FormFactor = "Symmetric"
  108. v.Anchored = true
  109. v.CanCollide = false
  110. v.BottomSurface = "Smooth"
  111. v.TopSurface = "Smooth"
  112. v.Size = Vector3.new(10, 5, 3)
  113. v.Transparency = 1
  114. v.CFrame = char.Torso.CFrame
  115. v.BrickColor = BrickColor.new("Really black")
  116. v.Transparency = 1
  117. v.Shape = "Block"
  118. spawn(function()
  119. local TweenService = game:GetService("TweenService")
  120. local Colours = {Color3.fromRGB(255,0,0),Color3.fromRGB(255,128,0),Color3.fromRGB(255,255,0),Color3.fromRGB(0,255,0),Color3.fromRGB(0,255,255),Color3.fromRGB(0,0,255),Color3.fromRGB(191,0,255),Color3.fromRGB(255,0,191)}
  121. local Int = 0
  122. while wait(0.5) do
  123. if Int == #Colours then Int = 0 end
  124. Int = Int+1
  125. TweenService:Create(text,TweenInfo.new(1),{TextColor3 = Colours[Int]}):Play()
  126. end
  127. end)
  128. text.Text = "Ya Liek Jazz?"
  129.  
  130. local s = Instance.new("Sound",char)
  131. s.Name = "BGMusic"
  132. s.SoundId = "rbxassetid://600098105"
  133. s.Pitch = 1
  134. s.Volume = 100
  135. s.Looped = true
  136. s.archivable = false
  137. s.Parent = char.Head
  138. wait(0.1)
  139. s:play()
  140. local s = Instance.new("Sound",char)
  141. s.Name = "BGMusic"
  142. s.SoundId = "rbxassetid://600098105"
  143. s.Pitch = 1
  144. s.Volume = 100
  145. s.Looped = true
  146. s.archivable = false
  147. s.Parent = char.Head
  148. wait(0.1)
  149. s:play()
  150. local s = Instance.new("Sound",char)
  151. s.Name = "BGMusic"
  152. s.SoundId = "rbxassetid://600098105"
  153. s.Pitch = 1
  154. s.Volume = 100
  155. s.Looped = true
  156. s.archivable = false
  157. s.Parent = char.Head
  158. wait(0.1)
  159. s:play()
  160. local s = Instance.new("Sound",char)
  161. s.Name = "BGMusic"
  162. s.SoundId = "rbxassetid://600098105"
  163. s.Pitch = 1
  164. s.Volume = 100
  165. s.Looped = true
  166. s.archivable = false
  167. s.Parent = char.Head
  168. wait(0.1)
  169. s:play()
  170. local s = Instance.new("Sound",char)
  171. s.Name = "BGMusic"
  172. s.SoundId = "rbxassetid://600098105"
  173. s.Pitch = 1
  174. s.Volume = 100
  175. s.Looped = true
  176. s.archivable = false
  177. s.Parent = char.Head
  178. wait(0.1)
  179. s:play()
  180. local s = Instance.new("Sound",char)
  181. s.Name = "BGMusic"
  182. s.SoundId = "rbxassetid://600098105"
  183. s.Pitch = 1
  184. s.Volume = 100
  185. s.Looped = true
  186. s.archivable = false
  187. s.Parent = char.Head
  188. wait(0.1)
  189. s:play()
  190. local s = Instance.new("Sound",char)
  191. s.Name = "BGMusic"
  192. s.SoundId = "rbxassetid://600098105"
  193. s.Pitch = 1
  194. s.Volume = 100
  195. s.Looped = true
  196. s.archivable = false
  197. s.Parent = char.Head
  198. wait(0.1)
  199. s:play()
  200. local s = Instance.new("Sound",char)
  201. s.Name = "BGMusic"
  202. s.SoundId = "rbxassetid://600098105"
  203. s.Pitch = 1
  204. s.Volume = 100
  205. s.Looped = true
  206. s.archivable = false
  207. s.Parent = char.Head
  208. wait(0.1)
  209. s:play()
  210. local s = Instance.new("Sound",char)
  211. s.Name = "BGMusic"
  212. s.SoundId = "rbxassetid://600098105"
  213. s.Pitch = 1
  214. s.Volume = 100
  215. s.Looped = true
  216. s.archivable = false
  217. s.Parent = char.Head
  218. wait(0.1)
  219. s:play()
  220. local s = Instance.new("Sound",char)
  221. s.Name = "BGMusic"
  222. s.SoundId = "rbxassetid://600098105"
  223. s.Pitch = 1
  224. s.Volume = 100
  225. s.Looped = true
  226. s.archivable = false
  227. s.Parent = char.Head
  228. wait(0.1)
  229. s:play()
  230. local s = Instance.new("Sound",char)
  231. s.Name = "BGMusic"
  232. s.SoundId = "rbxassetid://600098105"
  233. s.Pitch = 1
  234. s.Volume = 100
  235. s.Looped = true
  236. s.archivable = false
  237. s.Parent = char.Head
  238. wait(0.1)
  239. s:play()
  240. local s = Instance.new("Sound",char)
  241. s.Name = "BGMusic"
  242. s.SoundId = "rbxassetid://600098105"
  243. s.Pitch = 1
  244. s.Volume = 100
  245. s.Looped = true
  246. s.archivable = false
  247. s.Parent = char.Head
  248. wait(0.1)
  249. s:play()
  250. local s = Instance.new("Sound",char)
  251. s.Name = "BGMusic"
  252. s.SoundId = "rbxassetid://600098105"
  253. s.Pitch = 1
  254. s.Volume = 100
  255. s.Looped = true
  256. s.archivable = false
  257. s.Parent = char.Head
  258. wait(0.1)
  259. s:play()
  260. local s = Instance.new("Sound",char)
  261. s.Name = "BGMusic"
  262. s.SoundId = "rbxassetid://600098105"
  263. s.Pitch = 1
  264. s.Volume = 100
  265. s.Looped = true
  266. s.archivable = false
  267. s.Parent = char.Head
  268. wait(0.1)
  269. s:play()
  270. local s = Instance.new("Sound",char)
  271. s.Name = "BGMusic"
  272. s.SoundId = "rbxassetid://600098105"
  273. s.Pitch = 1
  274. s.Volume = 100
  275. s.Looped = true
  276. s.archivable = false
  277. s.Parent = char.Head
  278. wait(0.1)
  279. s:play()
  280. local s = Instance.new("Sound",char)
  281. s.Name = "BGMusic"
  282. s.SoundId = "rbxassetid://600098105"
  283. s.Pitch = 1
  284. s.Volume = 100
  285. s.Looped = true
  286. s.archivable = false
  287. s.Parent = char.Head
  288. wait(0.1)
  289. s:play()
  290. local s = Instance.new("Sound",char)
  291. s.Name = "BGMusic"
  292. s.SoundId = "rbxassetid://600098105"
  293. s.Pitch = 1
  294. s.Volume = 100
  295. s.Looped = true
  296. s.archivable = false
  297. s.Parent = char.Head
  298. wait(0.1)
  299. s:play()
  300. local s = Instance.new("Sound",char)
  301. s.Name = "BGMusic"
  302. s.SoundId = "rbxassetid://600098105"
  303. s.Pitch = 1
  304. s.Volume = 100
  305. s.Looped = true
  306. s.archivable = false
  307. s.Parent = char.Head
  308. wait(0.1)
  309. s:play()
  310. local s = Instance.new("Sound",char)
  311. s.Name = "BGMusic"
  312. s.SoundId = "rbxassetid://600098105"
  313. s.Pitch = 1
  314. s.Volume = 100
  315. s.Looped = true
  316. s.archivable = false
  317. s.Parent = char.Head
  318. wait(0.1)
  319. s:play()
  320. local s = Instance.new("Sound",char)
  321. s.Name = "BGMusic"
  322. s.SoundId = "rbxassetid://600098105"
  323. s.Pitch = 1
  324. s.Volume = 100
  325. s.Looped = true
  326. s.archivable = false
  327. s.Parent = char.Head
  328. wait(0.1)
  329. s:play()
  330. local s = Instance.new("Sound",char)
  331. s.Name = "BGMusic"
  332. s.SoundId = "rbxassetid://600098105"
  333. s.Pitch = 1
  334. s.Volume = 100
  335. s.Looped = true
  336. s.archivable = false
  337. s.Parent = char.Head
  338. wait(0.1)
  339. s:play()
  340. local s = Instance.new("Sound",char)
  341. s.Name = "BGMusic"
  342. s.SoundId = "rbxassetid://600098105"
  343. s.Pitch = 1
  344. s.Volume = 100
  345. s.Looped = true
  346. s.archivable = false
  347. s.Parent = char.Head
  348. wait(0.1)
  349. s:play()
  350. local s = Instance.new("Sound",char)
  351. s.Name = "BGMusic"
  352. s.SoundId = "rbxassetid://600098105"
  353. s.Pitch = 1
  354. s.Volume = 100
  355. s.Looped = true
  356. s.archivable = false
  357. s.Parent = char.Head
  358. wait(0.1)
  359. s:play()
  360. local s = Instance.new("Sound",char)
  361. s.Name = "BGMusic"
  362. s.SoundId = "rbxassetid://600098105"
  363. s.Pitch = 1
  364. s.Volume = 100
  365. s.Looped = true
  366. s.archivable = false
  367. s.Parent = char.Head
  368. wait(0.1)
  369. s:play()
  370. local s = Instance.new("Sound",char)
  371. s.Name = "BGMusic"
  372. s.SoundId = "rbxassetid://600098105"
  373. s.Pitch = 1
  374. s.Volume = 100
  375. s.Looped = true
  376. s.archivable = false
  377. s.Parent = char.Head
  378. wait(0.1)
  379. s:play()
  380. local s = Instance.new("Sound",char)
  381. s.Name = "BGMusic"
  382. s.SoundId = "rbxassetid://600098105"
  383. s.Pitch = 1
  384. s.Volume = 100
  385. s.Looped = true
  386. s.archivable = false
  387. s.Parent = char.Head
  388. wait(0.1)
  389. s:play()
  390. local s = Instance.new("Sound",char)
  391. s.Name = "BGMusic"
  392. s.SoundId = "rbxassetid://600098105"
  393. s.Pitch = 1
  394. s.Volume = 100
  395. s.Looped = true
  396. s.archivable = false
  397. s.Parent = char.Head
  398. wait(0.1)
  399. s:play()
  400. local s = Instance.new("Sound",char)
  401. s.Name = "BGMusic"
  402. s.SoundId = "rbxassetid://600098105"
  403. s.Pitch = 1
  404. s.Volume = 100
  405. s.Looped = true
  406. s.archivable = false
  407. s.Parent = char.Head
  408. wait(0.1)
  409. s:play()
  410. local s = Instance.new("Sound",char)
  411. s.Name = "BGMusic"
  412. s.SoundId = "rbxassetid://600098105"
  413. s.Pitch = 1
  414. s.Volume = 100
  415. s.Looped = true
  416. s.archivable = false
  417. s.Parent = char.Head
  418. wait(0.1)
  419. s:play()
  420. local s = Instance.new("Sound",char)
  421. s.Name = "BGMusic"
  422. s.SoundId = "rbxassetid://600098105"
  423. s.Pitch = 1
  424. s.Volume = 100
  425. s.Looped = true
  426. s.archivable = false
  427. s.Parent = char.Head
  428. wait(0.1)
  429. s:play()
  430. local s = Instance.new("Sound",char)
  431. s.Name = "BGMusic"
  432. s.SoundId = "rbxassetid://600098105"
  433. s.Pitch = 1
  434. s.Volume = 100
  435. s.Looped = true
  436. s.archivable = false
  437. s.Parent = char.Head
  438. wait(0.1)
  439. s:play()
  440. local s = Instance.new("Sound",char)
  441. s.Name = "BGMusic"
  442. s.SoundId = "rbxassetid://600098105"
  443. s.Pitch = 1
  444. s.Volume = 100
  445. s.Looped = true
  446. s.archivable = false
  447. s.Parent = char.Head
  448. wait(0.1)
  449. s:play()
  450. local s = Instance.new("Sound",char)
  451. s.Name = "BGMusic"
  452. s.SoundId = "rbxassetid://600098105"
  453. s.Pitch = 1
  454. s.Volume = 100
  455. s.Looped = true
  456. s.archivable = false
  457. s.Parent = char.Head
  458. wait(0.1)
  459. s:play()
  460. local s = Instance.new("Sound",char)
  461. s.Name = "BGMusic"
  462. s.SoundId = "rbxassetid://600098105"
  463. s.Pitch = 1
  464. s.Volume = 100
  465. s.Looped = true
  466. s.archivable = false
  467. s.Parent = char.Head
  468. wait(0.1)
  469. s:play()
  470. local s = Instance.new("Sound",char)
  471. s.Name = "BGMusic"
  472. s.SoundId = "rbxassetid://600098105"
  473. s.Pitch = 1
  474. s.Volume = 100
  475. s.Looped = true
  476. s.archivable = false
  477. s.Parent = char.Head
  478. wait(0.1)
  479. s:play()
  480. local s = Instance.new("Sound",char)
  481. s.Name = "BGMusic"
  482. s.SoundId = "rbxassetid://600098105"
  483. s.Pitch = 1
  484. s.Volume = 100
  485. s.Looped = true
  486. s.archivable = false
  487. s.Parent = char.Head
  488. wait(0.1)
  489. s:play()
  490. local s = Instance.new("Sound",char)
  491. s.Name = "BGMusic"
  492. s.SoundId = "rbxassetid://600098105"
  493. s.Pitch = 1
  494. s.Volume = 100
  495. s.Looped = true
  496. s.archivable = false
  497. s.Parent = char.Head
  498. wait(0.1)
  499. s:play()
  500. local s = Instance.new("Sound",char)
  501. s.Name = "BGMusic"
  502. s.SoundId = "rbxassetid://600098105"
  503. s.Pitch = 1
  504. s.Volume = 100
  505. s.Looped = true
  506. s.archivable = false
  507. s.Parent = char.Head
  508. wait(0.1)
  509. s:play()
  510. local s = Instance.new("Sound",char)
  511. s.Name = "BGMusic"
  512. s.SoundId = "rbxassetid://600098105"
  513. s.Pitch = 1
  514. s.Volume = 100
  515. s.Looped = true
  516. s.archivable = false
  517. s.Parent = char.Head
  518. wait(0.1)
  519. s:play()
  520. local s = Instance.new("Sound",char)
  521. s.Name = "BGMusic"
  522. s.SoundId = "rbxassetid://600098105"
  523. s.Pitch = 1
  524. s.Volume = 100
  525. s.Looped = true
  526. s.archivable = false
  527. s.Parent = char.Head
  528. wait(0.1)
  529. s:play()
  530. local s = Instance.new("Sound",char)
  531. s.Name = "BGMusic"
  532. s.SoundId = "rbxassetid://600098105"
  533. s.Pitch = 1
  534. s.Volume = 100
  535. s.Looped = true
  536. s.archivable = false
  537. s.Parent = char.Head
  538. wait(0.1)
  539. s:play()
  540. local s = Instance.new("Sound",char)
  541. s.Name = "BGMusic"
  542. s.SoundId = "rbxassetid://600098105"
  543. s.Pitch = 1
  544. s.Volume = 100
  545. s.Looped = true
  546. s.archivable = false
  547. s.Parent = char.Head
  548. wait(0.1)
  549. s:play()
  550. local s = Instance.new("Sound",char)
  551. s.Name = "BGMusic"
  552. s.SoundId = "rbxassetid://600098105"
  553. s.Pitch = 1
  554. s.Volume = 100
  555. s.Looped = true
  556. s.archivable = false
  557. s.Parent = char.Head
  558. wait(0.1)
  559. s:play()
  560. local s = Instance.new("Sound",char)
  561. s.Name = "BGMusic"
  562. s.SoundId = "rbxassetid://600098105"
  563. s.Pitch = 1
  564. s.Volume = 100
  565. s.Looped = true
  566. s.archivable = false
  567. s.Parent = char.Head
  568. wait(0.1)
  569. s:play()
  570. local s = Instance.new("Sound",char)
  571. s.Name = "BGMusic"
  572. s.SoundId = "rbxassetid://600098105"
  573. s.Pitch = 1
  574. s.Volume = 100
  575. s.Looped = true
  576. s.archivable = false
  577. s.Parent = char.Head
  578. wait(0.1)
  579. s:play()
  580. local s = Instance.new("Sound",char)
  581. s.Name = "BGMusic"
  582. s.SoundId = "rbxassetid://600098105"
  583. s.Pitch = 1
  584. s.Volume = 100
  585. s.Looped = true
  586. s.archivable = false
  587. s.Parent = char.Head
  588. wait(0.1)
  589. s:play()
  590. local s = Instance.new("Sound",char)
  591. s.Name = "BGMusic"
  592. s.SoundId = "rbxassetid://600098105"
  593. s.Pitch = 1
  594. s.Volume = 100
  595. s.Looped = true
  596. s.archivable = false
  597. s.Parent = char.Head
  598. wait(0.1)
  599. s:play()
  600. local s = Instance.new("Sound",char)
  601. s.Name = "BGMusic"
  602. s.SoundId = "rbxassetid://600098105"
  603. s.Pitch = 1
  604. s.Volume = 100
  605. s.Looped = true
  606. s.archivable = false
  607. s.Parent = char.Head
  608. wait(0.1)
  609. s:play()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement