Advertisement
Guest User

Untitled

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