Advertisement
wamandnj

Untitled

Oct 23rd, 2018
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 = false
  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 = false
  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 = false
  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 = false
  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 = false
  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 = false
  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 = false
  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 = false
  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 = false
  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 = false
  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 = false
  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 = false
  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 = false
  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 = false
  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 = false
  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 = false
  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 = false
  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 = false
  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 = false
  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 = false
  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 = false
  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 = false
  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 = false
  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 = false
  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 = false
  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 = false
  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 = false
  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 = false
  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 = false
  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 = false
  426. s.archivable = false
  427. s.Parent = char.Head
  428. wait(0.1)
  429. s:play()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement