Advertisement
DarkScriptZEditors

Omaewa

Jan 3rd, 2019
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.94 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code by Mokiros")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  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. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  51. return m:TrigEvent(b and "Button2Down" or "Button2Up")
  52. end
  53. for _,t in pairs(CAS.Actions) do
  54. for _,k in pairs(t.Keys) do
  55. if k==io.KeyCode then
  56. t.Function(t.Name,io.UserInputState,io)
  57. end
  58. end
  59. end
  60. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  61. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  62. end
  63. end)
  64. Event.Parent = NLS([==[
  65. local Player = game:GetService("Players").LocalPlayer
  66. local Event = script:WaitForChild("UserInput_Event")
  67. local Mouse = Player:GetMouse()
  68. local UIS = game:GetService("UserInputService")
  69. local input = function(io,a)
  70. if a then return end
  71. --Since InputObject is a client-side instance, we create and pass table instead
  72. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  73. end
  74. UIS.InputBegan:Connect(input)
  75. UIS.InputEnded:Connect(input)
  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
  95. return typeof(s[k])=="function"
  96. and function(_,...)return s[k](s,...)end or s[k]
  97. end
  98. end,
  99. __newindex = function(self,k,v)
  100. local s = rawget(self,"_RealService")
  101. if s then s[k]=v end
  102. end
  103. }
  104. local function FakeService(t,RealService)
  105. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  106. return setmetatable(t,fsmt)
  107. end
  108.  
  109. --Fake game object
  110. local g = {
  111. GetService = function(self,s)
  112. return rawget(self,s) or _rg:GetService(s)
  113. end,
  114. Players = FakeService({
  115. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  116. },"Players"),
  117. UserInputService = FakeService(UIS,"UserInputService"),
  118. ContextActionService = FakeService(CAS,"ContextActionService"),
  119. RunService = FakeService({
  120. _btrs = {},
  121. RenderStepped = _rg:GetService("RunService").Heartbeat,
  122. BindToRenderStep = function(self,name,_,fun)
  123. self._btrs[name] = self.Heartbeat:Connect(fun)
  124. end,
  125. UnbindFromRenderStep = function(self,name)
  126. self._btrs[name]:Disconnect()
  127. end,
  128. },"RunService")
  129. }
  130. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  131. g.service = g.GetService
  132. FakeService(g,game)
  133. --Changing owner to fake player object to support owner:GetMouse()
  134. game,owner = g,g.Players.LocalPlayer
  135. end
  136. --Made by N3xul ehehe
  137. --wanna float with us?
  138. --11:15 2017-09-24
  139. --Press 'Q' to go Invisible & 'E' to laugh.
  140.  
  141.  
  142. local runDummyScript = function(f,scri)
  143. local oldenv = getfenv(f)
  144. local newenv = setmetatable({}, {
  145. __index = function(_, k)
  146. if k:lower() == 'script' then
  147. return scri
  148. else
  149. return oldenv[k]
  150. end
  151. end
  152. })
  153. setfenv(f, newenv)
  154. ypcall(function() f() end)
  155. end
  156. cors = {}
  157. mas = Instance.new("Model",game:GetService("Lighting"))
  158. mas.Name = "CompiledModel"
  159. o1 = Instance.new("Tool")
  160. o2 = Instance.new("Part")
  161. o3 = Instance.new("SpecialMesh")
  162. o1.Name = "Pennywise Balloon"
  163. o1.Parent = mas
  164. o1.TextureId = "http://www.roblox.com/asset/?id=26721793"
  165. o1.GripPos = Vector3.new(0, -1.5, 0)
  166. o2.Name = "Handle"
  167. o2.Parent = o1
  168. o2.Position = Vector3.new(8.17007637, 7.24064589, -8.3837471)
  169. o2.Rotation = Vector3.new(-178.5, -33.3099976, -179.169998)
  170. o2.CanCollide = false
  171. o2.FormFactor = Enum.FormFactor.Symmetric
  172. o2.Size = Vector3.new(1, 3, 1)
  173. o2.CFrame = CFrame.new(8.17007637, 7.24064589, -8.3837471, -0.83567065, 0.0120456629, -0.549098849, -1.42323084e-14, 0.999759495, 0.0219318718, 0.549230933, 0.018327821, -0.835469663)
  174. o2.BottomSurface = Enum.SurfaceType.Smooth
  175. o2.TopSurface = Enum.SurfaceType.Smooth
  176. o2.Position = Vector3.new(8.17007637, 7.24064589, -8.3837471)
  177. o2.Orientation = Vector3.new(-1.25999999, -146.690002, 0)
  178. o3.Parent = o2
  179. o3.MeshId = "http://www.roblox.com/asset/?id=25498565"
  180. o3.TextureId = "http://www.roblox.com/asset/?id=26725707"
  181. o3.MeshType = Enum.MeshType.FileMesh
  182. mas.Parent = workspace
  183. mas:MakeJoints()
  184. local mas1 = mas:GetChildren()
  185. for i=1,#mas1 do
  186. mas1[i].Parent = game:GetService("Players").LocalPlayer.Backpack
  187. ypcall(function() mas1[i]:MakeJoints() end)
  188. end
  189. mas:Destroy()
  190. for i=1,#cors do
  191. coroutine.resume(cors[i])
  192. end
  193. p = (game.Players.LocalPlayer.Name)
  194. char = game.Players.LocalPlayer.Character
  195. local player = game.Players.LocalPlayer
  196. repeat wait() until player.Character.Humanoid
  197. local humanoid = player.Character.Humanoid
  198. local mouse = player:GetMouse()
  199. CV="Really black"
  200. p = game.Players.LocalPlayer
  201. char = p.Character
  202. local txt = Instance.new("BillboardGui", char)
  203. txt.Adornee = char.Head
  204. txt.Name = "_status"
  205. txt.Size = UDim2.new(2, 0, 1.2, 0)
  206. txt.StudsOffset = Vector3.new(-9, 8, 0)
  207. local text = Instance.new("TextLabel", txt)
  208. text.Size = UDim2.new(10, 0, 7, 0)
  209. text.FontSize = "Size24"
  210. text.TextScaled = true
  211. text.TextTransparency = 0
  212. text.BackgroundTransparency = 1
  213. text.TextTransparency = 0
  214. text.TextStrokeTransparency = 0
  215. text.Font = "Fantasy"
  216. text.TextStrokeColor3 = Color3.new(0,0,0)
  217. v=Instance.new("Part")
  218. v.Name = "ColorBrick"
  219. v.Parent=p.Character
  220. v.FormFactor="Symmetric"
  221. v.Anchored=true
  222. v.CanCollide=false
  223. v.BottomSurface="Smooth"
  224. v.TopSurface="Smooth"
  225. v.Size=Vector3.new(10,5,3)
  226. v.Transparency=1
  227. v.CFrame=char.Torso.CFrame
  228. v.BrickColor=BrickColor.new(CV)
  229. v.Transparency=1
  230. text.TextColor3 = Color3.new(255, 0, 0)
  231. v.Shape="Block"
  232. text.Text = "A Boi with a Balloon"
  233. if char:FindFirstChild('Humanoid') then
  234. char.Humanoid:RemoveAccessories() end
  235. ScarySound1 = Instance.new("Sound")
  236. ScarySound1.Parent = char.Torso
  237. ScarySound1.SoundId = "rbxassetid://1041554412"
  238. ScarySound1.Volume = 2
  239. ScarySound2 = Instance.new("Sound")
  240. ScarySound2.Parent = char.Torso
  241. ScarySound2.SoundId = "rbxassetid://145978092"
  242. ScarySound2.Volume = 1
  243. ScarySound2.Pitch = 1.2
  244. ScarySound2.Looped = true
  245. ScarySound3 = Instance.new("Sound")
  246. ScarySound3.Parent = char.Torso
  247. ScarySound3.SoundId = "rbxassetid://1036327345"
  248. ScarySound3.Volume = 0.1
  249. ScarySound3.Looped = true
  250. Punch = Instance.new("Sound")
  251. Punch.Parent = char.Torso
  252. Punch.SoundId = "rbxassetid://261566877"
  253. Punch.Volume = 1
  254. Punch.Looped = false
  255. hole = Instance.new("Sound")
  256. hole.Parent = char.Torso
  257. hole.SoundId = "rbxassetid://266364769"
  258. hole.Volume = 1
  259. hole.Looped = false
  260. game.Players.LocalPlayer.Character.Sound:Destroy()
  261. function Normal()
  262. ScarySound3:Play()
  263. char.Humanoid.WalkSpeed = 16
  264. char.Head.face.Texture = "rbxassetid://740455053"
  265. char["Left Leg"].Transparency = 0
  266. char["Head"].Transparency = 0
  267. char["Right Leg"].Transparency = 0
  268. char["Torso"].Transparency = 0
  269. char["Left Arm"].Transparency = 0
  270. char["Right Arm"].Transparency = 0
  271. end
  272. function GoInvisible()
  273. ScarySound3:Stop()
  274. ScarySound1:Stop()
  275. char.Humanoid.WalkSpeed = 120
  276. char.Head.face.Transparency = 1
  277. char["Left Leg"].Transparency = 0
  278. char["Head"].Transparency = 0
  279. char["Right Leg"].Transparency = 0
  280. char["Torso"].Transparency = 0
  281. char["Left Arm"].Transparency = 0
  282. char["Right Arm"].Transparency = 0
  283. wait(0.001)
  284. char["Left Leg"].Transparency = 0.6
  285. char["Head"].Transparency = 0.6
  286. char["Right Leg"].Transparency = 0.6
  287. char["Torso"].Transparency = 0.6
  288. char["Left Arm"].Transparency = 0.6
  289. char["Right Arm"].Transparency = 0.6
  290. wait(0.001)
  291. char["Left Leg"].Transparency = 0.7
  292. char["Head"].Transparency = 0.7
  293. char["Right Leg"].Transparency = 0.7
  294. char["Torso"].Transparency = 0.7
  295. char["Left Arm"].Transparency = 0.7
  296. char["Right Arm"].Transparency = 0.7
  297. wait(0.001)
  298. char["Left Leg"].Transparency = 1
  299. char["Head"].Transparency = 1
  300. char["Right Leg"].Transparency = 1
  301. char["Torso"].Transparency = 1
  302. char["Left Arm"].Transparency = 1
  303. char["Right Arm"].Transparency = 1
  304. KLOWN.Transparency = 1
  305. text.TextTransparency = 1
  306. text.TextStrokeTransparency = 1
  307. o2.Transparency = 1
  308. end
  309. function GoVisible()
  310. ScarySound3:Play()
  311. char.Humanoid.WalkSpeed = 16
  312. ScarySound1:Play()
  313. char.Head.face.Transparency = 0
  314. char["Left Leg"].Transparency = 0.9
  315. char["Head"].Transparency = 0.9
  316. char["Right Leg"].Transparency = 9
  317. char["Torso"].Transparency = 0.9
  318. char["Left Arm"].Transparency = 0.9
  319. char["Right Arm"].Transparency = 0.9
  320. wait(0.001)
  321. char["Left Leg"].Transparency = 0.7
  322. char["Head"].Transparency = 0.7
  323. char["Right Leg"].Transparency = 0.7
  324. char["Torso"].Transparency = 0.7
  325. char["Left Arm"].Transparency = 0.7
  326. char["Right Arm"].Transparency = 0.7
  327. wait(0.001)
  328. char["Left Leg"].Transparency = 0
  329. char["Head"].Transparency = 0
  330. char["Right Leg"].Transparency = 0
  331. char["Torso"].Transparency = 0
  332. char["Left Arm"].Transparency = 0
  333. char["Right Arm"].Transparency = 0
  334. KLOWN.Transparency = 0
  335. text.TextTransparency = 0
  336. text.TextStrokeTransparency = 0
  337. o2.Transparency = 0
  338. end
  339. Normal()
  340. mouse.KeyDown:connect(function(key)
  341. if key == "q" then
  342. if char.Head.Transparency == 0 then
  343. GoInvisible()
  344.  
  345. elseif char.Head.Transparency == 1 then
  346. GoVisible()
  347. end
  348. end end)
  349. mouse.KeyDown:connect(function(key)
  350. if key == "e" then
  351. if ScarySound2.IsPlaying == false then
  352. ScarySound2:Play()
  353. elseif ScarySound2.IsPlaying == true then
  354. ScarySound2:Stop()
  355. end
  356. end end)
  357. hat = Instance.new'Accessory'
  358. hat.Name = 'Clown'
  359. hat.AttachmentForward = Vector3.new(0,0,-1)
  360. hat.AttachmentPos = Vector3.new(0, 0.649999976, 0)
  361. hat.AttachmentUp = Vector3.new(0, 1, 0)
  362. hat.AttachmentRight = Vector3.new(1, 0, 0)
  363. handle = Instance.new('Part', hat)
  364. handle.Name = 'Handle'
  365. handle.Locked = true
  366. handle.CanCollide = true
  367. handle.Transparency = 0
  368. handle.BrickColor = BrickColor.new'Medium stone grey'
  369. handle.Size = Vector3.new(2, 2, 2)
  370. mesh = Instance.new('SpecialMesh', handle)
  371. mesh.MeshId = 'http://www.roblox.com/asset/?id=15393031'
  372. mesh.Scale = Vector3.new(1, 1, 1)
  373. mesh.VertexColor = Vector3.new(1, 1, 1)
  374. mesh.TextureId = 'http://www.roblox.com/asset/?id=15393013'
  375. att = Instance.new('Attachment', handle)
  376. att.Name = 'HatAt'
  377. att.Position = Vector3.new(8.65838956e-09, 0.75, -0.000272244215)
  378. att.Axis = Vector3.new(1, -7.87137555e-09, 0)
  379. att.SecondaryAxis = Vector3.new(7.87137555e-09, 1, 4.1444221e-16)
  380. hat.Parent = game:GetService'Players'.LocalPlayer.Character
  381. KLOWN = handle
  382. game:GetService("Lighting").Outlines = false
  383. game:GetService("Lighting").TimeOfDay = "00:00:00"
  384. game:GetService("Lighting").FogColor = Color3.new(0, 0, 0)
  385. game:GetService("Lighting").FogEnd = 160
  386. while wait() do
  387. char["Left Leg"].BrickColor = BrickColor.new("Lily white")
  388. char["Head"].BrickColor = BrickColor.new("Lily white")
  389. char["Right Leg"].BrickColor = BrickColor.new("Lily white")
  390. char["Torso"].BrickColor = BrickColor.new("Lily white")
  391. char["Left Arm"].BrickColor = BrickColor.new("Lily white")
  392. char["Right Arm"].BrickColor = BrickColor.new("Lily white")
  393. end
  394. --What a nice boat. Do you want it back?
  395. --We all float down here. Yes, we do!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement