Advertisement
DarkScriptZEditors

Untitled

Jan 30th, 2019
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.06 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,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code V2 by Mokiros")
  6. local RealPlayer = RealPlayer
  7. script.Parent = RealPlayer.Character
  8.  
  9. --Fake event to make stuff like Mouse.KeyDown work
  10. local Disconnect_Function = function(this)
  11. this[1].Functions[this[2]] = nil
  12. end
  13. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  14. local FakeEvent_Metatable = {__index={
  15. Connect = function(this,f)
  16. local i = tostring(math.random(0,10000))
  17. while this.Functions[i] do
  18. i = tostring(math.random(0,10000))
  19. end
  20. this.Functions[i] = f
  21. return setmetatable({this,i},Disconnect_Metatable)
  22. end
  23. }}
  24. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  25. local function fakeEvent()
  26. return setmetatable({Functions={}},FakeEvent_Metatable)
  27. end
  28.  
  29. --Creating fake input objects with fake variables
  30. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  31. FakeMouse.keyUp = FakeMouse.KeyUp
  32. FakeMouse.keyDown = FakeMouse.KeyDown
  33. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  34. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  35. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  36. end}
  37. --Merged 2 functions into one by checking amount of arguments
  38. CAS.UnbindAction = CAS.BindAction
  39.  
  40. --This function will trigger the events that have been :Connect()'ed
  41. local function TriggerEvent(self,ev,...)
  42. for _,f in pairs(self[ev].Functions) do
  43. f(...)
  44. end
  45. end
  46. FakeMouse.TriggerEvent = TriggerEvent
  47. UIS.TriggerEvent = TriggerEvent
  48.  
  49. --Client communication
  50. local Event = Instance.new("RemoteEvent")
  51. Event.Name = "UserInput_Event"
  52. Event.OnServerEvent:Connect(function(plr,io)
  53. if plr~=RealPlayer then return end
  54. FakeMouse.Target = io.Target
  55. FakeMouse.Hit = io.Hit
  56. if not io.isMouse then
  57. local b = io.UserInputState == Enum.UserInputState.Begin
  58. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  59. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  60. end
  61. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  62. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  63. end
  64. for _,t in pairs(CAS.Actions) do
  65. for _,k in pairs(t.Keys) do
  66. if k==io.KeyCode then
  67. t.Function(t.Name,io.UserInputState,io)
  68. end
  69. end
  70. end
  71. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  72. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  73. end
  74. end)
  75. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  76. local Mouse = owner:GetMouse()
  77. local UIS = game:GetService("UserInputService")
  78. local input = function(io,RobloxHandled)
  79. if RobloxHandled then return end
  80. --Since InputObject is a client-side instance, we create and pass table instead
  81. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  82. end
  83. UIS.InputBegan:Connect(input)
  84. UIS.InputEnded:Connect(input)
  85. local h,t
  86. --Give the server mouse data every second frame, but only if the values changed
  87. --If player is not moving their mouse, client won't fire events
  88. local HB = game:GetService("RunService").Heartbeat
  89. while true do
  90. if h~=Mouse.Hit or t~=Mouse.Target then
  91. h,t=Mouse.Hit,Mouse.Target
  92. Event:FireServer({isMouse=true,Target=t,Hit=h})
  93. end
  94. --Wait 2 frames
  95. for i=1,2 do
  96. HB:Wait()
  97. end
  98. end]==],script)
  99.  
  100. ----Sandboxed game object that allows the usage of client-side methods and services
  101. --Real game object
  102. local RealGame = game
  103.  
  104. --Metatable for fake service
  105. local FakeService_Metatable = {
  106. __index = function(self,k)
  107. local s = rawget(self,"_RealService")
  108. if s then
  109. return typeof(s[k])=="function"
  110. and function(_,...)return s[k](s,...)end or s[k]
  111. end
  112. end,
  113. __newindex = function(self,k,v)
  114. local s = rawget(self,"_RealService")
  115. if s then s[k]=v end
  116. end
  117. }
  118. local function FakeService(t,RealService)
  119. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  120. return setmetatable(t,FakeService_Metatable)
  121. end
  122.  
  123. --Fake game object
  124. local FakeGame = {
  125. GetService = function(self,s)
  126. return rawget(self,s) or RealGame:GetService(s)
  127. end,
  128. Players = FakeService({
  129. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  130. },"Players"),
  131. UserInputService = FakeService(UIS,"UserInputService"),
  132. ContextActionService = FakeService(CAS,"ContextActionService"),
  133. RunService = FakeService({
  134. _btrs = {},
  135. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  136. BindToRenderStep = function(self,name,_,fun)
  137. self._btrs[name] = self.Heartbeat:Connect(fun)
  138. end,
  139. UnbindFromRenderStep = function(self,name)
  140. self._btrs[name]:Disconnect()
  141. end,
  142. },"RunService")
  143. }
  144. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  145. FakeGame.service = FakeGame.GetService
  146. FakeService(FakeGame,game)
  147. --Changing owner to fake player object to support owner:GetMouse()
  148. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  149. end
  150. --Script made by Pedrorb03
  151. growingList = {}
  152. degrowingList = {}
  153.  
  154. torso = Instance.new("Part") torso.Size = Vector3.new(0,0,0) torso.CanCollide = false
  155. torso.Anchored = true
  156. local mesh = Instance.new("SpecialMesh",torso) mesh.MeshId = "rbxassetid://1198391230" mesh.TextureId = "rbxassetid://1198391349" mesh.Scale = Vector3.new(0.01,0.01,0.01)
  157.  
  158. arm = Instance.new("Part") arm.Size = Vector3.new(0,0,0) arm.CanCollide = false
  159. arm.Anchored = true
  160. local mesh = Instance.new("SpecialMesh",arm) mesh.MeshId = "rbxassetid://1198392540" mesh.TextureId = "rbxassetid://1198391349" mesh.Scale = Vector3.new(0.02,0.02,0.02)
  161.  
  162. leg1 = Instance.new("Part") leg1.Size = Vector3.new(0,0,0) leg1.CanCollide = false
  163. leg1.Anchored = true
  164. local mesh = Instance.new("SpecialMesh",leg1) mesh.MeshId = "rbxassetid://1198394446" mesh.TextureId = "rbxassetid://1198391349" mesh.Scale = Vector3.new(0.01,0.01,0.01)
  165.  
  166. leg2 = Instance.new("Part") leg2.Size = Vector3.new(0,0,0) leg2.CanCollide = false
  167. leg2.Anchored = true
  168. local mesh = Instance.new("SpecialMesh",leg2) mesh.MeshId = "rbxassetid://1198393506" mesh.TextureId = "rbxassetid://1198391349" mesh.Scale = Vector3.new(0.02,0.02,0.02)
  169.  
  170. headd = Instance.new("Part") headd.Size = Vector3.new(1,1,1) headd.CanCollide = false
  171. local mesh = Instance.new("SpecialMesh",headd) mesh.Scale = Vector3.new(1.25,1.25,1.25) mesh.MeshType = Enum.MeshType.Head
  172. headd.BrickColor = BrickColor.new("Pastel brown")
  173.  
  174.  
  175. game:GetService("RunService").RenderStepped:connect(function()
  176. for _,grow in pairs(growingList) do
  177. local cframe = grow.CFrame
  178. grow.Size = grow.Size+Vector3.new(1,1,1)
  179. grow.Transparency = grow.Transparency+0.04
  180. end
  181. for _,degrow in pairs(degrowingList) do
  182. local cframe = degrow.CFrame
  183. degrow.Size = degrow.Size-Vector3.new(1,1,1)
  184. degrow.Transparency = degrow.Transparency+0.04
  185. end
  186. end)
  187.  
  188.  
  189.  
  190.  
  191. Basesong = Instance.new("Sound")
  192.  
  193. hair = Instance.new("Part",game.Players.LocalPlayer.Character) hair.Size = Vector3.new(1,1,1) hair.CanCollide = false
  194.  
  195. beforesong = Basesong:Clone()
  196. beforesong.Parent = game.Players.LocalPlayer.Character
  197. beforesong.Looped = true
  198. beforesong.Volume = 3
  199. beforesong.SoundId = "rbxassetid://1100971847"
  200. beforesong:Play()
  201.  
  202. if game.Players.LocalPlayer.Character:FindFirstChild("Body Colors") then
  203. game.Players.LocalPlayer.Character["Body Colors"]:remove()
  204. end
  205. if game.Players.LocalPlayer.Character:FindFirstChild("Shirt Graphic") then
  206. game.Players.LocalPlayer.Character["Shirt Graphic"]:remove()
  207. end
  208. if game.Players.LocalPlayer.Character:FindFirstChild("Shirt") then
  209. game.Players.LocalPlayer.Character["Shirt"]:remove()
  210. end
  211. if game.Players.LocalPlayer.Character:FindFirstChild("Pants") then
  212. game.Players.LocalPlayer.Character["Pants"]:remove()
  213. end
  214. for i=1,5 do
  215. wait()
  216. for _,hat in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  217. if hat.ClassName == "Accessory" then
  218. hat:remove()
  219. end
  220. if hat:IsA("BasePart") then
  221. hat.BrickColor = BrickColor.new("Pastel brown")
  222. end
  223. end
  224. end
  225. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
  226. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0
  227.  
  228.  
  229.  
  230.  
  231.  
  232. shirt = Instance.new("Shirt",game.Players.LocalPlayer.Character)
  233. shirt.ShirtTemplate = "rbxassetid://804894303"
  234. pants = Instance.new("Pants",game.Players.LocalPlayer.Character)
  235. pants.PantsTemplate = "rbxassetid://189943600"
  236.  
  237. game.Players.LocalPlayer.Character.Head.face.Texture = "http://www.roblox.com/asset/?id=1142979747"
  238.  
  239. wait(1)
  240. game:GetService("Chat"):Chat(game.Players.LocalPlayer.Character.Head, "This can go two ways punk", "Green")
  241. wait(3)
  242. game:GetService("Chat"):Chat(game.Players.LocalPlayer.Character.Head, "You walk away", "Green")
  243. wait(3)
  244. game:GetService("Chat"):Chat(game.Players.LocalPlayer.Character.Head, "Or I walk in your, face.", "Green")
  245. wait(3)
  246.  
  247. local counter = 0
  248.  
  249. local colorlist = {ColorSequenceKeypoint.new(0,Color3.fromRGB(0,255,255)),
  250. ColorSequenceKeypoint.new(0.148,Color3.fromRGB(0,255,255)),
  251. ColorSequenceKeypoint.new(0.193,Color3.fromRGB(72,0,255)),
  252. ColorSequenceKeypoint.new(0.366,Color3.fromRGB(72,0,255)),
  253. ColorSequenceKeypoint.new(0.4,Color3.fromRGB(0,255,255)),
  254. ColorSequenceKeypoint.new(0.63,Color3.fromRGB(0,255,255)),
  255. ColorSequenceKeypoint.new(0.8,Color3.fromRGB(72,0,255)),
  256. ColorSequenceKeypoint.new(1,Color3.fromRGB(0,0,255))
  257. }
  258. local uiParticle = Baseparticle:Clone()
  259. uiParticle.Color = ColorSequence.new(colorlist)
  260. uiParticle.LightEmission = 1
  261. uiParticle.Size = NumberSequence.new(0.8)
  262. uiParticle.LockedToPart = true
  263. uiParticle.Texture = "rbxassetid://1143059159"
  264. local transparencylist = { NumberSequenceKeypoint.new(0,1),
  265. NumberSequenceKeypoint.new(0.5,0.67),
  266. NumberSequenceKeypoint.new(1,1)
  267. }
  268.  
  269. uiParticle.Transparency = NumberSequence.new(transparencylist)
  270. uiParticle.ZOffset = -1
  271. uiParticle.LockedToPart = true
  272. uiParticle.Lifetime = NumberRange.new(0.05,0.05)
  273. uiParticle.Speed = NumberRange.new(0,0)
  274. uiParticle.Rate = math.huge
  275.  
  276. for _,hat in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  277.  
  278. if hat:IsA("BasePart") then
  279. if hat.Name ~= "Head" and hat.Name ~= "HumanoidRootPart" then
  280. uiParticle:Clone().Parent = hat
  281. end
  282. end
  283. end
  284.  
  285.  
  286.  
  287. beforesong:Stop()
  288. mainsong = Basesong:Clone()
  289. mainsong.Parent = game.Players.LocalPlayer.Character
  290. mainsong.Looped = true
  291. mainsong.Volume = 3
  292. mainsong.SoundId = "rbxassetid://1106602456"
  293. mainsong:Play()
  294.  
  295. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 80
  296. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 150
  297. game.Players.LocalPlayer.Character.Humanoid.Name = "LolFakeHumanoid"
  298.  
  299. afterimages = {}
  300.  
  301. game.Players.LocalPlayer.Character.Head.face:Clone().Parent = headd
  302.  
  303. game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(key)
  304.  
  305. end)
  306. amcounter = 0
  307.  
  308. local PhysicsService = game:GetService("PhysicsService")
  309.  
  310.  
  311.  
  312.  
  313. for _,part in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  314. if part:FindFirstChild("ParticleEmitter") then
  315. part.ParticleEmitter.Enabled = false
  316. end
  317. if part:IsA("BasePart") then
  318. part.Transparency = 1
  319. end
  320. end
  321. game.Players.LocalPlayer.Character.Head.face.Transparency = 1
  322.  
  323.  
  324.  
  325. game:GetService("RunService").RenderStepped:connect(function()
  326. for _,image in pairs(afterimages) do
  327. for _,part in pairs(image:GetChildren()) do
  328. if part:IsA("BasePart") then
  329. part.Transparency = part.Transparency+0.1
  330. if part:FindFirstChild("face") then
  331. part.face.Transparency = part.face.Transparency+0.1
  332. end
  333. if part.Transparency > 0.9 then
  334. image:remove()
  335. end
  336. end
  337. end
  338. end
  339.  
  340. local image = Instance.new("Model",game.Workspace)
  341. image.Name = "AfterImage"
  342.  
  343. local head = headd:Clone()
  344. head.CFrame = game.Players.LocalPlayer.Character.Head.CFrame
  345. local hairc = hair:Clone()
  346. head.Anchored = true
  347. head.Transparency = 0
  348. head.face.Transparency = 0
  349. hairc.Transparency = 0
  350. hairc.Anchored = true
  351. hairc.Weld:remove()
  352. head.Parent = image
  353. hairc.Parent = image
  354. local torsoc = torso:Clone()
  355. torsoc.Parent = image
  356. torsoc.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame*CFrame.Angles(0,math.rad(-180),0)
  357. local armc = arm:Clone()
  358. armc.Parent = image
  359. armc.CFrame = game.Players.LocalPlayer.Character["Right Arm"].CFrame*CFrame.Angles(0,math.rad(180),0)
  360. local armc = arm:Clone()
  361. armc.Parent = image
  362. armc.CFrame = game.Players.LocalPlayer.Character["Left Arm"].CFrame*CFrame.Angles(0,math.rad(180),0)
  363. local legc = leg1:Clone()
  364. legc.Parent = image
  365. legc.CFrame = game.Players.LocalPlayer.Character["Left Leg"].CFrame*CFrame.Angles(0,math.rad(-180),0)
  366. local legc = leg2:Clone()
  367. legc.Parent = image
  368. legc.CFrame = game.Players.LocalPlayer.Character["Right Leg"].CFrame*CFrame.Angles(0,math.rad(-180),0)
  369.  
  370. table.insert(afterimages,image)
  371.  
  372. game.Players.LocalPlayer.Character.Parent = game.Workspace.CurrentCamera
  373. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement