WagnerJunio07

Suicide FE

Apr 12th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.79 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87. --By Rufus14 lolol
  88. --Converted with ttyyuu12345's model to script plugin v4
  89. function sandbox(var,func)
  90. local env = getfenv(func)
  91. local newenv = setmetatable({},{
  92. __index = function(self,k)
  93. if k=="script" then
  94. return var
  95. else
  96. return env[k]
  97. end
  98. end,
  99. })
  100. setfenv(func,newenv)
  101. return func
  102. end
  103. cors = {}
  104. mas = Instance.new("Model",game:GetService("Lighting"))
  105. Part0 = Instance.new("Part")
  106. Sound1 = Instance.new("Sound")
  107. Attachment2 = Instance.new("Attachment")
  108. RopeConstraint3 = Instance.new("RopeConstraint")
  109. Part4 = Instance.new("Part")
  110. SpecialMesh5 = Instance.new("SpecialMesh")
  111. Attachment6 = Instance.new("Attachment")
  112. RopeConstraint7 = Instance.new("RopeConstraint")
  113. RopeConstraint8 = Instance.new("RopeConstraint")
  114. Part0.Parent = mas
  115. Part0.BrickColor = BrickColor.new("Pearl")
  116. Part0.Anchored = true
  117. Part0.Size = Vector3.new(9.97000027, 0.720000267, 7.03999949)
  118. Part0.CFrame = CFrame.new(16.7149887, 13.7606668, 36.7299957, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  119. Part0.BottomSurface = Enum.SurfaceType.Smooth
  120. Part0.TopSurface = Enum.SurfaceType.Smooth
  121. Part0.Color = Color3.new(0.905882, 0.905882, 0.92549)
  122. Part0.Position = Vector3.new(16.7149887, 13.7606668, 36.7299957)
  123. Part0.Color = Color3.new(0.905882, 0.905882, 0.92549)
  124. Sound1.Parent = Part0
  125. Sound1.SoundId = "rbxassetid://1205183071"
  126. Attachment6.Parent = Part0
  127. Attachment6.Visible = true
  128. RopeConstraint8.Parent = Attachment6
  129. RopeConstraint8.Color = BrickColor.new("Maroon")
  130. RopeConstraint8.Visible = true
  131. RopeConstraint8.Attachment0 = nil
  132. RopeConstraint8.Attachment1 = Attachment6
  133. RopeConstraint8.Color = BrickColor.new("Maroon")
  134. RopeConstraint8.Length = 7.5
  135. RopeConstraint8.Thickness = 0.20000000298023
  136. RopeConstraint8.Restitution = 0.10000000149012
  137. Part4.Parent = mas
  138. Part4.Size = Vector3.new(3.6299994, 2.9199996, 2.94999957)
  139. Part4.CFrame = CFrame.new(16.4487038, 1.47368073, 36.9643707, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  140. Part4.BottomSurface = Enum.SurfaceType.Smooth
  141. Part4.TopSurface = Enum.SurfaceType.Smooth
  142. Part4.Position = Vector3.new(16.4487038, 1.47368073, 36.9643707)
  143. SpecialMesh5.Parent = Part4
  144. SpecialMesh5.MeshId = "http://www.roblox.com/asset/?id=112335925"
  145. SpecialMesh5.Scale = Vector3.new(3, 3, 3)
  146. SpecialMesh5.TextureId = "http://www.roblox.com/asset/?id=112335881"
  147. SpecialMesh5.MeshType = Enum.MeshType.FileMesh
  148. SpecialMesh5.Scale = Vector3.new(3, 3, 3)
  149. Attachment6.Parent = Part0
  150. Attachment6.Visible = true
  151. RopeConstraint8.Parent = Attachment6
  152. RopeConstraint8.Color = BrickColor.new("Maroon")
  153. RopeConstraint8.Visible = true
  154. RopeConstraint8.Length = 7.5
  155. RopeConstraint8.Thickness = 0.20000000298023
  156. RopeConstraint8.Restitution = 0
  157. for i,v in pairs(mas:GetChildren()) do
  158. v.Parent = game:GetService("Players").LocalPlayer.Character
  159. pcall(function() v:MakeJoints() end)
  160. end
  161. mas:Destroy()
  162. for i,v in pairs(cors) do
  163. spawn(function()
  164. pcall(v)
  165. end)
  166. end
  167. Part0.CFrame = game.Players.LocalPlayer.Character.Head.CFrame * CFrame.new(0,7.5,0)
  168. game.Players.LocalPlayer.Character.Torso.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame * CFrame.new(0,2,0)
  169. Part4.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame * CFrame.new(0,-3,0)
  170. RopeConstraint8.Attachment0 = game.Players.LocalPlayer.Character.Torso.NeckAttachment
  171. RopeConstraint8.Attachment1 = Attachment6
  172. RopeConstraint8.Visible = true
  173. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
  174. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0
  175. -- Objects
  176.  
  177. local ScreenGui = Instance.new("ScreenGui")
  178. local TextButton = Instance.new("TextButton")
  179.  
  180. -- Properties
  181.  
  182. ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
  183.  
  184. TextButton.Parent = ScreenGui
  185. TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
  186. TextButton.Position = UDim2.new(0.318378747, 0, 0.816154361, 0)
  187. TextButton.Size = UDim2.new(0, 496, 0, 135)
  188. TextButton.Style = Enum.ButtonStyle.RobloxRoundDefaultButton
  189. TextButton.Font = Enum.Font.SourceSans
  190. TextButton.FontSize = Enum.FontSize.Size14
  191. TextButton.Text = "Suicide"
  192. TextButton.TextColor3 = Color3.new(0.454902, 0, 0)
  193. TextButton.TextScaled = true
  194. TextButton.TextSize = 14
  195. TextButton.TextWrapped = true
  196. function kys()
  197. ScreenGui:destroy()
  198. local bodyvel = Instance.new("BodyVelocity", Part4)
  199. bodyvel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 45
  200. local death = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
  201. death.Volume = 10
  202. death.SoundId = "rbxassetid://12222242"
  203. wait(0.2)
  204. death:Play()
  205. bodyvel:destroy()
  206. game.Players.LocalPlayer.Character.Humanoid.PlatformStand = true
  207. if game.Players.LocalPlayer.Character:findFirstChild("Torso") then
  208. game.Players.LocalPlayer.Character.Torso.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 10
  209. for i,v in pairs(game.Players.LocalPlayer.Character.Torso:GetChildren()) do
  210. if v.ClassName == "Motor6D" then
  211. if v.Name == "Neck" then
  212.  
  213. else
  214. v:destroy()
  215. end
  216. end
  217. end
  218. end
  219. if game.Players.LocalPlayer.Character:findFirstChild("Right Arm") then
  220. local attachment = Instance.new("Attachment", game.Players.LocalPlayer.Character.Torso)
  221. attachment.Position = Vector3.new(1, 1, 0)
  222. local ball = Instance.new("BallSocketConstraint", game.Players.LocalPlayer.Character)
  223. ball.Attachment0 = game.Players.LocalPlayer.Character["Right Arm"].RightShoulderAttachment
  224. ball.Attachment1 = attachment
  225. local collidepartofleftleg = Instance.new("Part", game.Players.LocalPlayer.Character.Torso)
  226. collidepartofleftleg.Name = "Bone"
  227. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  228. collidepartofleftleg.Transparency = 1
  229. collidepartofleftleg:BreakJoints()
  230. local weeld = Instance.new("Weld", collidepartofleftleg)
  231. weeld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  232. weeld.Part1 = collidepartofleftleg
  233. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  234. end
  235. if game.Players.LocalPlayer.Character:findFirstChild("Left Arm") then
  236. local attachment = Instance.new("Attachment", game.Players.LocalPlayer.Character.Torso)
  237. attachment.Position = Vector3.new(-1, 1, 0)
  238. local ball = Instance.new("BallSocketConstraint", game.Players.LocalPlayer.Character)
  239. ball.Attachment0 = attachment
  240. ball.Attachment1 = game.Players.LocalPlayer.Character["Left Arm"].LeftShoulderAttachment
  241. local collidepartofleftleg = Instance.new("Part", game.Players.LocalPlayer.Character.Torso)
  242. collidepartofleftleg.Name = "Bone"
  243. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  244. collidepartofleftleg.Transparency = 1
  245. collidepartofleftleg:BreakJoints()
  246. local weeld = Instance.new("Weld", collidepartofleftleg)
  247. weeld.Part0 = game.Players.LocalPlayer.Character["Left Arm"]
  248. weeld.Part1 = collidepartofleftleg
  249. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  250. end
  251. if game.Players.LocalPlayer.Character:findFirstChild("Right Leg") then
  252. local attachment = Instance.new("Attachment", game.Players.LocalPlayer.Character.Torso)
  253. attachment.Position = Vector3.new(0.5, -1, 0)
  254. local ball = Instance.new("BallSocketConstraint", game.Players.LocalPlayer.Character)
  255. ball.Attachment0 = game.Players.LocalPlayer.Character["Right Leg"].RightFootAttachment
  256. ball.Attachment1 = attachment
  257. game.Players.LocalPlayer.Character["Right Leg"].RightFootAttachment.Position = Vector3.new(0, 1, 0)
  258. local collidepartofleftleg = Instance.new("Part", game.Players.LocalPlayer.Character.Torso)
  259. collidepartofleftleg.Name = "Bone"
  260. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  261. collidepartofleftleg.Transparency = 1
  262. collidepartofleftleg:BreakJoints()
  263. local weeld = Instance.new("Weld", collidepartofleftleg)
  264. weeld.Part0 = game.Players.LocalPlayer.Character["Right Leg"]
  265. weeld.Part1 = collidepartofleftleg
  266. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  267. end
  268. if game.Players.LocalPlayer.Character:findFirstChild("Left Leg") then
  269. local attachment = Instance.new("Attachment", game.Players.LocalPlayer.Character.Torso)
  270. attachment.Position = Vector3.new(-0.5, -1, 0)
  271. local ball = Instance.new("BallSocketConstraint", game.Players.LocalPlayer.Character)
  272. ball.Attachment0 = game.Players.LocalPlayer.Character["Left Leg"].LeftFootAttachment
  273. ball.Attachment1 = attachment
  274. game.Players.LocalPlayer.Character["Left Leg"].LeftFootAttachment.Position = Vector3.new(0, 1, 0)
  275. local collidepartofleftleg = Instance.new("Part", game.Players.LocalPlayer.Character.Torso)
  276. collidepartofleftleg.Name = "Bone"
  277. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  278. collidepartofleftleg.Transparency = 1
  279. collidepartofleftleg:BreakJoints()
  280. local weeld = Instance.new("Weld", collidepartofleftleg)
  281. weeld.Part0 = game.Players.LocalPlayer.Character["Left Leg"]
  282. weeld.Part1 = collidepartofleftleg
  283. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  284. end
  285. if game.Players.LocalPlayer.Character:findFirstChild("Head") then
  286. local attachment = Instance.new("Attachment", game.Players.LocalPlayer.Character.Head)
  287. attachment.Position = Vector3.new(0, -0.5, 0)
  288. attachment.Name = "lol"
  289. attachment.Visible = false
  290. game.Players.LocalPlayer.Character.Torso.NeckAttachment.Visible = false
  291. game.Players.LocalPlayer.Character.Torso.NeckAttachment.Position = game.Players.LocalPlayer.Character.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  292. local ball = Instance.new("BallSocketConstraint", game.Players.LocalPlayer.Character)
  293. ball.Attachment0 = game.Players.LocalPlayer.Character.Torso.NeckAttachment
  294. ball.Attachment1 = attachment
  295. ball.LimitsEnabled = true
  296. ball.TwistLimitsEnabled = true
  297. ball.UpperAngle = 90
  298. ball.Restitution = 0.5
  299. ball.TwistUpperAngle = 180
  300. ball.TwistLowerAngle = -180
  301. local collidepartofleftleg = Instance.new("Part", game.Players.LocalPlayer.Character.Torso)
  302. collidepartofleftleg.Name = "Bone"
  303. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  304. collidepartofleftleg.Transparency = 1
  305. collidepartofleftleg:BreakJoints()
  306. local weeld = Instance.new("Weld", collidepartofleftleg)
  307. weeld.Part0 = collidepartofleftleg
  308. weeld.Part1 = game.Players.LocalPlayer.Character["Head"]
  309. if game.Players.LocalPlayer.Character.Torso:findFirstChild("Neck") then
  310. game.Players.LocalPlayer.Character.Torso.Neck:destroy()
  311. end
  312. if game.Players.LocalPlayer.Character.Head:findFirstChild("face") then
  313. game.Players.LocalPlayer.Character.Head.face.Texture = "http://www.roblox.com/asset/?id=810245460"
  314. end
  315. end
  316. game.Players.LocalPlayer.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
  317. game.Players.LocalPlayer.Character.Humanoid.Health = 0.1
  318. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
  319. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0
  320. local dead = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
  321. dead.Volume = 10
  322. dead.SoundId = "rbxassetid://1248405065"
  323. dead:Play()
  324. dead.Looped = true
  325. while true do
  326. game.Players.LocalPlayer.Character.Humanoid.Health = 0.1
  327. game.Players.LocalPlayer.Character.Humanoid.PlatformStand = true
  328. wait()
  329. end
  330. end
  331. TextButton.MouseButton1Click:connect(kys)
Add Comment
Please, Sign In to add comment