Hugo1234cool

Untitled

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