Advertisement
subaru112g

fe hidden script

Jan 10th, 2019
384
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.46 KB | None | 0 0
  1. owner.Character.Head.face.Texture = ""
  2. owner.Character["Body Colors"]:Destroy()
  3. owner.Character.Humanoid.WalkSpeed = 30
  4. wait(0.1)
  5. for i,v in pairs(owner.Character:GetChildren()) do
  6. if v.ClassName == "CharacterMesh" then
  7. v:Destroy()
  8. end
  9.  
  10. if v.ClassName == "Shirt" then
  11. v:Destroy()
  12. end
  13.  
  14. if v.ClassName == "Part" then
  15. if not(v.Name == "HumanoidRootPart") then
  16. v.BrickColor = BrickColor.new("Really black")
  17. v.Transparency = 0.982
  18. if v.Name == "Head" then
  19. local new = Instance.new("Part", owner.Character)
  20. new.BrickColor = BrickColor.new("Really black")
  21. new.Name = "fakehead"
  22. new.Size = v.Size
  23. local mesh = v.Mesh:Clone()
  24. mesh.Parent = new
  25. new.Transparency = 0.982
  26. v.Transparency = 1
  27. local wel = Instance.new("Weld", owner.Character)
  28. wel.Part0 = v
  29. wel.Part1 = new
  30. end
  31. end
  32. end
  33.  
  34. if v.ClassName == "MeshPart" then
  35. v.BrickColor = BrickColor.new("Really black")
  36. v.Transparency = 0.982
  37. end
  38.  
  39. if v.ClassName == "Pants" then
  40. v:Destroy()
  41. end
  42.  
  43. if v.ClassName == "ShirtGraphic" then
  44. v:Destroy()
  45. end
  46.  
  47. if v.ClassName == "Accessory" then
  48. v:Destroy()
  49. end
  50.  
  51. if v.ClassName == "Hat" then
  52. v:Destroy()
  53. end
  54.  
  55. end
  56.  
  57.  
  58.  
  59. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  60. local Player,game,owner = owner,game
  61. local RealPlayer = Player
  62. do
  63. print("FE Compatibility code by Mokiros")
  64. local rp = RealPlayer
  65. script.Parent = rp.Character
  66.  
  67. --RemoteEvent for communicating
  68. local Event = Instance.new("RemoteEvent")
  69. Event.Name = "UserInput_Event"
  70.  
  71. --Fake event to make stuff like Mouse.KeyDown work
  72. local function fakeEvent()
  73. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  74. t.connect = t.Connect
  75. return t
  76. end
  77.  
  78. --Creating fake input objects with fake variables
  79. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  80. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  81. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  82. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  83. end}
  84. --Merged 2 functions into one by checking amount of arguments
  85. CAS.UnbindAction = CAS.BindAction
  86.  
  87. --This function will trigger the events that have been :Connect()'ed
  88. local function te(self,ev,...)
  89. local t = m[ev]
  90. if t and t._fakeEvent then
  91. for _,f in pairs(t.Functions) do
  92. f(...)
  93. end
  94. end
  95. end
  96. m.TrigEvent = te
  97. UIS.TrigEvent = te
  98.  
  99. Event.OnServerEvent:Connect(function(plr,io)
  100. if plr~=rp then return end
  101. m.Target = io.Target
  102. m.Hit = io.Hit
  103. if not io.isMouse then
  104. local b = io.UserInputState == Enum.UserInputState.Begin
  105. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  106. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  107. end
  108. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  109. return m:TrigEvent(b and "Button2Down" or "Button2Up")
  110. end
  111. for _,t in pairs(CAS.Actions) do
  112. for _,k in pairs(t.Keys) do
  113. if k==io.KeyCode then
  114. t.Function(t.Name,io.UserInputState,io)
  115. end
  116. end
  117. end
  118. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  119. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  120. end
  121. end)
  122. Event.Parent = NLS([==[
  123. local Player = game:GetService("Players").LocalPlayer
  124. local Event = script:WaitForChild("UserInput_Event")
  125. local Mouse = Player:GetMouse()
  126. local UIS = game:GetService("UserInputService")
  127. local input = function(io,a)
  128. if a then return end
  129. --Since InputObject is a client-side instance, we create and pass table instead
  130. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  131. end
  132. UIS.InputBegan:Connect(input)
  133. UIS.InputEnded:Connect(input)
  134. local h,t
  135. --Give the server mouse data 30 times every second, but only if the values changed
  136. --If player is not moving their mouse, client won't fire events
  137. while wait(1/30) do
  138. if h~=Mouse.Hit or t~=Mouse.Target then
  139. h,t=Mouse.Hit,Mouse.Target
  140. Event:FireServer({isMouse=true,Target=t,Hit=h})
  141. end
  142. end]==],Player.Character)
  143.  
  144. ----Sandboxed game object that allows the usage of client-side methods and services
  145. --Real game object
  146. local _rg = game
  147.  
  148. --Metatable for fake service
  149. local fsmt = {
  150. __index = function(self,k)
  151. local s = rawget(self,"_RealService")
  152. if s then
  153. return typeof(s[k])=="function"
  154. and function(_,...)return s[k](s,...)end or s[k]
  155. end
  156. end,
  157. __newindex = function(self,k,v)
  158. local s = rawget(self,"_RealService")
  159. if s then s[k]=v end
  160. end
  161. }
  162. local function FakeService(t,RealService)
  163. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  164. return setmetatable(t,fsmt)
  165. end
  166.  
  167. --Fake game object
  168. local g = {
  169. GetService = function(self,s)
  170. return rawget(self,s) or _rg:GetService(s)
  171. end,
  172. Players = FakeService({
  173. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  174. },"Players"),
  175. UserInputService = FakeService(UIS,"UserInputService"),
  176. ContextActionService = FakeService(CAS,"ContextActionService"),
  177. RunService = FakeService({
  178. _btrs = {},
  179. RenderStepped = _rg:GetService("RunService").Heartbeat,
  180. BindToRenderStep = function(self,name,_,fun)
  181. self._btrs[name] = self.Heartbeat:Connect(fun)
  182. end,
  183. UnbindFromRenderStep = function(self,name)
  184. self._btrs[name]:Disconnect()
  185. end,
  186. },"RunService")
  187. }
  188. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  189. g.service = g.GetService
  190. FakeService(g,game)
  191. --Changing owner to fake player object to support owner:GetMouse()
  192. game,owner = g,g.Players.LocalPlayer
  193. end
  194. script.Parent = workspace.CurrentCamera
  195. local plr = game:GetService("Players").LocalPlayer
  196.  
  197. local tool = Instance.new("Tool",plr:WaitForChild("Backpack"))
  198. tool.GripUp = Vector3.new(0, 1, 0)
  199. tool.GripPos = Vector3.new(0, -0.8, 0)
  200. tool.Name = "bluE"
  201.  
  202. local part = Instance.new("Part",tool)
  203. part.Name = "Handle"
  204. part.Size = Vector3.new(4,6,4)
  205. part.TopSurface = "Smooth"
  206. part.BottomSurface = "Smooth"
  207. part.CanCollide = false
  208. part:BreakJoints()
  209.  
  210. local mesh = Instance.new("SpecialMesh",part)
  211. mesh.MeshId = "rbxassetid://121944778" --mesh.MeshId = "http://www.roblox.com/asset/?id=121944778"
  212. mesh.TextureId = "rbxassetid://121944805" --"http://www.roblox.com/asset/?id=121944805"
  213. mesh.Scale = Vector3.new(1,1,1)
  214.  
  215. local sound = Instance.new("Sound",part)
  216. sound.SoundId = "rbxassetid://186311262"
  217. sound.Volume = 10
  218.  
  219. local sound2 = Instance.new("Sound",part)
  220. sound2.SoundId = ""
  221. sound2.Volume = 5
  222.  
  223. local sound3 = Instance.new("Sound",part)
  224. sound3.SoundId = ""
  225. sound3.Volume = 10
  226.  
  227. local sound4 = Instance.new("Sound",part)
  228. sound4.SoundId = ""
  229. sound4.Volume = 10
  230.  
  231. local sound5 = Instance.new("Sound",part)
  232. sound5.SoundId = ""
  233. sound5.Volume = 10
  234.  
  235. local sound6 = Instance.new("Sound",part)
  236. sound6.SoundId = ""
  237. sound6.Volume = 10
  238. sound6.TimePosition = 2
  239.  
  240. function firstHum(target)
  241. for i,v in pairs(target:GetChildren()) do
  242. if v:IsA("Humanoid") then
  243. return v
  244. end
  245. end
  246. return nil
  247. end
  248.  
  249. local slap = false
  250. local cd = false
  251.  
  252. plr:GetMouse().Button1Down:connect(function()
  253. if tool.Parent == plr.Character then
  254. if slap == false then
  255. slap = true
  256. sound2:Play()
  257. local str = Instance.new("StringValue")
  258. str.Name = "toolanim"
  259. str.Value = "Slash"
  260. str.Parent = tool
  261. wait(1)
  262. slap = false
  263. end
  264. end
  265. end)
  266.  
  267. part.Touched:connect(function(hit)
  268. if slap == true then
  269. if cd == false then
  270. wait(0.1)
  271. if not hit:IsDescendantOf(plr.Character) then
  272. if hit.Parent:IsA("Model") then
  273. local fhum = firstHum(hit.Parent)
  274. if fhum then
  275. cd = true
  276. fhum.PlatformStand = true
  277. sound:Play()
  278. local con1
  279. con1 = game:GetService("RunService").Heartbeat:connect(function()
  280. fhum.PlatformStand = true
  281. end)
  282. wait(0.1)
  283.  
  284. if fhum.RigType == Enum.HumanoidRigType.R6 then
  285.  
  286. for i,v in pairs(fhum.Parent:GetChildren()) do
  287. if v.Name == "lol" then
  288. v:Destroy()
  289. end
  290.  
  291. if v.ClassName == "Glue" then
  292. v:Destroy()
  293. end
  294.  
  295. end
  296.  
  297. fhum.Parent.Torso["Left Hip"].Part1 = nil
  298. fhum.Parent.Torso["Left Shoulder"].Part1 = nil
  299. fhum.Parent.Torso["Right Hip"].Part1 = nil
  300. fhum.Parent.Torso["Right Shoulder"].Part1 = nil
  301.  
  302. local c1 = Instance.new("Part", fhum.Parent)
  303. c1.Size = Vector3.new(1, 1 , 1)
  304. c1.Transparency = 1
  305. c1.Name = "lol"
  306. local c2 = Instance.new("Part", fhum.Parent)
  307. c2.Size = Vector3.new(1, 1 , 1)
  308. c2.Transparency = 1
  309. c2.Name = "lol"
  310. local c3 = Instance.new("Part", fhum.Parent)
  311. c3.Size = Vector3.new(1, 1 , 1)
  312. c3.Transparency = 1
  313. c3.Name = "lol"
  314. local c4 = Instance.new("Part", fhum.Parent)
  315. c4.Size = Vector3.new(1, 1 , 1)
  316. c4.Transparency = 1
  317. c4.Name = "lol"
  318.  
  319.  
  320. local weld1 = Instance.new("Weld", fhum.Parent)
  321. weld1.Part0 = fhum.Parent["Left Arm"]
  322. weld1.Part1 = c1
  323.  
  324. local weld2 = Instance.new("Weld", fhum.Parent)
  325. weld2.Part0 = fhum.Parent["Left Leg"]
  326. weld2.Part1 = c2
  327.  
  328. local weld3 = Instance.new("Weld", fhum.Parent)
  329. weld3.Part0 = fhum.Parent["Right Arm"]
  330. weld3.Part1 = c3
  331.  
  332. local weld4 = Instance.new("Weld", fhum.Parent)
  333. weld4.Part0 = fhum.Parent["Right Leg"]
  334. weld4.Part1 = c4
  335.  
  336. local j1 = Instance.new("Glue", fhum.Parent)
  337. j1.Part0 = fhum.Parent.Torso
  338. j1.Part1 = fhum.Parent["Right Arm"]
  339. j1.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  340. j1.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  341.  
  342. local j2 = Instance.new("Glue", fhum.Parent)
  343. j2.Part0 = fhum.Parent.Torso
  344. j2.Part1 = fhum.Parent["Right Leg"]
  345. j2.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  346. j2.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  347.  
  348. local j3 = Instance.new("Glue", fhum.Parent)
  349. j3.Part0 = fhum.Parent.Torso
  350. j3.Part1 = fhum.Parent["Left Arm"]
  351. j3.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  352. j3.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  353.  
  354. local j4 = Instance.new("Glue", fhum.Parent)
  355. j4.Part0 = fhum.Parent.Torso
  356. j4.Part1 = fhum.Parent["Left Leg"]
  357. j4.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  358. j4.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  359. wait(1)
  360. fhum:Destroy()
  361. end
  362.  
  363. if fhum.RigType == Enum.HumanoidRigType.R15 then
  364.  
  365. for i,v in pairs(fhum.Parent:GetChildren()) do
  366. if v.Name == "lol" then
  367. v:Destroy()
  368. end
  369.  
  370. if v.ClassName == "Glue" then
  371. v:Destroy()
  372. end
  373.  
  374. end
  375.  
  376. fhum.Parent.LeftUpperLeg.LeftHip.Part1 = nil
  377. fhum.Parent.LeftUpperArm.LeftShoulder.Part1 = nil
  378. fhum.Parent.RightUpperLeg.RightHip.Part1 = nil
  379. fhum.Parent.RightUpperArm.RightShoulder.Part1 = nil
  380.  
  381. local c1 = Instance.new("Part", fhum.Parent)
  382. c1.Size = Vector3.new(1, 1 , 1)
  383. c1.Transparency = 1
  384. c1.Name = "lol"
  385. local c2 = Instance.new("Part", fhum.Parent)
  386. c2.Size = Vector3.new(1, 1 , 1)
  387. c2.Transparency = 1
  388. c2.Name = "lol"
  389. local c3 = Instance.new("Part", fhum.Parent)
  390. c3.Size = Vector3.new(1, 1 , 1)
  391. c3.Transparency = 1
  392. c3.Name = "lol"
  393. local c4 = Instance.new("Part", fhum.Parent)
  394. c4.Size = Vector3.new(1, 1 , 1)
  395. c4.Transparency = 1
  396. c4.Name = "lol"
  397.  
  398.  
  399. local weld1 = Instance.new("Weld", fhum.Parent)
  400. weld1.Part0 = fhum.Parent.LeftLowerArm
  401. weld1.Part1 = c1
  402.  
  403. local weld2 = Instance.new("Weld", fhum.Parent)
  404. weld2.Part0 = fhum.Parent.LeftLowerLeg
  405. weld2.Part1 = c2
  406.  
  407. local weld3 = Instance.new("Weld", fhum.Parent)
  408. weld3.Part0 = fhum.Parent.RightLowerArm
  409. weld3.Part1 = c3
  410.  
  411. local weld4 = Instance.new("Weld", fhum.Parent)
  412. weld4.Part0 = fhum.Parent.RightLowerLeg
  413. weld4.Part1 = c4
  414.  
  415. local j1 = Instance.new("Glue", fhum.Parent)
  416. j1.Part0 = fhum.Parent. UpperTorso
  417. j1.Part1 = fhum.Parent.RightUpperArm
  418. j1.C0 = fhum.Parent.RightUpperArm.RightShoulder.C0
  419. j1.C1 = fhum.Parent.RightUpperArm.RightShoulder.C1
  420.  
  421. local j2 = Instance.new("Glue", fhum.Parent)
  422. j2.Part0 = fhum.Parent.LowerTorso
  423. j2.Part1 = fhum.Parent.RightUpperLeg
  424. j2.C0 = fhum.Parent.RightUpperLeg.RightHip.C0
  425. j2.C1 = fhum.Parent.RightUpperLeg.RightHip.C1
  426.  
  427. local j3 = Instance.new("Glue", fhum.Parent)
  428. j3.Part0 = fhum.Parent.UpperTorso
  429. j3.Part1 = fhum.Parent.LeftUpperArm
  430. j3.C0 = fhum.Parent.LeftUpperArm.LeftShoulder.C0
  431. j3.C1 = fhum.Parent.LeftUpperArm.LeftShoulder.C1
  432.  
  433. local j4 = Instance.new("Glue", fhum.Parent)
  434. j4.Part0 = fhum.Parent.LowerTorso
  435. j4.Part1 = fhum.Parent.LeftUpperLeg
  436. j4.C0 = fhum.Parent.LeftUpperLeg.LeftHip.C0
  437. j1.C1 = fhum.Parent.LeftUpperLeg.LeftHip.C1
  438. wait(0.0000000000000000001)
  439. fhum:Destroy()
  440. end
  441.  
  442. wait(1)
  443. cd = false
  444. end
  445. end
  446. end
  447. end
  448. end
  449. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement