Advertisement
lafur

Untitled

Feb 25th, 2019
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.66 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end --Script made by Pedrorb03
  6. growingList = {}
  7. degrowingList = {}
  8.  
  9. torso = Instance.new("Part") torso.Size = Vector3.new(0,0,0) torso.CanCollide = false
  10. torso.Anchored = true
  11. local mesh = Instance.new("SpecialMesh",torso) mesh.MeshId = "rbxassetid://1198391230" mesh.TextureId = "rbxassetid://1198391349" mesh.Scale = Vector3.new(0.01,0.01,0.01)
  12.  
  13. arm = Instance.new("Part") arm.Size = Vector3.new(0,0,0) arm.CanCollide = false
  14. arm.Anchored = true
  15. local mesh = Instance.new("SpecialMesh",arm) mesh.MeshId = "rbxassetid://1198392540" mesh.TextureId = "rbxassetid://1198391349" mesh.Scale = Vector3.new(0.02,0.02,0.02)
  16.  
  17. leg1 = Instance.new("Part") leg1.Size = Vector3.new(0,0,0) leg1.CanCollide = false
  18. leg1.Anchored = true
  19. local mesh = Instance.new("SpecialMesh",leg1) mesh.MeshId = "rbxassetid://1198394446" mesh.TextureId = "rbxassetid://1198391349" mesh.Scale = Vector3.new(0.01,0.01,0.01)
  20.  
  21. leg2 = Instance.new("Part") leg2.Size = Vector3.new(0,0,0) leg2.CanCollide = false
  22. leg2.Anchored = true
  23. local mesh = Instance.new("SpecialMesh",leg2) mesh.MeshId = "rbxassetid://1198393506" mesh.TextureId = "rbxassetid://1198391349" mesh.Scale = Vector3.new(0.02,0.02,0.02)
  24.  
  25. headd = Instance.new("Part") headd.Size = Vector3.new(1,1,1) headd.CanCollide = false
  26. local mesh = Instance.new("SpecialMesh",headd) mesh.Scale = Vector3.new(1.25,1.25,1.25) mesh.MeshType = Enum.MeshType.Head
  27. headd.BrickColor = BrickColor.new("Pastel brown")
  28.  
  29. game:GetService("RunService").RenderStepped:connect(function()
  30. for _,grow in pairs(growingList) do
  31. local cframe = grow.CFrame
  32. grow.Size = grow.Size+Vector3.new(1,1,1)
  33. grow.Transparency = grow.Transparency+0.04
  34. end
  35. for _,degrow in pairs(degrowingList) do
  36. local cframe = degrow.CFrame
  37. degrow.Size = degrow.Size-Vector3.new(1,1,1)
  38. degrow.Transparency = degrow.Transparency+0.04
  39. end
  40. end)
  41.  
  42.  
  43.  
  44.  
  45. Basesong = Instance.new("Sound")
  46.  
  47. hair = Instance.new("Part",game.Players.LocalPlayer.Character) hair.Size = Vector3.new(1,1,1) hair.CanCollide = false
  48.  
  49. beforesong = Basesong:Clone()
  50. beforesong.Parent = game.Players.LocalPlayer.Character
  51. beforesong.Looped = true
  52. beforesong.Volume = 3
  53. beforesong.SoundId = "rbxassetid://1100971847"
  54. beforesong:Play()
  55.  
  56. if game.Players.LocalPlayer.Character:FindFirstChild("Body Colors") then
  57. game.Players.LocalPlayer.Character["Body Colors"]:remove()
  58. end
  59. if game.Players.LocalPlayer.Character:FindFirstChild("Shirt Graphic") then
  60. game.Players.LocalPlayer.Character["Shirt Graphic"]:remove()
  61. end
  62. if game.Players.LocalPlayer.Character:FindFirstChild("Shirt") then
  63. game.Players.LocalPlayer.Character["Shirt"]:remove()
  64. end
  65. if game.Players.LocalPlayer.Character:FindFirstChild("Pants") then
  66. game.Players.LocalPlayer.Character["Pants"]:remove()
  67. end
  68. for i=1,5 do
  69. wait()
  70. for _,hat in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  71. if hat.ClassName == "Accessory" then
  72. hat:remove()
  73. end
  74. if hat:IsA("BasePart") then
  75. hat.BrickColor = BrickColor.new("Pastel brown")
  76. end
  77. end
  78. end
  79. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
  80. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0
  81.  
  82.  
  83. Basepart = Instance.new("Part")
  84.  
  85.  
  86. Baseparticle = Instance.new("ParticleEmitter")
  87. Basemesh = Instance.new("SpecialMesh")
  88. local mesh = Basemesh:Clone()
  89. mesh.Parent = hair
  90. mesh.MeshId = "rbxassetid://1143041061"
  91. Baseweld = Instance.new("Weld")
  92. local weld = Baseweld:Clone()
  93. weld.Part0 = hair
  94. weld.Part1 = game.Players.LocalPlayer.Character.Head
  95. hair.Color = Color3.fromRGB(153, 125, 61)
  96. weld.C0 = CFrame.new(0,-0.25,0)*CFrame.Angles(0,math.rad(180),0)
  97. weld.Parent = hair
  98.  
  99. shirt = Instance.new("Shirt",game.Players.LocalPlayer.Character)
  100. shirt.ShirtTemplate = "rbxassetid://804894303"
  101. pants = Instance.new("Pants",game.Players.LocalPlayer.Character)
  102. pants.PantsTemplate = "rbxassetid://189943600"
  103.  
  104. game.Players.LocalPlayer.Character.Head.face.Texture = "http://www.roblox.com/asset/?id=1142979747"
  105.  
  106. wait(1)
  107. game:GetService("Chat"):Chat(game.Players.LocalPlayer.Character.Head, "This can go two ways punk", "Green")
  108. wait(3)
  109. game:GetService("Chat"):Chat(game.Players.LocalPlayer.Character.Head, "You walk away", "Green")
  110. wait(3)
  111. game:GetService("Chat"):Chat(game.Players.LocalPlayer.Character.Head, "Or I walk in your, face.", "Green")
  112. wait(3)
  113.  
  114. local counter = 0
  115.  
  116. for i=1,200 do
  117. wait()
  118. counter = counter+1
  119. if counter > 2 then
  120. counter = 0
  121. local part = Basepart:Clone()
  122. part.Color = Color3.fromRGB(255,175,0)
  123. part.Shape = Enum.PartType.Cylinder
  124. part.Anchored = true
  125. part.CanCollide = false
  126. part.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  127. part.Parent = game.Workspace
  128. part.Material = Enum.Material.Neon
  129. part.Size = Vector3.new(1000000000,6,6)
  130.  
  131. game:GetService("Debris"):AddItem(part,1)
  132. table.insert(degrowingList,part)
  133. local part = Basepart:Clone()
  134. part.Color = Color3.fromRGB(255,175,0)
  135. part.Shape = Enum.PartType.Ball
  136. part.Anchored = true
  137. part.CanCollide = false
  138. part.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  139. part.Parent = game.Workspace
  140. part.Material = Enum.Material.Neon
  141. part.Size = Vector3.new(1,1,1)
  142. game:GetService("Debris"):AddItem(part,3)
  143. table.insert(growingList,part)
  144.  
  145. end
  146. for _,player in pairs(game.Workspace:GetChildren()) do
  147. if player:FindFirstChild("Humanoid") then
  148. player.Humanoid.CameraOffset = Vector3.new(math.random(-2,2),math.random(-2,2),0)
  149. end
  150. end
  151.  
  152. end
  153.  
  154. counter = counter+1
  155. for _,player in pairs(game.Workspace:GetChildren()) do
  156. if player:FindFirstChild("Humanoid") then
  157. player.Humanoid.CameraOffset = Vector3.new(0,0,0)
  158. end
  159.  
  160.  
  161. end
  162. local colorlist = {ColorSequenceKeypoint.new(0,Color3.fromRGB(0,255,255)),
  163. ColorSequenceKeypoint.new(0.148,Color3.fromRGB(0,255,255)),
  164. ColorSequenceKeypoint.new(0.193,Color3.fromRGB(72,0,255)),
  165. ColorSequenceKeypoint.new(0.366,Color3.fromRGB(72,0,255)),
  166. ColorSequenceKeypoint.new(0.4,Color3.fromRGB(0,255,255)),
  167. ColorSequenceKeypoint.new(0.63,Color3.fromRGB(0,255,255)),
  168. ColorSequenceKeypoint.new(0.8,Color3.fromRGB(72,0,255)),
  169. ColorSequenceKeypoint.new(1,Color3.fromRGB(0,0,255))
  170. }
  171. local uiParticle = Baseparticle:Clone()
  172. uiParticle.Color = ColorSequence.new(colorlist)
  173. uiParticle.LightEmission = 1
  174. uiParticle.Size = NumberSequence.new(0.8)
  175. uiParticle.LockedToPart = true
  176. uiParticle.Texture = "rbxassetid://1143059159"
  177. local transparencylist = { NumberSequenceKeypoint.new(0,1),
  178. NumberSequenceKeypoint.new(0.5,0.67),
  179. NumberSequenceKeypoint.new(1,1)
  180. }
  181.  
  182. uiParticle.Transparency = NumberSequence.new(transparencylist)
  183. uiParticle.ZOffset = -1
  184. uiParticle.LockedToPart = true
  185. uiParticle.Lifetime = NumberRange.new(0.05,0.05)
  186. uiParticle.Speed = NumberRange.new(0,0)
  187. uiParticle.Rate = math.huge
  188.  
  189. for _,hat in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  190.  
  191. if hat:IsA("BasePart") then
  192. if hat.Name ~= "Head" and hat.Name ~= "HumanoidRootPart" then
  193. uiParticle:Clone().Parent = hat
  194. end
  195. end
  196. end
  197.  
  198.  
  199.  
  200. beforesong:Stop()
  201. mainsong = Basesong:Clone()
  202. mainsong.Parent = game.Players.LocalPlayer.Character
  203. mainsong.Looped = true
  204. mainsong.Volume = 3
  205. mainsong.SoundId = "rbxassetid://1106602456"
  206. mainsong:Play()
  207.  
  208. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 80
  209. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 150
  210. game.Players.LocalPlayer.Character.Humanoid.Name = "LolFakeHumanoid"
  211.  
  212. afterimages = {}
  213.  
  214. game.Players.LocalPlayer.Character.Head.face:Clone().Parent = headd
  215.  
  216. game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(key)
  217.  
  218. end)
  219. amcounter = 0
  220.  
  221. local PhysicsService = game:GetService("PhysicsService")
  222.  
  223.  
  224.  
  225.  
  226. for _,part in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  227. if part:FindFirstChild("ParticleEmitter") then
  228. part.ParticleEmitter.Enabled = false
  229. end
  230. if part:IsA("BasePart") then
  231. part.Transparency = 1
  232. end
  233. end
  234. game.Players.LocalPlayer.Character.Head.face.Transparency = 1
  235.  
  236.  
  237.  
  238. game:GetService("RunService").RenderStepped:connect(function()
  239. for _,image in pairs(afterimages) do
  240. for _,part in pairs(image:GetChildren()) do
  241. if part:IsA("BasePart") then
  242. part.Transparency = part.Transparency+0.1
  243. if part:FindFirstChild("face") then
  244. part.face.Transparency = part.face.Transparency+0.1
  245. end
  246. if part.Transparency > 0.9 then
  247. image:remove()
  248. end
  249. end
  250. end
  251. end
  252.  
  253. local image = Instance.new("Model",game.Workspace)
  254. image.Name = "AfterImage"
  255.  
  256. local head = headd:Clone()
  257. head.CFrame = game.Players.LocalPlayer.Character.Head.CFrame
  258. local hairc = hair:Clone()
  259. head.Anchored = true
  260. head.Transparency = 0
  261. head.face.Transparency = 0
  262. hairc.Transparency = 0
  263. hairc.Anchored = true
  264. hairc.Weld:remove()
  265. head.Parent = image
  266. hairc.Parent = image
  267. local torsoc = torso:Clone()
  268. torsoc.Parent = image
  269. torsoc.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame*CFrame.Angles(0,math.rad(-180),0)
  270. local armc = arm:Clone()
  271. armc.Parent = image
  272. armc.CFrame = game.Players.LocalPlayer.Character["Right Arm"].CFrame*CFrame.Angles(0,math.rad(180),0)
  273. local armc = arm:Clone()
  274. armc.Parent = image
  275. armc.CFrame = game.Players.LocalPlayer.Character["Left Arm"].CFrame*CFrame.Angles(0,math.rad(180),0)
  276. local legc = leg1:Clone()
  277. legc.Parent = image
  278. legc.CFrame = game.Players.LocalPlayer.Character["Left Leg"].CFrame*CFrame.Angles(0,math.rad(-180),0)
  279. local legc = leg2:Clone()
  280. legc.Parent = image
  281. legc.CFrame = game.Players.LocalPlayer.Character["Right Leg"].CFrame*CFrame.Angles(0,math.rad(-180),0)
  282.  
  283. table.insert(afterimages,image)
  284.  
  285. game.Players.LocalPlayer.Character.Parent = game.Workspace.CurrentCamera
  286. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement