SHARE
TWEET

test2

a guest Apr 21st, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --//Created in lua, by: boshjio15854
  2. --//2019/April/21 {13:54 AM}
  3. --//measvx.lua
  4.  
  5. --//Please dont leak it.
  6.  
  7. --FE Script--
  8. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  9. local Player,game,owner = owner,game
  10. local RealPlayer = Player
  11. do
  12.     warn("whos dis")
  13.     local rp = RealPlayer
  14.     script.Parent = rp.Character
  15.    
  16.     --RemoteEvent for communicating
  17.     local Event = Instance.new("RemoteEvent")
  18.     Event.Name = "UserInput_Event"
  19.  
  20.     --Fake event to make stuff like Mouse.KeyDown work
  21.     local function fakeEvent()
  22.         local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  23.         t.connect = t.Connect
  24.         return t
  25.     end
  26.  
  27.     --Creating fake input objects with fake variables
  28.     local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  29.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  30.     local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  31.         CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  32.     end}
  33.     --Merged 2 functions into one by checking amount of arguments
  34.     CAS.UnbindAction = CAS.BindAction
  35.  
  36.     --This function will trigger the events that have been :Connect()'ed
  37.     local function te(self,ev,...)
  38.         local t = m[ev]
  39.         if t and t._fakeEvent then
  40.             for _,f in pairs(t.Functions) do
  41.                 f(...)
  42.             end
  43.         end
  44.     end
  45.     m.TrigEvent = te
  46.     UIS.TrigEvent = te
  47.  
  48.     Event.OnServerEvent:Connect(function(plr,io)
  49.         if plr~=rp then return end
  50.         m.Target = io.Target
  51.         m.Hit = io.Hit
  52.         if not io.isMouse then
  53.             local b = io.UserInputState == Enum.UserInputState.Begin
  54.             if io.UserInputType == Enum.UserInputType.MouseButton1 then
  55.                 return m:TrigEvent(b and "Button1Down" or "Button1Up")
  56.             end
  57.             for _,t in pairs(CAS.Actions) do
  58.                 for _,k in pairs(t.Keys) do
  59.                     if k==io.KeyCode then
  60.                         t.Function(t.Name,io.UserInputState,io)
  61.                     end
  62.                 end
  63.             end
  64.             m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  65.             UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  66.         end
  67.     end)
  68.     Event.Parent = NLS([==[
  69.     local Player = game:GetService("Players").LocalPlayer
  70.     local Event = script:WaitForChild("UserInput_Event")
  71.  
  72.     local Mouse = Player:GetMouse()
  73.     local UIS = game:GetService("UserInputService")
  74.     local input = function(io,a)
  75.         if a then return end
  76.         --Since InputObject is a client-side instance, we create and pass table instead
  77.         Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  78.     end
  79.     UIS.InputBegan:Connect(input)
  80.     UIS.InputEnded:Connect(input)
  81.  
  82.     local h,t
  83.     --Give the server mouse data 30 times every second, but only if the values changed
  84.     --If player is not moving their mouse, client won't fire events
  85.     while wait(1/30) do
  86.         if h~=Mouse.Hit or t~=Mouse.Target then
  87.             h,t=Mouse.Hit,Mouse.Target
  88.             Event:FireServer({isMouse=true,Target=t,Hit=h})
  89.         end
  90.     end]==],Player.Character)
  91.  
  92.     ----Sandboxed game object that allows the usage of client-side methods and services
  93.     --Real game object
  94.     local _rg = game
  95.  
  96.     --Metatable for fake service
  97.     local fsmt = {
  98.         __index = function(self,k)
  99.             local s = rawget(self,"_RealService")
  100.             if s then return s[k] end
  101.         end,
  102.         __newindex = function(self,k,v)
  103.             local s = rawget(self,"_RealService")
  104.             if s then s[k]=v end
  105.         end,
  106.         __call = function(self,...)
  107.             local s = rawget(self,"_RealService")
  108.             if s then return s(...) end
  109.         end
  110.     }
  111.     local function FakeService(t,RealService)
  112.         t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  113.         return setmetatable(t,fsmt)
  114.     end
  115.  
  116.     --Fake game object
  117.     local g = {
  118.         GetService = function(self,s)
  119.             return self[s]
  120.         end,
  121.         Players = FakeService({
  122.             LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  123.         },"Players"),
  124.         UserInputService = FakeService(UIS,"UserInputService"),
  125.         ContextActionService = FakeService(CAS,"ContextActionService"),
  126.     }
  127.     rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  128.     g.service = g.GetService
  129.    
  130.     g.RunService = FakeService({
  131.         RenderStepped = _rg:GetService("RunService").Heartbeat,
  132.         BindToRenderStep = function(self,name,_,fun)
  133.  
  134.         end,
  135.         UnbindFromRenderStep = function(self,name)
  136.             self._btrs[name]:Disconnect()
  137.         end,
  138.     },"RunService")
  139.  
  140.     setmetatable(g,{
  141.         __index=function(self,s)
  142.             return _rg:GetService(s) or typeof(_rg[s])=="function"
  143.             and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  144.         end,
  145.         __newindex = fsmt.__newindex,
  146.         __call = fsmt.__call
  147.     })
  148.     --Changing owner to fake player object to support owner:GetMouse()
  149.     game,owner = g,g.Players.LocalPlayer
  150. end
  151.  
  152. --Credits--
  153. print("//Created in lua, by: boshjio15854")
  154. print("//2019/April/21 {13:54 AM}")
  155. print("//measvx.lua")
  156. print("")
  157. print("//Please dont leak it.")
  158. --Player--
  159. local p = owner
  160. local c = p.Character
  161. local t = c.Torso
  162. local h = c.Head
  163. local hum = c.Humanoid
  164. local hrp = c.HumanoidRootPart
  165. --Usefull variables--
  166. local txt = Instance.new("BillboardGui", h)
  167. local tag = Instance.new("TextLabel", txt)
  168. --local mainsmt = game.Mainsmyt:LoadScript(File.measvx.lua) == true
  169. --mainsmt:Load()
  170. --Gui--
  171. local no = Instance.new("ScreenGui") --
  172. local say = Instance.new("TextBox") --
  173. local explode = Instance.new("TextButton") --
  174. local sparkly = Instance.new("TextButton") --
  175. local titled = Instance.new("TextButton")
  176. local rainbow = Instance.new("TextButton") --
  177. local burn = Instance.new("TextButton") --
  178.  
  179. no.Name = "no"
  180. no.Parent = p.PlayerGui
  181. no.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  182.  
  183. say.Name = "say"
  184. say.Parent = no
  185. say.BackgroundColor3 = Color3.new(1, 1, 1)
  186. say.BackgroundTransparency = 0.60000002384186
  187. say.BorderSizePixel = 3
  188. say.Position = UDim2.new(0.427641153, 0, 0.89403975, 0)
  189. say.Size = UDim2.new(0, 200, 0, 31)
  190. say.Font = Enum.Font.GothamBlack
  191. say.Text = "Say anything here"
  192. say.TextColor3 = Color3.new(1, 1, 1)
  193. say.TextSize = 20
  194. say.TextStrokeTransparency = 0
  195.  
  196. explode.Name = "explode"
  197. explode.Parent = no
  198. explode.BackgroundColor3 = Color3.new(1, 1, 1)
  199. explode.BackgroundTransparency = 1
  200. explode.Position = UDim2.new(0.0303907376, 0, 0.826158941, 0)
  201. explode.Size = UDim2.new(0, 144, 0, 24)
  202. explode.Font = Enum.Font.GothamBlack
  203. explode.Text = "Explode"
  204. explode.TextColor3 = Color3.new(1, 1, 1)
  205. explode.TextScaled = true
  206. explode.TextSize = 14
  207. explode.TextStrokeTransparency = 0
  208. explode.TextWrapped = true
  209.  
  210. sparkly.Name = "sparkly"
  211. sparkly.Parent = no
  212. sparkly.BackgroundColor3 = Color3.new(1, 1, 1)
  213. sparkly.BackgroundTransparency = 1
  214. sparkly.Position = UDim2.new(0.0303907376, 0, 0.786423862, 0)
  215. sparkly.Size = UDim2.new(0, 144, 0, 24)
  216. sparkly.Font = Enum.Font.GothamBlack
  217. sparkly.Text = "Sparkly"
  218. sparkly.TextColor3 = Color3.new(1, 1, 1)
  219. sparkly.TextScaled = true
  220. sparkly.TextSize = 14
  221. sparkly.TextStrokeTransparency = 0
  222. sparkly.TextWrapped = true
  223.  
  224. titled.Name = "titled"
  225. titled.Parent = no
  226. titled.BackgroundColor3 = Color3.new(1, 1, 1)
  227. titled.BackgroundTransparency = 1
  228. titled.Position = UDim2.new(0.0303907376, 0, 0.746688783, 0)
  229. titled.Size = UDim2.new(0, 144, 0, 24)
  230. titled.Font = Enum.Font.GothamBlack
  231. titled.Text = "Titled"
  232. titled.TextColor3 = Color3.new(1, 1, 1)
  233. titled.TextScaled = true
  234. titled.TextSize = 14
  235. titled.TextStrokeTransparency = 0
  236. titled.TextWrapped = true
  237.  
  238. rainbow.Name = "rainbow"
  239. rainbow.Parent = no
  240. rainbow.BackgroundColor3 = Color3.new(1, 1, 1)
  241. rainbow.BackgroundTransparency = 1
  242. rainbow.Position = UDim2.new(0.0303907376, 0, 0.706953704, 0)
  243. rainbow.Size = UDim2.new(0, 144, 0, 24)
  244. rainbow.Font = Enum.Font.GothamBlack
  245. rainbow.Text = "[Broken]"
  246. rainbow.TextColor3 = Color3.new(1, 1, 1)
  247. rainbow.TextScaled = true
  248. rainbow.TextSize = 14
  249. rainbow.TextStrokeTransparency = 0
  250. rainbow.TextWrapped = true
  251.  
  252. burn.Name = "burn"
  253. burn.Parent = no
  254. burn.BackgroundColor3 = Color3.new(1, 1, 1)
  255. burn.BackgroundTransparency = 1
  256. burn.Position = UDim2.new(0.0303907376, 0, 0.627483487, 0)
  257. burn.Size = UDim2.new(0, 144, 0, 24)
  258. burn.Font = Enum.Font.GothamBlack
  259. burn.Text = "Burn"
  260. burn.TextColor3 = Color3.new(1, 1, 1)
  261. burn.TextScaled = true
  262. burn.TextSize = 14
  263. burn.TextStrokeTransparency = 0
  264. burn.TextWrapped = true
  265. --Some functions--
  266. function explodes()
  267.     local b = Instance.new("Explosion", t)
  268.     b.Visible = false
  269. end
  270. function sparkl()
  271.     local sp = Instance.new("Sparkles", t)
  272. end
  273. function burns()
  274.     local idk = Instance.new("Fire", t)
  275.     wait(1)
  276.     hum.Health = hum.Health - 10
  277.     wait(1)
  278.     hum.Health = hum.Health - 10
  279.     wait(1)
  280.     hum.Health = hum.Health - 10
  281.     wait(1)
  282.     hum.Health = hum.Health - 10
  283.     wait(1)
  284.     hum.Health = hum.Health - 10
  285.     wait(1)
  286.     hum.Health = hum.Health - 10
  287.     wait(1)
  288.     hum.Health = hum.Health - 10
  289.     wait(1)
  290.     hum.Health = hum.Health - 10
  291.     wait(1)
  292.     hum.Health = hum.Health - 10
  293.     wait(1)
  294.     hum.Health = hum.Health - 10
  295.     wait(1)
  296.     hum.Health = hum.Health - 10
  297.     wait(1)
  298.     hum.Health = hum.Health - 10
  299.     wait(1)
  300.     hum.Health = hum.Health - 10
  301.     wait(1)
  302.     hum.Health = hum.Health - 10
  303. end
  304. function title()
  305.     local txt = Instance.new("BillboardGui", c)
  306.     txt.Adornee = c.Head
  307.     txt.Name = "_status"
  308.     txt.Size = UDim2.new(2, 0, 1.2, 0)
  309.     txt.StudsOffset = Vector3.new(-9, 7, 0)
  310.     local text = Instance.new("TextLabel", txt)
  311.     text.Size = UDim2.new(10, 0, 7, 0)
  312.     text.FontSize = Enum.FontSize.Size24
  313.     text.TextScaled = true
  314.     text.TextTransparency = 0
  315.     text.BackgroundTransparency = 1
  316.     text.TextTransparency = 0
  317.     text.TextStrokeTransparency = 0
  318.     text.Font = Enum.Font.Fantasy
  319.     text.Text = p.Name
  320. end
  321. --Gui FocusLost / OnClick
  322. say.FocusLost:connect(function()
  323.     local txt = Instance.new("BillboardGui", c)
  324.     txt.Adornee = c.Head
  325.     txt.Name = "_status"
  326.     txt.Size = UDim2.new(2, 0, 1.2, 0)
  327.     txt.StudsOffset = Vector3.new(-9, 5, 0)
  328.     local text = Instance.new("TextLabel", txt)
  329.     text.Size = UDim2.new(10, 0, 7, 0)
  330.     text.FontSize = Enum.FontSize.Size24
  331.     text.TextScaled = false
  332.     text.TextTransparency = 0
  333.     text.BackgroundTransparency = 1
  334.     text.TextTransparency = 0
  335.     text.TextStrokeTransparency = 0
  336.     text.Font = Enum.Font.Arcade
  337.     text.TextStrokeColor3 = Color3.new(255, 255, 255)
  338.     text.Text = say.Text
  339.     wait(5)
  340.     txt:Destroy()
  341. end)
  342.  
  343. explode.MouseButton1Click:connect(function()
  344.     explodes()
  345. end)
  346.  
  347. sparkly.MouseButton1Click:connect(function()
  348.     sparkl()
  349. end)
  350.  
  351. burn.MouseButton1Click:connect(function()
  352.     burns()
  353. end)
  354.  
  355. titled.MouseButton1Click:connect(function()
  356.     title()
  357. end)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top