Advertisement
Void_scripter0

oof

Jan 18th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.13 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 | Showcase by Bacon Hair!")
  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()}
  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. 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 Mouse = Player:GetMouse()
  66. local UIS = game:GetService("UserInputService")
  67. local input = function(io,a)
  68. if a then return end
  69. --Since InputObject is a client-side instance, we create and pass table instead
  70. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  71. end
  72. UIS.InputBegan:Connect(input)
  73. UIS.InputEnded:Connect(input)
  74.  
  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.  
  85. ----Sandboxed game object that allows the usage of client-side methods and services
  86. --Real game object
  87. local _rg = game
  88.  
  89. --Metatable for fake service
  90. local fsmt = {
  91. __index = function(self,k)
  92. local s = rawget(self,"_RealService")
  93. if s then return s[k] end
  94. end,
  95. __newindex = function(self,k,v)
  96. local s = rawget(self,"_RealService")
  97. if s then s[k]=v end
  98. end,
  99. __call = function(self,...)
  100. local s = rawget(self,"_RealService")
  101. if s then return s(...) 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 self[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. }
  120. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  121. g.service = g.GetService
  122.  
  123. g.RunService = FakeService({
  124. RenderStepped = _rg:GetService("RunService").Heartbeat,
  125. BindToRenderStep = function(self,name,_,fun)
  126.  
  127. end,
  128. UnbindFromRenderStep = function(self,name)
  129. self._btrs[name]:Disconnect()
  130. end,
  131. },"RunService")
  132.  
  133. setmetatable(g,{
  134. __index=function(self,s)
  135. return _rg:GetService(s) or typeof(_rg[s])=="function"
  136. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  137. end,
  138. __newindex = fsmt.__newindex,
  139. __call = fsmt.__call
  140. })
  141. --Changing owner to fake player object to support owner:GetMouse()
  142. game,owner = g,g.Players.LocalPlayer
  143. end
  144. --By Rufus14 lolol
  145. --Converted with ttyyuu12345's model to script plugin v4
  146. function sandbox(var,func)
  147. local env = getfenv(func)
  148. local newenv = setmetatable({},{
  149. __index = function(self,k)
  150. if k=="script" then
  151. return var
  152. else
  153. return env[k]
  154. end
  155. end,
  156. })
  157. setfenv(func,newenv)
  158. return func
  159. end
  160. cors = {}
  161. mas = Instance.new("Model",game:GetService("Lighting"))
  162. Part0 = Instance.new("Part")
  163. Sound1 = Instance.new("Sound")
  164. Attachment2 = Instance.new("Attachment")
  165. RopeConstraint3 = Instance.new("RopeConstraint")
  166. Part4 = Instance.new("Part")
  167. SpecialMesh5 = Instance.new("SpecialMesh")
  168. Attachment6 = Instance.new("Attachment")
  169. RopeConstraint7 = Instance.new("RopeConstraint")
  170. RopeConstraint8 = Instance.new("RopeConstraint")
  171. Part0.Parent = mas
  172. Part0.BrickColor = BrickColor.new("Pearl")
  173. Part0.Anchored = true
  174. Part0.Size = Vector3.new(9.97000027, 0.720000267, 7.03999949)
  175. Part0.CFrame = CFrame.new(16.7149887, 13.7606668, 36.7299957, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  176. Part0.BottomSurface = Enum.SurfaceType.Smooth
  177. Part0.TopSurface = Enum.SurfaceType.Smooth
  178. Part0.Color = Color3.new(0.905882, 0.905882, 0.92549)
  179. Part0.Position = Vector3.new(16.7149887, 13.7606668, 36.7299957)
  180. Part0.Color = Color3.new(0.905882, 0.905882, 0.92549)
  181. Sound1.Parent = Part0
  182. Sound1.SoundId = "rbxassetid://1205183071"
  183. Attachment6.Parent = Part0
  184. Attachment6.Visible = true
  185. RopeConstraint8.Parent = Attachment6
  186. RopeConstraint8.Color = BrickColor.new("Maroon")
  187. RopeConstraint8.Visible = true
  188. RopeConstraint8.Attachment0 = nil
  189. RopeConstraint8.Attachment1 = Attachment6
  190. RopeConstraint8.Color = BrickColor.new("Maroon")
  191. RopeConstraint8.Length = 7.5
  192. RopeConstraint8.Thickness = 0.20000000298023
  193. RopeConstraint8.Restitution = 0.10000000149012
  194. Part4.Parent = mas
  195. Part4.Size = Vector3.new(3.6299994, 2.9199996, 2.94999957)
  196. Part4.CFrame = CFrame.new(16.4487038, 1.47368073, 36.9643707, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  197. Part4.BottomSurface = Enum.SurfaceType.Smooth
  198. Part4.TopSurface = Enum.SurfaceType.Smooth
  199. Part4.Position = Vector3.new(16.4487038, 1.47368073, 36.9643707)
  200. SpecialMesh5.Parent = Part4
  201. SpecialMesh5.MeshId = "http://www.roblox.com/asset/?id=112335925"
  202. SpecialMesh5.Scale = Vector3.new(3, 3, 3)
  203. SpecialMesh5.TextureId = "http://www.roblox.com/asset/?id=112335881"
  204. SpecialMesh5.MeshType = Enum.MeshType.FileMesh
  205. SpecialMesh5.Scale = Vector3.new(3, 3, 3)
  206. Attachment6.Parent = Part0
  207. Attachment6.Visible = true
  208. RopeConstraint8.Parent = Attachment6
  209. RopeConstraint8.Color = BrickColor.new("Maroon")
  210. RopeConstraint8.Visible = true
  211. RopeConstraint8.Length = 7.5
  212. RopeConstraint8.Thickness = 0.20000000298023
  213. RopeConstraint8.Restitution = 0
  214. for i,v in pairs(mas:GetChildren()) do
  215. v.Parent = game:GetService("Players").LocalPlayer.Character
  216. pcall(function() v:MakeJoints() end)
  217. end
  218. mas:Destroy()
  219. for i,v in pairs(cors) do
  220. spawn(function()
  221. pcall(v)
  222. end)
  223. end
  224. Part0.CFrame = game.Players.LocalPlayer.Character.Head.CFrame * CFrame.new(0,7.5,0)
  225. game.Players.LocalPlayer.Character.Torso.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame * CFrame.new(0,2,0)
  226. Part4.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame * CFrame.new(0,-3,0)
  227. RopeConstraint8.Attachment0 = game.Players.LocalPlayer.Character.Torso.NeckAttachment
  228. RopeConstraint8.Attachment1 = Attachment6
  229. RopeConstraint8.Visible = true
  230. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
  231. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0
  232. -- Objects
  233.  
  234. local ScreenGui = Instance.new("ScreenGui")
  235. local TextButton = Instance.new("TextButton")
  236.  
  237. -- Properties
  238.  
  239. ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
  240.  
  241. TextButton.Parent = ScreenGui
  242. TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
  243. TextButton.Position = UDim2.new(0.318378747, 0, 0.816154361, 0)
  244. TextButton.Size = UDim2.new(0, 496, 0, 135)
  245. TextButton.Style = Enum.ButtonStyle.RobloxRoundDefaultButton
  246. TextButton.Font = Enum.Font.SourceSans
  247. TextButton.FontSize = Enum.FontSize.Size14
  248. TextButton.Text = "Suicide"
  249. TextButton.TextColor3 = Color3.new(0.454902, 0, 0)
  250. TextButton.TextScaled = true
  251. TextButton.TextSize = 14
  252. TextButton.TextWrapped = true
  253. function kys()
  254. ScreenGui:destroy()
  255. local bodyvel = Instance.new("BodyVelocity", Part4)
  256. bodyvel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 45
  257. local death = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
  258. death.Volume = 10
  259. death.SoundId = "rbxassetid://12222242"
  260. wait(0.2)
  261. death:Play()
  262. bodyvel:destroy()
  263. game.Players.LocalPlayer.Character.Humanoid.PlatformStand = true
  264. if game.Players.LocalPlayer.Character:findFirstChild("Torso") then
  265. game.Players.LocalPlayer.Character.Torso.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 10
  266. for i,v in pairs(game.Players.LocalPlayer.Character.Torso:GetChildren()) do
  267. if v.ClassName == "Motor6D" then
  268. if v.Name == "Neck" then
  269.  
  270. else
  271. v:destroy()
  272. end
  273. end
  274. end
  275. end
  276. if game.Players.LocalPlayer.Character:findFirstChild("Right Arm") then
  277. local attachment = Instance.new("Attachment", game.Players.LocalPlayer.Character.Torso)
  278. attachment.Position = Vector3.new(1, 1, 0)
  279. local ball = Instance.new("BallSocketConstraint", game.Players.LocalPlayer.Character)
  280. ball.Attachment0 = game.Players.LocalPlayer.Character["Right Arm"].RightShoulderAttachment
  281. ball.Attachment1 = attachment
  282. local collidepartofleftleg = Instance.new("Part", game.Players.LocalPlayer.Character.Torso)
  283. collidepartofleftleg.Name = "Bone"
  284. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  285. collidepartofleftleg.Transparency = 1
  286. collidepartofleftleg:BreakJoints()
  287. local weeld = Instance.new("Weld", collidepartofleftleg)
  288. weeld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  289. weeld.Part1 = collidepartofleftleg
  290. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  291. end
  292. if game.Players.LocalPlayer.Character:findFirstChild("Left Arm") then
  293. local attachment = Instance.new("Attachment", game.Players.LocalPlayer.Character.Torso)
  294. attachment.Position = Vector3.new(-1, 1, 0)
  295. local ball = Instance.new("BallSocketConstraint", game.Players.LocalPlayer.Character)
  296. ball.Attachment0 = attachment
  297. ball.Attachment1 = game.Players.LocalPlayer.Character["Left Arm"].LeftShoulderAttachment
  298. local collidepartofleftleg = Instance.new("Part", game.Players.LocalPlayer.Character.Torso)
  299. collidepartofleftleg.Name = "Bone"
  300. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  301. collidepartofleftleg.Transparency = 1
  302. collidepartofleftleg:BreakJoints()
  303. local weeld = Instance.new("Weld", collidepartofleftleg)
  304. weeld.Part0 = game.Players.LocalPlayer.Character["Left Arm"]
  305. weeld.Part1 = collidepartofleftleg
  306. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  307. end
  308. if game.Players.LocalPlayer.Character:findFirstChild("Right Leg") then
  309. local attachment = Instance.new("Attachment", game.Players.LocalPlayer.Character.Torso)
  310. attachment.Position = Vector3.new(0.5, -1, 0)
  311. local ball = Instance.new("BallSocketConstraint", game.Players.LocalPlayer.Character)
  312. ball.Attachment0 = game.Players.LocalPlayer.Character["Right Leg"].RightFootAttachment
  313. ball.Attachment1 = attachment
  314. game.Players.LocalPlayer.Character["Right Leg"].RightFootAttachment.Position = Vector3.new(0, 1, 0)
  315. local collidepartofleftleg = Instance.new("Part", game.Players.LocalPlayer.Character.Torso)
  316. collidepartofleftleg.Name = "Bone"
  317. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  318. collidepartofleftleg.Transparency = 1
  319. collidepartofleftleg:BreakJoints()
  320. local weeld = Instance.new("Weld", collidepartofleftleg)
  321. weeld.Part0 = game.Players.LocalPlayer.Character["Right Leg"]
  322. weeld.Part1 = collidepartofleftleg
  323. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  324. end
  325. if game.Players.LocalPlayer.Character:findFirstChild("Left Leg") then
  326. local attachment = Instance.new("Attachment", game.Players.LocalPlayer.Character.Torso)
  327. attachment.Position = Vector3.new(-0.5, -1, 0)
  328. local ball = Instance.new("BallSocketConstraint", game.Players.LocalPlayer.Character)
  329. ball.Attachment0 = game.Players.LocalPlayer.Character["Left Leg"].LeftFootAttachment
  330. ball.Attachment1 = attachment
  331. game.Players.LocalPlayer.Character["Left Leg"].LeftFootAttachment.Position = Vector3.new(0, 1, 0)
  332. local collidepartofleftleg = Instance.new("Part", game.Players.LocalPlayer.Character.Torso)
  333. collidepartofleftleg.Name = "Bone"
  334. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  335. collidepartofleftleg.Transparency = 1
  336. collidepartofleftleg:BreakJoints()
  337. local weeld = Instance.new("Weld", collidepartofleftleg)
  338. weeld.Part0 = game.Players.LocalPlayer.Character["Left Leg"]
  339. weeld.Part1 = collidepartofleftleg
  340. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  341. end
  342. if game.Players.LocalPlayer.Character:findFirstChild("Head") then
  343. local attachment = Instance.new("Attachment", game.Players.LocalPlayer.Character.Head)
  344. attachment.Position = Vector3.new(0, -0.5, 0)
  345. attachment.Name = "lol"
  346. attachment.Visible = false
  347. game.Players.LocalPlayer.Character.Torso.NeckAttachment.Visible = false
  348. game.Players.LocalPlayer.Character.Torso.NeckAttachment.Position = game.Players.LocalPlayer.Character.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  349. local ball = Instance.new("BallSocketConstraint", game.Players.LocalPlayer.Character)
  350. ball.Attachment0 = game.Players.LocalPlayer.Character.Torso.NeckAttachment
  351. ball.Attachment1 = attachment
  352. ball.LimitsEnabled = true
  353. ball.TwistLimitsEnabled = true
  354. ball.UpperAngle = 90
  355. ball.Restitution = 0.5
  356. ball.TwistUpperAngle = 180
  357. ball.TwistLowerAngle = -180
  358. local collidepartofleftleg = Instance.new("Part", game.Players.LocalPlayer.Character.Torso)
  359. collidepartofleftleg.Name = "Bone"
  360. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  361. collidepartofleftleg.Transparency = 1
  362. collidepartofleftleg:BreakJoints()
  363. local weeld = Instance.new("Weld", collidepartofleftleg)
  364. weeld.Part0 = collidepartofleftleg
  365. weeld.Part1 = game.Players.LocalPlayer.Character["Head"]
  366. if game.Players.LocalPlayer.Character.Torso:findFirstChild("Neck") then
  367. game.Players.LocalPlayer.Character.Torso.Neck:destroy()
  368. end
  369. if game.Players.LocalPlayer.Character.Head:findFirstChild("face") then
  370. game.Players.LocalPlayer.Character.Head.face.Texture = "http://www.roblox.com/asset/?id=810245460"
  371. end
  372. end
  373. game.Players.LocalPlayer.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
  374. game.Players.LocalPlayer.Character.Humanoid.Health = 0.1
  375. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
  376. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0
  377. local dead = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
  378. dead.Volume = 10
  379. dead.SoundId = "rbxassetid://1248405065"
  380. dead:Play()
  381. dead.Looped = true
  382. while true do
  383. game.Players.LocalPlayer.Character.Humanoid.Health = 0.1
  384. game.Players.LocalPlayer.Character.Humanoid.PlatformStand = true
  385. wait()
  386. end
  387. end
  388. TextButton.MouseButton1Click:connect(kys)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement