Advertisement
ghostteen14

Untitled

May 12th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.75 KB | None | 0 0
  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 Joseph Deramus")
  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. --By Rufus12 (lol jk its Rufus14)
  148. mouse = game.Players.LocalPlayer:GetMouse()
  149. used = false
  150. attacking = false
  151. smashing = false
  152. kick = Instance.new("Sound", game.Players.LocalPlayer.Character["Right Leg"])
  153. kick.SoundId = "rbxassetid://507150998"
  154. kick.Volume = 6
  155. kick1 = Instance.new("Sound", game.Players.LocalPlayer.Character["Right Leg"])
  156. kick1.SoundId = "rbxassetid://169380525"
  157. kick1.Volume = 6
  158. kick11 = Instance.new("Sound", game.Players.LocalPlayer.Character["Right Leg"])
  159. kick11.SoundId = "rbxassetid://165969964"
  160. kick11.Volume = 50
  161. function sensor(key)
  162. key = key:lower()
  163. if key == "e" then
  164. if not used then
  165. used = true
  166. local detect = Instance.new("Part", game.Players.LocalPlayer.Character)
  167. detect.Size = Vector3.new(1,1,4)
  168. detect:BreakJoints()
  169. detect.CanCollide = false
  170. detect.Transparency = 0.9
  171. detect.BrickColor = BrickColor.new("Really red")
  172. local weld = Instance.new("Weld", detect)
  173. weld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  174. weld.Part1 = detect
  175. weld.C0 = weld.C0 * CFrame.new(0,-1,0)
  176. local function attack(part)
  177. if not attacking then
  178. attacking = true
  179. local torso = part.Parent:findFirstChild("Torso")
  180. if torso ~= nil then
  181. local humanoid = part.Parent:findFirstChild("Humanoid")
  182. if humanoid ~= nil then
  183. local weld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  184. humanoid.WalkSpeed = 0
  185. humanoid.JumpPower = 0
  186. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
  187. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0
  188. for i = 1,5 do
  189. wait()
  190. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 * CFrame.Angles(0,0,0.25)
  191. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 * CFrame.Angles(0,0,-0.25)
  192. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 * CFrame.Angles(0,0,0.2)
  193. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 * CFrame.Angles(0,0,0.2)
  194. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(-0.2,0,0)
  195. end
  196. kick:Play()
  197. used = true
  198. local bodyvelocity = Instance.new("BodyVelocity", torso)
  199. bodyvelocity.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 67
  200. bodyvelocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  201. wait(1.4)
  202. local bodyposition = Instance.new("BodyPosition", torso)
  203. bodyposition.Position = torso.Position
  204. bodyposition.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  205. bodyvelocity:destroy()
  206. wait(1)
  207. for i = 1,5 do
  208. wait()
  209. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 * CFrame.Angles(0,0,-0.25)
  210. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 * CFrame.Angles(0,0,0.25)
  211. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 * CFrame.Angles(0,0,-0.2)
  212. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 * CFrame.Angles(0,0,-0.2)
  213. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0.2,0,0)
  214. end
  215. for i = 1,5 do
  216. wait()
  217. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 * CFrame.Angles(0,0,0.25)
  218. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 * CFrame.Angles(0,0,-0.25)
  219. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 * CFrame.Angles(0,0,0.2)
  220. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 * CFrame.Angles(0,0,-0.2)
  221. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0.2,0,0)
  222. end
  223. wait(1)
  224. for i = 1,5 do
  225. wait()
  226. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 * CFrame.Angles(0,0,-0.25)
  227. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 * CFrame.Angles(0,0,0.25)
  228. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 * CFrame.Angles(0,0,-0.1)
  229. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 * CFrame.Angles(0,0,0.1)
  230. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(-0.1,0,0)
  231. end
  232. local bodypositionme = Instance.new("BodyPosition", game.Players.LocalPlayer.Character.Torso)
  233. bodypositionme.Position = torso.Position
  234. bodypositionme.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  235. wait(1.1)
  236. for i = 1,5 do
  237. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 * CFrame.Angles(0,0,0.25)
  238. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 * CFrame.Angles(0,0,-0.25)
  239. end
  240. kick1:Play()
  241. bodypositionme:destroy()
  242. local torsowelding = Instance.new("Weld", torso)
  243. torsowelding.Part0 = torso
  244. torsowelding.Part1 = game.Players.LocalPlayer.Character.Torso
  245. torsowelding.C0 = torsowelding.C0 * CFrame.new(0,0,-2)
  246. torsowelding.C0 = torsowelding.C0 * CFrame.Angles(0,3.08,0)
  247. wait(1.3)
  248. torsowelding:destroy()
  249. bodyposition:destroy()
  250. local mybodyvel = Instance.new("BodyVelocity", game.Players.LocalPlayer.Character.Torso)
  251. mybodyvel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * -90
  252. mybodyvel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  253. local bodyvel = Instance.new("BodyVelocity", torso)
  254. bodyvel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 80
  255. bodyvel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  256. humanoid.PlatformStand = true
  257. wait(0.3)
  258. bodyvel:destroy()
  259. mybodyvel:destroy()
  260. wait(0.25)
  261. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  262. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  263. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  264. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  265. game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  266. game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  267. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
  268. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 50
  269. wait(2.5)
  270. local block = Instance.new("Part", workspace)
  271. block.Position = torso.Position + Vector3.new(0,500,0)
  272. block.Size = Vector3.new(50,70,50)
  273. local function smash()
  274. if not smashing then
  275. smashing = true
  276. local explosion = Instance.new("Explosion", block)
  277. explosion.BlastRadius = 999999999
  278. humanoid.Health = 0
  279. kick11:Play()
  280. explosion.Position = torso.Position
  281. wait(1)
  282. smashing = false
  283. end
  284. end
  285. block.Touched:connect(smash)
  286. used = false
  287. attacking = false
  288. wait(7)
  289. block:destroy()
  290. end
  291. end
  292. wait(1)
  293. attacking = false
  294. end
  295. end
  296. detect.Touched:connect(attack)
  297. wait(0.1)
  298. detect:destroy()
  299. used = false
  300. end
  301. end
  302. end
  303. mouse.KeyDown:connect(sensor)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement