Advertisement
therainbowcreeperRBX

Untitled

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