Advertisement
Synpase_X

whos dis?

Apr 30th, 2023 (edited)
820
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.96 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4.     print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  5.     print("Truthing since 2018! ZV Admin loading...")
  6.     script.Parent = Player.Character
  7.  
  8.     --RemoteEvent for communicating
  9.     local Event = Instance.new("RemoteEvent")
  10.     Event.Name = "UserInput_Event"
  11.  
  12.     --Fake event to make stuff like Mouse.KeyDown work
  13.     local function fakeEvent()
  14.         local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  15.         t.connect = t.Connect
  16.         return t
  17.     end
  18.  
  19.     --Creating fake input objects with fake variables
  20.     local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  21.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  22.     local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  23.         CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  24.     end}
  25.     --Merged 2 functions into one by checking amount of arguments
  26.     CAS.UnbindAction = CAS.BindAction
  27.  
  28.     --This function will trigger the events that have been :Connect()'ed
  29.     local function te(self,ev,...)
  30.         local t = m[ev]
  31.         if t and t._fakeEvent and t.Function then
  32.             t.Function(...)
  33.         end
  34.     end
  35.     m.TrigEvent = te
  36.     UIS.TrigEvent = te
  37.  
  38.     Event.OnServerEvent:Connect(function(plr,io)
  39.         if plr~=Player then return end
  40.         if io.isMouse then
  41.             m.Target = io.Target
  42.             m.Hit = io.Hit
  43.         else
  44.             local b = io.UserInputState == Enum.UserInputState.Begin
  45.             if io.UserInputType == Enum.UserInputType.MouseButton1 then
  46.                 return m:TrigEvent(b and "Button1Down" or "Button1Up")
  47.             end
  48.             for _,t in pairs(CAS.Actions) do
  49.                 for _,k in pairs(t.Keys) do
  50.                     if k==io.KeyCode then
  51.                         t.Function(t.Name,io.UserInputState,io)
  52.                     end
  53.                 end
  54.             end
  55.             m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  56.             UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  57.         end
  58.     end)
  59.     Event.Parent = NLS([==[
  60.     local Player = game:GetService("Players").LocalPlayer
  61.     local Event = script:WaitForChild("UserInput_Event")
  62.  
  63.     local UIS = game:GetService("UserInputService")
  64.     local input = function(io,a)
  65.         if a then return end
  66.         --Since InputObject is a client-side instance, we create and pass table instead
  67.         Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  68.     end
  69.     UIS.InputBegan:Connect(input)
  70.     UIS.InputEnded:Connect(input)
  71.  
  72.     local Mouse = Player:GetMouse()
  73.     local h,t
  74.     --Give the server mouse data 30 times every second, but only if the values changed
  75.     --If player is not moving their mouse, client won't fire events
  76.     while wait(1/30) do
  77.         if h~=Mouse.Hit or t~=Mouse.Target then
  78.             h,t=Mouse.Hit,Mouse.Target
  79.             Event:FireServer({isMouse=true,Target=t,Hit=h})
  80.         end
  81.     end]==],Player.Character)
  82.     Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  83. end
  84. --less go
  85. Player=owner
  86. Character=Player.Character
  87. PlayerGui=Player.PlayerGui
  88. Backpack=Player.Backpack
  89. Torso=Character.Torso
  90. Head=Character.Head
  91. Humanoid=Character.Humanoid
  92. m=Instance.new('Model',Character)
  93. LeftArm=Character["Left Arm"]
  94. LeftLeg=Character["Left Leg"]
  95. RightArm=Character["Right Arm"]
  96. RightLeg=Character["Right Leg"]
  97. LS=Torso["Left Shoulder"]
  98. LH=Torso["Left Hip"]
  99. RS=Torso["Right Shoulder"]
  100. RH=Torso["Right Hip"]
  101. Face = Head.face
  102. Neck=Torso.Neck
  103. it=Instance.new
  104. attacktype=1
  105. vt=Vector3.new
  106. cf=CFrame.new
  107. euler=CFrame.fromEulerAnglesXYZ
  108. angles=CFrame.Angles
  109. cloaked=false
  110. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  111. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  112. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  113. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  114. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  115. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  116. RootPart=Character.HumanoidRootPart
  117. RootJoint=RootPart.RootJoint
  118. RootCF=euler(-1.57,0,3.14)
  119. local part = Instance.new("Part",workspace)
  120. local panel = Instance.new("Part",workspace)
  121. local plr = game.Players.LocalPlayer
  122. local bill = Instance.new("BillboardGui",part)
  123. local sb = Instance.new("SelectionBox",part)
  124. local enabled = true
  125. local panelmode = false
  126. part.Size = Vector3.new(4, 4.285, 2)
  127. part.Rotation = Vector3.new(-30, 0, 0)
  128. part.CanCollide = false
  129. part.Anchored = true
  130. part.BrickColor = BrickColor.new("Lapis")
  131. part.Transparency = 0.5
  132. --bilboardgui
  133. bill.Adornee = part
  134. bill.Size = UDim2.new(0, 200,0, 50)
  135. bill.StudsOffset = Vector3.new(0, 3, 0)
  136. local text = Instance.new("TextLabel",bill)
  137. text.BackgroundTransparency = 1
  138. text.Size = UDim2.new(0, 200,0, 50)
  139. text.TextSize = 25
  140. text.Text = "ZV Admin loaded!"
  141. text.TextStrokeTransparency = 0
  142. text.TextStrokeColor3 = Color3.new(0, 0, 0.239216)
  143. --selectionbox
  144. sb.Adornee = part
  145. sb.LineThickness = 0.1
  146. --panel
  147. panel.Size = Vector3.new(9.199, 4.913, 0.001)
  148. panel.Rotation = Vector3.new(0, 59, 0)
  149. panel.CanCollide = false
  150. panel.Anchored = true
  151. panel.Transparency = 1
  152. --surfaceguiofpanel
  153. local sg = Instance.new("SurfaceGui",panel)
  154. local enter = Instance.new("TextBox",sg)
  155. local stun = Instance.new("TextButton",sg)
  156. local kill = Instance.new("TextButton",sg)
  157. local explode = Instance.new("TextButton",sg)
  158. local panelby = Instance.new("TextLabel",sg)
  159. sg.Adornee = panel
  160. sg.Face = "Back"
  161. sg.Enabled = false
  162.  
  163. panelby.Position = UDim2.new(0,0,0,0)
  164. panelby.Size = UDim2.new(0,200,0,30)
  165. panelby.Text = "hm..."
  166. panelby.TextSize = 25
  167.  
  168. enter.Position = UDim2.new(0,200,0.2,0)
  169. enter.Size = UDim2.new(0,400,0,200)
  170. enter.Text = "enter sum name here idk"
  171. enter.TextXAlignment = "Left"
  172. enter.TextYAlignment = "Top"
  173. enter.TextSize = 25
  174.  
  175. stun.Position = UDim2.new(0,0,0.2,0)
  176. stun.Size = UDim2.new(0,200,0,100)
  177. stun.TextColor3 = Color3.new(1, 1, 1)
  178. stun.BackgroundColor3 = Color3.new(0.133333, 0.133333, 0.133333)
  179. stun.TextSize = 25
  180. stun.Text = "Stun"
  181.  
  182. kill.Position = UDim2.new(0,0,0.35,0)
  183. kill.Size = UDim2.new(0,200,0,100)
  184. kill.TextColor3 = Color3.new(1, 1, 1)
  185. kill.BackgroundColor3 = Color3.new(0.133333, 0.133333, 0.133333)
  186. kill.TextSize = 25
  187. kill.Text = "Kill"
  188.  
  189. explode.Position = UDim2.new(0,0,0.5,0)
  190. explode.Size = UDim2.new(0,200,0,100)
  191. explode.TextColor3 = Color3.new(1, 1, 1)
  192. explode.BackgroundColor3 = Color3.new(0.133333, 0.133333, 0.133333)
  193. explode.TextSize = 25
  194. explode.Text = "Explode"
  195.  
  196. --and mouse.Target.Parent == part
  197. if Player then
  198.     mouse.Button1Down:Connect(function()
  199.         if mouse.Target == part then
  200.             enabled = false
  201.             panelmode = true
  202.             panel.Transparency = 0.5
  203.             sg.Enabled = true
  204.             part:Destroy()
  205.     end
  206.  end)
  207. end
  208.  
  209. stun.MouseButton1Down:Connect(function()
  210.     if Player then
  211.         local kil = Instance.new("Tool",Backpack)
  212.         kil.Name = "Kill"
  213.         kil.RequiresHandle = false
  214.         kil.CanBeDropped = false
  215.         if Player then
  216.               kil.Activated:Connect(function()
  217.                     if mouse.Target then
  218.                         local choose = mouse.Target
  219.                         local sou = Instance.new("Sound",choose)
  220.                         sou.Volume=100
  221.                         sou.Pitch=1
  222.                         sou.SoundId = "rbxassetid://5639677185"
  223.                         sou.Looped = false
  224.                         wait()
  225.                         sou:play()
  226.                         wait(1)
  227.                         if choose == panel then
  228.                             print("no")
  229.                         else
  230.                             choose:Destroy()
  231.                         end
  232.                     end
  233.                 end)
  234.             end
  235.         end
  236. end)
  237.  
  238. kill.MouseButton1Down:Connect(function()
  239.     if Player then
  240.         local kil = Instance.new("Tool",Backpack)
  241.         kil.Name = "Kill"
  242.         kil.RequiresHandle = false
  243.         kil.CanBeDropped = false
  244.         if Player then
  245.               kil.Activated:Connect(function()
  246.                     if mouse.Target then
  247.                         local choose = mouse.Target
  248.                         local hl = Instance.new("Highlight",choose)
  249.                         hl.Adornee = mouse.Target
  250.                         wait(1)
  251.                         if choose == panel then
  252.                             print("no")
  253.                         else
  254.                             choose:Destroy()
  255.                         end
  256.                     end
  257.                 end)
  258.             end
  259.         end
  260. end)
  261.  
  262. explode.MouseButton1Down:Connect(function()
  263.     if Player then
  264.         local explo = Instance.new("Tool",Backpack)
  265.         explo.Name = "Explode"
  266.         explo.RequiresHandle = false
  267.         explo.CanBeDropped = false
  268.         if Player then
  269.             explo.Activated:Connect(function()
  270.                     if mouse.Target then
  271.                         local b = Instance.new("Explosion")
  272.                         b.Parent = mouse.Target
  273.                         b.Position = mouse.Hit.p
  274.                     end
  275.                 end)
  276.         end
  277.     end
  278. end)
  279.  
  280. Humanoid.Died:Connect(function()
  281.     panel:Destroy()
  282. end)
  283.  
  284. while enabled do
  285.     task.wait(0)
  286.     part.Position = Vector3.new(RootPart.Position.X, RootPart.Position.Y, RootPart.Position.Z - 5 )
  287. end
  288.  
  289. while panelmode do
  290.     task.wait(0)
  291.     panel.Position = Vector3.new(RootPart.Position.X - 3, RootPart.Position.Y + 3, RootPart.Position.Z - 3)
  292. end
  293.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement