Advertisement
Im_Meme

:^)

Aug 17th, 2018
505
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.45 KB | None | 0 0
  1.  
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6. print("FE Compatibility code by Mokiros")
  7. local rp = RealPlayer
  8. script.Parent = rp.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,Functions={},Connect=function(self,f)table.insert(self.Functions,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 then
  34. for _,f in pairs(t.Functions) do
  35. f(...)
  36. end
  37. end
  38. end
  39. m.TrigEvent = te
  40. UIS.TrigEvent = te
  41.  
  42. Event.OnServerEvent:Connect(function(plr,io)
  43. if plr~=rp then return end
  44. m.Target = io.Target
  45. m.Hit = io.Hit
  46. if not io.isMouse then
  47. local b = io.UserInputState == Enum.UserInputState.Begin
  48. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  49. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  50. end
  51. for _,t in pairs(CAS.Actions) do
  52. for _,k in pairs(t.Keys) do
  53. if k==io.KeyCode then
  54. t.Function(t.Name,io.UserInputState,io)
  55. end
  56. end
  57. end
  58. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  59. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  60. end
  61. end)
  62. Event.Parent = NLS([==[
  63. local Player = game:GetService("Players").LocalPlayer
  64. local Event = script:WaitForChild("UserInput_Event")
  65.  
  66. local Mouse = Player:GetMouse()
  67. local UIS = game:GetService("UserInputService")
  68. local input = function(io,a)
  69. if a then return end
  70. --Since InputObject is a client-side instance, we create and pass table instead
  71. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  72. end
  73. UIS.InputBegan:Connect(input)
  74. UIS.InputEnded:Connect(input)
  75.  
  76. local h,t
  77. --Give the server mouse data 30 times every second, but only if the values changed
  78. --If player is not moving their mouse, client won't fire events
  79. while wait(1/30) do
  80. if h~=Mouse.Hit or t~=Mouse.Target then
  81. h,t=Mouse.Hit,Mouse.Target
  82. Event:FireServer({isMouse=true,Target=t,Hit=h})
  83. end
  84. end]==],Player.Character)
  85.  
  86. ----Sandboxed game object that allows the usage of client-side methods and services
  87. --Real game object
  88. local _rg = game
  89.  
  90. --Metatable for fake service
  91. local fsmt = {
  92. __index = function(self,k)
  93. local s = rawget(self,"_RealService")
  94. if s then return s[k] end
  95. end,
  96. __newindex = function(self,k,v)
  97. local s = rawget(self,"_RealService")
  98. if s then s[k]=v end
  99. end,
  100. __call = function(self,...)
  101. local s = rawget(self,"_RealService")
  102. if s then return s(...) end
  103. end
  104. }
  105. local function FakeService(t,RealService)
  106. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  107. return setmetatable(t,fsmt)
  108. end
  109.  
  110. --Fake game object
  111. local g = {
  112. GetService = function(self,s)
  113. return self[s]
  114. end,
  115. Players = FakeService({
  116. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  117. },"Players"),
  118. UserInputService = FakeService(UIS,"UserInputService"),
  119. ContextActionService = FakeService(CAS,"ContextActionService"),
  120. }
  121. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  122. g.service = g.GetService
  123.  
  124. g.RunService = FakeService({
  125. RenderStepped = _rg:GetService("RunService").Heartbeat,
  126. BindToRenderStep = function(self,name,_,fun)
  127. self._btrs[name] = self.Heartbeat:Connect(fun)
  128. end,
  129. UnbindFromRenderStep = function(self,name)
  130. self._btrs[name]:Disconnect()
  131. end,
  132. },"RunService")
  133.  
  134. setmetatable(g,{
  135. __index=function(self,s)
  136. return _rg:GetService(s) or typeof(_rg[s])=="function"
  137. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  138. end,
  139. __newindex = fsmt.__newindex,
  140. __call = fsmt.__call
  141. })
  142. --Changing owner to fake player object to support owner:GetMouse()
  143. game,owner = g,g.Players.LocalPlayer
  144. end
  145.  
  146.  
  147. --Converted with ttyyuu12345's model to script plugin v4
  148. ---- [[ -<For i>- Testing ]] ----
  149. -- by fo43123
  150. function sandbox(var,func)
  151. local env = getfenv(func)
  152. local newenv = setmetatable({},{
  153. __index = function(self,k)
  154. if k=="script" then
  155. return var
  156. else
  157. return env[k]
  158. end
  159. end,
  160. })
  161. setfenv(func,newenv)
  162. return func
  163. end
  164. cors = {}
  165. mas = Instance.new("Model",game:GetService("Lighting"))
  166. Camera0 = Instance.new("Camera")
  167. Part2 = Instance.new("Part")
  168. Part3 = Instance.new("Part")
  169. Part4 = Instance.new("Part")
  170. Part5 = Instance.new("Part")
  171. SurfaceGui6 = Instance.new("SurfaceGui")
  172. TextLabel7 = Instance.new("TextLabel")
  173. Part8 = Instance.new("Part")
  174. Part9 = Instance.new("Part")
  175. Part10 = Instance.new("Part")
  176. Part11 = Instance.new("Part")
  177. ClickDetector12 = Instance.new("ClickDetector")
  178. Part13 = Instance.new("Part")
  179. Camera0.Parent = mas
  180. Camera0.CFrame = CFrame.new(2.42976809, 9.61259556, -7.7817812, -0.937014282, -0.201886356, 0.285037279, -0, 0.816044867, 0.577988625, -0.349291235, 0.541583598, -0.764645576)
  181. Camera0.CoordinateFrame = CFrame.new(2.42976809, 9.61259556, -7.7817812, -0.937014282, -0.201886356, 0.285037279, -0, 0.816044867, 0.577988625, -0.349291235, 0.541583598, -0.764645576)
  182. Camera0.Focus = CFrame.new(1.85969353, 8.45661831, -6.25249004, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  183. Camera0.focus = CFrame.new(1.85969353, 8.45661831, -6.25249004, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  184. Part2.Name = "icry"
  185. Part2.Parent = mas
  186. Part2.CFrame = CFrame.new(-0.665000439, 0.0299999993, 0.450001717, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  187. Part2.Position = Vector3.new(-0.665000439, 0.0299999993, 0.450001717)
  188. Part2.Color = Color3.new(0.352941, 0.298039, 0.258824)
  189. Part2.Size = Vector3.new(6.75000191, 0.0500000007, 6.86000204)
  190. Part2.Anchored = true
  191. Part2.BottomSurface = Enum.SurfaceType.Smooth
  192. Part2.BrickColor = BrickColor.new("Dark taupe")
  193. Part2.Material = Enum.Material.WoodPlanks
  194. Part2.TopSurface = Enum.SurfaceType.Smooth
  195. Part2.brickColor = BrickColor.new("Dark taupe")
  196. Part3.Name = "icry"
  197. Part3.Parent = mas
  198. Part3.CFrame = CFrame.new(-0.61500001, 1.35500002, 0.916340947, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  199. Part3.Position = Vector3.new(-0.61500001, 1.35500002, 0.916340947)
  200. Part3.Color = Color3.new(0.105882, 0.164706, 0.207843)
  201. Part3.Size = Vector3.new(4.71000147, 2.70000005, 2.7700007)
  202. Part3.Anchored = true
  203. Part3.BottomSurface = Enum.SurfaceType.Smooth
  204. Part3.BrickColor = BrickColor.new("Black")
  205. Part3.Material = Enum.Material.DiamondPlate
  206. Part3.TopSurface = Enum.SurfaceType.Smooth
  207. Part3.brickColor = BrickColor.new("Black")
  208. Part4.Name = "icry"
  209. Part4.Parent = mas
  210. Part4.CFrame = CFrame.new(-0.614999771, 1.68440914, 1.68879855, 1, 0, 0, 0, 0.422617137, 0.906308293, 0, -0.906308293, 0.422617137)
  211. Part4.Orientation = Vector3.new(-65, 0, 0)
  212. Part4.Position = Vector3.new(-0.614999771, 1.68440914, 1.68879855)
  213. Part4.Rotation = Vector3.new(-65, 0, 0)
  214. Part4.Color = Color3.new(0.356863, 0.364706, 0.411765)
  215. Part4.Size = Vector3.new(4.83000183, 2.70000005, 5.18000174)
  216. Part4.Anchored = true
  217. Part4.BottomSurface = Enum.SurfaceType.Smooth
  218. Part4.BrickColor = BrickColor.new("Smoky grey")
  219. Part4.Material = Enum.Material.DiamondPlate
  220. Part4.TopSurface = Enum.SurfaceType.Smooth
  221. Part4.brickColor = BrickColor.new("Smoky grey")
  222. Part5.Name = "icry"
  223. Part5.Parent = mas
  224. Part5.CFrame = CFrame.new(-0.632815599, 2.93691254, 1.83710134, 1, 0, 0, 0, 0.906307876, -0.422617942, 0, 0.422617942, 0.906307876)
  225. Part5.Orientation = Vector3.new(25, 0, 0)
  226. Part5.Position = Vector3.new(-0.632815599, 2.93691254, 1.83710134)
  227. Part5.Rotation = Vector3.new(25, 0, 0)
  228. Part5.Color = Color3.new(0.972549, 0.972549, 0.972549)
  229. Part5.Size = Vector3.new(4.61000013, 2.59000015, 2.0100019)
  230. Part5.Anchored = true
  231. Part5.BottomSurface = Enum.SurfaceType.Smooth
  232. Part5.BrickColor = BrickColor.new("Institutional white")
  233. Part5.Material = Enum.Material.Glass
  234. Part5.TopSurface = Enum.SurfaceType.Smooth
  235. Part5.brickColor = BrickColor.new("Institutional white")
  236. SurfaceGui6.Parent = Part5
  237. SurfaceGui6.LightInfluence = 1
  238. SurfaceGui6.ClipsDescendants = true
  239. TextLabel7.Parent = SurfaceGui6
  240. TextLabel7.Position = UDim2.new(0, 270, 0, 100)
  241. TextLabel7.Rotation = 5
  242. TextLabel7.Size = UDim2.new(0, 200, 0, 250)
  243. TextLabel7.BackgroundColor = BrickColor.new("Institutional white")
  244. TextLabel7.BackgroundColor3 = Color3.new(1, 1, 1)
  245. TextLabel7.Font = Enum.Font.SourceSans
  246. TextLabel7.FontSize = Enum.FontSize.Size96
  247. TextLabel7.Text = "what"
  248. TextLabel7.TextColor = BrickColor.new("Really black")
  249. TextLabel7.TextColor3 = Color3.new(0, 0, 0)
  250. TextLabel7.TextSize = 100
  251. TextLabel7.TextStrokeColor3 = Color3.new(1, 1, 1)
  252. Part8.Name = "icry"
  253. Part8.Parent = mas
  254. Part8.CFrame = CFrame.new(-0.604999304, 2.72812033, 0.156341314, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  255. Part8.Position = Vector3.new(-0.604999304, 2.72812033, 0.156341314)
  256. Part8.Color = Color3.new(0.105882, 0.164706, 0.207843)
  257. Part8.Size = Vector3.new(4.61000109, 0.0500000007, 1.15000153)
  258. Part8.Anchored = true
  259. Part8.BottomSurface = Enum.SurfaceType.Smooth
  260. Part8.BrickColor = BrickColor.new("Black")
  261. Part8.Material = Enum.Material.Wood
  262. Part8.TopSurface = Enum.SurfaceType.Smooth
  263. Part8.brickColor = BrickColor.new("Black")
  264. Part9.Name = "icry"
  265. Part9.Parent = mas
  266. Part9.CFrame = CFrame.new(-0.691447973, 2.76971912, 0.151443392, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  267. Part9.Position = Vector3.new(-0.691447973, 2.76971912, 0.151443392)
  268. Part9.Color = Color3.new(0.352941, 0.298039, 0.258824)
  269. Part9.Size = Vector3.new(1.91000271, 0.0500000007, 0.990001619)
  270. Part9.Anchored = true
  271. Part9.BottomSurface = Enum.SurfaceType.Smooth
  272. Part9.BrickColor = BrickColor.new("Dark taupe")
  273. Part9.Material = Enum.Material.Wood
  274. Part9.TopSurface = Enum.SurfaceType.Smooth
  275. Part9.brickColor = BrickColor.new("Dark taupe")
  276. Part10.Name = "icry"
  277. Part10.Parent = mas
  278. Part10.CFrame = CFrame.new(-0.668581247, 2.83510256, 0.156443417, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  279. Part10.Position = Vector3.new(-0.668581247, 2.83510256, 0.156443417)
  280. Part10.Color = Color3.new(0.105882, 0.164706, 0.207843)
  281. Part10.Size = Vector3.new(1.16000295, 0.0500000007, 0.940001726)
  282. Part10.Anchored = true
  283. Part10.BottomSurface = Enum.SurfaceType.Smooth
  284. Part10.BrickColor = BrickColor.new("Black")
  285. Part10.Material = Enum.Material.DiamondPlate
  286. Part10.TopSurface = Enum.SurfaceType.Smooth
  287. Part10.brickColor = BrickColor.new("Black")
  288. Part11.Name = "button"
  289. Part11.Parent = mas
  290. Part11.CFrame = CFrame.new(-0.65857476, 2.83152056, 0.172284305, 0, -1, 0, 1, 0, 0, 0, 0, 1)
  291. Part11.Orientation = Vector3.new(0, 0, 90)
  292. Part11.Position = Vector3.new(-0.65857476, 2.83152056, 0.172284305)
  293. Part11.Rotation = Vector3.new(0, 0, 90)
  294. Part11.Color = Color3.new(0.768628, 0.156863, 0.109804)
  295. Part11.Size = Vector3.new(0.140002981, 0.80000031, 0.820001721)
  296. Part11.Anchored = true
  297. Part11.BottomSurface = Enum.SurfaceType.Smooth
  298. Part11.BrickColor = BrickColor.new("Bright red")
  299. Part11.Material = Enum.Material.SmoothPlastic
  300. Part11.TopSurface = Enum.SurfaceType.Smooth
  301. Part11.brickColor = BrickColor.new("Bright red")
  302. Part11.Shape = Enum.PartType.Cylinder
  303. ClickDetector12.Parent = Part11
  304. Part13.Name = "icry"
  305. Part13.Parent = mas
  306. Part13.CFrame = CFrame.new(-0.655884206, 2.81768703, 0.162324369, 0, -1, 0, 1, 0, 0, 0, 0, 1)
  307. Part13.Orientation = Vector3.new(0, 0, 90)
  308. Part13.Position = Vector3.new(-0.655884206, 2.81768703, 0.162324369)
  309. Part13.Rotation = Vector3.new(0, 0, 90)
  310. Part13.Color = Color3.new(0.352941, 0.298039, 0.258824)
  311. Part13.Size = Vector3.new(0.140002981, 1.12000012, 0.910001636)
  312. Part13.Anchored = true
  313. Part13.BottomSurface = Enum.SurfaceType.Smooth
  314. Part13.BrickColor = BrickColor.new("Dark taupe")
  315. Part13.Material = Enum.Material.Wood
  316. Part13.TopSurface = Enum.SurfaceType.Smooth
  317. Part13.brickColor = BrickColor.new("Dark taupe")
  318. Part13.Shape = Enum.PartType.Cylinder
  319. print("Little shit by fo43123")
  320. ----- [[ Parts ]] -----
  321. local explosion = Instance.new("Part", workspace)
  322. explosion.Material = "Neon"
  323. explosion.Transparency = 0.6
  324. explosion.Size = Vector3.new(1,1,1)
  325. explosion.Position = Vector3.new(23.791, -0.537, -34.082)
  326. explosion.BrickColor = BrickColor.new("Maroon")
  327. explosion.Anchored = true
  328. explosion.Transparency = 1
  329. explosion.Name = "rip"
  330. explosion.CanCollide = false
  331. local mesh1 = Instance.new("SpecialMesh", explosion)
  332. mesh1.MeshType = "Sphere"
  333. mesh1.Name = "get out"
  334. local lolrun = Instance.new("Part", workspace)
  335. lolrun.Anchored = true
  336. lolrun.Name = "beam"
  337. lolrun.CanCollide = false
  338. lolrun.BrickColor = BrickColor.new("Maroon")
  339. lolrun.Material = "Neon"
  340. lolrun.Orientation = Vector3.new(-65, -35, -180)
  341. lolrun.Size = Vector3.new(4, 2.95, 7)
  342. lolrun.Position = Vector3.new(-176.895, 751.07, 252.459)
  343. local mesh2 = Instance.new("SpecialMesh", lolrun)
  344. mesh2.MeshType = "Sphere"
  345. mesh2.Name = "aaw i love this mesh"
  346. local satelito = Instance.new("Part", workspace)
  347. satelito.Name = "satelito"
  348. satelito.Anchored = true
  349. satelito.CanCollide = false
  350. satelito.Size = Vector3.new(4, 1, 30.94)
  351. satelito.Position = Vector3.new(-202.24, 846.09, 288.829)
  352. satelito.Orientation = Vector3.new(-65, -35, 180)
  353. local mesh3 = Instance.new("SpecialMesh", satelito)
  354. mesh3.MeshType = "FileMesh"
  355. mesh3.Name = "insert mesh/texture here lol"
  356. mesh3.MeshId = "rbxassetid://88760425"
  357. mesh3.TextureId = "rbxassetid://88760555"
  358. mesh3.Scale = Vector3.new(50, 50, 50)
  359. local ms1 = Instance.new("ClickDetector", Part11)
  360. ms1.MaxActivationDistance = 12
  361. ----- [[ Sounds ]] -----
  362. local s1 = Instance.new("Sound", satelito)
  363. s1.SoundId = "rbxassetid://164826470"
  364. s1.Volume = 10
  365. s1.Name = "Ur"
  366. local s2 = Instance.new("Sound", explosion)
  367. s2.SoundId = "rbxassetid://138186576"
  368. s2.Volume = 10
  369. s2.Looped = true
  370. s2.Name = "Gay"
  371. local click = Instance.new("Sound", Part11)
  372. click.SoundId = "rbxassetid://156286438"
  373. click.Volume = 5
  374. onetime = true
  375. active = false -- true -> active distortion effect
  376. if active == false then
  377. print("distortion effect:", active)
  378. else active = true do
  379. local ds1 = Instance.new("DistortionSoundEffect", s1)
  380. local ds2 = Instance.new("DistortionSoundEffect", s2)
  381. local ds3 = Instance.new("DistortionSoundEffect", click)
  382. ds1.Level = math.huge
  383. ds1.Name = "lol"
  384. ds2.Level = math.huge
  385. ds2.Name = ">:)"
  386. print("distortion effect:", active)
  387. end
  388. end
  389.  
  390. function t()
  391. for i = 0, 1, .1 do
  392. lolrun.Transparency = i
  393. wait()
  394. if i == 1 then
  395. lolrun:Destroy()
  396. end
  397. end
  398. end
  399.  
  400. function c()
  401. t()
  402. s1:Resume()
  403. wait(4)
  404. s2:Resume()
  405. explosion.Transparency = 0.6
  406. for i = 1, 600, 2 do
  407. explosion.Size = Vector3.new(i, i, i)
  408. wait()
  409. explosion.Touched:Connect(function(hito)
  410. local whois = hito.Parent:FindFirstChild("Humanoid")
  411. if whois then
  412. whois:TakeDamage(math.huge) --- e.e
  413. whois.WalkSpeed = 0
  414. whois.JumpPower = 0
  415. wait(10)
  416. explosion:Destroy()
  417. s2.Looped = false
  418. end
  419. end)
  420. end
  421. end
  422.  
  423. ClickDetector12.MouseClick:connect(function()
  424. click:Resume()
  425. if onetime == true then
  426. onetime = false
  427. wait(1)
  428. s1:Resume()
  429. for i = 7, 2047, 20 do
  430. lolrun.Size = Vector3.new(4, 2.95, i)
  431. wait()
  432. if i == 2047 then
  433. c()
  434. end
  435. end
  436. end
  437. end)
  438. for i,v in pairs(mas:GetChildren()) do
  439. v.Parent = workspace
  440. pcall(function() v:MakeJoints() end)
  441. end
  442. mas:Destroy()
  443. for i,v in pairs(cors) do
  444. spawn(function()
  445. pcall(v)
  446. end)
  447. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement