Advertisement
Hugo1234cool

Untitled

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