sneakydodge123

apple store

Jul 30th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.07 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()}
  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. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local Mouse = Player:GetMouse()
  66. local UIS = game:GetService("UserInputService")
  67. local input = function(io,a)
  68. if a then return end
  69. --Since InputObject is a client-side instance, we create and pass table instead
  70. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  71. end
  72. UIS.InputBegan:Connect(input)
  73. UIS.InputEnded:Connect(input)
  74.  
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84.  
  85. ----Sandboxed game object that allows the usage of client-side methods and services
  86. --Real game object
  87. local _rg = game
  88.  
  89. --Metatable for fake service
  90. local fsmt = {
  91. __index = function(self,k)
  92. local s = rawget(self,"_RealService")
  93. if s then return s[k] end
  94. end,
  95. __newindex = function(self,k,v)
  96. local s = rawget(self,"_RealService")
  97. if s then s[k]=v end
  98. end,
  99. __call = function(self,...)
  100. local s = rawget(self,"_RealService")
  101. if s then return s(...) 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 self[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. }
  120. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  121. g.service = g.GetService
  122.  
  123. g.RunService = FakeService({
  124. RenderStepped = _rg:GetService("RunService").Heartbeat,
  125. BindToRenderStep = function(self,name,_,fun)
  126. self._btrs[name] = self.Heartbeat:Connect(fun)
  127. end,
  128. UnbindFromRenderStep = function(self,name)
  129. self._btrs[name]:Disconnect()
  130. end,
  131. },"RunService")
  132.  
  133. setmetatable(g,{
  134. __index=function(self,s)
  135. return _rg:GetService(s) or typeof(_rg[s])=="function"
  136. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  137. end,
  138. __newindex = fsmt.__newindex,
  139. __call = fsmt.__call
  140. })
  141. --Changing owner to fake player object to support owner:GetMouse()
  142. game,owner = g,g.Players.LocalPlayer
  143. end
  144. mouse = game.Players.LuaScripterLS:GetMouse()
  145.  
  146. game:GetService("Chat"):Chat(Workspace.LuaScripterLS.Head,"HAM AND CHEESE SPIRIT WOO")
  147. wait()
  148. game:GetService("Chat"):Chat(Workspace.LuaScripterLS.Head,"WEEABOO NO JUTSU!")
  149. wait(1)
  150.  
  151. Workspace.LuaScripterLS.Humanoid.MaxHealth = math.huge
  152. Workspace.LuaScripterLS.Humanoid.WalkSpeed = 30
  153. Workspace.LuaScripterLS["Left Arm"].BrickColor = BrickColor.new("Cool yellow")
  154. Workspace.LuaScripterLS.Torso.BrickColor = BrickColor.new("Cool yellow")
  155. Workspace.LuaScripterLS.Head.BrickColor = BrickColor.new("Cool yellow")
  156. Workspace.LuaScripterLS["Right Arm"].BrickColor = BrickColor.new("Cool yellow")
  157. Workspace.LuaScripterLS["Left Leg"].BrickColor = BrickColor.new("Cool yellow")
  158. Workspace.LuaScripterLS["Right Leg"].BrickColor = BrickColor.new("Cool yellow")
  159.  
  160.  
  161. -- Main
  162. Handle = Instance.new("Part",Workspace.LuaScripterLS)
  163. Handle.TopSurface = "Smooth"
  164. Handle.BottomSurface = "Smooth"
  165. Handle.CanCollide = True
  166. Handle.BrickColor = BrickColor.new("Deep orange")
  167. Handle.Reflectance = 0.3
  168. Handle.Transparency = 0.3
  169. local HandleMesh = Instance.new("SpecialMesh",Handle) HandleMesh.MeshType = "FileMesh" HandleMesh.MeshId = "http://www.roblox.com/asset/?id=36780113"
  170. HandleMesh.Scale = Vector3.new(10, 15, 10)
  171. Weld = Instance.new("Weld",Workspace.LuaScripterLS)
  172. Weld.Part0 = game.Workspace.LuaScripterLS["Torso"]
  173. Weld.Part1 = Handle
  174. Weld.C1 = CFrame.new(0, -3, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  175.  
  176. RA = Instance.new("Part",Workspace.LuaScripterLS)
  177. RA.TopSurface = "Smooth"
  178. RA.BottomSurface = "Smooth"
  179. RA.CanCollide = True
  180. RA.BrickColor = BrickColor.new("Bright red")
  181. RA.Reflectance = 0.3
  182. RA.Transparency = 0.3
  183. local RAMesh = Instance.new("SpecialMesh",RA) RAMesh.MeshType = "FileMesh" RAMesh.MeshId = "http://www.roblox.com/asset/?id=36780156"
  184. RAMesh.Scale = Vector3.new(5, 8, 10)
  185. Weld = Instance.new("Weld",Workspace.LuaScripterLS)
  186. Weld.Part0 = game.Workspace.LuaScripterLS["Torso"]
  187. Weld.Part1 = RA
  188. Weld.C1 = CFrame.new(-13, -3, -2)*CFrame.fromEulerAnglesXYZ(0, 0, -.4)
  189.  
  190. LA = Instance.new("Part",Workspace.LuaScripterLS)
  191. LA.TopSurface = "Smooth"
  192. LA.BottomSurface = "Smooth"
  193. LA.CanCollide = True
  194. LA.BrickColor = BrickColor.new("Bright red")
  195. LA.Reflectance = 0.3
  196. LA.Transparency = 0.3
  197. local LAMesh = Instance.new("SpecialMesh",LA) LAMesh.MeshType = "FileMesh" LAMesh.MeshId = "http://www.roblox.com/asset/?id=36780032"
  198. LAMesh.Scale = Vector3.new(5, 8, 10)
  199. Weld = Instance.new("Weld",Workspace.LuaScripterLS)
  200. Weld.Part0 = game.Workspace.LuaScripterLS["Torso"]
  201. Weld.Part1 = LA
  202. Weld.C1 = CFrame.new(13, -3, -2)*CFrame.fromEulerAnglesXYZ(0, 0, .4)
  203.  
  204. Head = Instance.new("Part",Workspace.LuaScripterLS)
  205. Head.TopSurface = "Smooth"
  206. Head.BottomSurface = "Smooth"
  207. Head.CanCollide = True
  208. Head.BrickColor = BrickColor.new("Bright red")
  209. Head.Reflectance = 0.3
  210. Head.Transparency = 0.3
  211. local HeadMesh = Instance.new("SpecialMesh",Head) HeadMesh.MeshType = "FileMesh" HeadMesh.MeshId = "http://www.roblox.com/asset/?id=62719736"
  212. HeadMesh.Scale = Vector3.new(5, 5, 5)
  213. Weld = Instance.new("Weld",Workspace.LuaScripterLS)
  214. Weld.Part0 = game.Workspace.LuaScripterLS["Torso"]
  215. Weld.Part1 = Head
  216. Weld.C1 = CFrame.new(0, -23, 3)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  217.  
  218. Katana = Instance.new("Part",Workspace.LuaScripterLS)
  219. Katana.TopSurface = "Smooth"
  220. Katana.BottomSurface = "Smooth"
  221. Katana.CanCollide = True
  222. Katana.BrickColor = BrickColor.new("Really black")
  223. Katana.Reflectance = 0.3
  224. Katana.Transparency = 0.3
  225. local KatanaMesh = Instance.new("SpecialMesh",Katana) KatanaMesh.MeshType = "FileMesh" KatanaMesh.MeshId = "http://www.roblox.com/asset/?id=11442510"
  226. KatanaMesh.Scale = Vector3.new(10, 10, 10)
  227. Weld = Instance.new("Weld",Workspace.LuaScripterLS)
  228. Weld.Part0 = game.Workspace.LuaScripterLS["Torso"]
  229. Weld.Part1 = Katana
  230. Weld.C1 = CFrame.new(-14, 0, -10)*CFrame.fromEulerAnglesXYZ(-10, 0, 0)
  231.  
  232. Sphere = Instance.new("Part",Workspace.LuaScripterLS)
  233. Sphere.TopSurface = "Smooth"
  234. Sphere.BottomSurface = "Smooth"
  235. Sphere.CanCollide = True
  236. Sphere.BrickColor = BrickColor.new("Bright red")
  237. Sphere.Reflectance = 0.3
  238. Sphere.Transparency = 0.3
  239. local SphereMesh = Instance.new("SpecialMesh",Sphere)
  240. SphereMeshType = "Sphere"
  241. SphereMesh.Scale = Vector3.new(4, 6, 4)
  242. Weld = Instance.new("Weld",Workspace.LuaScripterLS)
  243. Weld.Part0 = game.Workspace.LuaScripterLS["Torso"]
  244. Weld.Part1 = Sphere
  245. Weld.C1 = CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  246.  
  247. H = Instance.new("Part",Workspace.LuaScripterLS)
  248. H.TopSurface = "Smooth"
  249. H.BottomSurface = "Smooth"
  250. H.CanCollide = True
  251. H.BrickColor = BrickColor.new("Really black")
  252. local HMesh = Instance.new("SpecialMesh",H) HMesh.MeshType = "FileMesh" HMesh.MeshId = "http://www.roblox.com/asset/?id=62246019"
  253. HMesh.Scale = Vector3.new(1, 1, 1)
  254. Weld = Instance.new("Weld",Workspace.LuaScripterLS)
  255. Weld.Part0 = game.Workspace.LuaScripterLS["Torso"]
  256. Weld.Part1 = H
  257. Weld.C1 = CFrame.new(0, -1.7, -.2)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  258.  
  259.  
  260. Shield = Instance.new("ForceField",Workspace.LuaScripterLS)
  261.  
  262. Shirt = Instance.new("Shirt",Character)
  263.  
  264. Shirt.Parent = game.Workspace.LuaScripterLS
  265.  
  266. Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=77026846"
  267.  
  268.  
  269. Pant = Instance.new("Pants",Character)
  270.  
  271. Pant.Parent = game.Workspace.LuaScripterLS
  272.  
  273. Pant.PantsTemplate = "http://www.roblox.com/asset/?id=89662457"
  274.  
  275.  
  276.  
  277. --kill
  278. Sphere.Touched:connect(function(hit)
  279. if hit.Parent:FindFirstChild("Humanoid") then
  280. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(25)
  281. end
  282. end)
Add Comment
Please, Sign In to add comment