Advertisement
lafur

Untitled

Jan 28th, 2019
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end --This is made by my alt account so be ready for cringe
  6. local player = game:GetService('Players').LocalPlayer
  7. local character = player.Character
  8. local Mouse = player:GetMouse()
  9. x = 1
  10. y = 1
  11. z = 1
  12.  
  13. a = (script.Parent)
  14. meme1 = Instance.new("Sound",character.HumanoidRootPart)
  15. meme1.SoundId = "rbxassetid://535528169"
  16. meme1.Looped = false
  17. meme1.MaxDistance =50
  18. meme1.EmitterSize = 50
  19. meme1.Volume = 7
  20.  
  21. sound = Instance.new("Sound",character.HumanoidRootPart)
  22. sound.SoundId = "rbxassetid://142334905"
  23. sound.Looped = true
  24. sound.MaxDistance =43
  25. sound.EmitterSize = 43
  26. sound.Volume = 3
  27. sound:Play()
  28.  
  29.  
  30. tp = Instance.new("Sound",character.HumanoidRootPart)
  31. tp.SoundId = "rbxassetid://153613030"
  32. tp.Looped = false
  33. tp.MaxDistance =43
  34. tp.EmitterSize = 43
  35. tp.Volume = 3
  36.  
  37. meme2 = Instance.new("Sound",character.HumanoidRootPart)
  38. meme2.SoundId = "rbxassetid://1208129286"
  39. meme2.Looped = false
  40. meme2.MaxDistance =43
  41. meme2.EmitterSize = 43
  42. meme2.Volume = 6
  43.  
  44.  
  45. meme3 = Instance.new("Sound",character.HumanoidRootPart)
  46. meme3.SoundId = "rbxassetid://212675193"
  47. meme3.Looped = false
  48. meme3.MaxDistance =43
  49. meme3.EmitterSize = 43
  50. meme3.Volume = 8
  51. if character then
  52.  
  53. print('Got character ')
  54.  
  55.  
  56.  
  57.  
  58. print('Get Players Name > '.. character.Name)
  59.  
  60. print(Mouse.Hit.p)
  61.  
  62. Mouse.Button1Up:Connect(function()
  63. print(character.HumanoidRootPart.Position)
  64. wait(0.5)
  65. meme1:Play()
  66. for n = 1,44 do
  67. wait()
  68.  
  69. x= x + 1
  70.  
  71. z = z + 40
  72.  
  73. character:SetPrimaryPartCFrame(CFrame.new(character.PrimaryPart.CFrame.p) * CFrame.fromEulerAnglesXYZ(x,y,z))
  74. end
  75. meme1:Stop()
  76. end)
  77.  
  78. Mouse.KeyDown:connect(function(key)
  79.  
  80. if key == "t" then
  81. tp:Play()
  82. wait(0.1)
  83. for a = 1, 1.1 do
  84. wait()
  85. character:MoveTo(Mouse.Hit.p)
  86. end
  87. tp:Stop()
  88.  
  89. end
  90.  
  91. end)
  92.  
  93.  
  94. Mouse.KeyDown:connect(function(key)
  95.  
  96. if key == "f" then
  97. meme2:Play()
  98. for n = 1,65 do
  99. wait()
  100. ManualWeld7 = Instance.new("ManualWeld")
  101.  
  102. ManualWeld9 = Instance.new("ManualWeld")
  103.  
  104. ManualWeld11 = Instance.new("ManualWeld")
  105.  
  106. ManualWeld13 = Instance.new("ManualWeld")
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113. ManualWeld7.Name = "Weld"
  114. ManualWeld7.Parent = character["Left Arm"]
  115. ManualWeld7.C0 = CFrame.new(0, 0, 0, 0.99999994, 0, 0, 0, -0.999757588, 0.0220163278, 0, -0.0220163278, -0.999757588)
  116. ManualWeld7.C1 = CFrame.new(-1.5, 0.999878883, -0.0110082626, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  117. ManualWeld7.Part0 = character["Left Arm"]
  118. ManualWeld7.Part1 = character.HumanoidRootPart
  119.  
  120. ManualWeld9.Name = "Weld"
  121. ManualWeld9.Parent = character["Left Leg"]
  122. ManualWeld9.C0 = CFrame.new(0, 0, 0, -0.0498936251, -0.998754561, 0, 0.998754561, -0.0498936251, 0, 0, 0, 1)
  123. ManualWeld9.C1 = CFrame.new(-2.02370119, -1.44948387, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  124. ManualWeld9.Part0 = character["Left Leg"]
  125. ManualWeld9.Part1 = character.HumanoidRootPart
  126.  
  127.  
  128. ManualWeld11.Name = "Weld"
  129. ManualWeld11.Parent = character["Right Arm"]
  130. ManualWeld11.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, -0.999998808, -0.00153860194, 0, 0.00153860194, -0.999998808)
  131. ManualWeld11.C1 = CFrame.new(1.5, 0.999999046, 0.000769138336, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  132. ManualWeld11.Part0 = character["Right Arm"]
  133. ManualWeld11.Part1 = character.HumanoidRootPart
  134. ManualWeld11.part1 = character.HumanoidRootPart
  135.  
  136. ManualWeld13.Name = "Weld"
  137. ManualWeld13.Parent = character["Right Leg"]
  138. ManualWeld13.C0 = CFrame.new(0, 0, 0, -0.0519669056, 0.997543454, -0.0469727963, -0.998552918, -0.0512527525, 0.0162826553, 0.0138351712, 0.0477509834, 0.998763442)
  139. ManualWeld13.C1 = CFrame.new(2.02453637, -1.4475193, 0.00720357895, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  140. ManualWeld13.Part0 = character["Right Leg"]
  141. ManualWeld13.Part1 = character.HumanoidRootPart
  142. ManualWeld13.part1 = character.HumanoidRootPart
  143. wait(0.099)
  144. ManualWeld7:Destroy()
  145. ManualWeld9:Destroy()
  146. ManualWeld11:Destroy()
  147. ManualWeld13:Destroy()
  148. wait(0.099)
  149.  
  150. end
  151.  
  152. meme2:Stop()
  153. end
  154. end)
  155.  
  156.  
  157. Mouse.KeyDown:connect(function(key)
  158.  
  159. if key == "h" then
  160. meme3:Play()
  161. for n = 1,3 do
  162. wait()
  163. ManualWeld7 = Instance.new("ManualWeld")
  164.  
  165. ManualWeld9 = Instance.new("ManualWeld")
  166.  
  167. ManualWeld11 = Instance.new("ManualWeld")
  168.  
  169. ManualWeld13 = Instance.new("ManualWeld")
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176. ManualWeld7.Name = "Weld"
  177. ManualWeld7.Parent = character["Left Arm"]
  178. ManualWeld7.C0 = CFrame.new(0, 0, 0, 0, 0.999757648, -0.0220159926, 1, 0, 0, 0, -0.0220159944, -0.999757648)
  179. ManualWeld7.C1 = CFrame.new(-2.02003288, 0.525922775, -0.00057220459, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  180. ManualWeld7.Part0 = character["Left Arm"]
  181. ManualWeld7.Part1 = character.HumanoidRootPart
  182.  
  183. ManualWeld9.Name = "Weld"
  184. ManualWeld9.Parent = character["Left Leg"]
  185. ManualWeld9.C0 = CFrame.new(0, 0, 0, 0.999715865, -0.0238379966, 0, 0.0238379948, 0.999715865, 0, 0, 0, 1)
  186. ManualWeld9.C1 = CFrame.new(-0.53796947, -2.15993881, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  187. ManualWeld9.Part0 = character["Left Leg"]
  188. ManualWeld9.Part1 = character.HumanoidRootPart
  189.  
  190.  
  191. ManualWeld11.Name = "Weld"
  192. ManualWeld11.Parent = character["Right Arm"]
  193. ManualWeld11.C0 = CFrame.new(0, 0, 0, -0.00687600207, -0.999975264, -0.00153900031, -0.999976456, 0.00687596668, 2.79999567e-05, -1.74171455e-05, 0.00153915642, -0.999998868)
  194. ManualWeld11.C1 = CFrame.new(2.00271749, 0.47973156, -4.10079956e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  195. ManualWeld11.Part0 = character["Right Arm"]
  196. ManualWeld11.Part1 = character.HumanoidRootPart
  197.  
  198.  
  199. ManualWeld13.Name = "Weld"
  200. ManualWeld13.Parent = character["Right Leg"]
  201. ManualWeld13.C0 = CFrame.new(0, 0, 0, 0.998828351, 0.0456650145, -0.0160250049, -0.0463737212, 0.997815013, -0.0470610037, 0.0138409482, 0.0477489978, 0.998763502)
  202. ManualWeld13.C1 = CFrame.new(0.492216527, -2.15135765, 0.062087059, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  203. ManualWeld13.Part0 = character["Right Leg"]
  204. ManualWeld13.Part1 = character.HumanoidRootPart
  205.  
  206.  
  207.  
  208. end
  209.  
  210. wait(79.9600000000000000000007958)
  211. meme3:Stop()
  212. ManualWeld7:Destroy()
  213. ManualWeld9:Destroy()
  214. ManualWeld11:Destroy()
  215. ManualWeld13:Destroy()
  216. end
  217. end)
  218.  
  219.  
  220. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement