Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,game,owner = owner,game
- local RealPlayer = Player
- do
- print("FE Compatibility code by Mokiros")
- local rp = RealPlayer
- script.Parent = rp.Character
- --RemoteEvent for communicating
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- --Fake event to make stuff like Mouse.KeyDown work
- local function fakeEvent()
- local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
- t.connect = t.Connect
- return t
- end
- --Creating fake input objects with fake variables
- local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
- local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
- local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
- CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
- end}
- --Merged 2 functions into one by checking amount of arguments
- CAS.UnbindAction = CAS.BindAction
- --This function will trigger the events that have been :Connect()'ed
- local function te(self,ev,...)
- local t = m[ev]
- if t and t._fakeEvent then
- for _,f in pairs(t.Functions) do
- f(...)
- end
- end
- end
- m.TrigEvent = te
- UIS.TrigEvent = te
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=rp then return end
- m.Target = io.Target
- m.Hit = io.Hit
- if not io.isMouse then
- local b = io.UserInputState == Enum.UserInputState.Begin
- if io.UserInputType == Enum.UserInputType.MouseButton1 then
- return m:TrigEvent(b and "Button1Down" or "Button1Up")
- end
- if io.UserInputType == Enum.UserInputType.MouseButton2 then
- return m:TrigEvent(b and "Button2Down" or "Button2Up")
- end
- for _,t in pairs(CAS.Actions) do
- for _,k in pairs(t.Keys) do
- if k==io.KeyCode then
- t.Function(t.Name,io.UserInputState,io)
- end
- end
- end
- m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
- UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
- end
- end)
- Event.Parent = NLS([==[
- local Player = game:GetService("Players").LocalPlayer
- local Event = script:WaitForChild("UserInput_Event")
- local Mouse = Player:GetMouse()
- local UIS = game:GetService("UserInputService")
- local input = function(io,a)
- if a then return end
- --Since InputObject is a client-side instance, we create and pass table instead
- Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
- end
- UIS.InputBegan:Connect(input)
- UIS.InputEnded:Connect(input)
- local h,t
- --Give the server mouse data 30 times every second, but only if the values changed
- --If player is not moving their mouse, client won't fire events
- while wait(1/30) do
- if h~=Mouse.Hit or t~=Mouse.Target then
- h,t=Mouse.Hit,Mouse.Target
- Event:FireServer({isMouse=true,Target=t,Hit=h})
- end
- end]==],Player.Character)
- ----Sandboxed game object that allows the usage of client-side methods and services
- --Real game object
- local _rg = game
- --Metatable for fake service
- local fsmt = {
- __index = function(self,k)
- local s = rawget(self,"_RealService")
- if s then
- return typeof(s[k])=="function"
- and function(_,...)return s[k](s,...)end or s[k]
- end
- end,
- __newindex = function(self,k,v)
- local s = rawget(self,"_RealService")
- if s then s[k]=v end
- end
- }
- local function FakeService(t,RealService)
- t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
- return setmetatable(t,fsmt)
- end
- --Fake game object
- local g = {
- GetService = function(self,s)
- return rawget(self,s) or _rg:GetService(s)
- end,
- Players = FakeService({
- LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
- },"Players"),
- UserInputService = FakeService(UIS,"UserInputService"),
- ContextActionService = FakeService(CAS,"ContextActionService"),
- RunService = FakeService({
- _btrs = {},
- RenderStepped = _rg:GetService("RunService").Heartbeat,
- BindToRenderStep = function(self,name,_,fun)
- self._btrs[name] = self.Heartbeat:Connect(fun)
- end,
- UnbindFromRenderStep = function(self,name)
- self._btrs[name]:Disconnect()
- end,
- },"RunService")
- }
- rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
- g.service = g.GetService
- FakeService(g,game)
- --Changing owner to fake player object to support owner:GetMouse()
- game,owner = g,g.Players.LocalPlayer
- end
- --Made by N3xul ehehe
- --wanna float with us?
- --11:15 2017-09-24
- --Press 'Q' to go Invisible & 'E' to laugh.
- local runDummyScript = function(f,scri)
- local oldenv = getfenv(f)
- local newenv = setmetatable({}, {
- __index = function(_, k)
- if k:lower() == 'script' then
- return scri
- else
- return oldenv[k]
- end
- end
- })
- setfenv(f, newenv)
- ypcall(function() f() end)
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- mas.Name = "CompiledModel"
- o1 = Instance.new("Tool")
- o2 = Instance.new("Part")
- o3 = Instance.new("SpecialMesh")
- o1.Name = "Pennywise Balloon"
- o1.Parent = mas
- o1.TextureId = "http://www.roblox.com/asset/?id=26721793"
- o1.GripPos = Vector3.new(0, -1.5, 0)
- o2.Name = "Handle"
- o2.Parent = o1
- o2.Position = Vector3.new(8.17007637, 7.24064589, -8.3837471)
- o2.Rotation = Vector3.new(-178.5, -33.3099976, -179.169998)
- o2.CanCollide = false
- o2.FormFactor = Enum.FormFactor.Symmetric
- o2.Size = Vector3.new(1, 3, 1)
- 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)
- o2.BottomSurface = Enum.SurfaceType.Smooth
- o2.TopSurface = Enum.SurfaceType.Smooth
- o2.Position = Vector3.new(8.17007637, 7.24064589, -8.3837471)
- o2.Orientation = Vector3.new(-1.25999999, -146.690002, 0)
- o3.Parent = o2
- o3.MeshId = "http://www.roblox.com/asset/?id=25498565"
- o3.TextureId = "http://www.roblox.com/asset/?id=26725707"
- o3.MeshType = Enum.MeshType.FileMesh
- mas.Parent = workspace
- mas:MakeJoints()
- local mas1 = mas:GetChildren()
- for i=1,#mas1 do
- mas1[i].Parent = game:GetService("Players").LocalPlayer.Backpack
- ypcall(function() mas1[i]:MakeJoints() end)
- end
- mas:Destroy()
- for i=1,#cors do
- coroutine.resume(cors[i])
- end
- p = (game.Players.LocalPlayer.Name)
- char = game.Players.LocalPlayer.Character
- local player = game.Players.LocalPlayer
- repeat wait() until player.Character.Humanoid
- local humanoid = player.Character.Humanoid
- local mouse = player:GetMouse()
- CV="Really black"
- p = game.Players.LocalPlayer
- char = p.Character
- local txt = Instance.new("BillboardGui", char)
- txt.Adornee = char.Head
- txt.Name = "_status"
- txt.Size = UDim2.new(2, 0, 1.2, 0)
- txt.StudsOffset = Vector3.new(-9, 8, 0)
- local text = Instance.new("TextLabel", txt)
- text.Size = UDim2.new(10, 0, 7, 0)
- text.FontSize = "Size24"
- text.TextScaled = true
- text.TextTransparency = 0
- text.BackgroundTransparency = 1
- text.TextTransparency = 0
- text.TextStrokeTransparency = 0
- text.Font = "Fantasy"
- text.TextStrokeColor3 = Color3.new(0,0,0)
- v=Instance.new("Part")
- v.Name = "ColorBrick"
- v.Parent=p.Character
- v.FormFactor="Symmetric"
- v.Anchored=true
- v.CanCollide=false
- v.BottomSurface="Smooth"
- v.TopSurface="Smooth"
- v.Size=Vector3.new(10,5,3)
- v.Transparency=1
- v.CFrame=char.Torso.CFrame
- v.BrickColor=BrickColor.new(CV)
- v.Transparency=1
- text.TextColor3 = Color3.new(255, 0, 0)
- v.Shape="Block"
- text.Text = "A Boi with a Balloon"
- if char:FindFirstChild('Humanoid') then
- char.Humanoid:RemoveAccessories() end
- ScarySound1 = Instance.new("Sound")
- ScarySound1.Parent = char.Torso
- ScarySound1.SoundId = "rbxassetid://1041554412"
- ScarySound1.Volume = 2
- ScarySound2 = Instance.new("Sound")
- ScarySound2.Parent = char.Torso
- ScarySound2.SoundId = "rbxassetid://145978092"
- ScarySound2.Volume = 1
- ScarySound2.Pitch = 1.2
- ScarySound2.Looped = true
- ScarySound3 = Instance.new("Sound")
- ScarySound3.Parent = char.Torso
- ScarySound3.SoundId = "rbxassetid://1036327345"
- ScarySound3.Volume = 0.1
- ScarySound3.Looped = true
- Punch = Instance.new("Sound")
- Punch.Parent = char.Torso
- Punch.SoundId = "rbxassetid://261566877"
- Punch.Volume = 1
- Punch.Looped = false
- hole = Instance.new("Sound")
- hole.Parent = char.Torso
- hole.SoundId = "rbxassetid://266364769"
- hole.Volume = 1
- hole.Looped = false
- game.Players.LocalPlayer.Character.Sound:Destroy()
- function Normal()
- ScarySound3:Play()
- char.Humanoid.WalkSpeed = 16
- char.Head.face.Texture = "rbxassetid://740455053"
- char["Left Leg"].Transparency = 0
- char["Head"].Transparency = 0
- char["Right Leg"].Transparency = 0
- char["Torso"].Transparency = 0
- char["Left Arm"].Transparency = 0
- char["Right Arm"].Transparency = 0
- end
- function GoInvisible()
- ScarySound3:Stop()
- ScarySound1:Stop()
- char.Humanoid.WalkSpeed = 120
- char.Head.face.Transparency = 1
- char["Left Leg"].Transparency = 0
- char["Head"].Transparency = 0
- char["Right Leg"].Transparency = 0
- char["Torso"].Transparency = 0
- char["Left Arm"].Transparency = 0
- char["Right Arm"].Transparency = 0
- wait(0.001)
- char["Left Leg"].Transparency = 0.6
- char["Head"].Transparency = 0.6
- char["Right Leg"].Transparency = 0.6
- char["Torso"].Transparency = 0.6
- char["Left Arm"].Transparency = 0.6
- char["Right Arm"].Transparency = 0.6
- wait(0.001)
- char["Left Leg"].Transparency = 0.7
- char["Head"].Transparency = 0.7
- char["Right Leg"].Transparency = 0.7
- char["Torso"].Transparency = 0.7
- char["Left Arm"].Transparency = 0.7
- char["Right Arm"].Transparency = 0.7
- wait(0.001)
- char["Left Leg"].Transparency = 1
- char["Head"].Transparency = 1
- char["Right Leg"].Transparency = 1
- char["Torso"].Transparency = 1
- char["Left Arm"].Transparency = 1
- char["Right Arm"].Transparency = 1
- KLOWN.Transparency = 1
- text.TextTransparency = 1
- text.TextStrokeTransparency = 1
- o2.Transparency = 1
- end
- function GoVisible()
- ScarySound3:Play()
- char.Humanoid.WalkSpeed = 16
- ScarySound1:Play()
- char.Head.face.Transparency = 0
- char["Left Leg"].Transparency = 0.9
- char["Head"].Transparency = 0.9
- char["Right Leg"].Transparency = 9
- char["Torso"].Transparency = 0.9
- char["Left Arm"].Transparency = 0.9
- char["Right Arm"].Transparency = 0.9
- wait(0.001)
- char["Left Leg"].Transparency = 0.7
- char["Head"].Transparency = 0.7
- char["Right Leg"].Transparency = 0.7
- char["Torso"].Transparency = 0.7
- char["Left Arm"].Transparency = 0.7
- char["Right Arm"].Transparency = 0.7
- wait(0.001)
- char["Left Leg"].Transparency = 0
- char["Head"].Transparency = 0
- char["Right Leg"].Transparency = 0
- char["Torso"].Transparency = 0
- char["Left Arm"].Transparency = 0
- char["Right Arm"].Transparency = 0
- KLOWN.Transparency = 0
- text.TextTransparency = 0
- text.TextStrokeTransparency = 0
- o2.Transparency = 0
- end
- Normal()
- mouse.KeyDown:connect(function(key)
- if key == "q" then
- if char.Head.Transparency == 0 then
- GoInvisible()
- elseif char.Head.Transparency == 1 then
- GoVisible()
- end
- end end)
- mouse.KeyDown:connect(function(key)
- if key == "e" then
- if ScarySound2.IsPlaying == false then
- ScarySound2:Play()
- elseif ScarySound2.IsPlaying == true then
- ScarySound2:Stop()
- end
- end end)
- hat = Instance.new'Accessory'
- hat.Name = 'Clown'
- hat.AttachmentForward = Vector3.new(0,0,-1)
- hat.AttachmentPos = Vector3.new(0, 0.649999976, 0)
- hat.AttachmentUp = Vector3.new(0, 1, 0)
- hat.AttachmentRight = Vector3.new(1, 0, 0)
- handle = Instance.new('Part', hat)
- handle.Name = 'Handle'
- handle.Locked = true
- handle.CanCollide = true
- handle.Transparency = 0
- handle.BrickColor = BrickColor.new'Medium stone grey'
- handle.Size = Vector3.new(2, 2, 2)
- mesh = Instance.new('SpecialMesh', handle)
- mesh.MeshId = 'http://www.roblox.com/asset/?id=15393031'
- mesh.Scale = Vector3.new(1, 1, 1)
- mesh.VertexColor = Vector3.new(1, 1, 1)
- mesh.TextureId = 'http://www.roblox.com/asset/?id=15393013'
- att = Instance.new('Attachment', handle)
- att.Name = 'HatAt'
- att.Position = Vector3.new(8.65838956e-09, 0.75, -0.000272244215)
- att.Axis = Vector3.new(1, -7.87137555e-09, 0)
- att.SecondaryAxis = Vector3.new(7.87137555e-09, 1, 4.1444221e-16)
- hat.Parent = game:GetService'Players'.LocalPlayer.Character
- KLOWN = handle
- game:GetService("Lighting").Outlines = false
- game:GetService("Lighting").TimeOfDay = "00:00:00"
- game:GetService("Lighting").FogColor = Color3.new(0, 0, 0)
- game:GetService("Lighting").FogEnd = 160
- while wait() do
- char["Left Leg"].BrickColor = BrickColor.new("Lily white")
- char["Head"].BrickColor = BrickColor.new("Lily white")
- char["Right Leg"].BrickColor = BrickColor.new("Lily white")
- char["Torso"].BrickColor = BrickColor.new("Lily white")
- char["Left Arm"].BrickColor = BrickColor.new("Lily white")
- char["Right Arm"].BrickColor = BrickColor.new("Lily white")
- end
- --What a nice boat. Do you want it back?
- --We all float down here. Yes, we do!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement