Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7.     print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8.     script.Parent = Player.Character
  9.  
  10.     --RemoteEvent for communicating
  11.     local Event = Instance.new("RemoteEvent")
  12.     Event.Name = "UserInput_Event"
  13.  
  14.     --Fake event to make stuff like Mouse.KeyDown work
  15.     local function fakeEvent()
  16.         local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17.         t.connect = t.Connect
  18.         return t
  19.     end
  20.  
  21.     --Creating fake input objects with fake variables
  22.     local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24.     local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25.         CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26.     end}
  27.     --Merged 2 functions into one by checking amount of arguments
  28.     CAS.UnbindAction = CAS.BindAction
  29.  
  30.     --This function will trigger the events that have been :Connect()'ed
  31.     local function te(self,ev,...)
  32.         local t = m[ev]
  33.         if t and t._fakeEvent and t.Function then
  34.             t.Function(...)
  35.         end
  36.     end
  37.     m.TrigEvent = te
  38.     UIS.TrigEvent = te
  39.  
  40.     Event.OnServerEvent:Connect(function(plr,io)
  41.         if plr~=Player then return end
  42.         if io.isMouse then
  43.             m.Target = io.Target
  44.             m.Hit = io.Hit
  45.         else
  46.             local b = io.UserInputState == Enum.UserInputState.Begin
  47.             if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48.                 return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49.             end
  50.             for _,t in pairs(CAS.Actions) do
  51.                 for _,k in pairs(t.Keys) do
  52.                     if k==io.KeyCode then
  53.                         t.Function(t.Name,io.UserInputState,io)
  54.                     end
  55.                 end
  56.             end
  57.             m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58.             UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59.         end
  60.     end)
  61.     Event.Parent = NLS([==[
  62.     local Player = game:GetService("Players").LocalPlayer
  63.     local Event = script:WaitForChild("UserInput_Event")
  64.  
  65.     local UIS = game:GetService("UserInputService")
  66.     local input = function(io,a)
  67.         if a then return end
  68.         --Since InputObject is a client-side instance, we create and pass table instead
  69.         Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70.     end
  71.     UIS.InputBegan:Connect(input)
  72.     UIS.InputEnded:Connect(input)
  73.  
  74.     local Mouse = Player:GetMouse()
  75.     local h,t
  76.     --Give the server mouse data 30 times every second, but only if the values changed
  77.     --If player is not moving their mouse, client won't fire events
  78.     while wait(1/30) do
  79.         if h~=Mouse.Hit or t~=Mouse.Target then
  80.             h,t=Mouse.Hit,Mouse.Target
  81.             Event:FireServer({isMouse=true,Target=t,Hit=h})
  82.         end
  83.     end]==],Player.Character)
  84.     Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87. main = Instance.new("ScreenGui")
  88. main.Name = "NightShift"
  89. exp1 = Instance.new("Frame")
  90. exp1.Name = "Exploit"
  91. exp1.Style = "RobloxSquare"
  92. exp1.Size = UDim2.new(1,0,1,0)
  93. exp1.Position = UDim2.new(0,0,0,0)
  94. exp2 = Instance.new("Frame")
  95. exp2.Name = "Exploit2"
  96. exp2.Style = "RobloxRound"
  97. exp2.Size = UDim2.new(0,400,0,300)
  98. exp2.Position = UDim2.new(0,0,0,-310)
  99. exp1.Parent = main
  100. exp2.Parent = main
  101. ok = Instance.new("TextButton")
  102. ok.Name = "k"
  103. ok.Size = UDim2.new(0.100000001, 0, 0.0799999982, 0)
  104. ok.Position = UDim2.new(0.449999988, 0, 0, 0)
  105. ok.Style = "RobloxButtonDefault"
  106. ok.Font = "ArialBold"
  107. ok.FontSize = "Size24"
  108. ok.TextColor3 = Color3.new(255,255,255)
  109. ok.Text = "Ok"
  110. ok.Parent = main
  111. logo = Instance.new("ImageLabel")
  112. logo.Name = "NS"
  113. logo.Size = UDim2.new(1,0,1,0)
  114. logo.Image = "http://www.roblox.com/asset/?id=65664069"
  115. logo.Parent = exp1
  116. haxor = Instance.new("TextLabel")
  117. haxor.Name = "Haxor"
  118. haxor.Size = UDim2.new(1, 0, 0.100000001, 0)
  119. haxor.Position = UDim2.new(0, 0, 0.0500000007, 0)
  120. haxor.Parent = exp1
  121. haxor.Text = "The NightShift group now owns this server. Join now at: nshift.proboards.com"
  122. haxor.FontSize = "Size24"
  123. haxor.Font = "ArialBold"
  124. haxor.TextColor3 = Color3.new(255,255,255)
  125. haxor.BackgroundTransparency = 1
  126. logo2 = Instance.new("ImageLabel")
  127. logo2.Name = "NS"
  128. logo2.Size = UDim2.new(1,0,1,0)
  129. logo2.Image = "http://www.roblox.com/asset/?id=65664069"
  130. logo2.Parent = exp2
  131. haxor2 = Instance.new("TextLabel")
  132. haxor2.Name = "Haxor"
  133. haxor2.Size = UDim2.new(1, 0, 0.100000001, 0)
  134. haxor2.Position = UDim2.new(0, 0, 0.0500000007, 0)
  135. haxor2.Parent = exp2
  136. haxor2.Text = "Server owned by NightShift."
  137. haxor2.FontSize = "Size18"
  138. haxor2.Font = "ArialBold"
  139. haxor2.TextColor3 = Color3.new(255,255,255)
  140. haxor2.BackgroundTransparency = 1
  141. btnsc = Instance.new("Script")
  142. btnsc.Name = "BtnSc"
  143. btnsc.Disabled = true
  144. btnsc.Source = [[
  145. script.Parent.k.MouseButton1Down:connect(function()
  146. if script.Parent.k.Text == "Ok" then
  147. script.Parent.Exploit:TweenPosition(UDim2.new(0, 0, -1, 0), "Out", "Quad")
  148. script.Parent.Exploit2:TweenPosition(UDim2.new(0, 0, 0, 0), "Out", "Quad")
  149. script.Parent.k:TweenPosition(UDim2.new(0, 400, 0, 0), "Out", "Quad")
  150. script.Parent.k.Text = "Link again?"
  151. else
  152. script.Parent.Exploit:TweenPosition(UDim2.new(0, 0, 0, 0), "Out", "Quad")
  153. script.Parent.k:TweenPosition(UDim2.new(0.449999988, 0, 0, 0), "Out", "Quad")
  154. script.Parent.Exploit2:TweenPosition(UDim2.new(0, 0, 0, -310), "Out", "Quad")
  155. script.Parent.k.Text = "Ok"
  156. end
  157. end)
  158. ]]
  159. btnsc.Parent = main
  160. ini = Instance.new("Script")
  161. ini.Name = "Initialize"
  162. ini.Disabled = true
  163. ini.Parent = main
  164. ini.Source = [[
  165. script.Parent.Exploit:TweenSize(UDim2.new(1, 0, 1, 0), "Out", "Quad")
  166. script.Parent.Exploit.Haxor.FontSize = "Size24"
  167. script.Parent.k.Text = "Wait (10)"
  168. wait(1)
  169. script.Parent.k.Text = "Wait (9)"
  170. wait(1)
  171. script.Parent.k.Text = "Wait (8)"
  172. wait(1)
  173. script.Parent.k.Text = "Wait (7)"
  174. wait(1)
  175. script.Parent.k.Text = "Wait (6)"
  176. wait(1)
  177. script.Parent.k.Text = "Wait (5)"
  178. wait(1)
  179. script.Parent.k.Text = "Wait (4)"
  180. wait(1)
  181. script.Parent.k.Text = "Wait (3)"
  182. wait(1)
  183. script.Parent.k.Text = "Wait (2)"
  184. wait(1)
  185. script.Parent.k.Text = "Wait (1)"
  186. wait(1)
  187. script.Parent.k.Text = "Ok"
  188. script.Parent.BtnSc.Disabled = false
  189. ]]
  190. main.Parent = game.StarterGui
  191. btnsc.Disabled = true
  192. ini.Disabled = false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement