duplicat

Suicide

Oct 9th, 2018
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.93 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
  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