SHOW:
|
|
- or go back to the newest paste.
| 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 | local RealPlayer = Player | |
| 4 | 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
| |
| 5 | ||
| 6 | --Converted with ttyyuu12345's model to script plugin v4 | |
| 7 | --By Rufus14 | |
| 8 | mouse = game.Players.LocalPlayer:GetMouse() | |
| 9 | game.Players.LocalPlayer.Character.Humanoid.MaxHealth = math.huge | |
| 10 | game.Players.LocalPlayer.Character.Humanoid.Health = math.huge | |
| 11 | function sandbox(var,func) | |
| 12 | local env = getfenv(func) | |
| 13 | local newenv = setmetatable({},{
| |
| 14 | __index = function(self,k) | |
| 15 | if k=="script" then | |
| 16 | return var | |
| 17 | else | |
| 18 | return env[k] | |
| 19 | end | |
| 20 | end, | |
| 21 | }) | |
| 22 | setfenv(func,newenv) | |
| 23 | return func | |
| 24 | end | |
| 25 | cors = {}
| |
| 26 | mas = Instance.new("Model",game:GetService("Lighting"))
| |
| 27 | Part0 = Instance.new("Part")
| |
| 28 | SpecialMesh1 = Instance.new("SpecialMesh")
| |
| 29 | Part0.Name = "Gun" | |
| 30 | Part0.Parent = mas | |
| 31 | Part0.CanCollide = false | |
| 32 | Part0.Size = Vector3.new(0.970000505, 2.46999931, 0.380000055) | |
| 33 | Part0.CFrame = CFrame.new(-211.74501, 2.6168952, 37.920002, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 34 | Part0.Position = Vector3.new(-211.74501, 2.6168952, 37.920002) | |
| 35 | SpecialMesh1.Parent = Part0 | |
| 36 | SpecialMesh1.MeshId = "rbxassetid://505563629" | |
| 37 | SpecialMesh1.Scale = Vector3.new(0.00499999989, 0.00499999989, 0.00499999989) | |
| 38 | SpecialMesh1.TextureId = "rbxassetid://505563636" | |
| 39 | SpecialMesh1.MeshType = Enum.MeshType.FileMesh | |
| 40 | SpecialMesh1.Scale = Vector3.new(0.00499999989, 0.00499999989, 0.00499999989) | |
| 41 | for i,v in pairs(mas:GetChildren()) do | |
| 42 | v.Parent = game:GetService("Players").LocalPlayer.Character
| |
| 43 | pcall(function() v:MakeJoints() end) | |
| 44 | end | |
| 45 | mas:Destroy() | |
| 46 | for i,v in pairs(cors) do | |
| 47 | spawn(function() | |
| 48 | pcall(v) | |
| 49 | end) | |
| 50 | end | |
| 51 | cankys = true | |
| 52 | weld = Instance.new("Weld", Part0)
| |
| 53 | weld.Part0 = game.Players.LocalPlayer.Character["Left Arm"] | |
| 54 | weld.Part1 = Part0 | |
| 55 | weld.C0 = CFrame.new(0.158004761, -1.63815379, -1.00455856, -5.79879307e-22, 9.29214533e-23, 1, -0.587791622, -0.809012473, -2.65673535e-22, 0.809012473, -0.587791622, 5.23747954e-22) | |
| 56 | function killyourself(key) | |
| 57 | if cankys then | |
| 58 | cankys = false | |
| 59 | if game.Players.LocalPlayer.Character.Head:findFirstChild("face") then
| |
| 60 | game.Players.LocalPlayer.Character.Head.face.Texture = "rbxassetid://1148787155" | |
| 61 | end | |
| 62 | local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
| |
| 63 | rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
| 64 | rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"] | |
| 65 | rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1) | |
| 66 | local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
| |
| 67 | lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
| 68 | lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"] | |
| 69 | lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1) | |
| 70 | for i = 0,2 , 0.02 do | |
| 71 | weld.C0 = weld.C0:lerp(CFrame.new(0.720336914, -0.258590698, -0.514060974, 0.409927189, 0.572569966, -0.710018694, 0.0567400455, 0.760912359, 0.646370947, 0.910354853, -0.305250764, 0.279430419),i) | |
| 72 | lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.832244873, 0.405325174, -1.44667816, 0.719340205, -0.634600103, -0.28254649, -0.214658037, 0.183768019, -0.959245205, 0.660660148, 0.750674427, -0.00403028121),i) | |
| 73 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.921920776, 0.294008493, -1.1861496, 0.88295126, 0.469464868, 6.12843053e-07, -0.0490720123, 0.0922940373, -0.994521856, -0.466893107, 0.878114343, 0.104528703),i) | |
| 74 | game:GetService("RunService").RenderStepped:wait()
| |
| 75 | end | |
| 76 | script.Parent = nil | |
| 77 | function ragdoll() | |
| 78 | game.Players.LocalPlayer.Character.Archivable = true | |
| 79 | clone = game.Players.LocalPlayer.Character:Clone() | |
| 80 | clone.Parent = workspace | |
| 81 | for i,v in pairs(clone:GetChildren()) do | |
| 82 | if v.ClassName == "Script" or v.ClassName == "LocalScript" then | |
| 83 | v:destroy() | |
| 84 | end | |
| 85 | for i,p in pairs(v:GetChildren()) do | |
| 86 | if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then | |
| 87 | p:destroy() | |
| 88 | end | |
| 89 | end | |
| 90 | end | |
| 91 | for i,t in pairs(game.Players.LocalPlayer.Character:GetChildren()) do | |
| 92 | if t.ClassName == "Accessory" or t.ClassName == "ForceField" then | |
| 93 | t:destroy() | |
| 94 | end | |
| 95 | end | |
| 96 | vel = Instance.new("BodyVelocity", clone.Torso)
| |
| 97 | vel.Velocity = clone.Torso.CFrame.lookVector * -5 | |
| 98 | vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 99 | clone.Head.face.Texture = "http://www.roblox.com/asset/?id=305296807" | |
| 100 | using = false | |
| 101 | hit = Instance.new("Sound", clone.Torso)
| |
| 102 | hit.SoundId = "rbxassetid://260430060" | |
| 103 | hit.Volume = 0 | |
| 104 | hit1 = Instance.new("Sound", clone.Torso)
| |
| 105 | hit1.SoundId = "rbxassetid://138087186" | |
| 106 | hit1.Volume = 0 | |
| 107 | hit2 = Instance.new("Sound", clone.Torso)
| |
| 108 | hit2.SoundId = "rbxassetid://131237241" | |
| 109 | hit2.Volume = 0 | |
| 110 | hit3 = Instance.new("Sound", clone.Torso)
| |
| 111 | hit3.SoundId = "rbxassetid://278062209" | |
| 112 | hit3.Volume = 0 | |
| 113 | hit3.TimePosition = 0.33 | |
| 114 | ded = Instance.new("Sound", clone.Torso)
| |
| 115 | ded.SoundId = "rbxassetid://304679846" | |
| 116 | ded.Volume = 10 | |
| 117 | local leftarm = clone:findFirstChild("Left Arm")
| |
| 118 | local rightrm = clone:findFirstChild("Right Arm")
| |
| 119 | local leftleg = clone:findFirstChild("Left Leg")
| |
| 120 | local rightleg = clone:findFirstChild("Right Leg")
| |
| 121 | local head = clone:findFirstChild("Head")
| |
| 122 | for i, g in pairs(game.Players.LocalPlayer.Character:GetChildren()) do | |
| 123 | if g.ClassName == "Part" then | |
| 124 | g:destroy() | |
| 125 | end | |
| 126 | end | |
| 127 | for i, h in pairs(game.Players.LocalPlayer.Character:GetChildren()) do | |
| 128 | if h.ClassName == "Accesory" then | |
| 129 | h:destroy() | |
| 130 | end | |
| 131 | end | |
| 132 | game.Workspace.CurrentCamera.CameraSubject = head | |
| 133 | if head then | |
| 134 | local attachment = Instance.new("Attachment", clone.Head)
| |
| 135 | attachment.Position = Vector3.new(0, -0.5, 0) | |
| 136 | attachment.Name = "lol" | |
| 137 | attachment.Visible = false | |
| 138 | clone.Torso.NeckAttachment.Visible = false | |
| 139 | clone.Torso.NeckAttachment.Position = clone.Torso.NeckAttachment.Position + Vector3.new(0,0,0) | |
| 140 | local ball = Instance.new("BallSocketConstraint", clone)
| |
| 141 | ball.Attachment0 = clone.Torso.NeckAttachment | |
| 142 | ball.Attachment1 = attachment | |
| 143 | ball.LimitsEnabled = true | |
| 144 | ball.TwistLimitsEnabled = true | |
| 145 | ball.UpperAngle = 90 | |
| 146 | ball.Restitution = 0.5 | |
| 147 | ball.TwistUpperAngle = 90 | |
| 148 | ball.TwistLowerAngle = -90 | |
| 149 | local collidepartofleftleg = Instance.new("Part", clone.Torso)
| |
| 150 | collidepartofleftleg.Name = "Bone" | |
| 151 | collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7) | |
| 152 | collidepartofleftleg.Transparency = 1 | |
| 153 | collidepartofleftleg:BreakJoints() | |
| 154 | local weeld = Instance.new("Weld", collidepartofleftleg)
| |
| 155 | weeld.Part0 = collidepartofleftleg | |
| 156 | weeld.Part1 = clone["Head"] | |
| 157 | end | |
| 158 | if leftleg ~= nil then | |
| 159 | local glue = Instance.new("Glue", clone.Torso)
| |
| 160 | glue.Part0 = clone.Torso | |
| 161 | glue.Part1 = leftleg | |
| 162 | glue.Name = "Left leg" | |
| 163 | local collider = Instance.new("Part", leftleg)
| |
| 164 | collider.Position = Vector3.new(0,999,0) | |
| 165 | collider.Size = Vector3.new(1.5, 1, 1) | |
| 166 | collider.Shape = "Cylinder" | |
| 167 | local weld = Instance.new("Weld", collider)
| |
| 168 | weld.Part0 = leftleg | |
| 169 | weld.Part1 = collider | |
| 170 | weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2) | |
| 171 | collider.TopSurface = "Smooth" | |
| 172 | collider.BottomSurface = "Smooth" | |
| 173 | collider.formFactor = "Symmetric" | |
| 174 | glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 175 | glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 176 | collider.Transparency = 1 | |
| 177 | end | |
| 178 | ------------ | |
| 179 | if rightleg ~= nil then | |
| 180 | local glue1 = Instance.new("Glue", clone.Torso)
| |
| 181 | glue1.Part0 = clone.Torso | |
| 182 | glue1.Part1 = rightleg | |
| 183 | glue1.Name = "Right leg" | |
| 184 | local collider1 = Instance.new("Part", rightleg)
| |
| 185 | collider1.Position = Vector3.new(0,999,0) | |
| 186 | collider1.Size = Vector3.new(1.5, 1, 1) | |
| 187 | collider1.Shape = "Cylinder" | |
| 188 | local weld1 = Instance.new("Weld", collider1)
| |
| 189 | weld1.Part0 = rightleg | |
| 190 | weld1.Part1 = collider1 | |
| 191 | weld1.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2) | |
| 192 | collider1.TopSurface = "Smooth" | |
| 193 | collider1.BottomSurface = "Smooth" | |
| 194 | collider1.formFactor = "Symmetric" | |
| 195 | glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 196 | glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 197 | collider1.Transparency = 1 | |
| 198 | end | |
| 199 | ------------ | |
| 200 | if rightrm ~= nil then | |
| 201 | local glue11 = Instance.new("Glue", clone.Torso)
| |
| 202 | glue11.Part0 = clone.Torso | |
| 203 | glue11.Part1 = rightrm | |
| 204 | glue11.Name = "Right shoulder" | |
| 205 | local collider11 = Instance.new("Part", rightrm)
| |
| 206 | collider11.Position = Vector3.new(0,9999,0) | |
| 207 | collider11.Size = Vector3.new(1.5,1,1) | |
| 208 | collider11.Shape = "Cylinder" | |
| 209 | local weld11 = Instance.new("Weld", collider11)
| |
| 210 | weld11.Part0 = rightrm | |
| 211 | weld11.Part1 = collider11 | |
| 212 | weld11.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2) | |
| 213 | collider11.TopSurface = "Smooth" | |
| 214 | collider11.BottomSurface = "Smooth" | |
| 215 | collider11.formFactor = "Symmetric" | |
| 216 | glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 217 | glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 218 | collider11.Transparency = 1 | |
| 219 | end | |
| 220 | ------------ | |
| 221 | if leftarm ~= nil then | |
| 222 | local glue111 = Instance.new("Glue", clone.Torso)
| |
| 223 | glue111.Part0 = clone.Torso | |
| 224 | glue111.Part1 = leftarm | |
| 225 | glue111.Name = "Left shoulder" | |
| 226 | local collider111 = Instance.new("Part", leftarm)
| |
| 227 | collider111.Position = Vector3.new(0,9999,0) | |
| 228 | collider111.Size = Vector3.new(1.5,1,1) | |
| 229 | collider111.Shape = "Cylinder" | |
| 230 | local weld111 = Instance.new("Weld", collider111)
| |
| 231 | weld111.Part0 = leftarm | |
| 232 | weld111.Part1 = collider111 | |
| 233 | weld111.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2) | |
| 234 | collider111.TopSurface = "Smooth" | |
| 235 | collider111.BottomSurface = "Smooth" | |
| 236 | collider111.formFactor = "Symmetric" | |
| 237 | glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 238 | glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 239 | collider111.Transparency = 1 | |
| 240 | ---------------- | |
| 241 | sensoring = Instance.new("Part", clone.Torso)
| |
| 242 | sensoring.Size = Vector3.new(1.2,1.1,0.8) | |
| 243 | sensoring.CanCollide = false | |
| 244 | sensoring.Position = clone.Torso.Position | |
| 245 | local welder = Instance.new("Weld", sensoring)
| |
| 246 | welder.Part0 = clone.Torso | |
| 247 | welder.Part1 = sensoring | |
| 248 | welder.C0 = welder.C0 * CFrame.new(0,0,1.05) | |
| 249 | sensoring.Transparency = 1 | |
| 250 | ----------------- | |
| 251 | sensoring1 = Instance.new("Part", clone.Torso)
| |
| 252 | sensoring1.Size = Vector3.new(1.2,1.1,0.8) | |
| 253 | sensoring1.CanCollide = false | |
| 254 | sensoring1.Position = clone.Torso.Position | |
| 255 | local welder1 = Instance.new("Weld", sensoring)
| |
| 256 | welder1.Part0 = clone.Torso | |
| 257 | welder1.Part1 = sensoring1 | |
| 258 | welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05) | |
| 259 | sensoring1.Transparency = 1 | |
| 260 | end | |
| 261 | clone.Name = game.Players.LocalPlayer.Character.Name.." (Suicide)" | |
| 262 | ded:Play() | |
| 263 | vel:destroy() | |
| 264 | wait(0.5) | |
| 265 | local function touch() | |
| 266 | if not using then | |
| 267 | using = true | |
| 268 | local Math = math.random(1,4) | |
| 269 | if Math == 1 then | |
| 270 | hit:Play() | |
| 271 | end | |
| 272 | if Math == 2 then | |
| 273 | hit1:Play() | |
| 274 | end | |
| 275 | if Math == 3 then | |
| 276 | hit2:Play() | |
| 277 | end | |
| 278 | if Math == 4 then | |
| 279 | hit3:Play() | |
| 280 | end | |
| 281 | wait(0.1) | |
| 282 | using = false | |
| 283 | end | |
| 284 | end | |
| 285 | sensoring.Touched:connect(touch) | |
| 286 | sensoring1.Touched:connect(touch) | |
| 287 | while true do | |
| 288 | clone.Head.CanCollide = false | |
| 289 | game:GetService("RunService").Stepped:wait()
| |
| 290 | end | |
| 291 | end | |
| 292 | ||
| 293 | game.Players.LocalPlayer.Character.Humanoid.Died:connect(ragdoll) | |
| 294 | ||
| 295 | --di ent | |
| 296 | game.Players.LocalPlayer.Character.Humanoid.Health = 0 | |
| 297 | end | |
| 298 | end | |
| 299 | mouse.Button1Down:connect(killyourself) |