Advertisement
Guest User

Untitled

a guest
May 22nd, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.04 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 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. mouse = game.Players.LocalPlayer:GetMouse()
  149. game.Players.LocalPlayer.Character.Animate:destroy()
  150. game.Chat:Chat(game.Players.LocalPlayer.Character.Head,"Fite me nubs. I has da powah of da memz.","Red")
  151. Gun = Instance.new("Part", game.Players.LocalPlayer.Character["Right Arm"])
  152. Gun.CanCollide = false
  153. shot = Instance.new("Sound", Gun)
  154. shot.SoundId = "rbxassetid://205561897"
  155. shot.Volume = 50
  156. Mesh = Instance.new("SpecialMesh", Gun)
  157. Mesh.MeshId = "http://www.roblox.com/asset/?id=50763455"
  158. Mesh.TextureId = "http://www.roblox.com/asset/?id=50763489"
  159. Weld = Instance.new("Weld", Gun)
  160. Weld.Part0 = Gun
  161. Weld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  162. Weld.C0 = CFrame.Angles(3.1,0,0) * CFrame.new(0,1.5,0)
  163. for i = 1,20 do
  164. wait()
  165. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 * CFrame.Angles(0,0,-0.08)
  166. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 * CFrame.Angles(0,0,0.08)
  167. end
  168. for i = 1,20 do
  169. wait()
  170. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 * CFrame.Angles(0.06,0,0)
  171. end
  172. for i = 1,5 do
  173. wait()
  174. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 * CFrame.new(0,-0.15,0.05)
  175. end
  176. shooting = false
  177. function lol(key)
  178. key = key:lower()
  179. if not shooting then
  180. if key == "q" then
  181. shooting = true
  182. shot:Play()
  183. game.Chat:Chat(game.Players.LocalPlayer.Character.Head,"GARFIELD!!!","Red")
  184. local BOOM = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
  185. BOOM.SoundId = "rbxassetid://201858072"
  186. BOOM.Volume = 10
  187. BOOM:Play()
  188. local part = Instance.new("Part", workspace)
  189. part.Size = Vector3.new(0.4, 0.4, 0.4)
  190. part.BrickColor = BrickColor.new("Toothpaste")
  191. part.Position = Gun.Position
  192. part.Position = part.Position + Gun.CFrame.lookVector * 0
  193. part.Rotation = Gun.CFrame.lookVector * 10
  194. part.Position = part.Position - Vector3.new(0,0.3,0)
  195. local vel = Instance.new("BodyVelocity", part)
  196. vel.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  197. vel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 200
  198. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 * CFrame.Angles(0,0,-0.3)
  199. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 * CFrame.Angles(0,0,0.3)
  200. wait(0.1)
  201. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 * CFrame.Angles(0,0,0.3)
  202. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 * CFrame.Angles(0,0,-0.3)
  203. shooting = false
  204. local function ded(ball)
  205. local Tors = ball.Parent:FindFirstChild("Torso")
  206. local hed = ball.Parent:FindFirstChild("Head")
  207. local hum = ball.Parent:FindFirstChild("Humanoid")
  208. local rootpart = ball.Parent:FindFirstChild("HumanoidRootPart")
  209. part:destroy()
  210. Tors["Left Shoulder"].C0 = Tors["Left Shoulder"].C0 * CFrame.Angles(0,0,math.random(-1,1))
  211. Tors["Right Shoulder"].C0 = Tors["Right Shoulder"].C0 * CFrame.Angles(0,0,math.random(-1,1))
  212. hum.PlatformStand = true
  213. local SEIZURETIME = Instance.new("Sound", Tors)
  214. SEIZURETIME.SoundId = "rbxassetid://156823872"
  215. SEIZURETIME.Looped = true
  216. SEIZURETIME:Play()
  217. SEIZURETIME.Volume = 50
  218. game.Chat:Chat(hed,"HALP MEH11!1!!","Red")
  219. local velocity = Instance.new("BodyVelocity", Tors)
  220. velocity.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  221. velocity.Velocity = Vector3.new(game.Players.LocalPlayer.Character.Torso.CFrame.lookVector,game.Players.LocalPlayer.Character.Torso.CFrame.lookVector ,game.Players.LocalPlayer.Character.Torso.CFrame.lookVector)
  222. velocity:destroy()
  223. print(hed.Parent.Name)
  224. rootpart.RootJoint.C0 = rootpart.RootJoint.C0 * CFrame.Angles(2,0,0)
  225. while true do
  226. wait()
  227. hum.CameraOffset = Vector3.new(math.random(-2,2),math.random(-2,2),math.random(-2,2))
  228. game.Chat:Chat(hed,"HALP MEEEEH11!1!!","Red")
  229. hum.Health = math.random(1,100)
  230. Tors.Neck.C0 = Tors.Neck.C0 * CFrame.Angles(math.random(-1,1),0,0)
  231. Tors["Left Hip"].C0 = Tors["Left Hip"].C0 * CFrame.Angles(0,0,math.random(-1,1))
  232. Tors["Right Hip"].C0 = Tors["Right Hip"].C0 * CFrame.Angles(0,0,math.random(-1,1))
  233. Tors["Left Shoulder"].C0 = Tors["Left Shoulder"].C0 * CFrame.Angles(0,0,math.random(-1,1))
  234. Tors["Right Shoulder"].C0 = Tors["Right Shoulder"].C0 * CFrame.Angles(0,0,math.random(-1,1))
  235. end
  236. end
  237. part.Touched:connect(ded)
  238. end
  239. end
  240. end
  241. mouse.KeyDown:connect(lol)
  242. rig = game.Players.LocalPlayer.Character.Torso
  243. run = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
  244. run.SoundId = "rbxassetid://142665235"
  245. run.Volume = 0
  246. run.Looped = true
  247. run:Play()
  248. run.PlaybackSpeed = 1.2
  249. walking = true
  250. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 25
  251. function walk(key)
  252. key = key:lower()
  253. if key == "w" then
  254. walking = true
  255. run.Volume = 10
  256. if walking == true then
  257. wait()
  258. for i = 1,5 do
  259. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.2)
  260. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.2)
  261. end
  262. while walking == true do
  263. for i = 1,5 do
  264. wait()
  265. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,0.4)
  266. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,0.4)
  267. end
  268. for i = 1,5 do
  269. wait()
  270. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.4)
  271. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.4)
  272. end
  273. end
  274. end
  275. end
  276. end
  277. mouse.KeyDown:connect(walk)
  278. function notwalk(key)
  279. key = key:lower()
  280. if key == "w" then
  281. walking = false
  282. run.Volume = 0
  283. for i = 1,10 do
  284. wait()
  285. rig["Left Hip"].C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  286. rig["Right Hip"].C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  287. end
  288. end
  289. end
  290. mouse.KeyUp:connect(notwalk)
  291. ---------------------------------
  292. walking1 = false
  293. function walk1(key)
  294. key = key:lower()
  295. if key == "d" then
  296. walking1 = true
  297. if walking1 == true then
  298. wait()
  299. run.Volume = 10
  300. for i = 1,5 do
  301. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.2)
  302. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.2)
  303. end
  304. while walking1 == true do
  305. for i = 1,5 do
  306. wait()
  307. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,0.4)
  308. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,0.4)
  309. end
  310. for i = 1,5 do
  311. wait()
  312. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.4)
  313. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.4)
  314. end
  315. end
  316. end
  317. end
  318. end
  319. mouse.KeyDown:connect(walk1)
  320. function notwalk1(key)
  321. key = key:lower()
  322. if key == "d" then
  323. walking1 = false
  324. run.Volume = 0
  325. for i = 1,10 do
  326. wait()
  327. rig["Left Hip"].C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  328. rig["Right Hip"].C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  329. end
  330. end
  331. end
  332. mouse.KeyUp:connect(notwalk1)
  333. ------------------------------------------
  334. walking2 = false
  335. function walk2(key)
  336. key = key:lower()
  337. if key == "a" then
  338. walking2 = true
  339. run.Volume = 10
  340. if walking2 == true then
  341. wait()
  342. for i = 1,5 do
  343. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.2)
  344. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.2)
  345. end
  346. while walking2 == true do
  347. for i = 1,5 do
  348. wait()
  349. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,0.4)
  350. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,0.4)
  351. end
  352. for i = 1,5 do
  353. wait()
  354. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.4)
  355. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.4)
  356. end
  357. end
  358. end
  359. end
  360. end
  361. mouse.KeyDown:connect(walk2)
  362. function notwalk2(key)
  363. key = key:lower()
  364. if key == "a" then
  365. walking2 = false
  366. run.Volume = 0
  367. for i = 1,10 do
  368. wait()
  369. rig["Left Hip"].C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  370. rig["Right Hip"].C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  371. end
  372. end
  373. end
  374. mouse.KeyUp:connect(notwalk2)
  375. ----------------------------------------------------
  376. walking3 = false
  377. function walk3(key)
  378. key = key:lower()
  379. if key == "s" then
  380. walking3 = true
  381. run.Volume = 10
  382. if walking3 == true then
  383. wait()
  384. for i = 1,5 do
  385. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.2)
  386. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.2)
  387. end
  388. while walking3 == true do
  389. for i = 1,5 do
  390. wait()
  391. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,0.4)
  392. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,0.4)
  393. end
  394. for i = 1,5 do
  395. wait()
  396. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.4)
  397. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.4)
  398. end
  399. end
  400. end
  401. end
  402. end
  403. mouse.KeyDown:connect(walk3)
  404. function notwalk3(key)
  405. key = key:lower()
  406. if key == "s" then
  407. walking3 = false
  408. run.Volume = 0
  409. for i = 1,10 do
  410. wait()
  411. rig["Left Hip"].C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  412. rig["Right Hip"].C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  413. end
  414. end
  415. end
  416. mouse.KeyUp:connect(notwalk3)print("Hello world!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement