sIendytubble

become a oder or something avatar

May 13th, 2020
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.31 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 V2 by Mokiros")
  6. local RealPlayer = RealPlayer
  7. script.Parent = RealPlayer.Character
  8.  
  9. --Fake event to make stuff like Mouse.KeyDown work
  10. local Disconnect_Function = function(this)
  11. this[1].Functions[this[2]] = nil
  12. end
  13. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  14. local FakeEvent_Metatable = {__index={
  15. Connect = function(this,f)
  16. local i = tostring(math.random(0,10000))
  17. while this.Functions[i] do
  18. i = tostring(math.random(0,10000))
  19. end
  20. this.Functions[i] = f
  21. return setmetatable({this,i},Disconnect_Metatable)
  22. end
  23. }}
  24. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  25. local function fakeEvent()
  26. return setmetatable({Functions={}},FakeEvent_Metatable)
  27. end
  28.  
  29. --Creating fake input objects with fake variables
  30. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  31. FakeMouse.keyUp = FakeMouse.KeyUp
  32. FakeMouse.keyDown = FakeMouse.KeyDown
  33. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  34. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  35. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  36. end}
  37. --Merged 2 functions into one by checking amount of arguments
  38. CAS.UnbindAction = CAS.BindAction
  39.  
  40. --This function will trigger the events that have been :Connect()'ed
  41. local function TriggerEvent(self,ev,...)
  42. for _,f in pairs(self[ev].Functions) do
  43. f(...)
  44. end
  45. end
  46. FakeMouse.TriggerEvent = TriggerEvent
  47. UIS.TriggerEvent = TriggerEvent
  48.  
  49. --Client communication
  50. local Event = Instance.new("RemoteEvent")
  51. Event.Name = "UserInput_Event"
  52. Event.OnServerEvent:Connect(function(plr,io)
  53. if plr~=RealPlayer then return end
  54. FakeMouse.Target = io.Target
  55. FakeMouse.Hit = io.Hit
  56. if not io.isMouse then
  57. local b = io.UserInputState == Enum.UserInputState.Begin
  58. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  59. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  60. end
  61. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  62. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  63. end
  64. for _,t in pairs(CAS.Actions) do
  65. for _,k in pairs(t.Keys) do
  66. if k==io.KeyCode then
  67. t.Function(t.Name,io.UserInputState,io)
  68. end
  69. end
  70. end
  71. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  72. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  73. end
  74. end)
  75. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  76. local Mouse = owner:GetMouse()
  77. local UIS = game:GetService("UserInputService")
  78. local input = function(io,RobloxHandled)
  79. if RobloxHandled then return end
  80. --Since InputObject is a client-side instance, we create and pass table instead
  81. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  82. end
  83. UIS.InputBegan:Connect(input)
  84. UIS.InputEnded:Connect(input)
  85.  
  86. local h,t
  87. --Give the server mouse data every second frame, but only if the values changed
  88. --If player is not moving their mouse, client won't fire events
  89. local HB = game:GetService("RunService").Heartbeat
  90. while true do
  91. if h~=Mouse.Hit or t~=Mouse.Target then
  92. h,t=Mouse.Hit,Mouse.Target
  93. Event:FireServer({isMouse=true,Target=t,Hit=h})
  94. end
  95. --Wait 2 frames
  96. for i=1,2 do
  97. HB:Wait()
  98. end
  99. end]==],script)
  100.  
  101. ----Sandboxed game object that allows the usage of client-side methods and services
  102. --Real game object
  103. local RealGame = game
  104.  
  105. --Metatable for fake service
  106. local FakeService_Metatable = {
  107. __index = function(self,k)
  108. local s = rawget(self,"_RealService")
  109. if s then
  110. return typeof(s[k])=="function"
  111. and function(_,...)return s[k](s,...)end or s[k]
  112. end
  113. end,
  114. __newindex = function(self,k,v)
  115. local s = rawget(self,"_RealService")
  116. if s then s[k]=v end
  117. end
  118. }
  119. local function FakeService(t,RealService)
  120. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  121. return setmetatable(t,FakeService_Metatable)
  122. end
  123.  
  124. --Fake game object
  125. local FakeGame = {
  126. GetService = function(self,s)
  127. return rawget(self,s) or RealGame:GetService(s)
  128. end,
  129. Players = FakeService({
  130. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  131. },"Players"),
  132. UserInputService = FakeService(UIS,"UserInputService"),
  133. ContextActionService = FakeService(CAS,"ContextActionService"),
  134. RunService = FakeService({
  135. _btrs = {},
  136. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  137. BindToRenderStep = function(self,name,_,fun)
  138. self._btrs[name] = self.Heartbeat:Connect(fun)
  139. end,
  140. UnbindFromRenderStep = function(self,name)
  141. self._btrs[name]:Disconnect()
  142. end,
  143. },"RunService")
  144. }
  145. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  146. FakeGame.service = FakeGame.GetService
  147. FakeService(FakeGame,game)
  148. --Changing owner to fake player object to support owner:GetMouse()
  149. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  150. end
  151. corl = owner
  152. mouse = corl:GetMouse()
  153. char = corl.Character
  154. mas = char
  155. mas2 = char.Head
  156. Figure = char
  157. local head = char:WaitForChild("Head")
  158. local Torso = char:WaitForChild("Torso")
  159. local LArm = char:WaitForChild("Left Arm")
  160. local RArm = char:WaitForChild("Right Arm")
  161. local LLeg = char:WaitForChild("Left Leg")
  162. local RLeg = char:WaitForChild("Right Leg")
  163. local humanoid = char:WaitForChild("Humanoid")
  164. local rootpart = char:WaitForChild("HumanoidRootPart")
  165. for i,v in pairs(char:GetChildren()) do
  166. if v.ClassName ~= "Humanoid" and v.ClassName ~= "Tool" and v.ClassName ~= "Part" and v.ClassName ~= "LocalScript" and v.ClassName ~= "Script" then
  167. v.Parent = nil
  168. end
  169. end
  170. for i,v in pairs(char.Head:GetChildren()) do
  171. v.Parent = nil
  172. end
  173. mas = char
  174. BodyColors0 = Instance.new("BodyColors")
  175. Pants1 = Instance.new("Pants")
  176. Shirt2 = Instance.new("Shirt")
  177. Accessory3 = Instance.new("Accessory")
  178. Part4 = Instance.new("Part")
  179. SpecialMesh5 = Instance.new("SpecialMesh")
  180. Vector3Value6 = Instance.new("Vector3Value")
  181. Accessory7 = Instance.new("Accessory")
  182. Part8 = Instance.new("Part")
  183. SpecialMesh9 = Instance.new("SpecialMesh")
  184. Vector3Value10 = Instance.new("Vector3Value")
  185. Accessory11 = Instance.new("Accessory")
  186. Part12 = Instance.new("Part")
  187. SpecialMesh13 = Instance.new("SpecialMesh")
  188. Vector3Value14 = Instance.new("Vector3Value")
  189. Accessory15 = Instance.new("Accessory")
  190. Part16 = Instance.new("Part")
  191. SpecialMesh17 = Instance.new("SpecialMesh")
  192. Vector3Value18 = Instance.new("Vector3Value")
  193. Camera19 = Instance.new("Camera")
  194. Accessory20 = Instance.new("Accessory")
  195. Part21 = Instance.new("Part")
  196. SpecialMesh22 = Instance.new("SpecialMesh")
  197. Vector3Value23 = Instance.new("Vector3Value")
  198. CharacterMesh24 = Instance.new("CharacterMesh")
  199. CharacterMesh25 = Instance.new("CharacterMesh")
  200. CharacterMesh26 = Instance.new("CharacterMesh")
  201. CharacterMesh27 = Instance.new("CharacterMesh")
  202. CharacterMesh28 = Instance.new("CharacterMesh")
  203. BodyColors0.Parent = mas
  204. BodyColors0.HeadColor = BrickColor.new("Light orange")
  205. BodyColors0.HeadColor3 = Color3.new(0.917647, 0.721569, 0.572549)
  206. BodyColors0.LeftArmColor = BrickColor.new("Light orange")
  207. BodyColors0.LeftArmColor3 = Color3.new(0.917647, 0.721569, 0.572549)
  208. BodyColors0.LeftLegColor = BrickColor.new("Light orange")
  209. BodyColors0.LeftLegColor3 = Color3.new(0.917647, 0.721569, 0.572549)
  210. BodyColors0.RightArmColor = BrickColor.new("Light orange")
  211. BodyColors0.RightArmColor3 = Color3.new(0.917647, 0.721569, 0.572549)
  212. BodyColors0.RightLegColor = BrickColor.new("Light orange")
  213. BodyColors0.RightLegColor3 = Color3.new(0.917647, 0.721569, 0.572549)
  214. BodyColors0.TorsoColor = BrickColor.new("Light orange")
  215. BodyColors0.TorsoColor3 = Color3.new(0.917647, 0.721569, 0.572549)
  216. Pants1.Name = "Pants"
  217. Pants1.Parent = mas
  218. Pants1.PantsTemplate = "http://www.roblox.com/asset/?id=454842607"
  219. Shirt2.Name = "Shirt"
  220. Shirt2.Parent = mas
  221. Shirt2.ShirtTemplate = "http://www.roblox.com/asset/?id=546456982"
  222. Accessory3.Name = "BlackCircles"
  223. Accessory3.Parent = mas
  224. Accessory3.AttachmentPoint = CFrame.new(0, -0.25, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  225. Accessory3.AttachmentPos = Vector3.new(0, -0.25, 0)
  226. Part4.Name = "Handle"
  227. Part4.Parent = Accessory3
  228. Part4.CFrame = CFrame.new(30.8596439, 35.5824966, -70.7954941, 1, -7.87137555e-09, 0, 7.87137555e-09, 1, 4.1444221e-16, -3.26223034e-24, -4.1444221e-16, 1)
  229. Part4.Position = Vector3.new(30.8596439, 35.5824966, -70.7954941)
  230. Part4.Size = Vector3.new(1, 1.60000002, 1)
  231. Part4.BottomSurface = Enum.SurfaceType.Smooth
  232. Part4.CanCollide = false
  233. Part4.Locked = true
  234. Part4.TopSurface = Enum.SurfaceType.Smooth
  235. Part4.FormFactor = Enum.FormFactor.Plate
  236. Part4.formFactor = Enum.FormFactor.Plate
  237. SpecialMesh5.Parent = Part4
  238. SpecialMesh5.MeshId = "http://www.roblox.com/asset/?id=1095510"
  239. SpecialMesh5.TextureId = "http://www.roblox.com/asset/?id=1095511"
  240. SpecialMesh5.MeshType = Enum.MeshType.FileMesh
  241. Vector3Value6.Name = "OriginalSize"
  242. Vector3Value6.Parent = Part4
  243. Vector3Value6.Value = Vector3.new(1, 1.60000002, 1)
  244. Accessory7.Name = "Dust Mask"
  245. Accessory7.Parent = mas
  246. Accessory7.AttachmentPoint = CFrame.new(0, 0.5, 0.100000001, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  247. Accessory7.AttachmentPos = Vector3.new(0, 0.5, 0.100000001)
  248. Part8.Name = "Handle"
  249. Part8.Parent = Accessory7
  250. Part8.CFrame = CFrame.new(30.8596439, 34.8324966, -70.8955002, 1, -7.87137555e-09, 0, 7.87137555e-09, 1, 4.1444221e-16, -3.26223034e-24, -4.1444221e-16, 1)
  251. Part8.Position = Vector3.new(30.8596439, 34.8324966, -70.8955002)
  252. Part8.Size = Vector3.new(1, 0.800000012, 1)
  253. Part8.BottomSurface = Enum.SurfaceType.Smooth
  254. Part8.CanCollide = false
  255. Part8.Locked = true
  256. Part8.TopSurface = Enum.SurfaceType.Smooth
  257. Part8.FormFactor = Enum.FormFactor.Plate
  258. Part8.formFactor = Enum.FormFactor.Plate
  259. SpecialMesh9.Parent = Part8
  260. SpecialMesh9.MeshId = "http://www.roblox.com/asset/?id=20928923"
  261. SpecialMesh9.Scale = Vector3.new(1, 1, 1.04999995)
  262. SpecialMesh9.TextureId = "http://www.roblox.com/asset/?id=20928919"
  263. SpecialMesh9.MeshType = Enum.MeshType.FileMesh
  264. Vector3Value10.Name = "OriginalSize"
  265. Vector3Value10.Parent = Part8
  266. Vector3Value10.Value = Vector3.new(1, 0.800000012, 1)
  267. Accessory11.Name = "HolidayReefCrown"
  268. Accessory11.Parent = mas
  269. Part12.Name = "Handle"
  270. Part12.Parent = Accessory11
  271. Part12.CFrame = CFrame.new(30.8596439, 35.3324966, -70.7954941, 1, -7.87137555e-09, 0, 7.87137555e-09, 1, 4.1444221e-16, -3.26223034e-24, -4.1444221e-16, 1)
  272. Part12.Position = Vector3.new(30.8596439, 35.3324966, -70.7954941)
  273. Part12.Size = Vector3.new(1.89999771, 0.599999845, 2.00000024)
  274. Part12.BottomSurface = Enum.SurfaceType.Smooth
  275. Part12.CanCollide = false
  276. Part12.Locked = true
  277. Part12.TopSurface = Enum.SurfaceType.Smooth
  278. Part12.FormFactor = Enum.FormFactor.Custom
  279. Part12.formFactor = Enum.FormFactor.Custom
  280. SpecialMesh13.Parent = Part12
  281. SpecialMesh13.MeshId = "http://www.roblox.com/asset/?id=138937497"
  282. SpecialMesh13.Scale = Vector3.new(0.75, 0.75, 0.75)
  283. SpecialMesh13.TextureId = "http://www.roblox.com/asset/?id=138937524 "
  284. SpecialMesh13.MeshType = Enum.MeshType.FileMesh
  285. Vector3Value14.Name = "OriginalSize"
  286. Vector3Value14.Parent = Part12
  287. Vector3Value14.Value = Vector3.new(1.89999771, 0.599999845, 2.00000024)
  288. Accessory15.Name = "ImASpyCap"
  289. Accessory15.Parent = mas
  290. Accessory15.AttachmentPoint = CFrame.new(0, -0.0500000007, 0.25, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  291. Accessory15.AttachmentPos = Vector3.new(0, -0.0500000007, 0.25)
  292. Part16.Name = "Handle"
  293. Part16.Parent = Accessory15
  294. Part16.CFrame = CFrame.new(30.8596439, 35.3824959, -71.0454941, 1, -7.87137555e-09, 0, 7.87137555e-09, 1, 4.1444221e-16, -3.26223034e-24, -4.1444221e-16, 1)
  295. Part16.Position = Vector3.new(30.8596439, 35.3824959, -71.0454941)
  296. Part16.Size = Vector3.new(1, 1.51999998, 1)
  297. Part16.BottomSurface = Enum.SurfaceType.Smooth
  298. Part16.CanCollide = false
  299. Part16.Locked = true
  300. Part16.TopSurface = Enum.SurfaceType.Smooth
  301. Part16.FormFactor = Enum.FormFactor.Symmetric
  302. Part16.formFactor = Enum.FormFactor.Symmetric
  303. SpecialMesh17.Parent = Part16
  304. SpecialMesh17.MeshId = "http://www.roblox.com/asset/?id=276974287"
  305. SpecialMesh17.Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995)
  306. SpecialMesh17.TextureId = "http://www.roblox.com/asset/?id=276974480"
  307. SpecialMesh17.MeshType = Enum.MeshType.FileMesh
  308. Vector3Value18.Name = "OriginalSize"
  309. Vector3Value18.Parent = Part16
  310. Vector3Value18.Value = Vector3.new(1, 1.51999998, 1)
  311. Camera19.Name = "ThumbnailCamera"
  312. Camera19.Parent = Accessory15
  313. Camera19.CFrame = CFrame.new(-3.8269012, 4.72886562, -4.90989113, 0.673442185, 0.129288942, -0.727846146, -0, 0.984587193, 0.174894422, 0.739239931, -0.117781281, 0.663062513)
  314. Camera19.CoordinateFrame = CFrame.new(-3.8269012, 4.72886562, -4.90989113, 0.673442185, 0.129288942, -0.727846146, -0, 0.984587193, 0.174894422, 0.739239931, -0.117781281, 0.663062513)
  315. Camera19.Focus = CFrame.new(-2.37120771, 4.37907648, -6.23601723, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  316. Camera19.focus = CFrame.new(-2.37120771, 4.37907648, -6.23601723, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  317. Accessory20.Name = "LongHairHeadBand Black"
  318. Accessory20.Parent = mas
  319. Accessory20.AttachmentForward = Vector3.new(-0, -0.0995037183, -0.995037198)
  320. Accessory20.AttachmentPoint = CFrame.new(0, 0.899999976, 0, 1, 0, 0, 0, 0.995037198, 0.0995037183, 0, -0.0995037183, 0.995037198)
  321. Accessory20.AttachmentPos = Vector3.new(0, 0.899999976, 0)
  322. Accessory20.AttachmentUp = Vector3.new(0, 0.995037198, -0.0995037183)
  323. Part21.Name = "Handle"
  324. Part21.Parent = Accessory20
  325. Part21.CFrame = CFrame.new(30.8596439, 34.4369621, -70.8850479, 1, -7.83231258e-09, 7.83188625e-10, 7.87137289e-09, 0.995037198, -0.0995037183, 4.24105195e-14, 0.0995037183, 0.995037198)
  326. Part21.Orientation = Vector3.new(5.71000004, 0, 0)
  327. Part21.Position = Vector3.new(30.8596439, 34.4369621, -70.8850479)
  328. Part21.Rotation = Vector3.new(5.71000004, 0, 0)
  329. Part21.Size = Vector3.new(1, 2.4000001, 2)
  330. Part21.BottomSurface = Enum.SurfaceType.Smooth
  331. Part21.CanCollide = false
  332. Part21.Locked = true
  333. Part21.TopSurface = Enum.SurfaceType.Smooth
  334. Part21.FormFactor = Enum.FormFactor.Plate
  335. Part21.formFactor = Enum.FormFactor.Plate
  336. SpecialMesh22.Parent = Part21
  337. SpecialMesh22.MeshId = "http://www.roblox.com/asset/?id=13070796"
  338. SpecialMesh22.TextureId = "http://www.roblox.com/asset/?id=14765363"
  339. SpecialMesh22.MeshType = Enum.MeshType.FileMesh
  340. Vector3Value23.Name = "OriginalSize"
  341. Vector3Value23.Parent = Part21
  342. Vector3Value23.Value = Vector3.new(1, 2.4000001, 2)
  343. CharacterMesh24.Parent = mas
  344. CharacterMesh24.BodyPart = Enum.BodyPart.RightLeg
  345. CharacterMesh24.MeshId = 27111882
  346. CharacterMesh25.Parent = mas
  347. CharacterMesh25.BodyPart = Enum.BodyPart.Torso
  348. CharacterMesh25.MeshId = 27111894
  349. CharacterMesh26.Parent = mas
  350. CharacterMesh26.BodyPart = Enum.BodyPart.LeftLeg
  351. CharacterMesh26.MeshId = 27111857
  352. CharacterMesh27.Parent = mas
  353. CharacterMesh27.BodyPart = Enum.BodyPart.LeftArm
  354. CharacterMesh27.MeshId = 27111419
  355. CharacterMesh28.Name = "Roblox 2.0 Right Arm"
  356. CharacterMesh28.Parent = mas
  357. CharacterMesh28.BodyPart = Enum.BodyPart.RightArm
  358. CharacterMesh28.MeshId = 27111864
  359. SpecialMesh0 = Instance.new("SpecialMesh")
  360. Decal1 = Instance.new("Decal")
  361. SpecialMesh0.Parent = head
  362. SpecialMesh0.Scale = Vector3.new(1.25, 1.25, 1.25)
  363. Decal1.Name = "face"
  364. Decal1.Parent = head
  365. Decal1.Texture = "http://www.roblox.com/asset/?id=26424652"
Add Comment
Please, Sign In to add comment