Hugo1234cool

Untitled

Jan 30th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.26 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,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
  6. mouse = game.Players.LocalPlayer:GetMouse()
  7. game.Players.LocalPlayer.Character.Torso.Neck.C1 = CFrame.new(0,-0.7,0)
  8. local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  9. rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  10. rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  11. rhandweld.C1 = CFrame.new(0,1,0)
  12. --Converted with ttyyuu12345's model to script plugin v4
  13. function sandbox(var,func)
  14. local env = getfenv(func)
  15. local newenv = setmetatable({},{
  16. __index = function(self,k)
  17. if k=="script" then
  18. return var
  19. else
  20. return env[k]
  21. end
  22. end,
  23. })
  24. setfenv(func,newenv)
  25. return func
  26. end
  27. cors = {}
  28. mas = Instance.new("Model",game:GetService("Lighting"))
  29. Model0 = Instance.new("Model")
  30. Part1 = Instance.new("Part")
  31. Weld2 = Instance.new("Weld")
  32. Weld3 = Instance.new("Weld")
  33. Part4 = Instance.new("Part")
  34. Part5 = Instance.new("Part")
  35. ParticleEmitter6 = Instance.new("ParticleEmitter")
  36. Sound7 = Instance.new("Sound")
  37. Part8 = Instance.new("Part")
  38. Model0.Name = "faking huge can"
  39. Model0.Parent = mas
  40. Part1.Parent = Model0
  41. Part1.Rotation = Vector3.new(90, 0, -180)
  42. Part1.Shape = Enum.PartType.Cylinder
  43. Part1.Size = Vector3.new(1.63530481, 0.735886931, 0.695004463)
  44. Part1.CFrame = CFrame.new(-37.7083321, 1.37305737, 43.55299, -1, 0, 0, 0, 0, -1, 0, -1, 0)
  45. Part1.BottomSurface = Enum.SurfaceType.Smooth
  46. Part1.TopSurface = Enum.SurfaceType.Smooth
  47. Part1.Position = Vector3.new(-37.7083321, 1.37305737, 43.55299)
  48. Part1.Orientation = Vector3.new(90, 180, 0)
  49. Weld2.Parent = Part1
  50. Weld2.C0 = CFrame.new(-1.12427211, 0.0102203041, -0.102206148, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  51. Weld2.Part0 = Part1
  52. Weld2.Part1 = Part5
  53. Weld3.Parent = Part1
  54. Weld3.C0 = CFrame.new(-0.807440341, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  55. Weld3.Part0 = Part1
  56. Weld3.Part1 = Part4
  57. Part4.Parent = Model0
  58. Part4.Rotation = Vector3.new(90, 0, -180)
  59. Part4.Shape = Enum.PartType.Ball
  60. Part4.Size = Vector3.new(0.674563348, 0.674563348, 0.674563348)
  61. Part4.CFrame = CFrame.new(-36.9008904, 1.37305737, 43.55299, -1, 0, 0, 0, 0, -1, 0, -1, 0)
  62. Part4.BottomSurface = Enum.SurfaceType.Smooth
  63. Part4.TopSurface = Enum.SurfaceType.Smooth
  64. Part4.Position = Vector3.new(-36.9008904, 1.37305737, 43.55299)
  65. Part4.Orientation = Vector3.new(90, 180, 0)
  66. Part5.Parent = Model0
  67. Part5.BrickColor = BrickColor.new("Really black")
  68. Part5.Rotation = Vector3.new(90, 0, -180)
  69. Part5.Shape = Enum.PartType.Cylinder
  70. Part5.Size = Vector3.new(0.490591407, 0.143089026, 0.0817651823)
  71. Part5.CFrame = CFrame.new(-36.5840607, 1.47526348, 43.5427704, -1, 0, 0, 0, 0, -1, 0, -1, 0)
  72. Part5.BottomSurface = Enum.SurfaceType.Smooth
  73. Part5.TopSurface = Enum.SurfaceType.Smooth
  74. Part5.Color = Color3.new(0, 0, 0)
  75. Part5.Position = Vector3.new(-36.5840607, 1.47526348, 43.5427704)
  76. Part5.Orientation = Vector3.new(90, 180, 0)
  77. Part5.Color = Color3.new(0, 0, 0)
  78. ParticleEmitter6.Parent = Part5
  79. ParticleEmitter6.Transparency = NumberSequence.new(0.8,1)
  80. ParticleEmitter6.Size = NumberSequence.new(8,18)
  81. ParticleEmitter6.Color = ColorSequence.new(Color3.new(1, 0.447059, 0.0784314),Color3.new(1, 0.447059, 0.0784314))
  82. ParticleEmitter6.Texture = "rbxassetid://31727915"
  83. ParticleEmitter6.Lifetime = NumberRange.new(10, 10)
  84. ParticleEmitter6.Rate = 0
  85. ParticleEmitter6.RotSpeed = NumberRange.new(10, 10)
  86. ParticleEmitter6.Speed = NumberRange.new(5, 12)
  87. ParticleEmitter6.VelocitySpread = 500
  88. ParticleEmitter6.Color = ColorSequence.new(Color3.new(1, 0.447059, 0.0784314),Color3.new(1, 0.447059, 0.0784314))
  89. Sound7.Name = "garlic bread"
  90. Sound7.Parent = Model0
  91. Sound7.SoundId = "rbxassetid://843338638"
  92. Sound7.Volume = 8
  93. Sound7.Looped = true
  94. for i,v in pairs(mas:GetChildren()) do
  95. v.Parent = game:GetService("Players").LocalPlayer.Character
  96. pcall(function() v:MakeJoints() end)
  97. end
  98. mas:Destroy()
  99. for i,v in pairs(cors) do
  100. spawn(function()
  101. pcall(v)
  102. end)
  103. end
  104. Part1.CanCollide = false
  105. Part5.CanCollide = false
  106. Part4.CanCollide = false
  107. --Converted with ttyyuu12345's model to script plugin v4
  108. function sandbox(var,func)
  109. local env = getfenv(func)
  110. local newenv = setmetatable({},{
  111. __index = function(self,k)
  112. if k=="script" then
  113. return var
  114. else
  115. return env[k]
  116. end
  117. end,
  118. })
  119. setfenv(func,newenv)
  120. return func
  121. end
  122. cors = {}
  123. mas = Instance.new("Model",game:GetService("Lighting"))
  124. Part00 = Instance.new("Part")
  125. SpecialMesh1 = Instance.new("SpecialMesh")
  126. Part00.Parent = mas
  127. Part00.Size = Vector3.new(2.5, 1.29999983, 1.05000019)
  128. Part00.CFrame = CFrame.new(-1.3499999, 1.40000379, -8.82500172, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  129. Part00.BottomSurface = Enum.SurfaceType.Smooth
  130. Part00.TopSurface = Enum.SurfaceType.Smooth
  131. Part00.Position = Vector3.new(-1.3499999, 1.40000379, -8.82500172)
  132. SpecialMesh1.Parent = Part00
  133. SpecialMesh1.MeshId = "rbxassetid://497613846"
  134. SpecialMesh1.Scale = Vector3.new(0.349999994, 0.349999994, 0.349999994)
  135. SpecialMesh1.TextureId = "rbxassetid://497613952"
  136. SpecialMesh1.MeshType = Enum.MeshType.FileMesh
  137. SpecialMesh1.Scale = Vector3.new(0.349999994, 0.349999994, 0.349999994)
  138. for i,v in pairs(mas:GetChildren()) do
  139. v.Parent = game:GetService("Players").LocalPlayer.Character
  140. pcall(function() v:MakeJoints() end)
  141. end
  142. mas:Destroy()
  143. for i,v in pairs(cors) do
  144. spawn(function()
  145. pcall(v)
  146. end)
  147. end
  148. weldbottle = Instance.new("Weld", Part1)
  149. weldbottle.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  150. weldbottle.Part1 = Part1
  151. weldbottle.C0 = CFrame.new(0.0999984741, -1.72502387, -0.375068665, -4.49431016e-21, -1, -4.72251821e-22, 6.79972604e-22, 4.72250306e-22, -0.999996424, 1, -4.49431016e-21, 6.79974927e-22) * CFrame.new(0,0,-0.5)
  152. weldhat = Instance.new("Weld", game.Players.LocalPlayer.Character.Head)
  153. weldhat.Part0 = game.Players.LocalPlayer.Character.Head
  154. weldhat.Part1 = Part00
  155. weldhat.C0 = CFrame.new(0,0,-0.3)
  156. Part00.CanCollide = false
  157. gassing = false
  158. cangas = false
  159. function keydown()
  160. cangas = true
  161. Part8 = Instance.new("Part", workspace)
  162. Part8.Transparency = 1
  163. Part8.Rotation = Vector3.new(0, 0, -90)
  164. Part8.CanCollide = false
  165. Part8.Size = Vector3.new(25, 25, 25)
  166. Part8.CFrame = CFrame.new(-37.3749924, 0.0750039667, 44.1749916, 0, 1, -0, -1, 0, 0, 0, 0, 1)
  167. Part8.BottomSurface = Enum.SurfaceType.Smooth
  168. Part8.TopSurface = Enum.SurfaceType.Smooth
  169. Part8.Position = Vector3.new(-37.3749924, 0.0750039667, 44.1749916)
  170. Part8.Orientation = Vector3.new(0, 0, -90)
  171. ParticleEmitter6.Rate = 100
  172. Part8.CanCollide = false
  173. Part8.Name = "Gas"
  174. local function gasppl(part)
  175. local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
  176. if cangas then
  177. if humanoid then
  178. if humanoid.Parent.Name == game.Players.LocalPlayer.Name then
  179. else
  180. if humanoid.Health <= 2 then
  181. humanoid.JumpPower = 0
  182. local humpart = humanoid.Parent:findFirstChild("HumanoidRootPart")
  183. if humpart then
  184. humpart:destroy()
  185. end
  186. for i,v in pairs(humanoid.Parent:GetChildren()) do
  187. if v.ClassName == "Script" or v.ClassName == "LocalScript" then
  188. v:Remove()
  189. end
  190. end
  191. humanoid.PlatformStand = true
  192. humanoid.WalkSpeed = 0
  193. humanoid.Name = "getgassedboi"
  194. local findlefthip = humanoid.Parent.Torso:findFirstChild("Left Hip")
  195. if findlefthip then
  196. findlefthip:Remove()
  197. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  198. glue.Part0 = humanoid.Parent.Torso
  199. glue.Part1 = humanoid.Parent["Left Leg"]
  200. glue.Name = "Left leg"
  201. local collider = Instance.new("Part", humanoid.Parent["Left Leg"])
  202. collider.Position = Vector3.new(0,999,0)
  203. collider.Size = Vector3.new(1.5, 1, 1)
  204. collider.Shape = "Cylinder"
  205. local weld = Instance.new("Weld", collider)
  206. weld.Part0 = humanoid.Parent["Left Leg"]
  207. weld.Part1 = collider
  208. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  209. collider.TopSurface = "Smooth"
  210. collider.BottomSurface = "Smooth"
  211. collider.formFactor = "Symmetric"
  212. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  213. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  214. collider.Transparency = 1
  215. end
  216. --
  217. local findrighthip = humanoid.Parent.Torso:findFirstChild("Right Hip")
  218. if findrighthip then
  219. findrighthip:Remove()
  220. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  221. glue.Part0 = humanoid.Parent.Torso
  222. glue.Part1 = humanoid.Parent["Right Leg"]
  223. glue.Name = "Right leg"
  224. local collider = Instance.new("Part", humanoid.Parent["Right Leg"])
  225. collider.Position = Vector3.new(0,999,0)
  226. collider.Size = Vector3.new(1.5, 1, 1)
  227. collider.Shape = "Cylinder"
  228. local weld = Instance.new("Weld", collider)
  229. weld.Part0 = humanoid.Parent["Right Leg"]
  230. weld.Part1 = collider
  231. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  232. collider.TopSurface = "Smooth"
  233. collider.BottomSurface = "Smooth"
  234. collider.formFactor = "Symmetric"
  235. glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  236. glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  237. collider.Transparency = 1
  238. end
  239. --
  240. local findrightshoulder = humanoid.Parent.Torso:findFirstChild("Right Shoulder")
  241. if findrightshoulder then
  242. findrightshoulder:Remove()
  243. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  244. glue.Part0 = humanoid.Parent.Torso
  245. glue.Part1 = humanoid.Parent["Right Arm"]
  246. glue.Name = "Right arm"
  247. local collider = Instance.new("Part", humanoid.Parent["Right Arm"])
  248. collider.Position = Vector3.new(0,999,0)
  249. collider.Size = Vector3.new(1.5, 1, 1)
  250. collider.Shape = "Cylinder"
  251. local weld = Instance.new("Weld", collider)
  252. weld.Part0 = humanoid.Parent["Right Arm"]
  253. weld.Part1 = collider
  254. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  255. collider.TopSurface = "Smooth"
  256. collider.BottomSurface = "Smooth"
  257. collider.formFactor = "Symmetric"
  258. glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  259. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  260. collider.Transparency = 1
  261. end
  262. --
  263. local findleftshoulder = humanoid.Parent.Torso:findFirstChild("Left Shoulder")
  264. if findleftshoulder then
  265. findleftshoulder:Remove()
  266. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  267. glue.Part0 = humanoid.Parent.Torso
  268. glue.Part1 = humanoid.Parent["Left Arm"]
  269. glue.Name = "Left arm"
  270. local collider = Instance.new("Part", humanoid.Parent["Left Arm"])
  271. collider.Position = Vector3.new(0,999,0)
  272. collider.Size = Vector3.new(1.5, 1, 1)
  273. collider.Shape = "Cylinder"
  274. local weld = Instance.new("Weld", collider)
  275. weld.Part0 = humanoid.Parent["Left Arm"]
  276. weld.Part1 = collider
  277. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  278. collider.TopSurface = "Smooth"
  279. collider.BottomSurface = "Smooth"
  280. collider.formFactor = "Symmetric"
  281. glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  282. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  283. collider.Transparency = 1
  284. end
  285. local findhead = humanoid.Parent:findFirstChild("Head")
  286. if findhead then
  287. local attachment = Instance.new("Attachment", humanoid.Parent.Head)
  288. attachment.Position = Vector3.new(0, -0.5, 0)
  289. attachment.Name = "lol"
  290. attachment.Visible = false
  291. humanoid.Parent.Torso.NeckAttachment.Visible = false
  292. humanoid.Parent.Torso.NeckAttachment.Position = humanoid.Parent.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  293. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  294. ball.Attachment0 = humanoid.Parent.Torso.NeckAttachment
  295. ball.Attachment1 = attachment
  296. ball.LimitsEnabled = true
  297. ball.TwistLimitsEnabled = true
  298. ball.UpperAngle = 90
  299. ball.Restitution = 0.5
  300. ball.TwistUpperAngle = 90
  301. ball.TwistLowerAngle = -90
  302. local collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  303. collidepartofleftleg.Name = "Bone"
  304. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  305. collidepartofleftleg.Transparency = 1
  306. collidepartofleftleg:BreakJoints()
  307. local weeld = Instance.new("Weld", collidepartofleftleg)
  308. weeld.Part0 = collidepartofleftleg
  309. weeld.Part1 = humanoid.Parent["Head"]
  310. if humanoid.Parent.Torso:findFirstChild("Neck") then
  311. humanoid.Parent.Torso.Neck:destroy()
  312. end
  313. end
  314. wait(10)
  315. humanoid.Parent.Anchivable = true
  316. humanoid.Parent:Clone()
  317. humanoid.Parent:destroy()
  318. else
  319. humanoid.Health = humanoid.Health - 5
  320. humanoid.WalkSpeed = humanoid.WalkSpeed - 0.002
  321. end
  322. end
  323. end
  324. end
  325. end
  326. Part8.Touched:connect(gasppl)
  327. Sound7:Play()
  328. end
  329. function keyup()
  330. cangas = false
  331. Part8:destroy()
  332. ParticleEmitter6.Rate = 0
  333. Sound7:Stop()
  334. end
  335. mouse.Button1Down:connect(keydown)
  336. mouse.Button1Up:connect(keyup)
  337. while true do
  338. game:GetService("RunService").RenderStepped:wait()
  339. if Sound7.Parent == nil then
  340. Sound7.Parent = workspace
  341. end
  342. Part8.CFrame = Part1.CFrame
  343. game.Players.LocalPlayer.Character.Torso.CFrame = CFrame.new(game.Players.LocalPlayer.Character.Torso.Position,Vector3.new(mouse.Hit.p.x,game.Players.LocalPlayer.Character.Torso.Position.y,mouse.Hit.p.z))
  344. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,0.8,0) * CFrame.fromEulerAnglesXYZ(math.asin((mouse.Hit.p-mouse.Origin.p).unit.y),0,0)
  345. rhandweld.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.asin((mouse.Hit.p-mouse.Origin.p).unit.y),0,0) * CFrame.Angles(1.5,0,0)
  346. end
Advertisement
Add Comment
Please, Sign In to add comment