Advertisement
voidman

Untitled

Dec 28th, 2018
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.10 KB | None | 0 0
  1. --]]
  2. --https://github.com/Mokiros/roblox-FE-compatibility
  3. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  4. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  5. local RealPlayer = Player
  6. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  7. wait(0.2)
  8. plr = game.Players.Always_Entertaining
  9. chr = plr.Character
  10. Head = chr.Head
  11. Root = chr.HumanoidRootPart
  12. Torso = chr.Torso
  13. RArm = chr["Right Arm"]
  14. LArm = chr["Left Arm"]
  15. RLeg = chr["Right Leg"]
  16. LLeg = chr["Left Leg"]
  17. RJ = Root.RootJoint
  18. Neck = Torso.Neck
  19. LS = Torso["Left Shoulder"]
  20. LH = Torso["Left Hip"]
  21. RS = Torso["Right Shoulder"]
  22. RH = Torso["Right Hip"]
  23. hum = chr:FindFirstChildOfClass("Humanoid")
  24. mouse = plr:GetMouse()
  25. Pose = "Idle"
  26. attack = false
  27. combo = 1
  28. sin = 0
  29. cha = 1
  30. ea = false
  31. coloriz = 1
  32. color = "Institutional white"
  33. color2 = "Really black"
  34. create = LoadLibrary("RbxUtility").Create
  35. chr.Animate:Remove()
  36. hum.Animator:Remove()
  37. function clerp(a, b, t)
  38. return a:lerp(b, t)
  39. end
  40. local newMotor = function(p0, p1, c0, c1)
  41. local w = Instance.new("Motor", p0)
  42. w.Part0 = p0
  43. w.Part1 = p1
  44. w.C0 = c0
  45. w.C1 = c1
  46. return w
  47. end
  48. RJ.C0, RJ.C1 = CFrame.new(0, 0, 0), CFrame.new(0, 0, 0)
  49. Neck.C0, Neck.C1 = CFrame.new(0, 1.5, 0), CFrame.new(0, 0, 0)
  50. local RS = newMotor(Torso, RArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  51. local LS = newMotor(Torso, LArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  52. local RH = newMotor(Torso, RLeg, CFrame.new(0.5, -2, 0), CFrame.new(0, 0, 0))
  53. local LH = newMotor(Torso, LLeg, CFrame.new(-0.5, -2, 0), CFrame.new(0, 0, 0))
  54. function NoOutline(Part)
  55. Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
  56. end
  57. function rayCast(Position, Direction, Range, Ignore)
  58. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  59. end
  60. ArtificialHB = create("BindableEvent")({Parent = script, Name = "Heartbeat"})
  61. script:WaitForChild("Heartbeat")
  62. frame = 0.016666666666666666
  63. tf = 0
  64. allowframeloss = false
  65. tossremainder = false
  66. lastframe = tick()
  67. script.Heartbeat:Fire()
  68. game:GetService("RunService").Heartbeat:connect(function(s, p)
  69. tf = tf + s
  70. if tf >= frame then
  71. if allowframeloss then
  72. script.Heartbeat:Fire()
  73. lastframe = tick()
  74. else
  75. for i = 1, math.floor(tf / frame) do
  76. script.Heartbeat:Fire()
  77. end
  78. lastframe = tick()
  79. end
  80. if tossremainder then
  81. tf = 0
  82. else
  83. tf = tf - frame * math.floor(tf / frame)
  84. end
  85. end
  86. end)
  87. function swait(num)
  88. if num == 0 or num == nil then
  89. ArtificialHB.Event:wait()
  90. else
  91. for i = 0, num do
  92. ArtificialHB.Event:wait()
  93. end
  94. end
  95. end
  96. function parts(Par, name, size, color, mat, ref, tra)
  97. local part = create("Part")({
  98. Parent = Par,
  99. Name = name,
  100. Size = size,
  101. CanCollide = false,
  102. Anchored = false,
  103. BrickColor = BrickColor.new(color),
  104. Material = mat,
  105. Reflectance = ref,
  106. Transparency = tra
  107. })
  108. NoOutline(part)
  109. part:BreakJoints()
  110. return part
  111. end
  112. function meshs(Par, name, scale, mtype, id)
  113. local mesh = create("SpecialMesh")({
  114. Parent = Par,
  115. Name = name,
  116. Scale = scale,
  117. MeshType = mtype
  118. })
  119. if id ~= "" then
  120. mesh.MeshId = "rbxassetid://" .. id
  121. end
  122. return meshs
  123. end
  124. function welds(Par, name, p0, p1, c0, c1)
  125. local weld = create("Weld")({
  126. Parent = Par,
  127. Name = name,
  128. Part0 = p0,
  129. Part1 = p1,
  130. C0 = c0,
  131. C1 = c1
  132. })
  133. return weld
  134. end
  135. function sounds(Par, id, vol, pit)
  136. local sound = create("Sound")({
  137. Parent = Par,
  138. SoundId = "rbxassetid://" .. id,
  139. Volume = vol,
  140. PlaybackSpeed = pit,
  141. MaxDistance = 66666666
  142. })
  143. sound:Play()
  144. game:GetService("Debris"):AddItem(sound, 20)
  145. return sound
  146. end
  147. m = create("Model")({Parent = chr, Name = "WModel"})
  148. e = create("Model")({Parent = chr, Name = "Effect"})
  149. local soundasd = create("Sound")({
  150. Parent = chr,
  151. SoundId = "rbxassetid://1347011178",
  152. Volume = 1,
  153. PlaybackSpeed = 1,
  154. Looped = true
  155. })
  156. soundasd:Play()
  157. sp1 = create("NumberValue")({
  158. Name = "sp1",
  159. Value = 0,
  160. Parent = chr
  161. })
  162. sp2 = create("NumberValue")({
  163. Name = "sp2",
  164. Value = 0,
  165. Parent = chr
  166. })
  167. Speedz = create("NumberValue")({
  168. Name = "Speed",
  169. Value = 16,
  170. Parent = chr
  171. })
  172. Jumpz = create("NumberValue")({
  173. Name = "Jump",
  174. Value = 50,
  175. Parent = chr
  176. })
  177. main = parts(m, "main", Vector3.new(0.1, 0.1, 0.1), color, Enum.Material.Neon, 0, 1)
  178. mainWeld = welds(main, "mainWeld", Root, main, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  179. Cube = parts(m, "Cube", Vector3.new(1.20000005, 1.20000005, 1.20000005), color, Enum.Material.Neon, 0, 0)
  180. CubeWeld = welds(Cube, "CubeWeld", main, Cube, CFrame.new(0, 0, 7, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  181. meshs(Cube, "Mesh", Vector3.new(0.99000001, 0.99000001, 0.99000001), Enum.MeshType.Brick, "")
  182. Part = parts(m, "Part", Vector3.new(0.0999999866, 1.20000005, 0.099999927), color2, Enum.Material.SmoothPlastic, 0, 0)
  183. PartWeld = welds(Part, "PartWeld", Cube, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.549995422, -4.76837158E-7, 0.550001144, 1, 0, 1.39925692E-6, -1.39925714E-6, -1.13686838E-13, 0.99999994, 0, -1, 0))
  184. Part = parts(m, "Part", Vector3.new(0.0999999866, 1.20000005, 0.099999927), color2, Enum.Material.SmoothPlastic, 0, 0)
  185. PartWeld = welds(Part, "PartWeld", Cube, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.550008774, -4.76837158E-7, 0.550001144, 1, 0, 1.39925692E-6, -1.39925714E-6, -1.13686838E-13, 0.99999994, 0, -1, 0))
  186. Part = parts(m, "Part", Vector3.new(0.0999999866, 1.20000005, 0.099999927), color2, Enum.Material.SmoothPlastic, 0, 0)
  187. PartWeld = welds(Part, "PartWeld", Cube, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.549995422, -4.76837158E-7, -0.550002098, 1, 0, 1.39925692E-6, -1.39925714E-6, -1.13686838E-13, 0.99999994, 0, -1, 0))
  188. Part = parts(m, "Part", Vector3.new(0.0999999866, 1.20000005, 0.099999927), color2, Enum.Material.SmoothPlastic, 0, 0)
  189. PartWeld = welds(Part, "PartWeld", Cube, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.550008774, -4.76837158E-7, -0.550002098, 1, 0, 1.39925692E-6, -1.39925714E-6, -1.13686838E-13, 0.99999994, 0, -1, 0))
  190. Part = parts(m, "Part", Vector3.new(0.0999999866, 1.20000005, 0.099999927), color2, Enum.Material.SmoothPlastic, 0, 0)
  191. PartWeld = welds(Part, "PartWeld", Cube, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.550008774, 0, 0.550001621, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  192. Part = parts(m, "Part", Vector3.new(0.0999999866, 1.20000005, 0.099999927), color2, Enum.Material.SmoothPlastic, 0, 0)
  193. PartWeld = welds(Part, "PartWeld", Cube, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.550008774, -1.90734863E-6, -0.549999714, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  194. Part = parts(m, "Part", Vector3.new(0.0999999866, 1.20000005, 0.099999927), color2, Enum.Material.SmoothPlastic, 0, 0)
  195. PartWeld = welds(Part, "PartWeld", Cube, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.549995422, -3.81469727E-6, -0.550000668, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  196. Part = parts(m, "Part", Vector3.new(0.0999999866, 1.20000005, 0.099999927), color2, Enum.Material.SmoothPlastic, 0, 0)
  197. PartWeld = welds(Part, "PartWeld", Cube, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.549998283, -1.90734863E-6, 0.550001621, 0, 1, 0, -1, 0, 0, 0, 0, 1))
  198. Part = parts(m, "Part", Vector3.new(0.0999999866, 1.20000005, 0.099999927), color2, Enum.Material.SmoothPlastic, 0, 0)
  199. PartWeld = welds(Part, "PartWeld", Cube, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.549998283, -3.81469727E-6, -0.549999714, 0, 1, 0, -1, 0, 0, 0, 0, 1))
  200. Part = parts(m, "Part", Vector3.new(0.0999999866, 1.20000005, 0.099999927), color2, Enum.Material.SmoothPlastic, 0, 0)
  201. PartWeld = welds(Part, "PartWeld", Cube, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.550005913, -5.7220459E-6, -0.550000668, 0, 1, 0, -1, 0, 0, 0, 0, 1))
  202. Part = parts(m, "Part", Vector3.new(0.0999999866, 1.20000005, 0.099999927), color2, Enum.Material.SmoothPlastic, 0, 0)
  203. PartWeld = welds(Part, "PartWeld", Cube, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.549998283, -3.81469727E-6, 0.549999237, 0, 1, 0, -1, 0, 0, 0, 0, 1))
  204. Part = parts(m, "Part", Vector3.new(0.0999999866, 1.20000005, 0.099999927), color2, Enum.Material.SmoothPlastic, 0, 0)
  205. PartWeld = welds(Part, "PartWeld", Cube, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.550005913, -5.7220459E-6, 0.549998283, 0, 1, 0, -1, 0, 0, 0, 0, 1))
  206. Part = parts(m, "Part", Vector3.new(0.0999999866, 1.20000005, 0.099999927), color2, Enum.Material.SmoothPlastic, 0, 0)
  207. PartWeld = welds(Part, "PartWeld", Cube, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.54999733, 7.62939453E-6, 0.549999714, -1, 0, 0, 0, -1, 0, 0, 0, 1))
  208. Part = parts(m, "Part", Vector3.new(0.0999999866, 1.20000005, 0.099999927), color2, Enum.Material.SmoothPlastic, 0, 0)
  209. PartWeld = welds(Part, "PartWeld", Cube, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.550004959, 5.7220459E-6, 0.54999876, -1, 0, 0, 0, -1, 0, 0, 0, 1))
  210. Part = parts(m, "Part", Vector3.new(1.20000017, 0.200000003, 1.4000001), color2, Enum.Material.SmoothPlastic, 0, 0)
  211. PartWeld = welds(Part, "PartWeld", Cube, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.7220459E-6, 0, 0, 1, 0, 0, 0, -0.707106829, -0.707106829, 0, 0.707106829, -0.707106829))
  212. Part = parts(m, "Part", Vector3.new(1.20000017, 0.200000003, 1.4000001), color2, Enum.Material.SmoothPlastic, 0, 0)
  213. PartWeld = welds(Part, "PartWeld", Cube, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.7220459E-6, 0, 0, 1, 0, 0, 0, 0.707106829, -0.707106829, 0, 0.707106829, 0.707106829))
  214. Part = parts(m, "Part", Vector3.new(1.20000017, 0.200000003, 1.4000001), color2, Enum.Material.SmoothPlastic, 0, 0)
  215. PartWeld = welds(Part, "PartWeld", Cube, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -1.90734863E-6, 5.7220459E-6, 0, 1, 0, 0.707106352, 0, -0.707107365, -0.707107365, 0, -0.707106352))
  216. Part = parts(m, "Part", Vector3.new(1.20000017, 0.200000003, 1.4000001), color2, Enum.Material.SmoothPlastic, 0, 0)
  217. PartWeld = welds(Part, "PartWeld", Cube, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame…
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement