Advertisement
idkwhatiam

MEEM ball V1

Apr 21st, 2019
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 10.31 KB | None | 0 0
  1. -- /'''''''''''\ --
  2. --| ball thing  |--
  3. -- \___________/ --
  4.  
  5. --run script as raw or it wont load--
  6.  
  7. --script by youngmacka123--
  8.  
  9. --dont leak please--
  10.  
  11. --fe thing--
  12. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
  13. do
  14.     script.Parent = owner.Character
  15.     local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  16.     local function NewFakeEvent()
  17.         local Bind = Instance.new("BindableEvent")
  18.         local Fake;Fake = {Connections = {},
  19.         fakeEvent=true;
  20.         Connect=function(self,Func)
  21.             Bind.Event:connect(Func)
  22.             self.Connections[Bind] = true
  23.             return setmetatable({Connected = true},{
  24.             __index = function (self,Index)
  25.                 if Index:lower() == "disconnect" then
  26.                     return function() Fake.Connections[Bind] = false;self.Connected = false end
  27.                 end
  28.                 return Fake[Index]
  29.             end;
  30.             __tostring = function() return "Connection" end;
  31.         })
  32.         end}
  33.         Fake.connect = Fake.Connect;return Fake;
  34.     end
  35.     local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  36.     local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  37.     local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  38.         self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  39.     end};ContextActionService.UnBindAction = ContextActionService.BindAction
  40.     local function TriggerEvent(self,Event,...)
  41.         local Trigger = Mouse[Event]
  42.         if Trigger and Trigger.fakeEvent and Trigger.Connections then
  43.             for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  44.         end
  45.     end
  46.     Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  47.     Event.OnServerEvent:Connect(function(FiredBy,Input)
  48.         if FiredBy.Name ~= owner.Name then return end
  49.         if Input.MouseEvent then
  50.             Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  51.         else
  52.             local Begin = Input.UserInputState == Enum.UserInputState.Begin
  53.             if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  54.             for _,Action in pairs(ContextActionService.Actions) do
  55.                 for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  56.             end
  57.             Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  58.             UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  59.         end
  60.     end)
  61.     InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  62.     Event.Parent = NLS([[
  63.         local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  64.         local Input = function(Input,gameProcessedEvent)
  65.             if gameProcessedEvent then return end
  66.             Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  67.         end
  68.         UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  69.         local Hit,Target
  70.         while wait(1/30) do
  71.             if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  72.                 Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  73.             end
  74.         end
  75.     ]],owner.Character)
  76. end
  77. RealGame = game;game = setmetatable({},{
  78.     __index = function (self,Index)
  79.         local Sandbox = function (Thing)
  80.             if Thing:IsA("Player") then
  81.                 local RealPlayer = Thing
  82.                 return setmetatable({},{
  83.                     __index = function (self,Index)
  84.                         local Type = type(RealPlayer[Index])
  85.                         if Type == "function" then
  86.                             if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  87.                                 return function (self)return InternalData["Mouse"] end
  88.                             end
  89.                             return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  90.                         end
  91.                         return RealPlayer[Index]
  92.                     end;
  93.                     __tostring = function(self) return RealPlayer.Name end
  94.                 })
  95.             end
  96.         end
  97.         if RealGame[Index] then
  98.             local Type = type(RealGame[Index])
  99.             if Type == "function" then
  100.                 if Index:lower() == "getservice" or Index:lower() == "service" then
  101.                     return function (self,Service)
  102.                         local FakeServices = {
  103.                             ["players"] = function()
  104.                                 return setmetatable({},{
  105.                                     __index = function (self2,Index2)
  106.                                         local RealService = RealGame:GetService(Service)
  107.                                         local Type2 = type(Index2)
  108.                                         if Type2 == "function" then
  109.                                             return function (self,...) return RealService[Index2](RealService,...)end
  110.                                         else
  111.                                             if Index2:lower() == "localplayer" then return Sandbox(owner) end
  112.                                             return RealService[Index2]
  113.                                         end
  114.                                     end;
  115.                                     __tostring = function(self) return RealGame:GetService(Service).Name end
  116.                                 })
  117.                             end;
  118.                             ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  119.                             ["userinputservice"] = function() return InternalData["UserInputService"] end;
  120.                             ["runservice"] = function()
  121.                                 return setmetatable({},{
  122.                                     __index = function(self2,Index2)
  123.                                         local RealService = RealGame:GetService(Service)
  124.                                         local Type2 = type(Index2)
  125.                                         if Type2 == "function" then
  126.                                             return function (self,...) return RealService[Index2](RealService,...) end
  127.                                         else
  128.                                             local RunServices = {
  129.                                                 ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  130.                                                 ["renderstepped"] = function() return RealService["Stepped"] end
  131.                                             }
  132.                                             if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  133.                                             return RealService[Index2]
  134.                                         end
  135.                                     end
  136.                                 })
  137.                             end
  138.                         }
  139.                         if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  140.                         return RealGame:GetService(Service)
  141.                     end
  142.                 end
  143.                 return function (self,...) return RealGame[Index](RealGame,...) end
  144.             else
  145.                 if game:GetService(Index) then return game:GetService(Index) end
  146.                 return RealGame[Index]
  147.             end
  148.         end
  149.         return nil
  150.     end
  151. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
  152.  
  153. --print message + commands--
  154. print("Ball script by youngmacka123 loaded! Please dont leak good sir.")
  155. print("E = Rockefeller Street")
  156. print("U = Do the mario")
  157. print("Y = Yay")
  158. print("T = Im gay")
  159. print("B = No u")
  160. print("M = Stop any taunt instantly")
  161.  
  162. --variable things--
  163. plr = owner
  164. char = plr.Character
  165. mouse = plr:GetMouse()
  166. taunt = false
  167. --create ball--
  168. ball = Instance.new("Part")
  169. ball.Parent = char
  170. ball.Shape = "Ball"
  171. ball.TopSurface = "Smooth"
  172. ball.BottomSurface = "Smooth"
  173. ball.BrickColor = char.Torso.BrickColor
  174. ball.Position = char["Left Leg"].Position
  175. ball.Anchored = true
  176. ball.CanCollide = false
  177. ball.Size = Vector3.new(2.5, 2.5, 2.5)
  178. face = Instance.new("Decal")
  179. face.Parent = ball
  180. face.Texture = char.Head.face.Texture
  181. face.Face = "Front"
  182.  
  183. --transparency--
  184. char["Left Leg"].Transparency = 1
  185. char["Right Leg"].Transparency = 1
  186. char["Torso"].Transparency = 1
  187. char["Left Arm"].Transparency = 1
  188. char["Right Arm"].Transparency = 1
  189. char["Head"].Transparency = 0.99
  190. char["Head"].BrickColor = BrickColor.new("Institutional white")
  191. wait(0.1)
  192. char.Head.face.Transparency = 1
  193. for i,v in pairs(char:children()) do
  194.     if v:IsA("Accessory") then
  195.         v:Destroy()
  196.     end
  197. end
  198. --taunts + no die--
  199. mouse.KeyDown:connect(function(Press)
  200.     Press=Press:lower()
  201.     if Press=='y' then
  202.     taunt = true
  203.     s = Instance.new("Sound")
  204.     s.Parent = ball
  205.     s.Playing = true
  206.     s.SoundId = "rbxassetid://220373850"
  207.     s.Volume = 99999
  208.     face.Texture = "http://www.roblox.com/asset/?id=2521356507"
  209.     wait(4)
  210.     face.Texture = char.Head.face.Texture
  211.     s:Destroy()
  212.     end
  213. end)
  214.  
  215. mouse.KeyDown:connect(function(Press)
  216.     Press=Press:lower()
  217.     if Press=='b' then
  218.     s = Instance.new("Sound")
  219.     s.Parent = ball
  220.     s.Playing = true
  221.     s.SoundId = "rbxassetid://1543318456"
  222.     s.Volume = 99999
  223.     face.Texture = "http://www.roblox.com/asset/?id=536392936"
  224.     wait(1.5699999999999999999999999999999999999999999999)
  225.     s:Destroy()
  226.     face.Texture = char.Head.face.Texture
  227.     end
  228. end)
  229.  
  230. mouse.KeyDown:connect(function(Press)
  231.     Press=Press:lower()
  232.     if Press=='u' then
  233.     taunt = true
  234.     s = Instance.new("Sound")
  235.     s.Parent = ball
  236.     s.Playing = true
  237.     s.SoundId = "rbxassetid://929886753"
  238.     s.Volume = 99999
  239.     s.Looped = true
  240.     face.Texture = "http://www.roblox.com/asset/?id=937650418"
  241.     sparkles = Instance.new("Sparkles")
  242.     sparkles.SparkleColor = Color3.new(500000, 0, 0)
  243.     sparkles.Parent = ball
  244.     end
  245. end)
  246.  
  247. mouse.KeyDown:connect(function(Press)
  248.     Press=Press:lower()
  249.     if Press=='t' then
  250.     taunt = true
  251.     s = Instance.new("Sound")
  252.     s.Parent = ball
  253.     s.Playing = true
  254.     s.SoundId = "rbxassetid://1735284953"
  255.     s.Volume = 99999
  256.     face.Texture = "http://www.roblox.com/asset/?id=1212220942"
  257.     wait(1.9850000000000000000000000000000000000)
  258.     face.Texture = char.Head.face.Texture
  259.     s:Destroy()
  260.     end
  261. end)
  262.  
  263. mouse.KeyDown:connect(function(Press)
  264.     Press=Press:lower()
  265.     if Press=='e' then
  266.     taunt = true
  267.     s = Instance.new("Sound")
  268.     s.Parent = ball
  269.     s.Playing = true
  270.     s.SoundId = "rbxassetid://255288110"
  271.     s.Volume = 99999
  272.     face.Texture = "http://www.roblox.com/asset/?id=664468442"
  273.     ball.BrickColor = BrickColor.new("Lapis")
  274.     sparkles = Instance.new("Sparkles")
  275.     sparkles.SparkleColor = Color3.new(0, 0, 50000000)
  276.     sparkles.Parent = ball
  277.     end
  278. end)
  279.  
  280. mouse.KeyDown:connect(function(Press)
  281.     Press=Press:lower()
  282.     if Press=='m' then
  283.         s:Destroy()
  284.         face.Texture = char.Head.face.Texture
  285.         sparkles:Destroy()
  286.         ball.BrickColor = char.Torso.BrickColor
  287.        
  288.     end
  289. end)
  290.  
  291. ff = Instance.new("ForceField")
  292. ff.Parent = char
  293. ff.Visible = false
  294. char.Humanoid.Health = 9999999999999999
  295. --animate ball + ball position--
  296. char.Animate:Destroy()
  297.  
  298. while true do
  299.     ball.Position = char["Left Leg"].Position + Vector3.new(0, 0.1, 0)
  300.     ball.Orientation = char["Left Leg"].Orientation + Vector3.new(0, 0, 0)
  301.     wait(0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001)
  302. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement