Advertisement
Godofadmin1337

suicide script fe

Sep 6th, 2018
1,108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.81 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code by Mokiros")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  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. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  51. return m:TrigEvent(b and "Button2Down" or "Button2Up")
  52. end
  53. for _,t in pairs(CAS.Actions) do
  54. for _,k in pairs(t.Keys) do
  55. if k==io.KeyCode then
  56. t.Function(t.Name,io.UserInputState,io)
  57. end
  58. end
  59. end
  60. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  61. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  62. end
  63. end)
  64. Event.Parent = NLS([==[
  65. local Player = game:GetService("Players").LocalPlayer
  66. local Event = script:WaitForChild("UserInput_Event")
  67. local Mouse = Player:GetMouse()
  68. local UIS = game:GetService("UserInputService")
  69. local input = function(io,a)
  70. if a then return end
  71. --Since InputObject is a client-side instance, we create and pass table instead
  72. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  73. end
  74. UIS.InputBegan:Connect(input)
  75. UIS.InputEnded:Connect(input)
  76. local h,t
  77. --Give the server mouse data 30 times every second, but only if the values changed
  78. --If player is not moving their mouse, client won't fire events
  79. while wait(1/30) do
  80. if h~=Mouse.Hit or t~=Mouse.Target then
  81. h,t=Mouse.Hit,Mouse.Target
  82. Event:FireServer({isMouse=true,Target=t,Hit=h})
  83. end
  84. end]==],Player.Character)
  85.  
  86. ----Sandboxed game object that allows the usage of client-side methods and services
  87. --Real game object
  88. local _rg = game
  89.  
  90. --Metatable for fake service
  91. local fsmt = {
  92. __index = function(self,k)
  93. local s = rawget(self,"_RealService")
  94. if s then
  95. return typeof(s[k])=="function"
  96. and function(_,...)return s[k](s,...)end or s[k]
  97. end
  98. end,
  99. __newindex = function(self,k,v)
  100. local s = rawget(self,"_RealService")
  101. if s then s[k]=v end
  102. end
  103. }
  104. local function FakeService(t,RealService)
  105. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  106. return setmetatable(t,fsmt)
  107. end
  108.  
  109. --Fake game object
  110. local g = {
  111. GetService = function(self,s)
  112. return rawget(self,s) or _rg:GetService(s)
  113. end,
  114. Players = FakeService({
  115. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  116. },"Players"),
  117. UserInputService = FakeService(UIS,"UserInputService"),
  118. ContextActionService = FakeService(CAS,"ContextActionService"),
  119. RunService = FakeService({
  120. _btrs = {},
  121. RenderStepped = _rg:GetService("RunService").Heartbeat,
  122. BindToRenderStep = function(self,name,_,fun)
  123. self._btrs[name] = self.Heartbeat:Connect(fun)
  124. end,
  125. UnbindFromRenderStep = function(self,name)
  126. self._btrs[name]:Disconnect()
  127. end,
  128. },"RunService")
  129. }
  130. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  131. g.service = g.GetService
  132. FakeService(g,game)
  133. --Changing owner to fake player object to support owner:GetMouse()
  134. game,owner = g,g.Players.LocalPlayer
  135. end
  136.  
  137. debounce = 0;
  138.  
  139. local player = game.Players.LocalPlayer
  140. repeat wait() until player.Character.Humanoid
  141. local humanoid = player.Character.Humanoid
  142. local mouse = player:GetMouse()
  143. --game.Players.LocalPlayer.Character.Shirt.ShirtTemplate='rbxassetid://473465498'
  144. local player=game.Players.LocalPlayer;
  145. local char=game.Players.LocalPlayer.Character;
  146. local humanoid = player.Character.Humanoid;
  147. Tool=Instance.new('Tool', game.Players.LocalPlayer.Backpack);
  148. Tool.GripRight=Vector3.new(-0.816, 0, 0.577);
  149. Tool.GripUp=Vector3.new(-0.027, 0.996, -0.089);
  150. Tool.GripPos=Vector3.new(-0.3, -0.4, 0.4);
  151. Tool.GripForward=Vector3.new(-1, 0, -0); --0.485, 0.14, -0.863
  152. Tool.Name='kys';
  153. Handle=Instance.new('Part', Tool);
  154. Handle.Name = 'Handle';
  155. Handle.BrickColor=BrickColor.new('Really black')
  156. Handle.Size=Vector3.new(0.26, 1.11, 4.85);
  157. Handle.Position=Vector3.new(-18.53, 0.555, -16.825)
  158. gunfire=Instance.new('Part', Tool)
  159. gunfire.Name='GunFire'
  160. gunfire.Size=Vector3.new(0.2, 0.2, 0.2)
  161. gunfire.Transparency=1
  162. gunfire.Position=Vector3.new(-18.56, 1.1, -19.35)
  163. gunfirefx=Instance.new('BillboardGui', gunfire)
  164. gunfirefx.Enabled=false
  165. gunfirefx.Adornee = gunfire
  166. gunfirefx.Size=UDim2.new(1.1, 0, 1.1, 0)
  167. gunfirefx2=Instance.new('ImageLabel', gunfirefx)
  168. gunfirefx2.Image='http://www.roblox.com/asset/?id=117472237'
  169. gunfirefx2.BackgroundTransparency=1
  170. gunfirefx2.Size=UDim2.new(1.2, 0, 1.2, 0)
  171.  
  172. shootsound=Instance.new('Sound', char.Torso)
  173. shootsound.Volume=8
  174. shootsound.SoundId='rbxassetid://230622620'
  175. c4mesh=Instance.new('SpecialMesh', Handle);
  176. c4mesh.MeshType = 'FileMesh';
  177. c4mesh.MeshId='http://www.roblox.com/asset/?id=95356090';
  178. c4mesh.TextureId='http://www.roblox.com/asset/?id=95387789';
  179. c4mesh.Scale=Vector3.new(1.8, 1.8, 1.8);
  180.  
  181. local anim5 = Instance.new("Animation", player.Character)
  182. anim5.AnimationId = "http://www.roblox.com/asset/?id=95383474"
  183. local playAnim10 = humanoid:LoadAnimation(anim5)
  184.  
  185. Tool.GripRight=Vector3.new(-0.816, 0, 0.577)
  186.  
  187. function equipped()
  188. wait()
  189. playAnim10:Play()
  190. end
  191.  
  192. function unequipped()
  193. wait()
  194. playAnim10:Stop()
  195. end
  196.  
  197. Tool.Equipped:connect(equipped)
  198. Tool.Unequipped:connect(unequipped)
  199.  
  200. light=Instance.new('PointLight', Handle);
  201. light.Color = Color3.new(255, 255, 0)
  202. light.Range=10;
  203. light.Enabled=false;
  204.  
  205.  
  206. function Shoot()
  207. shootsound:Play()
  208. light.Enabled=true
  209. wait(0.1)
  210. light.Enabled=false
  211. player.Character.Humanoid.Health=0
  212. wait()
  213. Tool:Destroy()
  214. end
  215. Tool.Activated:connect(Shoot)
  216.  
  217. --ragdoll
  218.  
  219. print("Loaded.")
  220. --You don't need to edit this!
  221.  
  222. Character = player.Character
  223. Humanoid = Character.Humanoid
  224. Torso = Character.Torso
  225. mode = Instance.new("Model")
  226. mode.Name = ""
  227. mode.Parent = game.Workspace
  228.  
  229. function OnDeath()
  230.  
  231. print("Death")
  232. wait(0.00000001)
  233. Humanoid.Parent = nil
  234. if Torso then
  235. zam=Torso:Clone()
  236. zam.Parent=mode
  237. x=Character:GetChildren()
  238. for i=1,#x do
  239. if ((x[i].Name=="Shirt") or (x[i].Name=="Pants")) then
  240. local zor=x[i]:Clone()
  241. zor.Parent=mode
  242. end
  243. if x[i].Name=="Head" then
  244. local zem=x[i]:Clone()
  245. zem.Parent=mode --Made by MatrixComplexity
  246. local Neck = Instance.new("Weld")
  247. Neck.Name = "Neck"
  248. Neck.Part0 = zam
  249. Neck.Part1 = zem
  250. Neck.C0 = CFrame.new(0, 1.5, 0)
  251. Neck.C1 = CFrame.new()
  252. Neck.Parent = zam
  253. end
  254. if x[i].Name=="Right Arm" then
  255. local Limb=x[i]:Clone()
  256. Limb.Parent=mode
  257. Limb.CFrame = zam.CFrame * CFrame.new(1.5, 0, 0)
  258. local Joint = Instance.new("Glue")
  259. Joint.Name = "RightShoulder"
  260. Joint.Part0 = zam
  261. Joint.Part1 = Limb
  262. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  263. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  264. Joint.Parent = zam
  265.  
  266. local B = Instance.new("Part")
  267. B.TopSurface = 0
  268. B.BottomSurface = 0
  269. B.formFactor = "Symmetric"
  270. B.Size = Vector3.new(1, 1, 1)
  271. B.Transparency = 1
  272. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  273. B.Parent = mode
  274. local W = Instance.new("Weld")
  275. W.Part0 = Limb
  276. W.Part1 = B
  277. W.C0 = CFrame.new(0, -0.5, 0)
  278. W.Parent = Limb
  279.  
  280. end
  281. if x[i].Name=="Left Arm" then
  282. local Limb=x[i]:Clone()
  283. Limb.Parent=mode
  284.  
  285. Limb.CFrame = zam.CFrame * CFrame.new(-1.5, 0, 0)
  286. local Joint = Instance.new("Glue")
  287. Joint.Name = "LeftShoulder"
  288. Joint.Part0 = zam
  289. Joint.Part1 = Limb
  290. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  291. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  292. Joint.Parent = zam
  293.  
  294. local B = Instance.new("Part")
  295. B.TopSurface = 0
  296. B.BottomSurface = 0
  297. B.formFactor = "Symmetric"
  298. B.Size = Vector3.new(1, 1, 1)
  299. B.Transparency = 1
  300. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  301. B.Parent = mode
  302. local W = Instance.new("Weld")
  303. W.Part0 = Limb
  304. W.Part1 = B
  305. W.C0 = CFrame.new(0, -0.5, 0)
  306. W.Parent = Limb
  307.  
  308. end
  309. if x[i].Name=="Right Leg" then
  310. local Limb=x[i]:Clone()
  311. Limb.Parent=mode
  312.  
  313. Limb.CFrame = zam.CFrame * CFrame.new(0.5, -2, 0)
  314. local Joint = Instance.new("Glue")
  315. Joint.Name = "RightHip"
  316. Joint.Part0 = zam
  317. Joint.Part1 = Limb
  318. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  319. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  320. Joint.Parent = zam
  321.  
  322. local B = Instance.new("Part")
  323. B.TopSurface = 0
  324. B.BottomSurface = 0
  325. B.formFactor = "Symmetric"
  326. B.Size = Vector3.new(1, 1, 1)
  327. B.Transparency = 1
  328. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  329. B.Parent = mode
  330. local W = Instance.new("Weld")
  331. W.Part0 = Limb
  332. W.Part1 = B
  333. W.C0 = CFrame.new(0, -0.5, 0)
  334. W.Parent = Limb
  335.  
  336. end
  337. if x[i].Name=="Left Leg" then
  338. local Limb=x[i]:Clone()
  339. Limb.Parent=mode
  340.  
  341. Limb.CFrame = zam.CFrame * CFrame.new(-0.5, -2, 0)
  342. local Joint = Instance.new("Glue")
  343. Joint.Name = "LeftHip"
  344. Joint.Part0 = zam
  345. Joint.Part1 = Limb
  346. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  347. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  348. Joint.Parent = zam
  349.  
  350. local B = Instance.new("Part")
  351. B.TopSurface = 0
  352. B.BottomSurface = 0
  353. B.formFactor = "Symmetric"
  354. B.Size = Vector3.new(1, 1, 1)
  355. B.Transparency = 1
  356. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  357. B.Parent = mode
  358. local W = Instance.new("Weld")
  359. W.Part0 = Limb
  360. W.Part1 = B
  361. W.C0 = CFrame.new(0, -0.5, 0)
  362. W.Parent = Limb
  363.  
  364. end
  365. bland=Instance.new("Humanoid")
  366. bland.Health = 0
  367. bland.MaxHealth = 0
  368. bland.Parent=mode
  369. if ((x[i].Name=="Shirt") or (x[i].Name=="Pants")) then
  370. local zor=x[i]:Clone()
  371. zor.Parent=mode
  372. end
  373. --[
  374. if (x[i].ClassName=="CharacterMesh") then
  375. local zor=x[i]:Clone()
  376. zor.Parent=mode
  377. end
  378. if (x[i].ClassName=="Hat") then
  379. local zor=x[i]:Clone()
  380. zor.Parent=mode
  381. end
  382. local cam = Instance.new("Camera")
  383. cam.Parent = game.Players:FindFirstChild(Character.Name)
  384. cam.CameraSubject = mode.Humanoid
  385. local Bar = Instance.new("Part")
  386. Bar.TopSurface = 0
  387. Bar.BottomSurface = 0
  388. Bar.formFactor = "Symmetric"
  389. Bar.Size = Vector3.new(1, 1, 1)
  390. Bar.Transparency = 1
  391. Bar.CFrame = zam.CFrame * CFrame.new(0, 0.5, 0)
  392. Bar.Parent = mode
  393. local Weld = Instance.new("Weld")
  394. Weld.Part0 = zam
  395. Weld.Part1 = Bar
  396. Weld.C0 = CFrame.new(0, 0.5, 0)
  397. Weld.Parent = zam
  398. --]]
  399. end
  400. end
  401. wait()
  402. Character:Remove()
  403. wait(6)
  404. mode:Destroy()
  405. end
  406.  
  407. Humanoid.Died:connect(OnDeath)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement