Advertisement
5325325325

Untitled

Dec 7th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.63 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 = owner
  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 h,t
  75. --Give the server mouse data 30 times every second, but only if the values changed
  76. --If player is not moving their mouse, client won't fire events
  77. while wait(1/30) do
  78. if h~=Mouse.Hit or t~=Mouse.Target then
  79. h,t=Mouse.Hit,Mouse.Target
  80. Event:FireServer({isMouse=true,Target=t,Hit=h})
  81. end
  82. end]==],Player.Character)
  83. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  84. end
  85.  
  86. -- [[[
  87. --000000[[====================================================================================\\
  88. --000000[[ DEIVIS97 EDIT
  89. --000000[[====================================================================================//
  90. -- [[[
  91.  
  92. function sandbox(var,func)
  93. local env = getfenv(func)
  94. local newenv = setmetatable({},{
  95. __index = function(self,k)
  96. if k=="script" then
  97. return var
  98. else
  99. return env[k]
  100. end
  101. end,
  102. })
  103. setfenv(func,newenv)
  104. return func
  105. end
  106. cors = {}
  107. mas = Instance.new("Model",game:GetService("Lighting"))
  108. Model0 = Instance.new("Model")
  109. Part1 = Instance.new("Part")
  110. Decal2 = Instance.new("Decal")
  111. Decal3 = Instance.new("Decal")
  112. Decal4 = Instance.new("Decal")
  113. Decal5 = Instance.new("Decal")
  114. Decale = Instance.new("Decal")
  115. Decalee = Instance.new("Decal")
  116. Part6 = Instance.new("Part")
  117. Decal7 = Instance.new("Decal")
  118. Part8 = Instance.new("Part")
  119. Script9 = Instance.new("Script")
  120. Sound10 = Instance.new("Sound")
  121. Sound11 = Instance.new("Sound")
  122. Sound12 = Instance.new("Sound")
  123. Sound13 = Instance.new("Sound")
  124. Sound14 = Instance.new("Sound")
  125. Sound15 = Instance.new("Sound")
  126. Sound16 = Instance.new("Sound")
  127. Sound17 = Instance.new("Sound")
  128. Sound18 = Instance.new("Sound")
  129. Sound19 = Instance.new("Sound")
  130. Sound20 = Instance.new("Sound")
  131. Sound21 = Instance.new("Sound")
  132. Model0.Name = "leppie"
  133. Model0.Parent = mas
  134. Model0.PrimaryPart = Part6
  135. Part1.Name = "Screen"
  136. Part1.Parent = Model0
  137. Part1.BrickColor = BrickColor.new("Maroon")
  138. Part1.Rotation = Vector3.new(-180, 0, -180)
  139. Part1.Anchored = true
  140. Part1.Size = Vector3.new(400.8799591, 400.930027, 1.35998762)
  141. Part1.CFrame = CFrame.new(13.20014, -1.7921829, -39.5804062, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  142. Part1.BottomSurface = Enum.SurfaceType.Smooth
  143. Part1.TopSurface = Enum.SurfaceType.Smooth
  144. Part1.Color = Color3.new(0.458824, 0, 0)
  145. Part1.Position = Vector3.new(13.20014, 200.7921829, -509.5804062)
  146. Part1.Orientation = Vector3.new(0, 180, 0)
  147. Part1.Transparency = 1
  148. Decal2.Name = "face"
  149. Decal2.Parent = Part1
  150. Decal2.Texture = "rbxassetid://421653951"
  151. Decal3.Name = "eyes"
  152. Decal3.Parent = Part1
  153. Decal3.Texture = ""
  154. Decal4.Name = "mouth"
  155. Decal4.Parent = Part1
  156. Decal5.Name = "breek"
  157. Decal5.Parent = Part1
  158. Decal5.Transparency = 1
  159. Decal5.Texture = ""
  160. Part6.Name = "Keyboard"
  161. Part6.Parent = Model0
  162. Part6.BrickColor = BrickColor.new("Really black")
  163. Part6.Rotation = Vector3.new(-180, 0, -180)
  164. Part6.Anchored = true
  165. Part6.Size = Vector3.new(3000.1299744, 1, 3000.2299881)
  166. Part6.CFrame = CFrame.new(13.20014, -62.288559, -4.82504272, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  167. Part6.BottomSurface = Enum.SurfaceType.Smooth
  168. Part6.TopSurface = Enum.SurfaceType.Smooth
  169. Part6.Material = "Grass"
  170. Part6.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  171. Part6.Position = Vector3.new(13.20014, -62.288559, -4.82504272)
  172. Part6.Orientation = Vector3.new(0, 180, 0)
  173. Part6.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  174. Decal7.Face = Enum.NormalId.Top
  175. Part8.Name = "Toppart"
  176. Part8.Parent = Model0
  177. Part8.BrickColor = BrickColor.new("Really black")
  178. Part8.Rotation = Vector3.new(-180, 0, 0)
  179. Part8.Anchored = true
  180. Part8.CanCollide = false
  181. Part8.Size = Vector3.new(79.1299744, 60.3200264, 1.35998762)
  182. Part8.CFrame = CFrame.new(13.20014, -31.7921829, -39.7079086, 1, 0, 0, 0, -1, 0, 0, 0, -1)
  183. Part8.BottomSurface = Enum.SurfaceType.Smooth
  184. Part8.TopSurface = Enum.SurfaceType.Smooth
  185. Part8.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  186. Part8.Position = Vector3.new(13.20014, -31.7921829, -39.7079086)
  187. Part8.Orientation = Vector3.new(0, 180, 180)
  188. Part8.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  189. Part8.Transparency = 1
  190. Script9.Parent = Model0
  191. table.insert(cors,sandbox(Script9,function()
  192. leppie = script.Parent
  193. keyboard = script.Parent.Keyboard
  194. screen = script.Parent.Screen
  195. top = script.Parent.Toppart
  196. eyes = leppie.Screen.eyes
  197. face = leppie.Screen.face
  198. mouth = leppie.Screen.mouth
  199.  
  200. local killsky = Instance.new("Sky", game:GetService'Lighting')
  201. killsky.SkyboxBk = "rbxassetid://102397435"
  202. killsky.SkyboxDn = "rbxassetid://102397435"
  203. killsky.SkyboxFt = "rbxassetid://102397435"
  204. killsky.SkyboxLf = "rbxassetid://102397435"
  205. killsky.SkyboxRt = "rbxassetid://102397435"
  206. killsky.SkyboxUp = "rbxassetid://102397435"
  207. killsky.StarCount = 0
  208. killsky.SunAngularSize = 0
  209. killsky.MoonAngularSize = 0
  210. killsky.MoonTextureId = ""
  211. killsky.CelestialBodiesShown = false
  212. game.Lighting.FogColor = Color3.new(0.1,0.1,0.1)
  213. game.Lighting.FogEnd = 0
  214.  
  215.  
  216. local puddle = Instance.new("Part", workspace)
  217. puddle.Transparency = 1
  218. puddle.Anchored = true
  219. puddle.CanCollide = false
  220. puddle.Locked = true
  221. puddle.Position = Vector3.new(13.2, 0.386, -4.825)
  222. puddle.BrickColor = BrickColor.new("Really red")
  223. puddle.Shape = "Cylinder"
  224. puddle.Size = Vector3.new(0.6, 129.53, 132.12)
  225. puddle.Orientation = Vector3.new(0,0,90)
  226. puddle.Material = "Neon"
  227.  
  228. script.Parent.quake:Play()
  229. wait(1)
  230. script.Parent.intro:Play()
  231.  
  232. for i = 1,550 do
  233. leppie:SetPrimaryPartCFrame(leppie:GetPrimaryPartCFrame() * CFrame.new(0,0.125,0))
  234. wait()
  235. end
  236. script.Parent.quake:Stop()
  237. wait(1)
  238. wait()
  239. puddle.Transparency = 0
  240. wait()
  241. puddle.Transparency = 1
  242. wait()
  243. puddle.Transparency = 1
  244. wait()
  245. puddle.Transparency = 1
  246. wait()
  247. puddle.Transparency = 1
  248. wait()
  249. puddle.Transparency = 1
  250. wait()
  251. puddle.Transparency = 1
  252. wait()
  253. puddle.Transparency = 1
  254. wait()
  255. puddle.Transparency = 1
  256. wait()
  257. puddle.Transparency = 1
  258. wait()
  259. puddle.Transparency = 1
  260. wait()
  261. puddle:Destroy()
  262. killsky.Parent = game.Players
  263. game.Lighting.FogEnd = 10000
  264. local sky = Instance.new('Sky', game:GetService'Lighting')
  265. sky.SkyboxBk = "rbxassetid://2083667"
  266. sky.SkyboxDn = "rbxassetid://2083667"
  267. sky.SkyboxFt = "rbxassetid://2083667"
  268. sky.SkyboxLf = "rbxassetid://2083667"
  269. sky.SkyboxRt = "rbxassetid://2083667"
  270. sky.SkyboxUp = "rbxassetid://2083667"
  271. sky.SunAngularSize = 0
  272. sky.MoonAngularSize = 0
  273. sky.MoonTextureId = ""
  274. sky.CelestialBodiesShown = false
  275. wait(1)
  276. leppie.fite1:Play()
  277.  
  278. for kek = 1,20 do
  279. local etecc = Instance.new("Part", leppie)
  280. etecc.BrickColor = BrickColor.Random()
  281. etecc.Size = Vector3.new(5.59, 4.4, 4.71)
  282. etecc.Anchored = false
  283. etecc.CanCollide = true
  284. etecc.Shape = "Ball"
  285. etecc.Position = Vector3.new(math.random(-300,300),300, math.random(-300, 300))
  286. local etecc2 = Instance.new("Part", leppie)
  287. etecc2.BrickColor = BrickColor.Random()
  288. etecc2.Size = Vector3.new(5.59, 4.4, 4.71)
  289. etecc2.Anchored = false
  290. etecc2.CanCollide = true
  291. etecc2.Shape = "Ball"
  292. etecc2.Position = Vector3.new(math.random(-250,250),300, math.random(-250, 250))
  293. local etecc3 = Instance.new("Part", leppie)
  294. etecc3.BrickColor = BrickColor.Random()
  295. etecc3.Size = Vector3.new(5.59, 4.4, 4.71)
  296. etecc3.Anchored = false
  297. etecc3.CanCollide = true
  298. etecc3.Shape = "Ball"
  299. etecc3.Position = Vector3.new(math.random(-100,100),300, math.random(-100,100))
  300. local etecc4 = Instance.new("Part", leppie)
  301. etecc4.BrickColor = BrickColor.Random()
  302. etecc4.Size = Vector3.new(5.59, 4.4, 4.71)
  303. etecc4.Anchored = false
  304. etecc4.CanCollide = true
  305. etecc4.Shape = "Ball"
  306. etecc4.Position = Vector3.new(math.random(-50,50),300, math.random(-50,50))
  307. wait(2)
  308. local boom = Instance.new("Explosion", etecc)
  309. boom.Position = etecc.Position
  310. boom.BlastRadius = 30
  311. local boom2 = Instance.new("Explosion", etecc2)
  312. boom2.Position = etecc2.Position
  313. boom2.BlastRadius = 30
  314. local boom3 = Instance.new("Explosion", etecc3)
  315. boom3.Position = etecc3.Position
  316. boom3.BlastRadius = 30
  317. local boom4 = Instance.new("Explosion", etecc4)
  318. boom4.Position = etecc4.Position
  319. boom4.BlastRadius = 30
  320. wait(0.5)
  321. etecc:Destroy()
  322. etecc2:Destroy()
  323. etecc3:Destroy()
  324. etecc4:Destroy()
  325. end
  326.  
  327.  
  328. local weakspot = Instance.new("Part", keyboard)
  329. weakspot.BrickColor = BrickColor.new("New Yeller")
  330. weakspot.Position = keyboard.Position
  331. weakspot.Size = Vector3.new(0.85, 9.96, 12.03)
  332. weakspot.Anchored = true
  333. weakspot.CanCollide = true
  334. weakspot.Orientation = Vector3.new(0,0.3,0)
  335. weakspot.Transparency = 1
  336. print("Weak spot has appeared!")
  337. Decale.Name = "face"
  338. Decale.Parent = weakspot
  339. Decale.Texture = "rbxassetid://311212183"
  340. Decale.Face = "Left"
  341. Decalee.Name = "face"
  342. Decalee.Parent = weakspot
  343. Decalee.Texture = "rbxassetid://311212183"
  344. Decalee.Face = "Right"
  345. function onTouch(hit)
  346. print("weakspot has been attacked!")
  347. weakspot:Destroy()
  348. leppie.intro:Stop()
  349. leppie.pain.Pitch = 0.5
  350. leppie.pain:Play()
  351. leppie.crash:Play()
  352. wait(5)
  353.  
  354. local puddle = Instance.new("Part", workspace)
  355. puddle.Transparency = 1
  356. puddle.Anchored = true
  357. puddle.CanCollide = false
  358. puddle.Locked = true
  359. puddle.Position = Vector3.new(13.2, 0.386, -4.825)
  360. puddle.BrickColor = BrickColor.new("Really red")
  361. puddle.Shape = "Cylinder"
  362. puddle.Size = Vector3.new(0.6, 129.53, 132.12)
  363. puddle.Orientation = Vector3.new(0,0,90)
  364. puddle.Material = "Neon"
  365.  
  366. leppie.quake:Play()
  367. local victori = Instance.new("Sound", workspace)
  368. victori.SoundId = "http://www.roblox.com/asset/?id=926451629"
  369. victori.Volume = 10
  370. victori.TimePosition = 0
  371. victori.Looped = false
  372. victori:Play()
  373. for i = 1,500 do
  374. leppie:SetPrimaryPartCFrame(leppie:GetPrimaryPartCFrame() * CFrame.new(0,-25,0))
  375. wait()
  376. end
  377. leppie.quake:Stop()
  378. sky:Remove()
  379. leppie:Destroy()
  380. end
  381.  
  382. weakspot.Touched:connect(onTouch)
  383.  
  384. end))
  385. Sound10.Name = "portal"
  386. Sound10.Parent = Model0
  387. Sound10.SoundId = "rbxassetid://956585775"
  388. Sound10.Volume = 10
  389. Sound11.Name = "quake"
  390. Sound11.Parent = Model0
  391. Sound11.SoundId = "rbxassetid://1444622148"
  392. Sound11.Volume = 5
  393. Sound12.Name = "intro"
  394. Sound12.Parent = Model0
  395. Sound12.SoundId = "rbxassetid://511174008"
  396. Sound12.Volume = 10
  397. Sound13.Name = "taunt"
  398. Sound13.Parent = Model0
  399. Sound13.SoundId = "rbxassetid://135017578"
  400. Sound13.Volume = 10
  401. Sound14.Name = "laugh"
  402. Sound14.Parent = Model0
  403. Sound14.SoundId = "rbxassetid://357906328"
  404. Sound14.Volume = 10
  405. Sound15.Name = "static"
  406. Sound15.Parent = Model0
  407. Sound15.SoundId = "rbxassetid://132081621"
  408. Sound15.Volume = 10
  409. Sound16.Name = "milkncereal"
  410. Sound16.Parent = Model0
  411. Sound16.SoundId = "rbxassetid://172144294"
  412. Sound16.Volume = 10
  413. Sound17.Name = "reee"
  414. Sound17.Parent = Model0
  415. Sound17.SoundId = "rbxassetid://1286168545"
  416. Sound17.Volume = 10
  417. Sound18.Name = "tooterals"
  418. Sound18.Parent = Model0
  419. Sound18.SoundId = "rbxassetid://647462622"
  420. Sound18.Volume = 10
  421. Sound19.Name = "fite1"
  422. Sound19.Parent = Model0
  423. Sound19.SoundId = "rbxassetid://"
  424. Sound19.Volume = 10
  425. Sound20.Name = "pain"
  426. Sound20.Parent = Model0
  427. Sound20.SoundId = "rbxassetid://406913243"
  428. Sound20.Volume = 10
  429. Sound21.Name = "crash"
  430. Sound21.Parent = Model0
  431. Sound21.SoundId = "rbxassetid://747351124"
  432. Sound21.Volume = 10
  433. for i,v in pairs(mas:GetChildren()) do
  434. v.Parent = game:GetService("Players").LocalPlayer.Character
  435. pcall(function() v:MakeJoints() end)
  436. end
  437. mas:Destroy()
  438. for i,v in pairs(cors) do
  439. spawn(function()
  440. pcall(v)
  441. end)
  442. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement