Advertisement
Kittdy2

Untitled

Jan 20th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.88 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  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,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  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 UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  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. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87.  
  88.  
  89. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
  90. --password
  91. jun = owner
  92. Stuff = false
  93. --password
  94. function ssj()
  95. if Stuff == false then
  96. Stuff = true
  97. for u, c in pairs (jun.Character:GetChildren()) do
  98. if c.className == "Hat" and c.Name ~= "Swordpack" and c.Name ~= "GlassesBlackFrame" then
  99. c.Handle.Transparency = 1
  100. end
  101. end
  102. Hair22 = Instance.new("Part")
  103. Hair22.Parent = jun.Character
  104. Hair22.Name = "Hair"
  105. Hair22.formFactor = "Symmetric"
  106. Hair22.Size = Vector3.new(1, 1, 1)
  107. Hair22.CFrame = jun.Character.Head.CFrame
  108. Hair22:BreakJoints()
  109. Hair22.CanCollide = false
  110. Hair22.TopSurface = "Smooth"
  111. Hair22.BottomSurface = "Smooth"
  112. Hair22.BrickColor = BrickColor.new("Bright yellow")
  113. Weld = Instance.new("Weld")
  114. Weld.Part0 = jun.Character.Head
  115. Weld.Part1 = Hair22
  116. Weld.Parent = jun.Character.Head
  117. Weld.C0 = CFrame.new(0, 0.26, 0.06)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  118. Mesh = Instance.new("SpecialMesh")
  119. Mesh.Parent = Hair22
  120. Mesh.MeshType = "Sphere"
  121. Mesh.Scale = Vector3.new(1.3, 1.3, 1.3)
  122. Hair4 = Instance.new("Part")
  123. Hair4.Parent = jun.Character
  124. Hair4.Name = "Hair"
  125. Hair4.CanCollide = false
  126. Hair4.Locked = true
  127. Hair4.TopSurface = "Smooth"
  128. Hair4.BottomSurface = "Smooth"
  129. Hair4.formFactor = "Symmetric"
  130. Hair4.BrickColor = BrickColor.new("Bright yellow")
  131. Hair4.CFrame = jun.Character.Torso.CFrame
  132. Hair4.Size = Vector3.new(1, 1, 1)
  133. Weld = Instance.new("Weld")
  134. Weld.Parent = jun.Character.Head
  135. Weld.Part0 = jun.Character.Head
  136. Weld.Part1 = Hair4
  137. Weld.C0 = CFrame.new(0, 1, 0)
  138. Mesh = Instance.new("SpecialMesh")
  139. Mesh.Parent = Hair4
  140. Mesh.Scale = Vector3.new(1.15, 1.8, 1.26)
  141. Mesh.MeshType = "FileMesh"
  142. Mesh.MeshId = "http://www.roblox.com/asset/?id=12212520"
  143. Mesh.TextureId = ""
  144. Effect = Instance.new("Part")
  145. Effect.Parent = jun.Character
  146. Effect.Anchored = true
  147. Effect.CanCollide = false
  148. Effect.Size = Vector3.new(1, 1, 1)
  149. Effect.formFactor = "Symmetric"
  150. Effect.Transparency = 0.5
  151. Effect.BrickColor = BrickColor.new("Bright yellow")
  152. Effect.TopSurface = "Smooth"
  153. Effect.BottomSurface = "Smooth"
  154. EffectMesh = Instance.new("CylinderMesh")
  155. EffectMesh.Parent = Effect
  156. EffectMesh.Scale = Vector3.new(1, 1500, 1)
  157. --[[ex = Instance.new("Explosion")
  158. ex.Position = jun.Character.Torso.Position
  159. ex.BlastPressure = 0
  160. ex.Parent = workspace]]
  161. jun.Character.Torso.CFrame = jun.Character.Torso.CFrame * CFrame.new(0, 0.1, 0)
  162. for i = 1 , 20 do
  163. Effect.CFrame = CFrame.new(jun.Character.Torso.Position)
  164. EffectMesh.Scale = EffectMesh.Scale + Vector3.new(2, 0, 2)
  165. Effect.Transparency = Effect.Transparency + 0.025
  166. wait(0.06)
  167. end
  168. Effect:Remove()
  169. if jun.Character.Torso:findFirstChild("PwnFire") == nil then
  170. pie = Instance.new("Fire")
  171. pie.Name = "PwnFire"
  172. pie.Parent = jun.Character.Torso
  173. pie.Size = 13
  174. pie.Color = BrickColor.new("Bright yellow")
  175. end
  176. if jun.Character.Torso:findFirstChild("PwnSparkles") == nil then
  177. pie = Instance.new("Sparkles")
  178. pie.Name = "PwnSparkles"
  179. pie.Parent = jun.Character.Torso
  180. pie.Color = BrickColor.new("Bright yellow")
  181. end
  182. jun.Character.Humanoid.MaxHealth = jun.Character.Humanoid.MaxHealth*1.5
  183. wait(0.3)
  184. jun.Character.Humanoid.Health = jun.Character.Humanoid.Health*1.5
  185. end
  186. end
  187. function nossj()
  188. if Stuff == true then
  189. Stuff = false
  190. if jun.Character.Torso:findFirstChild("PwnFire") ~= nil then
  191. jun.Character.Torso:findFirstChild("PwnFire"):Remove()
  192. end
  193. if jun.Character.Torso:findFirstChild("PwnSparkles") ~= nil then
  194. jun.Character.Torso:findFirstChild("PwnSparkles"):Remove()
  195. end
  196. p = Instance.new("Part")
  197. p.Parent = jun.Character
  198. p.Anchored = true
  199. p.CanCollide = false
  200. p.Transparency = 0.1
  201. p.formFactor = "Symmetric"
  202. p.Size = Vector3.new(22, 22, 22)
  203. p.TopSurface = "Smooth"
  204. p.BottomSurface = "Smooth"
  205. p.Name = "Sharingan"
  206. p.Shape = "Ball"
  207. p.CFrame = jun.Character.Torso.CFrame
  208. p.BrickColor = BrickColor.new("Bright yellow")
  209. for i = 1 , 10 do
  210. wait(0.05)
  211. p.Size = p.Size + Vector3.new(-4, -4, -4)
  212. p.Transparency = p.Transparency + 0.1
  213. p.CFrame = jun.Character.Torso.CFrame
  214. end
  215. p:Remove()
  216. for u, c in pairs (jun.Character:GetChildren()) do
  217. if c.className == "Hat" and c.Name ~= "Swordpack" and c.Name ~= "GlassesBlackFrame" then
  218. c.Handle.Transparency = 0
  219. end
  220. if c.Name == "Hair" then
  221. c:Remove()
  222. end
  223. end
  224. jun.Character.Humanoid.Health = jun.Character.Humanoid.Health/1.5
  225. wait(0.3)
  226. jun.Character.Humanoid.MaxHealth = jun.Character.Humanoid.MaxHealth/1.5
  227. end
  228. end
  229. jun.Chatted:connect(function(Msg)
  230. msg = Msg:lower()
  231. if string.sub(msg, 1, 7) == "pwnage" then
  232. wait(0.1)
  233. ssj()
  234. end
  235. if string.sub(msg, 1, 13) == "super saiyan" then
  236. wait(0.1)
  237. ssj()
  238. end
  239. if string.sub(msg, 1, 6) == "ssj" then
  240. wait(0.1)
  241. ssj()
  242. end
  243. if string.sub(msg, 1, 10) == "pwnd" then
  244. wait(0.1)
  245. nossj()
  246. end
  247. if string.sub(msg, 1, 3) == "off" then
  248. wait(0.1)
  249. nossj()
  250. end
  251. end)
  252. function OnDeath()
  253. wait()
  254. nossj()
  255. end
  256. jun.Character.Humanoid.Died:connect(OnDeath)
  257. jun = owner
  258. Stuff = false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement