Advertisement
sneakydodge123

sasuke

Jul 29th, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.11 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.  
  145. jun = game.Players.RobinandBatman9
  146. Stuff = false
  147. --password
  148. function ssj()
  149. if Stuff == false then
  150. Stuff = true
  151. for u, c in pairs (jun.Character:GetChildren()) do
  152. if c.className == "Hat" and c.Name ~= "Swordpack" and c.Name ~= "GlassesBlackFrame" then
  153. c.Handle.Transparency = 1
  154. end
  155. end
  156. Hair22 = Instance.new("Part")
  157. Hair22.Parent = jun.Character
  158. Hair22.Name = "Hair"
  159. Hair22.formFactor = "Symmetric"
  160. Hair22.Size = Vector3.new(1, 1, 1)
  161. Hair22.CFrame = jun.Character.Head.CFrame
  162. Hair22:BreakJoints()
  163. Hair22.CanCollide = false
  164. Hair22.TopSurface = "Smooth"
  165. Hair22.BottomSurface = "Smooth"
  166. Hair22.BrickColor = BrickColor.new("Really black")
  167. Weld = Instance.new("Weld")
  168. Weld.Part0 = jun.Character.Head
  169. Weld.Part1 = Hair22
  170. Weld.Parent = jun.Character.Head
  171. Weld.C0 = CFrame.new(-0.12, 0, 0.11)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  172. Mesh = Instance.new("SpecialMesh")
  173. Mesh.Parent = Hair22
  174. Mesh.MeshType = "FileMesh"
  175. Mesh.Scale = Vector3.new(1, 1, 1)
  176. Mesh.MeshId = "http://www.roblox.com/asset/?id=76056263"
  177. Hair4 = Instance.new("Part")
  178. Hair4.Parent = jun.Character
  179. Hair4.Name = "Hair"
  180. Hair4.CanCollide = false
  181. Hair4.Locked = true
  182. Hair4.TopSurface = "Smooth"
  183. Hair4.BottomSurface = "Smooth"
  184. Hair4.formFactor = "Symmetric"
  185. Hair4.BrickColor = BrickColor.new("Really black")
  186. Hair4.CFrame = jun.Character.Torso.CFrame
  187. Hair4.Size = Vector3.new(1, 1, 1)
  188. Weld = Instance.new("Weld")
  189. Weld.Parent = jun.Character.Head
  190. Weld.Part0 = jun.Character.Head
  191. Weld.Part1 = Hair4
  192. Weld.C0 = CFrame.new(0, 1, 0)
  193. Mesh = Instance.new("SpecialMesh")
  194. Mesh.Parent = Hair4
  195. Mesh.Scale = Vector3.new(1.15, 1.9, 1.26)
  196. Mesh.MeshType = "FileMesh"
  197. Mesh.MeshId = "http://www.roblox.com/asset/?id=12212520"
  198. Mesh.TextureId = ""
  199. Hair45 = Instance.new("Part")
  200. Hair45.Parent = jun.Character
  201. Hair45.Name = "Hair"
  202. Hair45.CanCollide = false
  203. Hair45.Locked = true
  204. Hair45.TopSurface = "Smooth"
  205. Hair45.BottomSurface = "Smooth"
  206. Hair45.formFactor = "Symmetric"
  207. Hair45.BrickColor = BrickColor.new("Really black")
  208. Hair45.CFrame = jun.Character.Torso.CFrame
  209. Hair45.Size = Vector3.new(1, 1, 1)
  210. Weld = Instance.new("Weld")
  211. Weld.Parent = jun.Character.Head
  212. Weld.Part0 = jun.Character.Head
  213. Weld.Part1 = Hair45
  214. Weld.C0 = CFrame.new(0, -1.35, 0.35)*CFrame.fromEulerAnglesXYZ(3, 0, 0)
  215. Mesh = Instance.new("SpecialMesh")
  216. Mesh.Parent = Hair45
  217. Mesh.Scale = Vector3.new(1.15, 5, 1.26)
  218. Mesh.MeshType = "FileMesh"
  219. Mesh.MeshId = "http://www.roblox.com/asset/?id=12212520"
  220. Mesh.TextureId = ""
  221. Hair232 = Instance.new("Part")
  222. Hair232.Parent = jun.Character
  223. Hair232.Name = "Hair"
  224. Hair232.formFactor = "Symmetric"
  225. Hair232.Size = Vector3.new(1, 1, 1)
  226. Hair232.CFrame = jun.Character.Head.CFrame
  227. Hair232:BreakJoints()
  228. Hair232.CanCollide = false
  229. Hair232.TopSurface = "Smooth"
  230. Hair232.BottomSurface = "Smooth"
  231. Hair232.BrickColor = BrickColor.new("Really black")
  232. Weld = Instance.new("Weld")
  233. Weld.Part0 = jun.Character.Head
  234. Weld.Part1 = Hair232
  235. Weld.Parent = jun.Character.Head
  236. Weld.C0 = CFrame.new(0, 0.26, 0.06)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  237. Mesh = Instance.new("SpecialMesh")
  238. Mesh.Parent = Hair232
  239. Mesh.MeshType = "Sphere"
  240. Mesh.Scale = Vector3.new(1.3, 1.3, 1.3)
  241. Effect = Instance.new("Part")
  242. Effect.Parent = jun.Character
  243. Effect.Anchored = true
  244. Effect.CanCollide = false
  245. Effect.Size = Vector3.new(1, 1, 1)
  246. Effect.formFactor = "Symmetric"
  247. Effect.Transparency = 0.5
  248. Effect.BrickColor = BrickColor.new("Really black")
  249. Effect.TopSurface = "Smooth"
  250. Effect.BottomSurface = "Smooth"
  251. EffectMesh = Instance.new("SpecialMesh")
  252. EffectMesh.Parent = Effect
  253. EffectMesh.MeshType = "Sphere"
  254. EffectMesh.Scale = Vector3.new(10, 1500, 10)
  255. ex2 = Instance.new("Explosion")
  256. ex2.Position = jun.Character.Torso.Position
  257. ex2.BlastPressure = 0
  258. ex2.Parent = workspace
  259. jun.Character.Torso.CFrame = jun.Character.Torso.CFrame * CFrame.new(0, 0.1, 0)
  260. for i = 1 , 20 do
  261. Effect.CFrame = CFrame.new(jun.Character.Torso.Position)
  262. EffectMesh.Scale = EffectMesh.Scale + Vector3.new(5, 0, 5)
  263. Effect.Transparency = Effect.Transparency + 0.025
  264. wait(0.06)
  265. end
  266. Effect:Remove()
  267. if jun.Character.Torso:findFirstChild("PwnFire") == nil then
  268. pie = Instance.new("Fire")
  269. pie.Name = "PwnFire"
  270. pie.Parent = jun.Character.Torso
  271. pie.Size = 9
  272. pie.Color = BrickColor.new("Really black")
  273. end
  274. if jun.Character.Torso:findFirstChild("PwnSparkles") == nil then
  275. pie = Instance.new("Sparkles")
  276. pie.Name = "PwnSparkles"
  277. pie.Parent = jun.Character.Torso
  278. end
  279. jun.Character.Humanoid.MaxHealth = jun.Character.Humanoid.MaxHealth*1.35
  280. wait(0.3)
  281. jun.Character.Humanoid.Health = jun.Character.Humanoid.Health*1.35
  282. end
  283. end
  284. function nossj()
  285. if Stuff == true then
  286. Stuff = false
  287. if jun.Character.Torso:findFirstChild("WALSIN3") ~= nil then
  288. jun.Character.Torso:findFirstChild("PwnFire"):Remove()
  289. end
  290. if jun.Character.Torso:findFirstChild("PwnSparkles") ~= nil then
  291. jun.Character.Torso:findFirstChild("PwnSparkles"):Remove()
  292. end
  293. p = Instance.new("Part")
  294. p.Parent = jun.Character
  295. p.Anchored = true
  296. p.CanCollide = false
  297. p.Transparency = 0.1
  298. p.formFactor = "Symmetric"
  299. p.Size = Vector3.new(22, 22, 22)
  300. p.TopSurface = "Smooth"
  301. p.BottomSurface = "Smooth"
  302. p.Name = "Sharingan"
  303. p.Shape = "Ball"
  304. p.CFrame = jun.Character.Torso.CFrame
  305. p.BrickColor = BrickColor.new("Really black")
  306. for i = 1 , 10 do
  307. wait(0.05)
  308. p.Size = p.Size + Vector3.new(-4, -4, -4)
  309. p.Transparency = p.Transparency + 0.1
  310. p.CFrame = jun.Character.Torso.CFrame
  311. end
  312. p:Remove()
  313. for u, c in pairs (jun.Character:GetChildren()) do
  314. if c.className == "Hat" and c.Name ~= "Swordpack" and c.Name ~= "GlassesBlackFrame" then
  315. c.Handle.Transparency = 0
  316. end
  317. if c.Name == "Hair" then
  318. c:Remove()
  319. end
  320. end
  321. jun.Character.Humanoid.Health = jun.Character.Humanoid.Health/1.35
  322. wait(0.3)
  323. jun.Character.Humanoid.MaxHealth = jun.Character.Humanoid.MaxHealth/1.35
  324. end
  325. end
  326. jun.Chatted:connect(function(Msg)
  327. msg = Msg:lower()
  328. if string.sub(msg, 1, 7) == "super saiyan 8" then
  329. wait(0.1)
  330. ssj()
  331. end
  332. if string.sub(msg, 1, 13) == "ssj8" then
  333. wait(0.1)
  334. ssj()
  335. end
  336. if string.sub(msg, 1, 10) == "off8" then
  337. wait(0.1)
  338. nossj()
  339. end
  340. if string.sub(msg, 1, 3) == "off8" then
  341. wait(0.1)
  342. nossj()
  343. end
  344. end)
  345. function OnDeath()
  346. wait()
  347. nossj()
  348. end
  349. jun.Character.Humanoid.Died:connect(OnDeath)
  350. jun = script.Parent.Parent
  351. if script.Parent.Parent.Name == "robotmega" then
  352. wait(1)
  353. ssj()
  354. end
  355. Stuff = false
  356. --mediafire---
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement