Advertisement
lafur

Untitled

Sep 12th, 2018
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.12 KB | None | 0 0
  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,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end --Cigar by kash5, repost by UMSURE02.
  6.  
  7. Name=game.Workspace.DarknessLord28--Put your name here
  8.  
  9. local w1 = Instance.new("Weld")
  10.  
  11. w1.Parent = Name.Torso
  12.  
  13. w1.Part0 = w1.Parent
  14.  
  15. w1.Part1 = Name["Right Arm"]
  16.  
  17. w1.C0 = CFrame.new(1.5, -0.1, 0)*CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0,0,-0.1)
  18.  
  19. wait(0.1)
  20.  
  21. w1.C0=CFrame.new(1.5,-0.1,0)*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0,0,-0.2)
  22.  
  23. wait(0.1)
  24.  
  25. w1.C0=CFrame.new(1.5,-0.1,0)*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0,0,-0.3)
  26.  
  27. wait(0.1)
  28.  
  29. w1.C0=CFrame.new(1.5,-0.1,0)*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0,0,-0.4)
  30.  
  31. wait(0.1)
  32.  
  33. w1.C0=CFrame.new(1.5,-0.1,0)*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0,0,-0.5)
  34.  
  35. wait(0.1)
  36.  
  37. w1.C0=CFrame.new(1.5,-0.1,0)*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0,0,-0.6)
  38.  
  39. wait(0.1)
  40.  
  41. w1.C0=CFrame.new(1.5,-0.1,0)*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0,0,-0.7)
  42.  
  43. wait(0.1)
  44.  
  45. w1.C0=CFrame.new(1.5,-0.1,0)*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0,0,-0.8)
  46.  
  47. wait(0.1)
  48.  
  49. w1.C0=CFrame.new(1.5,-0.1,0)*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0,0,-0.9)
  50.  
  51. wait(0.1)
  52.  
  53. w1.C0=CFrame.new(1.5,-0.1,0)*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0,0,-1)
  54.  
  55. Cigar=Instance.new("Part",game.Workspace)
  56.  
  57. Cigar.CanCollide = false
  58.  
  59. Cigar.Anchored = false
  60.  
  61. Cigar.Name = "Cigar"
  62.  
  63. Cigar.Parent = Name
  64.  
  65. Cigar.BrickColor = BrickColor.new(217)
  66.  
  67. Cigar.FormFactor = "Custom"
  68.  
  69. Cigar.Size=Vector3.new(0.1,0.1,0.1)
  70.  
  71. Mesh=Instance.new("CylinderMesh",Cigar)
  72.  
  73. Cigar.Mesh.Scale=Vector3.new(1,10,10)
  74.  
  75. w2=Instance.new("Weld")
  76.  
  77. w2.Parent = Name["Right Arm"]
  78.  
  79. w2.Part0 = w2.Parent
  80.  
  81. w2.Part1 = Cigar
  82.  
  83. w2.C0=CFrame.new(0,0,0)*CFrame.new(0,-1,0)*CFrame.fromEulerAnglesXYZ(2,0,0)
  84.  
  85. w1.C0 = CFrame.new(1.5, -0.1, 0)*CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0,0,-0.9)
  86.  
  87. wait(0.1)
  88.  
  89. w1.C0=CFrame.new(1.5,-0.1,0)*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0,0,-0.8)
  90.  
  91. wait(0.1)
  92.  
  93. w1.C0=CFrame.new(1.5,-0.1,0)*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0,0,-0.7)
  94.  
  95. wait(0.1)
  96.  
  97. w1.C0=CFrame.new(1.5,-0.1,0)*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0,0,-0.6)
  98.  
  99. wait(0.1)
  100.  
  101. w1.C0=CFrame.new(1.5,-0.1,0)*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0,0,-0.5)
  102.  
  103. wait(0.1)
  104.  
  105. w1.C0=CFrame.new(1.5,-0.1,0)*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0,0,-0.4)
  106.  
  107. wait(0.1)
  108.  
  109. w1.C0=CFrame.new(1.5,-0.1,0)*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0,0,-0.3)
  110.  
  111. wait(0.1)
  112.  
  113. w1.C0=CFrame.new(1.5,-0.1,0)*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0,0,-0.2)
  114.  
  115. wait(0.1)
  116.  
  117. w1.C0=CFrame.new(1.5,-0.1,0)*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0,0,-0.1)
  118.  
  119. wait(0.1)
  120.  
  121. w1.C0=CFrame.new(1.5,-0.1,0)*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0,0,0)
  122.  
  123. wait(0.1)
  124.  
  125. w1.C0=CFrame.new(1.4,0,-0.1)*CFrame.new(0,0.1,0)*CFrame.fromEulerAnglesXYZ(1,0.1,-0.1)
  126.  
  127. wait(0.1)
  128.  
  129. w1.C0=CFrame.new(1.3,0.1,-0.2)*CFrame.new(0,0.2,0)*CFrame.fromEulerAnglesXYZ(1.5,0.1,-0.2)
  130.  
  131. wait(0.1)
  132.  
  133. w1.C0=CFrame.new(1.2,0.2,-0.3)*CFrame.new(0,0.3,0)*CFrame.fromEulerAnglesXYZ(2,0.1,-0.3)
  134.  
  135. wait(0.1)
  136.  
  137. w1.C0=CFrame.new(1.1,0.2,-0.4)*CFrame.new(0,0.4,0)*CFrame.fromEulerAnglesXYZ(2.5,0.1,-0.4)
  138.  
  139. wait(0.1)
  140.  
  141. w1.C0=CFrame.new(1,0.2,-0.5)*CFrame.new(0,0.5,0)*CFrame.fromEulerAnglesXYZ(3,0.1,-0.5)
  142.  
  143. wait(0.1)
  144.  
  145. w1.C0=CFrame.new(0.9,0.2,-0.6)*CFrame.new(0,0.6,0)*CFrame.fromEulerAnglesXYZ(3,0.1,-0.6)
  146.  
  147. wait(0.1)
  148.  
  149. w1.C0=CFrame.new(0.9,0.2,-0.7)*CFrame.new(0,0.7,0)*CFrame.fromEulerAnglesXYZ(3,0.1,-0.7)
  150.  
  151. wait(0.1)
  152.  
  153. w1.C0=CFrame.new(0.9,0.2,-0.7)*CFrame.new(0,0.7,0)*CFrame.fromEulerAnglesXYZ(3,0.1,-0.8)
  154.  
  155. wait(0.1)
  156.  
  157. w1.C0=CFrame.new(0.9,0.2,-0.7)*CFrame.new(0,0.7,0)*CFrame.fromEulerAnglesXYZ(3,0.1,-1)
  158.  
  159. w3=Instance.new("Weld")
  160.  
  161. w3.Parent = Name.Head
  162.  
  163. w3.Part0 = w3.Parent
  164.  
  165. w3.Part1 = Cigar
  166.  
  167. Name["Right Arm"].Weld:Destroy()
  168.  
  169. w3.C0=CFrame.new(0,0,0)*CFrame.new(0.1,-0.1,-1)*CFrame.fromEulerAnglesXYZ(0,1.5,-1.5)
  170.  
  171. sm=Instance.new("Smoke",Cigar)
  172.  
  173. sm.Opacity=0.1
  174.  
  175. sm.Color=Color3.new(128,128,128)
  176.  
  177. w1.C0=CFrame.new(0.8,0.1,-0.6)*CFrame.new(0.2,0.6,0)*CFrame.fromEulerAnglesXYZ(2.5,0,-0.9)
  178.  
  179. wait(0.1)
  180.  
  181. w1.C0=CFrame.new(0.7,0,-0.5)*CFrame.new(0.4,0.5,0)*CFrame.fromEulerAnglesXYZ(2,0,-0.8)
  182.  
  183. wait(0.1)
  184.  
  185. w1.C0=CFrame.new(0.6,0,-0.4)*CFrame.new(0.6,0.4,0)*CFrame.fromEulerAnglesXYZ(1.5,0,-0.7)
  186.  
  187. wait(0.1)
  188.  
  189. w1.C0=CFrame.new(0.5,0,-0.3)*CFrame.new(0.8,0.3,0)*CFrame.fromEulerAnglesXYZ(1,0,-0.6)
  190.  
  191. wait(0.1)
  192.  
  193. w1.C0=CFrame.new(0.4,0,-0.2)*CFrame.new(1,0.2,0)*CFrame.fromEulerAnglesXYZ(0.5,0,-0.5)
  194.  
  195. wait(0.1)
  196.  
  197. w1.C0=CFrame.new(0.3,0,-0.1)*CFrame.new(1.2,0.1,0)*CFrame.fromEulerAnglesXYZ(0,0,-0.4)
  198.  
  199. wait(0.1)
  200.  
  201. w1.C0=CFrame.new(0.2,0,0)*CFrame.new(1.4,0,0)*CFrame.fromEulerAnglesXYZ(0,0,-0.3)
  202.  
  203. wait(0.1)
  204.  
  205. w1.C0=CFrame.new(0.1,0,0)*CFrame.new(1.5,0,0)*CFrame.fromEulerAnglesXYZ(0,0,-0.2)
  206.  
  207. wait(0.1)
  208.  
  209. w1.C0=CFrame.new(0,0,0)*CFrame.new(1.5,0,0)*CFrame.fromEulerAnglesXYZ(0,0,-0.1)
  210.  
  211. wait(0.1)
  212.  
  213. w1.C0=CFrame.new(0,0,0)*CFrame.new(1.5,0,0)*CFrame.fromEulerAnglesXYZ(0,0,0)
  214.  
  215. Name.Torso.CFrame=CFrame.new(0,10,0)
  216.  
  217. --kash5, reposted by UMSURE02.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement