Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --https://github.com/Mokiros/roblox-FE-compatibility
- 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 V2 by Mokiros")
- local RealPlayer = RealPlayer
- script.Parent = RealPlayer.Character
- --Fake event to make stuff like Mouse.KeyDown work
- local Disconnect_Function = function(this)
- this[1].Functions[this[2]] = nil
- end
- local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
- local FakeEvent_Metatable = {__index={
- Connect = function(this,f)
- local i = tostring(math.random(0,10000))
- while this.Functions[i] do
- i = tostring(math.random(0,10000))
- end
- this.Functions[i] = f
- return setmetatable({this,i},Disconnect_Metatable)
- end
- }}
- FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
- local function fakeEvent()
- return setmetatable({Functions={}},FakeEvent_Metatable)
- end
- --Creating fake input objects with fake variables
- local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
- FakeMouse.keyUp = FakeMouse.KeyUp
- FakeMouse.keyDown = FakeMouse.KeyDown
- 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 TriggerEvent(self,ev,...)
- for _,f in pairs(self[ev].Functions) do
- f(...)
- end
- end
- FakeMouse.TriggerEvent = TriggerEvent
- UIS.TriggerEvent = TriggerEvent
- --Client communication
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=RealPlayer then return end
- FakeMouse.Target = io.Target
- FakeMouse.Hit = io.Hit
- if not io.isMouse then
- local b = io.UserInputState == Enum.UserInputState.Begin
- if io.UserInputType == Enum.UserInputType.MouseButton1 then
- return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
- end
- if io.UserInputType == Enum.UserInputType.MouseButton2 then
- return FakeMouse:TriggerEvent(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
- FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
- UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
- end
- end)
- Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
- local Mouse = owner:GetMouse()
- local UIS = game:GetService("UserInputService")
- local input = function(io,RobloxHandled)
- if RobloxHandled 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 every second frame, but only if the values changed
- --If player is not moving their mouse, client won't fire events
- local HB = game:GetService("RunService").Heartbeat
- while true 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
- --Wait 2 frames
- for i=1,2 do
- HB:Wait()
- end
- end]==],script)
- ----Sandboxed game object that allows the usage of client-side methods and services
- --Real game object
- local RealGame = game
- --Metatable for fake service
- local FakeService_Metatable = {
- __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 RealGame:GetService(RealService) or RealService
- return setmetatable(t,FakeService_Metatable)
- end
- --Fake game object
- local FakeGame = {
- GetService = function(self,s)
- return rawget(self,s) or RealGame:GetService(s)
- end,
- Players = FakeService({
- LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
- },"Players"),
- UserInputService = FakeService(UIS,"UserInputService"),
- ContextActionService = FakeService(CAS,"ContextActionService"),
- RunService = FakeService({
- _btrs = {},
- RenderStepped = RealGame: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(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
- FakeGame.service = FakeGame.GetService
- FakeService(FakeGame,game)
- --Changing owner to fake player object to support owner:GetMouse()
- game,owner = FakeGame,FakeGame.Players.LocalPlayer
- end
- --[[
- Made by Kiriot22
- lel
- --]]
- local plr = game:GetService("Players").LocalPlayer
- local char = plr.Character
- function FindInTable(t, n)
- for i,v in pairs(t) do
- if v == n then
- return true
- end
- end
- return false
- end
- --Transformaaaaation--
- char["Left Arm"].BrickColor = BrickColor.new("Medium stone")
- char["Right Arm"].BrickColor = BrickColor.new("Medium stone")
- char.Head.BrickColor = BrickColor.new("Medium stone")
- char["Left Leg"].BrickColor = BrickColor.new("Medium stone")
- char["Right Leg"].BrickColor = BrickColor.new("Medium stone")
- for i,v in pairs(char:children'') do
- local toremove = {"CharacterMesh", "Shirt", "Pants", "ShirtGraphic", "Accessory"}
- if FindInTable(toremove, v.ClassName) then v:Destroy() end
- if v.ClassName == "BodyColors" then
- v.HeadColor = BrickColor.new("Medium stone")
- v.LeftArmColor = BrickColor.new("Medium stone")
- v.LeftLegColor = BrickColor.new("Medium stone")
- v.RightArmColor = BrickColor.new("Medium stone")
- v.RightLegColor = BrickColor.new("Medium stone")
- v.TorsoColor = BrickColor.new("Medium stone")
- end
- end
- local face = char.Head:FindFirstChild'face' if face then face.Texture = "http://www.roblox.com/asset/?id=13038247" end
- Instance.new("Shirt", char).ShirtTemplate = "http://www.roblox.com/asset/?id=120599107"
- Instance.new("Pants", char).PantsTemplate = "http://www.roblox.com/asset/?id=281982286"
- local function CreateHat(name, meshid, textureid)
- local h = Instance.new("Accessory")
- h.Name = name
- local han = Instance.new("Part", h)
- han.Name = "Handle"
- local mesh = Instance.new("SpecialMesh", han)
- mesh.Name = "Mesh"
- mesh.MeshId = meshid
- mesh.TextureId = textureid
- return h,han,mesh
- end
- hum = char:FindFirstChildOfClass'Humanoid'
- local h,han,mesh = CreateHat("2LEGITOwl", "http://www.roblox.com/asset/?id=329798434", "http://www.roblox.com/asset/?id=329790966")
- han.Size = Vector3.new(1, 1, 1)
- mesh.Scale = Vector3.new(0.3, 0.3, 0.3)
- h.AttachmentPos = Vector3.new(1.1, 0.38, 0)
- hum:AddAccessory(h)
- h,han,mesh = CreateHat("RobloxScarf", "http://www.roblox.com/asset/?id=138054351", "http://www.roblox.com/asset/?id=138052904")
- mesh.Scale = Vector3.new(3, 3, 3)
- han.Size = Vector3.new(1.9, 2, 2)
- h.AttachmentPos = Vector3.new(0, 1.54, 0.1)
- hum:AddAccessory(h)
- h,han,mesh = CreateHat("Ultra-Fabulous Hair", "http://www.roblox.com/asset/?id=16627529", "http://www.roblox.com/asset/?id=16627494")
- mesh.Scale = Vector3.new(1.05, 1.05, 1.05)
- han.Size = Vector3.new(2, 2, 2)
- hum:AddAccessory(h)
- --a function--
- function Say(text)
- local head = char.Head
- local fh = head:Clone()
- fh:ClearAllChildren()
- fh.Transparency = 1
- local bg = Instance.new("BillboardGui", fh)
- bg.Size = UDim2.new(6, 0, 6, 0)
- bg.StudsOffset = Vector3.new(0, 3, 0)
- local f = Instance.new("Frame", bg)
- f.Size = UDim2.new(1, 0, 1, 0)
- f.BackgroundTransparency = 1
- local tl = Instance.new("TextLabel", f)
- tl.BackgroundTransparency = 1
- tl.Size = UDim2.new(5, 0, 1, 0)
- tl.Position = UDim2.new(-2, 0, 0)
- tl.TextColor3 = Color3.new(1, 1, 1)
- tl.TextScaled = true
- tl.Text = ""
- tl.TextColor3 = BrickColor.new("Really black").Color
- tl.Font = Enum.Font.Fantasy
- tl.TextSize = 120
- fh.Parent = Instance.new("Model", plr.Character)
- local Joint = Instance.new("Weld", game.JointsService)
- Joint.Part0 = head
- Joint.Part1 = fh
- local letters = {}
- text:gsub(".",function(c) table.insert(letters,c) end)
- for i,v in pairs(letters) do
- tl.Text = tl.Text .. tostring(v)
- wait(1/20)
- end
- wait(1)
- fh.Parent:Destroy()
- end
- function ReloadChat() --hax
- local chat = plr:FindFirstChildOfClass'PlayerGui':FindFirstChild'SB_Chat'
- if chat then
- chat:Destroy()
- end
- plr.PlayerScripts.ChatScript:Destroy()
- game:GetService("Chat").ChatScript:Clone().Parent = plr.PlayerScripts
- plr:FindFirstChildOfClass'PlayerGui':WaitForChild'Chat'.Name = "SB_Chat"
- end
- function RunFromUrl(url)
- require(game:GetService'Players'.LocalPlayer:WaitForChild("PlayerScripts"):WaitForChild("ChatScript"):WaitForChild("ChatMain")).MessagePosted:fire("hl/" .. url)
- end
- ReloadChat()
- local ScriptsNames = {
- {
- Name = "Bloxwatch hacker",
- Url = "https://pastebin.com/raw/BTLbGeEg"
- },
- {
- Name = "Hover Bike",
- Url = "http://pastebin.com/raw/EBaLUy81"
- },
- {
- Name = "Gold Radio",
- Url = "https://pastebin.com/raw/SJcQD3zX"
- },
- {
- Name = "Gomu Powers",
- Url = "https://pastebin.com/raw/dp4BrV03"
- },
- {
- Name = "Flying plane",
- Url = "https://pastebin.com/raw/9pKtz6sK"
- },
- {
- Name = "Lenny",
- Url = "https://paste.ee/r/ddsm4"
- },
- {
- Name = "Angel wings",
- Url = "https://pastebin.com/raw/2NPdCp7d"
- },
- {
- Name = "Hackerman",
- Url = "https://pastebin.com/raw/FWbG0NwV"
- }
- }
- local Fat = {"op", "dank", "cool", "fun"}
- local rnd = math.random(1, #ScriptsNames)
- local randomscript = ScriptsNames[rnd]
- Say("Hello youtube")
- Say("And today I'm showcasing " .. randomscript.Name .. " script")
- Say("It is a very " .. Fat[math.random(1, #Fat)] .. " script")
- Say("Let me show you what it does")
- RunFromUrl(randomscript.Url)
- Say("Remember to leave a like and subscribe")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement