duplicat

hang?

Feb 5th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.94 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. --By Rufus14 lolol
  7. --Converted with ttyyuu12345's model to script plugin v4
  8. function sandbox(var,func)
  9. local env = getfenv(func)
  10. local newenv = setmetatable({},{
  11. __index = function(self,k)
  12. if k=="script" then
  13. return var
  14. else
  15. return env[k]
  16. end
  17. end,
  18. })
  19. setfenv(func,newenv)
  20. return func
  21. end
  22. cors = {}
  23. mas = Instance.new("Model",game:GetService("Lighting"))
  24. Part0 = Instance.new("Part")
  25. Sound1 = Instance.new("Sound")
  26. Attachment2 = Instance.new("Attachment")
  27. RopeConstraint3 = Instance.new("RopeConstraint")
  28. Part4 = Instance.new("Part")
  29. SpecialMesh5 = Instance.new("SpecialMesh")
  30. Attachment6 = Instance.new("Attachment")
  31. RopeConstraint7 = Instance.new("RopeConstraint")
  32. RopeConstraint8 = Instance.new("RopeConstraint")
  33. Part0.Parent = mas
  34. Part0.BrickColor = BrickColor.new("Pearl")
  35. Part0.Anchored = true
  36. Part0.Size = Vector3.new(9.97000027, 0.720000267, 7.03999949)
  37. Part0.CFrame = CFrame.new(16.7149887, 13.7606668, 36.7299957, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  38. Part0.BottomSurface = Enum.SurfaceType.Smooth
  39. Part0.TopSurface = Enum.SurfaceType.Smooth
  40. Part0.Color = Color3.new(0.905882, 0.905882, 0.92549)
  41. Part0.Position = Vector3.new(16.7149887, 13.7606668, 36.7299957)
  42. Part0.Color = Color3.new(0.905882, 0.905882, 0.92549)
  43. Sound1.Parent = Part0
  44. Sound1.SoundId = "rbxassetid://1205183071"
  45. Attachment6.Parent = Part0
  46. Attachment6.Visible = true
  47. RopeConstraint8.Parent = Attachment6
  48. RopeConstraint8.Color = BrickColor.new("Maroon")
  49. RopeConstraint8.Visible = true
  50. RopeConstraint8.Attachment0 = nil
  51. RopeConstraint8.Attachment1 = Attachment6
  52. RopeConstraint8.Color = BrickColor.new("Maroon")
  53. RopeConstraint8.Length = 7.5
  54. RopeConstraint8.Thickness = 0.20000000298023
  55. RopeConstraint8.Restitution = 0.10000000149012
  56. Part4.Parent = mas
  57. Part4.Size = Vector3.new(3.6299994, 2.9199996, 2.94999957)
  58. Part4.CFrame = CFrame.new(16.4487038, 1.47368073, 36.9643707, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  59. Part4.BottomSurface = Enum.SurfaceType.Smooth
  60. Part4.TopSurface = Enum.SurfaceType.Smooth
  61. Part4.Position = Vector3.new(16.4487038, 1.47368073, 36.9643707)
  62. SpecialMesh5.Parent = Part4
  63. SpecialMesh5.MeshId = "http://www.roblox.com/asset/?id=112335925"
  64. SpecialMesh5.Scale = Vector3.new(3, 3, 3)
  65. SpecialMesh5.TextureId = "http://www.roblox.com/asset/?id=112335881"
  66. SpecialMesh5.MeshType = Enum.MeshType.FileMesh
  67. SpecialMesh5.Scale = Vector3.new(3, 3, 3)
  68. Attachment6.Parent = Part0
  69. Attachment6.Visible = true
  70. RopeConstraint8.Parent = Attachment6
  71. RopeConstraint8.Color = BrickColor.new("Maroon")
  72. RopeConstraint8.Visible = true
  73. RopeConstraint8.Length = 7.5
  74. RopeConstraint8.Thickness = 0.20000000298023
  75. RopeConstraint8.Restitution = 0
  76. for i,v in pairs(mas:GetChildren()) do
  77. v.Parent = game:GetService("Players").LocalPlayer.Character
  78. pcall(function() v:MakeJoints() end)
  79. end
  80. mas:Destroy()
  81. for i,v in pairs(cors) do
  82. spawn(function()
  83. pcall(v)
  84. end)
  85. end
  86. Part0.CFrame = game.Players.LocalPlayer.Character.Head.CFrame * CFrame.new(0,7.5,0)
  87. game.Players.LocalPlayer.Character.Torso.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame * CFrame.new(0,2,0)
  88. Part4.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame * CFrame.new(0,-3,0)
  89. RopeConstraint8.Attachment0 = game.Players.LocalPlayer.Character.Torso.NeckAttachment
  90. RopeConstraint8.Attachment1 = Attachment6
  91. RopeConstraint8.Visible = true
  92. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
  93. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0
  94. -- Objects
  95.  
  96. local ScreenGui = Instance.new("ScreenGui")
  97. local TextButton = Instance.new("TextButton")
  98.  
  99. -- Properties
  100.  
  101. ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
  102.  
  103. TextButton.Parent = ScreenGui
  104. TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
  105. TextButton.Position = UDim2.new(0.318378747, 0, 0.816154361, 0)
  106. TextButton.Size = UDim2.new(0, 496, 0, 135)
  107. TextButton.Style = Enum.ButtonStyle.RobloxRoundDefaultButton
  108. TextButton.Font = Enum.Font.SourceSans
  109. TextButton.FontSize = Enum.FontSize.Size14
  110. TextButton.Text = "Suicide"
  111. TextButton.TextColor3 = Color3.new(0.454902, 0, 0)
  112. TextButton.TextScaled = true
  113. TextButton.TextSize = 14
  114. TextButton.TextWrapped = true
  115. function kys()
  116. ScreenGui:destroy()
  117. local bodyvel = Instance.new("BodyVelocity", Part4)
  118. bodyvel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 45
  119. local death = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
  120. death.Volume = 10
  121. death.SoundId = "rbxassetid://12222242"
  122. wait(0.2)
  123. death:Play()
  124. bodyvel:destroy()
  125. game.Players.LocalPlayer.Character.Humanoid.PlatformStand = true
  126. if game.Players.LocalPlayer.Character:findFirstChild("Torso") then
  127. game.Players.LocalPlayer.Character.Torso.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 10
  128. for i,v in pairs(game.Players.LocalPlayer.Character.Torso:GetChildren()) do
  129. if v.ClassName == "Motor6D" then
  130. if v.Name == "Neck" then
  131.  
  132. else
  133. v:destroy()
  134. end
  135. end
  136. end
  137. end
  138. if game.Players.LocalPlayer.Character:findFirstChild("Right Arm") then
  139. local attachment = Instance.new("Attachment", game.Players.LocalPlayer.Character.Torso)
  140. attachment.Position = Vector3.new(1, 1, 0)
  141. local ball = Instance.new("BallSocketConstraint", game.Players.LocalPlayer.Character)
  142. ball.Attachment0 = game.Players.LocalPlayer.Character["Right Arm"].RightShoulderAttachment
  143. ball.Attachment1 = attachment
  144. local collidepartofleftleg = Instance.new("Part", game.Players.LocalPlayer.Character.Torso)
  145. collidepartofleftleg.Name = "Bone"
  146. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  147. collidepartofleftleg.Transparency = 1
  148. collidepartofleftleg:BreakJoints()
  149. local weeld = Instance.new("Weld", collidepartofleftleg)
  150. weeld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  151. weeld.Part1 = collidepartofleftleg
  152. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  153. end
  154. if game.Players.LocalPlayer.Character:findFirstChild("Left Arm") then
  155. local attachment = Instance.new("Attachment", game.Players.LocalPlayer.Character.Torso)
  156. attachment.Position = Vector3.new(-1, 1, 0)
  157. local ball = Instance.new("BallSocketConstraint", game.Players.LocalPlayer.Character)
  158. ball.Attachment0 = attachment
  159. ball.Attachment1 = game.Players.LocalPlayer.Character["Left Arm"].LeftShoulderAttachment
  160. local collidepartofleftleg = Instance.new("Part", game.Players.LocalPlayer.Character.Torso)
  161. collidepartofleftleg.Name = "Bone"
  162. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  163. collidepartofleftleg.Transparency = 1
  164. collidepartofleftleg:BreakJoints()
  165. local weeld = Instance.new("Weld", collidepartofleftleg)
  166. weeld.Part0 = game.Players.LocalPlayer.Character["Left Arm"]
  167. weeld.Part1 = collidepartofleftleg
  168. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  169. end
  170. if game.Players.LocalPlayer.Character:findFirstChild("Right Leg") then
  171. local attachment = Instance.new("Attachment", game.Players.LocalPlayer.Character.Torso)
  172. attachment.Position = Vector3.new(0.5, -1, 0)
  173. local ball = Instance.new("BallSocketConstraint", game.Players.LocalPlayer.Character)
  174. ball.Attachment0 = game.Players.LocalPlayer.Character["Right Leg"].RightFootAttachment
  175. ball.Attachment1 = attachment
  176. game.Players.LocalPlayer.Character["Right Leg"].RightFootAttachment.Position = Vector3.new(0, 1, 0)
  177. local collidepartofleftleg = Instance.new("Part", game.Players.LocalPlayer.Character.Torso)
  178. collidepartofleftleg.Name = "Bone"
  179. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  180. collidepartofleftleg.Transparency = 1
  181. collidepartofleftleg:BreakJoints()
  182. local weeld = Instance.new("Weld", collidepartofleftleg)
  183. weeld.Part0 = game.Players.LocalPlayer.Character["Right Leg"]
  184. weeld.Part1 = collidepartofleftleg
  185. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  186. end
  187. if game.Players.LocalPlayer.Character:findFirstChild("Left Leg") then
  188. local attachment = Instance.new("Attachment", game.Players.LocalPlayer.Character.Torso)
  189. attachment.Position = Vector3.new(-0.5, -1, 0)
  190. local ball = Instance.new("BallSocketConstraint", game.Players.LocalPlayer.Character)
  191. ball.Attachment0 = game.Players.LocalPlayer.Character["Left Leg"].LeftFootAttachment
  192. ball.Attachment1 = attachment
  193. game.Players.LocalPlayer.Character["Left Leg"].LeftFootAttachment.Position = Vector3.new(0, 1, 0)
  194. local collidepartofleftleg = Instance.new("Part", game.Players.LocalPlayer.Character.Torso)
  195. collidepartofleftleg.Name = "Bone"
  196. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  197. collidepartofleftleg.Transparency = 1
  198. collidepartofleftleg:BreakJoints()
  199. local weeld = Instance.new("Weld", collidepartofleftleg)
  200. weeld.Part0 = game.Players.LocalPlayer.Character["Left Leg"]
  201. weeld.Part1 = collidepartofleftleg
  202. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  203. end
  204. if game.Players.LocalPlayer.Character:findFirstChild("Head") then
  205. local attachment = Instance.new("Attachment", game.Players.LocalPlayer.Character.Head)
  206. attachment.Position = Vector3.new(0, -0.5, 0)
  207. attachment.Name = "lol"
  208. attachment.Visible = false
  209. game.Players.LocalPlayer.Character.Torso.NeckAttachment.Visible = false
  210. game.Players.LocalPlayer.Character.Torso.NeckAttachment.Position = game.Players.LocalPlayer.Character.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  211. local ball = Instance.new("BallSocketConstraint", game.Players.LocalPlayer.Character)
  212. ball.Attachment0 = game.Players.LocalPlayer.Character.Torso.NeckAttachment
  213. ball.Attachment1 = attachment
  214. ball.LimitsEnabled = true
  215. ball.TwistLimitsEnabled = true
  216. ball.UpperAngle = 90
  217. ball.Restitution = 0.5
  218. ball.TwistUpperAngle = 180
  219. ball.TwistLowerAngle = -180
  220. local collidepartofleftleg = Instance.new("Part", game.Players.LocalPlayer.Character.Torso)
  221. collidepartofleftleg.Name = "Bone"
  222. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  223. collidepartofleftleg.Transparency = 1
  224. collidepartofleftleg:BreakJoints()
  225. local weeld = Instance.new("Weld", collidepartofleftleg)
  226. weeld.Part0 = collidepartofleftleg
  227. weeld.Part1 = game.Players.LocalPlayer.Character["Head"]
  228. if game.Players.LocalPlayer.Character.Torso:findFirstChild("Neck") then
  229. game.Players.LocalPlayer.Character.Torso.Neck:destroy()
  230. end
  231. if game.Players.LocalPlayer.Character.Head:findFirstChild("face") then
  232. game.Players.LocalPlayer.Character.Head.face.Texture = "http://www.roblox.com/asset/?id=810245460"
  233. end
  234. end
  235. game.Players.LocalPlayer.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
  236. game.Players.LocalPlayer.Character.Humanoid.Health = 0.1
  237. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
  238. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0
  239. local dead = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
  240. dead.Volume = 10
  241. dead.SoundId = "rbxassetid://1248405065"
  242. dead:Play()
  243. dead.Looped = true
  244. while true do
  245. game.Players.LocalPlayer.Character.Humanoid.Health = 0.1
  246. game.Players.LocalPlayer.Character.Humanoid.PlatformStand = true
  247. wait()
  248. end
  249. end
  250. TextButton.MouseButton1Click:connect(kys)
Advertisement
Add Comment
Please, Sign In to add comment