Advertisement
idkwhatiam

epic rocket (original v1)

May 7th, 2019
379
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 11.52 KB | None | 0 0
  1. 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 = {}
  2. do
  3.     script.Parent = owner.Character
  4.     local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  5.     local function NewFakeEvent()
  6.         local Bind = Instance.new("BindableEvent")
  7.         local Fake;Fake = {Connections = {},
  8.         fakeEvent=true;
  9.         Connect=function(self,Func)
  10.             Bind.Event:connect(Func)
  11.             self.Connections[Bind] = true
  12.             return setmetatable({Connected = true},{
  13.             __index = function (self,Index)
  14.                 if Index:lower() == "disconnect" then
  15.                     return function() Fake.Connections[Bind] = false;self.Connected = false end
  16.                 end
  17.                 return Fake[Index]
  18.             end;
  19.             __tostring = function() return "Connection" end;
  20.         })
  21.         end}
  22.         Fake.connect = Fake.Connect;return Fake;
  23.     end
  24.     local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  25.     local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  26.     local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  27.         self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  28.     end};ContextActionService.UnBindAction = ContextActionService.BindAction
  29.     local function TriggerEvent(self,Event,...)
  30.         local Trigger = Mouse[Event]
  31.         if Trigger and Trigger.fakeEvent and Trigger.Connections then
  32.             for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  33.         end
  34.     end
  35.     Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  36.     Event.OnServerEvent:Connect(function(FiredBy,Input)
  37.         if FiredBy.Name ~= owner.Name then return end
  38.         if Input.MouseEvent then
  39.             Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  40.         else
  41.             local Begin = Input.UserInputState == Enum.UserInputState.Begin
  42.             if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  43.             for _,Action in pairs(ContextActionService.Actions) do
  44.                 for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  45.             end
  46.             Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  47.             UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  48.         end
  49.     end)
  50.     InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  51.     Event.Parent = NLS([[
  52.         local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  53.         local Input = function(Input,gameProcessedEvent)
  54.             if gameProcessedEvent then return end
  55.             Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  56.         end
  57.         UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  58.         local Hit,Target
  59.         while wait(1/30) do
  60.             if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  61.                 Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  62.             end
  63.         end
  64.     ]],owner.Character)
  65. end
  66. RealGame = game;game = setmetatable({},{
  67.     __index = function (self,Index)
  68.         local Sandbox = function (Thing)
  69.             if Thing:IsA("Player") then
  70.                 local RealPlayer = Thing
  71.                 return setmetatable({},{
  72.                     __index = function (self,Index)
  73.                         local Type = type(RealPlayer[Index])
  74.                         if Type == "function" then
  75.                             if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  76.                                 return function (self)return InternalData["Mouse"] end
  77.                             end
  78.                             return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  79.                         end
  80.                         return RealPlayer[Index]
  81.                     end;
  82.                     __tostring = function(self) return RealPlayer.Name end
  83.                 })
  84.             end
  85.         end
  86.         if RealGame[Index] then
  87.             local Type = type(RealGame[Index])
  88.             if Type == "function" then
  89.                 if Index:lower() == "getservice" or Index:lower() == "service" then
  90.                     return function (self,Service)
  91.                         local FakeServices = {
  92.                             ["players"] = function()
  93.                                 return setmetatable({},{
  94.                                     __index = function (self2,Index2)
  95.                                         local RealService = RealGame:GetService(Service)
  96.                                         local Type2 = type(Index2)
  97.                                         if Type2 == "function" then
  98.                                             return function (self,...) return RealService[Index2](RealService,...)end
  99.                                         else
  100.                                             if Index2:lower() == "localplayer" then return Sandbox(owner) end
  101.                                             return RealService[Index2]
  102.                                         end
  103.                                     end;
  104.                                     __tostring = function(self) return RealGame:GetService(Service).Name end
  105.                                 })
  106.                             end;
  107.                             ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  108.                             ["userinputservice"] = function() return InternalData["UserInputService"] end;
  109.                             ["runservice"] = function()
  110.                                 return setmetatable({},{
  111.                                     __index = function(self2,Index2)
  112.                                         local RealService = RealGame:GetService(Service)
  113.                                         local Type2 = type(Index2)
  114.                                         if Type2 == "function" then
  115.                                             return function (self,...) return RealService[Index2](RealService,...) end
  116.                                         else
  117.                                             local RunServices = {
  118.                                                 ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  119.                                                 ["renderstepped"] = function() return RealService["Stepped"] end
  120.                                             }
  121.                                             if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  122.                                             return RealService[Index2]
  123.                                         end
  124.                                     end
  125.                                 })
  126.                             end
  127.                         }
  128.                         if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  129.                         return RealGame:GetService(Service)
  130.                     end
  131.                 end
  132.                 return function (self,...) return RealGame[Index](RealGame,...) end
  133.             else
  134.                 if game:GetService(Index) then return game:GetService(Index) end
  135.                 return RealGame[Index]
  136.             end
  137.         end
  138.         return nil
  139.     end
  140.         });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
  141.  
  142.  
  143. plr = owner
  144. print("rocket skid is " ..plr.Name)
  145. print("script by youngmacka123. dont leak because i dont need skids abusing in random servers using this.")
  146. char = plr.Character
  147. mouse = plr:GetMouse()
  148. hum = char.Humanoid
  149. arm = char["Right Arm"]
  150. tors = char.Torso
  151. rootj = char.HumanoidRootPart
  152.  
  153. --important for animations--
  154. thing = Instance.new("Weld")
  155. thing.Parent = arm
  156. thing.Part0 = arm
  157. thing.Part1 = tors
  158. thing.C0 = CFrame.new(-1.5, 0, 0)
  159. thing.C1 = CFrame.Angles(90, 0, 0)
  160.  
  161. root = Instance.new("Weld")
  162. root.Parent = tors
  163. root.Part0 = tors
  164. root.Part1 = rootj
  165.  
  166. --useful for rocket--
  167.  
  168. meshid = "rbxasset://fonts/rocketlauncher.mesh"
  169. textureid = "rbxasset://textures/rocketlaunchertex.png"
  170.  
  171. --create le rocket--
  172.  
  173. rocket = Instance.new("Part")
  174. rocket.Parent = arm
  175. rocket.Size = Vector3.new(4.92, 0.74, 0.84)
  176. rocket.CanCollide = false
  177. rocket.Anchored = false
  178. mrocket = Instance.new("SpecialMesh")
  179. mrocket.Parent = rocket
  180. mrocket.MeshId = meshid
  181. mrocket.TextureId = textureid
  182. wrocket = Instance.new("Weld")
  183. wrocket.Parent = rocket
  184. wrocket.Part0 = rocket
  185. wrocket.Part1 = arm
  186. wrocket.C0 = CFrame.new(0, -0.75, 0)
  187. wrocket.C1 = CFrame.Angles(90, 90, 90)
  188.  
  189. --attak--
  190.  
  191. charge = false
  192.  
  193. mouse.Button1Down:Connect(function()
  194.     if charge == false then
  195.     charge = true
  196.    
  197.     sur = Instance.new("BillboardGui", char.Head)
  198.     sur.Name = "Billboard"
  199.     sur.Adornee = char.Head
  200.     sur.Size = UDim2.new(10, 0, 5, 0)
  201.     sur.StudsOffset = Vector3.new(0, 5, 0)
  202.     text = Instance.new("TextLabel", sur)
  203.     text.Text = "miss haha"
  204.     text.Size = UDim2.new(1, 0, 1, 0)
  205.     text.TextScaled = true
  206.     text.BackgroundTransparency = 1
  207.     text.Font = Enum.Font.SourceSansLight
  208.     text.TextColor3 = Color3.new(255, 0, 0)
  209.     text.TextStrokeTransparency = 0
  210.     wait(0.001)
  211.     boom = mouse.Target
  212.     text.Text = "haha u missed you can just click again to shoot its ok"
  213.     wait(0.05)
  214.     text.Text = "miss. you can just click again to shoot."
  215.     charge = false
  216.     wait(0.5)
  217.     text:Destroy()
  218.     sur:Destroy()
  219.     if text.Text == "haha u missed you can just click again to shoot its ok" then
  220.         charge = false
  221.         text.Text = "haha u missed just reload the script now"
  222.     end
  223.  
  224.     charge = false
  225.  
  226.     root.C1 = CFrame.Angles(20, 0, 0)
  227.     thing.C1 = CFrame.Angles(95, 0, 0)
  228.     boom:Destroy()
  229.     ex = Instance.new("Part")
  230.     ex.Shape = "Ball"
  231.     ex.Parent = workspace
  232.     ex.Position = boom.Position
  233.     ex.Size = boom.Size
  234.     ex.Anchored = true
  235.     ex.CanCollide = false
  236.     ex.BrickColor = BrickColor.new("Really red")
  237.     ex.Material = "Neon"
  238.     ex.Transparency = 0.7
  239.     wait(0.05)
  240.     text.Text = "ok"
  241.     ex.Size = ex.Size + Vector3.new(1, 1, 1)
  242.     wait(0.05)
  243.     ex.Size = ex.Size + Vector3.new(1, 1, 1)
  244.     ex.Transparency = 0.5
  245.     wait(0.05)
  246.     ex.Size = ex.Size + Vector3.new(1, 1, 1)
  247.     wait(0.05)
  248.     ex.Size = ex.Size + Vector3.new(1, 1, 1)
  249.     ex.Transparency = 0
  250.     wait(0.05)
  251.     ex.Size = ex.Size - Vector3.new(1, 1, 1)
  252.     wait(0.05)
  253.     ex.Size = ex.Size - Vector3.new(1, 1, 1)
  254.     ex.Transparency = 0.5
  255.     wait(0.05)
  256.     ex.Size = ex.Size - Vector3.new(1, 1, 1)
  257.     wait(0.05)
  258.     ex.Size = ex.Size - Vector3.new(1, 1, 1)
  259.     ex.Transparency = 0.7
  260.     wait(0.05)
  261.     ex:Destroy()
  262.     thing.C1 = CFrame.Angles(90, 0, 0)
  263.     root.C1 = CFrame.Angles(0, 0, 0)
  264.     charge = false
  265.     text:Destroy()
  266.     sur:Destroy()
  267.     end
  268. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement