Zach_rookie_editor3

Yes

Nov 9th, 2019
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.24 KB | None | 0 0
  1. local Player = owner
  2. print("Yes Original by Youngmackha123 Edited by Zach")
  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,game,owner = owner,game
  6. local RealPlayer = Player
  7. do
  8. print("FE Compatibility code V2 by Mokiros")
  9. local RealPlayer = RealPlayer
  10. script.Parent = RealPlayer.Character
  11.  
  12. --Fake event to make stuff like Mouse.KeyDown work
  13. local Disconnect_Function = function(this)
  14. this[1].Functions[this[2]] = nil
  15. end
  16. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  17. local FakeEvent_Metatable = {__index={
  18. Connect = function(this,f)
  19. local i = tostring(math.random(0,10000))
  20. while this.Functions[i] do
  21. i = tostring(math.random(0,10000))
  22. end
  23. this.Functions[i] = f
  24. return setmetatable({this,i},Disconnect_Metatable)
  25. end
  26. }}
  27. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  28. local function fakeEvent()
  29. return setmetatable({Functions={}},FakeEvent_Metatable)
  30. end
  31.  
  32. --Creating fake input objects with fake variables
  33. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  34. FakeMouse.keyUp = FakeMouse.KeyUp
  35. FakeMouse.keyDown = FakeMouse.KeyDown
  36. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  37. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  38. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  39. end}
  40. --Merged 2 functions into one by checking amount of arguments
  41. CAS.UnbindAction = CAS.BindAction
  42.  
  43. --This function will trigger the events that have been :Connect()'ed
  44. local function TriggerEvent(self,ev,...)
  45. for _,f in pairs(self[ev].Functions) do
  46. f(...)
  47. end
  48. end
  49. FakeMouse.TriggerEvent = TriggerEvent
  50. UIS.TriggerEvent = TriggerEvent
  51.  
  52. --Client communication
  53. local Event = Instance.new("RemoteEvent")
  54. Event.Name = "UserInput_Event"
  55. Event.OnServerEvent:Connect(function(plr,io)
  56. if plr~=RealPlayer then return end
  57. FakeMouse.Target = io.Target
  58. FakeMouse.Hit = io.Hit
  59. if not io.isMouse then
  60. local b = io.UserInputState == Enum.UserInputState.Begin
  61. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  62. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  63. end
  64. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  65. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  66. end
  67. for _,t in pairs(CAS.Actions) do
  68. for _,k in pairs(t.Keys) do
  69. if k==io.KeyCode then
  70. t.Function(t.Name,io.UserInputState,io)
  71. end
  72. end
  73. end
  74. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  75. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  76. end
  77. end)
  78. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  79. local Mouse = owner:GetMouse()
  80. local UIS = game:GetService("UserInputService")
  81. local input = function(io,RobloxHandled)
  82. if RobloxHandled then return end
  83. --Since InputObject is a client-side instance, we create and pass table instead
  84. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  85. end
  86. UIS.InputBegan:Connect(input)
  87. UIS.InputEnded:Connect(input)
  88. local h,t
  89. --Give the server mouse data every second frame, but only if the values changed
  90. --If player is not moving their mouse, client won't fire events
  91. local HB = game:GetService("RunService").Heartbeat
  92. while true do
  93. if h~=Mouse.Hit or t~=Mouse.Target then
  94. h,t=Mouse.Hit,Mouse.Target
  95. Event:FireServer({isMouse=true,Target=t,Hit=h})
  96. end
  97. --Wait 2 frames
  98. for i=1,2 do
  99. HB:Wait()
  100. end
  101. end]==],script)
  102.  
  103. ----Sandboxed game object that allows the usage of client-side methods and services
  104. --Real game object
  105. local RealGame = game
  106.  
  107. --Metatable for fake service
  108. local FakeService_Metatable = {
  109. __index = function(self,k)
  110. local s = rawget(self,"_RealService")
  111. if s then
  112. return typeof(s[k])=="function"
  113. and function(_,...)return s[k](s,...)end or s[k]
  114. end
  115. end,
  116. __newindex = function(self,k,v)
  117. local s = rawget(self,"_RealService")
  118. if s then s[k]=v end
  119. end
  120. }
  121. local function FakeService(t,RealService)
  122. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  123. return setmetatable(t,FakeService_Metatable)
  124. end
  125.  
  126. --Fake game object
  127. local FakeGame = {
  128. GetService = function(self,s)
  129. return rawget(self,s) or RealGame:GetService(s)
  130. end,
  131. Players = FakeService({
  132. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  133. },"Players"),
  134. UserInputService = FakeService(UIS,"UserInputService"),
  135. ContextActionService = FakeService(CAS,"ContextActionService"),
  136. RunService = FakeService({
  137. _btrs = {},
  138. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  139. BindToRenderStep = function(self,name,_,fun)
  140. self._btrs[name] = self.Heartbeat:Connect(fun)
  141. end,
  142. UnbindFromRenderStep = function(self,name)
  143. self._btrs[name]:Disconnect()
  144. end,
  145. },"RunService")
  146. }
  147. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  148. FakeGame.service = FakeGame.GetService
  149. FakeService(FakeGame,game)
  150. --Changing owner to fake player object to support owner:GetMouse()
  151. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  152. end
  153.  
  154.  
  155. local plr = owner
  156. local char = plr.Character
  157. local Humanoid = char.Humanoid
  158.  
  159. function Oof(Ch)
  160. if Ch.ClassName == "Model" then
  161. local D = Ch:GetDescendants()
  162. for i = 1,#D do
  163. local ee = D[i]
  164. if ee:IsA("Humanoid") then
  165. ee.BreakJointsOnDeath = false
  166. elseif ee:IsA("Motor6D") or ee:IsA("Motor") then
  167. local Old = ee.Parent
  168. ee.Parent = nil
  169. local R = Instance.new("Glue",Old)
  170. R.Name = ee.Name
  171. R.Part0 = ee.Part0
  172. R.Part1 = ee.Part1
  173. R.C0 = ee.C0
  174. R.C1 = ee.C1
  175. end
  176. end
  177. end
  178. end
  179.  
  180. Oof(char)
  181.  
  182.  
  183.  
  184. local audio = Instance.new("Sound",char.Head)
  185. audio.SoundId = "rbxassetid://800064337"
  186. audio.Volume = 10
  187. audio.Looped = true
  188. audio:Play()
  189. s2 = audio
  190. mememode = true
  191.  
  192. if mememode == false then
  193. s2.Pitch = 0.03+ math.random(600,1000)/1000
  194.  
  195. s2.Volume = 1.5
  196. else
  197.  
  198. s2.Pitch = 1 + math.random(1,40)/37
  199.  
  200. s2.Volume = 2
  201.  
  202. end
  203.  
  204. m = Instance.new("Model", char)
  205. local weldBetween = function(a, b)
  206. local weldd = Instance.new("ManualWeld")
  207. weldd.Part0 = a
  208. weldd.Part1 = b
  209. weldd.C0 = CFrame.new()
  210. weldd.C1 = b.CFrame:inverse() * a.CFrame
  211. weldd.Parent = a
  212. return weldd
  213. end
  214. it = Instance.new
  215. function nooutline(part)
  216. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  217. end
  218. function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
  219. local fp = it("Part")
  220. fp.formFactor = formfactor
  221. fp.Parent = parent
  222. fp.Reflectance = reflectance
  223. fp.Transparency = transparency
  224. fp.CanCollide = false
  225. fp.Locked = true
  226. fp.BrickColor = BrickColor.new(tostring(brickcolor))
  227. fp.Name = name
  228. fp.Size = size
  229. fp.Position = char.Torso.Position
  230. nooutline(fp)
  231. fp.Material = material
  232. fp:BreakJoints()
  233. return fp
  234. end
  235. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  236. local mesh = it(Mesh)
  237. mesh.Parent = part
  238. if Mesh == "SpecialMesh" then
  239. mesh.MeshType = meshtype
  240. mesh.MeshId = meshid
  241. end
  242. mesh.Offset = offset
  243. mesh.Scale = scale
  244. return mesh
  245. end
  246. function weld(parent, part0, part1, c0, c1)
  247. local weld = it("Weld")
  248. weld.Parent = parent
  249. weld.Part0 = part0
  250. weld.Part1 = part1
  251. weld.C0 = c0
  252. weld.C1 = c1
  253. return weld
  254. end
  255. BottleR = part(Enum.FormFactor.Plate, m, Enum.Material.Neon, 0, 0, "Bright green", "Handle", Vector3.new(1.44916654, 1.73900044, 1.44916654))
  256. BottleRweld = weld(m, char["Right Arm"], BottleR, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.150012493, 1.13759422, -1.12566471, -1, 0, 0, 0, 0.146834984, -0.989161015, 0, -0.989160895, -0.146834999))
  257. mesh("SpecialMesh", BottleR, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=11409474", Vector3.new(0, 0, 0), Vector3.new(2.17374969, 3.62291789, 2.17374969))
  258. wait(0.000001)
  259. Humanoid.MaxHealth = math.huge
  260. wait(0.0000001)
  261. Humanoid.Health = math.huge
  262. wait(0.1)
  263. ff = Instance.new("ForceField", Character)
  264. ff.Visible = false
  265.  
  266.  
  267.  
  268. ----- /SKill\ ------
  269.  
  270.  
  271. function lecloakguy()
  272. if cloakedyes == true then
  273. cloakedyes = false
  274. knif.Parent = Character
  275. urfacexd.Parent = Head
  276. local cloaks = Instance.new("Sound",Head) cloaks.SoundId = "rbxassetid://195575792" cloaks.Volume = 2.5 cloaks:Play()
  277. game.Debris:AddItem(cloaks,1.5)
  278. for i = 1,15 do
  279. Swait()
  280. for _,v in pairs (Character:children()) do
  281. if v:IsA("Part") then
  282. v.Transparency = v.Transparency - 0.1
  283. end
  284. end
  285. end
  286. else
  287. cloakedyes = true
  288. knif.Parent = nil
  289. urfacexd.Parent = nil
  290. local cloaks = Instance.new("Sound",Head) cloaks.SoundId = "rbxassetid://195575792" cloaks.Volume = 2.5 cloaks:Play()
  291. game.Debris:AddItem(cloaks,1.5)
  292. for i = 1,15 do
  293. wait(0.000000001)
  294. for _,v in pairs (Character:children()) do
  295. if v:IsA("Part") then
  296. v.Transparency = v.Transparency + 0.1
  297. end
  298. end
  299. end
  300. end
  301. end
Advertisement
Add Comment
Please, Sign In to add comment