Advertisement
wamandnj

Untitled

Mar 6th, 2019
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- This script has convert to FE by who i don't know?
  2.  
  3. -----------------------------------------------------
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,game,owner = owner,game
  6. local RealPlayer = Player
  7. do
  8. print("FE Compatibility code by Mokiros | Showcase by Bacon Hair!")
  9. local rp = RealPlayer
  10. script.Parent = rp.Character
  11.  
  12. --RemoteEvent for communicating
  13. local Event = Instance.new("RemoteEvent")
  14. Event.Name = "UserInput_Event"
  15.  
  16. --Fake event to make stuff like Mouse.KeyDown work
  17. local function fakeEvent()
  18. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  19. t.connect = t.Connect
  20. return t
  21. end
  22.  
  23. --Creating fake input objects with fake variables
  24. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  25. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  26. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  27. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  28. end}
  29. --Merged 2 functions into one by checking amount of arguments
  30. CAS.UnbindAction = CAS.BindAction
  31.  
  32. --This function will trigger the events that have been :Connect()'ed
  33. local function te(self,ev,...)
  34. local t = m[ev]
  35. if t and t._fakeEvent then
  36. for _,f in pairs(t.Functions) do
  37. f(...)
  38. end
  39. end
  40. end
  41. m.TrigEvent = te
  42. UIS.TrigEvent = te
  43.  
  44. Event.OnServerEvent:Connect(function(plr,io)
  45. if plr~=rp then return end
  46. m.Target = io.Target
  47. m.Hit = io.Hit
  48. if not io.isMouse then
  49. local b = io.UserInputState == Enum.UserInputState.Begin
  50. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  51. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  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.  
  68. local Mouse = Player:GetMouse()
  69. local UIS = game:GetService("UserInputService")
  70. local input = function(io,a)
  71. if a then return end
  72. --Since InputObject is a client-side instance, we create and pass table instead
  73. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  74. end
  75. UIS.InputBegan:Connect(input)
  76. UIS.InputEnded:Connect(input)
  77.  
  78. local h,t
  79. --Give the server mouse data 30 times every second, but only if the values changed
  80. --If player is not moving their mouse, client won't fire events
  81. while wait(1/30) do
  82. if h~=Mouse.Hit or t~=Mouse.Target then
  83. h,t=Mouse.Hit,Mouse.Target
  84. Event:FireServer({isMouse=true,Target=t,Hit=h})
  85. end
  86. end]==],Player.Character)
  87.  
  88. ----Sandboxed game object that allows the usage of client-side methods and services
  89. --Real game object
  90. local _rg = game
  91.  
  92. --Metatable for fake service
  93. local fsmt = {
  94. __index = function(self,k)
  95. local s = rawget(self,"_RealService")
  96. if s then return s[k] end
  97. end,
  98. __newindex = function(self,k,v)
  99. local s = rawget(self,"_RealService")
  100. if s then s[k]=v end
  101. end,
  102. __call = function(self,...)
  103. local s = rawget(self,"_RealService")
  104. if s then return s(...) end
  105. end
  106. }
  107. local function FakeService(t,RealService)
  108. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  109. return setmetatable(t,fsmt)
  110. end
  111.  
  112. --Fake game object
  113. local g = {
  114. GetService = function(self,s)
  115. return self[s]
  116. end,
  117. Players = FakeService({
  118. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  119. },"Players"),
  120. UserInputService = FakeService(UIS,"UserInputService"),
  121. ContextActionService = FakeService(CAS,"ContextActionService"),
  122. }
  123. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  124. g.service = g.GetService
  125.  
  126. g.RunService = FakeService({
  127. RenderStepped = _rg:GetService("RunService").Heartbeat,
  128. BindToRenderStep = function(self,name,_,fun)
  129.  
  130. end,
  131. UnbindFromRenderStep = function(self,name)
  132. self._btrs[name]:Disconnect()
  133. end,
  134. },"RunService")
  135.  
  136. setmetatable(g,{
  137. __index=function(self,s)
  138. return _rg:GetService(s) or typeof(_rg[s])=="function"
  139. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  140. end,
  141. __newindex = fsmt.__newindex,
  142. __call = fsmt.__call
  143. })
  144. --Changing owner to fake player object to support owner:GetMouse()
  145. game,owner = g,g.Players.LocalPlayer
  146. end
  147.  
  148.  
  149.  
  150. --Made by Trry
  151. wait(3)
  152. local plr = game:GetService("Players").LocalPlayer
  153. local char = plr.Character
  154. local rightarm = char["Right Arm"]
  155. local torso = char.Torso
  156. local leftarm = char["Left Arm"]
  157. local leftleg = char["Left Leg"]
  158. local rightleg = char["Right Leg"]
  159. local Hed = char.Head
  160.  
  161. rightarm.Transparency = 1
  162. leftarm.Transparency = 1
  163. torso.Transparency = 1
  164. Hed.Transparency = 1
  165. rightleg.Transparency = 1
  166. leftleg.Transparency = 1
  167.  
  168. char.Humanoid.MaxHealth = "10000"
  169. char.Humanoid.Health = "10000"
  170. if char.Humanoid.Jump == true
  171. then char.Sit = true
  172. end
  173. char.Humanoid.WalkSpeed = 30
  174. Hed.face:Remove()
  175.  
  176.  
  177. blade = Instance.new("Part",rightarm)
  178. blade.Anchored = true
  179. blade.Size = Vector3.new(2, 1 ,1)
  180. blade.BrickColor = BrickColor.new("Black")
  181. blade.Material = "Neon"
  182. blade.Name = "RA"
  183. blade.Rotation = Vector3.new(0, 0, 90)
  184. blade.CanCollide = false
  185. blade.Transparency = 0.8
  186. print("loaded Right Arm")
  187. local i = 1
  188.  
  189. blade2 = Instance.new("Part",leftarm)
  190. blade2.Anchored = true
  191. blade2.Size = Vector3.new(2, 1 ,1)
  192. blade2.BrickColor = BrickColor.new("Black")
  193. blade2.Material = "Neon"
  194. blade2.Name = "LA"
  195. blade2.Rotation = Vector3.new(0, 0, 90)
  196. blade2.CanCollide = false
  197. blade2.Transparency = 0.8
  198. print("loaded Left Arm")
  199. local i = 1
  200.  
  201. blade3 = Instance.new("Part",leftleg)
  202. blade3.Anchored = true
  203. blade3.Size = Vector3.new(2, 1 ,1)
  204. blade3.BrickColor = BrickColor.new("Quill Grey")
  205. blade3.Material = "Neon"
  206. blade3.Name = "LL"
  207. blade3.Rotation = Vector3.new(0, 0, 90)
  208. blade3.CanCollide = false
  209. blade3.Transparency = 0.8
  210. print("loaded Left Leg")
  211. local i = 1
  212.  
  213. blade4 = Instance.new("Part",rightleg)
  214. blade4.Anchored = true
  215. blade4.Size = Vector3.new(2, 1 ,1)
  216. blade4.BrickColor = BrickColor.new("Black")
  217. blade4.Material = "Neon"
  218. blade4.Name = "RL"
  219. blade4.Rotation = Vector3.new(0, 0, 90)
  220. blade4.CanCollide = false
  221. blade4.Transparency = 0.8
  222. print("loaded Right Leg")
  223. local i = 1
  224.  
  225. blade5 = Instance.new("Part",torso)
  226. blade5.Anchored = true
  227. blade5.Size = Vector3.new(2, 2 ,1)
  228. blade5.BrickColor = BrickColor.new("Black")
  229. blade5.Material = "Neon"
  230. blade5.Name = "TORSO"
  231. blade5.Rotation = Vector3.new(0, 0, 90)
  232. blade5.CanCollide = false
  233. blade5.Transparency = 0.8
  234. print("loaded Torso")
  235. local i = 1
  236.  
  237. blade6 = Instance.new("Part",Hed)
  238. meshed = Instance.new("SpecialMesh", blade6)
  239. blade6.Anchored = true
  240. blade6.Size = Vector3.new(1, 1 ,1)
  241. blade6.BrickColor = BrickColor.new("Black")
  242. blade6.Material = "Neon"
  243. blade6.Name = "TORSO"
  244. blade6.Rotation = Vector3.new(0, 0, 0)
  245. blade6.CanCollide = false
  246. blade6.Transparency = 0.8
  247. meshed.MeshType = "Head"
  248. meshed.Scale = Vector3.new(1.25, 1.25, 1.25)
  249. meshed.VertexColor = Vector3.new(1, 1, 1)
  250. print("loaded Head")
  251. local i = 1
  252.  
  253.  
  254. repeat
  255. blade2.Position = leftarm.Position
  256. blade.Position = rightarm.Position
  257. blade.Rotation = leftarm.Rotation + Vector3.new(0, 0, 90)
  258. blade2.Rotation = rightarm.Rotation + Vector3.new(0, 0, 90)
  259. blade3.Position = leftleg.Position
  260. blade3.Rotation = leftleg.Rotation + Vector3.new(0, 0, 90)
  261. blade4.Position = rightleg.Position
  262. blade4.Rotation = rightleg.Rotation + Vector3.new(0, 0, 90)
  263. blade5.Position = torso.Position
  264. blade5.Rotation = torso.Rotation + Vector3.new(0, 0, 90)
  265. blade6.Position = Hed.Position
  266. blade6.Rotation = Hed.Rotation + Vector3.new(0, 0, 0)
  267. i = i + 0
  268. wait(0.0001)
  269. until i==3
  270. print("loaded second")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement