Advertisement
DarkScriptZEditors

OH WHA TE

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