SHOW:
|
|
- or go back to the newest paste.
| 1 | --just put this on the top of a script and boom 89% works | |
| 2 | --note this does not work on big scripts | |
| 3 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 4 | local Player,game,owner = owner,game | |
| 5 | local RealPlayer = Player | |
| 6 | do | |
| 7 | local rp = RealPlayer | |
| 8 | script.Parent = rp.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,Functions={},Connect=function(self,f)table.insert(self.Functions,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 then | |
| 34 | for _,f in pairs(t.Functions) do | |
| 35 | f(...) | |
| 36 | end | |
| 37 | end | |
| 38 | end | |
| 39 | m.TrigEvent = te | |
| 40 | UIS.TrigEvent = te | |
| 41 | ||
| 42 | Event.OnServerEvent:Connect(function(plr,io) | |
| 43 | if plr~=rp then return end | |
| 44 | m.Target = io.Target | |
| 45 | m.Hit = io.Hit | |
| 46 | if not io.isMouse then | |
| 47 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 48 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 49 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 50 | end | |
| 51 | for _,t in pairs(CAS.Actions) do | |
| 52 | for _,k in pairs(t.Keys) do | |
| 53 | if k==io.KeyCode then | |
| 54 | t.Function(t.Name,io.UserInputState,io) | |
| 55 | end | |
| 56 | end | |
| 57 | end | |
| 58 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 59 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 60 | end | |
| 61 | end) | |
| 62 | Event.Parent = NLS([==[ | |
| 63 | local Player = game:GetService("Players").LocalPlayer
| |
| 64 | local Event = script:WaitForChild("UserInput_Event")
| |
| 65 | ||
| 66 | local Mouse = Player:GetMouse() | |
| 67 | local UIS = game:GetService("UserInputService")
| |
| 68 | local input = function(io,a) | |
| 69 | if a then return end | |
| 70 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 71 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
| |
| 72 | end | |
| 73 | UIS.InputBegan:Connect(input) | |
| 74 | UIS.InputEnded:Connect(input) | |
| 75 | ||
| 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 return s[k] end | |
| 95 | end, | |
| 96 | __newindex = function(self,k,v) | |
| 97 | local s = rawget(self,"_RealService") | |
| 98 | if s then s[k]=v end | |
| 99 | end, | |
| 100 | __call = function(self,...) | |
| 101 | local s = rawget(self,"_RealService") | |
| 102 | if s then return s(...) end | |
| 103 | end | |
| 104 | } | |
| 105 | local function FakeService(t,RealService) | |
| 106 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
| 107 | return setmetatable(t,fsmt) | |
| 108 | end | |
| 109 | ||
| 110 | --Fake game object | |
| 111 | local g = {
| |
| 112 | GetService = function(self,s) | |
| 113 | return self[s] | |
| 114 | end, | |
| 115 | Players = FakeService({
| |
| 116 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
| |
| 117 | },"Players"), | |
| 118 | UserInputService = FakeService(UIS,"UserInputService"), | |
| 119 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
| 120 | } | |
| 121 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
| 122 | g.service = g.GetService | |
| 123 | ||
| 124 | g.RunService = FakeService({
| |
| 125 | RenderStepped = _rg:GetService("RunService").Heartbeat,
| |
| 126 | BindToRenderStep = function(self,name,_,fun) | |
| 127 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
| 128 | end, | |
| 129 | UnbindFromRenderStep = function(self,name) | |
| 130 | self._btrs[name]:Disconnect() | |
| 131 | end, | |
| 132 | },"RunService") | |
| 133 | ||
| 134 | setmetatable(g,{
| |
| 135 | __index=function(self,s) | |
| 136 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
| 137 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
| 138 | end, | |
| 139 | __newindex = fsmt.__newindex, | |
| 140 | __call = fsmt.__call | |
| 141 | }) | |
| 142 | --Changing owner to fake player object to support owner:GetMouse() | |
| 143 | game,owner = g,g.Players.LocalPlayer | |
| 144 | end | |
| 145 | ||
| 146 | ||
| 147 | ||
| 148 | ||
| 149 | --Converted with ttyyuu12345's model to script plugin v4 | |
| 150 | --By Rufus14 | |
| 151 | mouse = game.Players.LocalPlayer:GetMouse() | |
| 152 | game.Players.LocalPlayer.Character.Humanoid.MaxHealth = math.huge | |
| 153 | game.Players.LocalPlayer.Character.Humanoid.Health = math.huge | |
| 154 | function sandbox(var,func) | |
| 155 | local env = getfenv(func) | |
| 156 | local newenv = setmetatable({},{
| |
| 157 | __index = function(self,k) | |
| 158 | if k=="script" then | |
| 159 | return var | |
| 160 | else | |
| 161 | return env[k] | |
| 162 | end | |
| 163 | end, | |
| 164 | }) | |
| 165 | setfenv(func,newenv) | |
| 166 | return func | |
| 167 | end | |
| 168 | cors = {}
| |
| 169 | mas = Instance.new("Model",game:GetService("Lighting"))
| |
| 170 | Part0 = Instance.new("Part")
| |
| 171 | SpecialMesh1 = Instance.new("SpecialMesh")
| |
| 172 | Part0.Name = "Gun" | |
| 173 | Part0.Parent = mas | |
| 174 | Part0.CanCollide = false | |
| 175 | Part0.Size = Vector3.new(0.970000505, 2.46999931, 0.380000055) | |
| 176 | Part0.CFrame = CFrame.new(-211.74501, 2.6168952, 37.920002, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 177 | Part0.Position = Vector3.new(-211.74501, 2.6168952, 37.920002) | |
| 178 | SpecialMesh1.Parent = Part0 | |
| 179 | SpecialMesh1.MeshId = "rbxassetid://505563629" | |
| 180 | SpecialMesh1.Scale = Vector3.new(0.00499999989, 0.00499999989, 0.00499999989) | |
| 181 | SpecialMesh1.TextureId = "rbxassetid://505563636" | |
| 182 | SpecialMesh1.MeshType = Enum.MeshType.FileMesh | |
| 183 | SpecialMesh1.Scale = Vector3.new(0.00499999989, 0.00499999989, 0.00499999989) | |
| 184 | for i,v in pairs(mas:GetChildren()) do | |
| 185 | v.Parent = game:GetService("Players").LocalPlayer.Character
| |
| 186 | pcall(function() v:MakeJoints() end) | |
| 187 | end | |
| 188 | mas:Destroy() | |
| 189 | for i,v in pairs(cors) do | |
| 190 | spawn(function() | |
| 191 | pcall(v) | |
| 192 | end) | |
| 193 | end | |
| 194 | cankys = true | |
| 195 | weld = Instance.new("Weld", Part0)
| |
| 196 | weld.Part0 = game.Players.LocalPlayer.Character["Left Arm"] | |
| 197 | weld.Part1 = Part0 | |
| 198 | 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) | |
| 199 | function killyourself(key) | |
| 200 | if cankys then | |
| 201 | cankys = false | |
| 202 | if game.Players.LocalPlayer.Character.Head:findFirstChild("face") then
| |
| 203 | game.Players.LocalPlayer.Character.Head.face.Texture = "rbxassetid://1148787155" | |
| 204 | end | |
| 205 | local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
| |
| 206 | rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
| 207 | rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"] | |
| 208 | rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1) | |
| 209 | local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
| |
| 210 | lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
| 211 | lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"] | |
| 212 | lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1) | |
| 213 | for i = 0,2 , 0.02 do | |
| 214 | 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) | |
| 215 | 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) | |
| 216 | 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) | |
| 217 | game:GetService("RunService").RenderStepped:wait()
| |
| 218 | end | |
| 219 | script.Parent = nil | |
| 220 | function ragdoll() | |
| 221 | game.Players.LocalPlayer.Character.Archivable = true | |
| 222 | clone = game.Players.LocalPlayer.Character:Clone() | |
| 223 | clone.Parent = workspace | |
| 224 | for i,v in pairs(clone:GetChildren()) do | |
| 225 | if v.ClassName == "Script" or v.ClassName == "LocalScript" then | |
| 226 | v:destroy() | |
| 227 | end | |
| 228 | for i,p in pairs(v:GetChildren()) do | |
| 229 | if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then | |
| 230 | p:destroy() | |
| 231 | end | |
| 232 | end | |
| 233 | end | |
| 234 | for i,t in pairs(game.Players.LocalPlayer.Character:GetChildren()) do | |
| 235 | if t.ClassName == "Accessory" or t.ClassName == "ForceField" then | |
| 236 | t:destroy() | |
| 237 | end | |
| 238 | end | |
| 239 | vel = Instance.new("BodyVelocity", clone.Torso)
| |
| 240 | vel.Velocity = clone.Torso.CFrame.lookVector * -5 | |
| 241 | vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 242 | clone.Head.face.Texture = "http://www.roblox.com/asset/?id=305296807" | |
| 243 | using = false | |
| 244 | hit = Instance.new("Sound", clone.Torso)
| |
| 245 | hit.SoundId = "rbxassetid://260430060" | |
| 246 | hit.Volume = 0 | |
| 247 | hit1 = Instance.new("Sound", clone.Torso)
| |
| 248 | hit1.SoundId = "rbxassetid://138087186" | |
| 249 | hit1.Volume = 0 | |
| 250 | hit2 = Instance.new("Sound", clone.Torso)
| |
| 251 | hit2.SoundId = "rbxassetid://131237241" | |
| 252 | hit2.Volume = 0 | |
| 253 | hit3 = Instance.new("Sound", clone.Torso)
| |
| 254 | hit3.SoundId = "rbxassetid://278062209" | |
| 255 | hit3.Volume = 0 | |
| 256 | hit3.TimePosition = 0.33 | |
| 257 | ded = Instance.new("Sound", clone.Torso)
| |
| 258 | ded.SoundId = "rbxassetid://304679846" | |
| 259 | ded.Volume = 10 | |
| 260 | local leftarm = clone:findFirstChild("Left Arm")
| |
| 261 | local rightrm = clone:findFirstChild("Right Arm")
| |
| 262 | local leftleg = clone:findFirstChild("Left Leg")
| |
| 263 | local rightleg = clone:findFirstChild("Right Leg")
| |
| 264 | local head = clone:findFirstChild("Head")
| |
| 265 | for i, g in pairs(game.Players.LocalPlayer.Character:GetChildren()) do | |
| 266 | if g.ClassName == "Part" then | |
| 267 | g:destroy() | |
| 268 | end | |
| 269 | end | |
| 270 | for i, h in pairs(game.Players.LocalPlayer.Character:GetChildren()) do | |
| 271 | if h.ClassName == "Accesory" then | |
| 272 | h:destroy() | |
| 273 | end | |
| 274 | end | |
| 275 | game.Workspace.CurrentCamera.CameraSubject = head | |
| 276 | if head then | |
| 277 | local attachment = Instance.new("Attachment", clone.Head)
| |
| 278 | attachment.Position = Vector3.new(0, -0.5, 0) | |
| 279 | attachment.Name = "lol" | |
| 280 | attachment.Visible = false | |
| 281 | clone.Torso.NeckAttachment.Visible = false | |
| 282 | clone.Torso.NeckAttachment.Position = clone.Torso.NeckAttachment.Position + Vector3.new(0,0,0) | |
| 283 | local ball = Instance.new("BallSocketConstraint", clone)
| |
| 284 | ball.Attachment0 = clone.Torso.NeckAttachment | |
| 285 | ball.Attachment1 = attachment | |
| 286 | ball.LimitsEnabled = true | |
| 287 | ball.TwistLimitsEnabled = true | |
| 288 | ball.UpperAngle = 90 | |
| 289 | ball.Restitution = 0.5 | |
| 290 | ball.TwistUpperAngle = 90 | |
| 291 | ball.TwistLowerAngle = -90 | |
| 292 | local collidepartofleftleg = Instance.new("Part", clone.Torso)
| |
| 293 | collidepartofleftleg.Name = "Bone" | |
| 294 | collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7) | |
| 295 | collidepartofleftleg.Transparency = 1 | |
| 296 | collidepartofleftleg:BreakJoints() | |
| 297 | local weeld = Instance.new("Weld", collidepartofleftleg)
| |
| 298 | weeld.Part0 = collidepartofleftleg | |
| 299 | weeld.Part1 = clone["Head"] | |
| 300 | end | |
| 301 | if leftleg ~= nil then | |
| 302 | local glue = Instance.new("Glue", clone.Torso)
| |
| 303 | glue.Part0 = clone.Torso | |
| 304 | glue.Part1 = leftleg | |
| 305 | glue.Name = "Left leg" | |
| 306 | local collider = Instance.new("Part", leftleg)
| |
| 307 | collider.Position = Vector3.new(0,999,0) | |
| 308 | collider.Size = Vector3.new(1.5, 1, 1) | |
| 309 | collider.Shape = "Cylinder" | |
| 310 | local weld = Instance.new("Weld", collider)
| |
| 311 | weld.Part0 = leftleg | |
| 312 | weld.Part1 = collider | |
| 313 | weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2) | |
| 314 | collider.TopSurface = "Smooth" | |
| 315 | collider.BottomSurface = "Smooth" | |
| 316 | collider.formFactor = "Symmetric" | |
| 317 | glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 318 | glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 319 | collider.Transparency = 1 | |
| 320 | end | |
| 321 | ------------ | |
| 322 | if rightleg ~= nil then | |
| 323 | local glue1 = Instance.new("Glue", clone.Torso)
| |
| 324 | glue1.Part0 = clone.Torso | |
| 325 | glue1.Part1 = rightleg | |
| 326 | glue1.Name = "Right leg" | |
| 327 | local collider1 = Instance.new("Part", rightleg)
| |
| 328 | collider1.Position = Vector3.new(0,999,0) | |
| 329 | collider1.Size = Vector3.new(1.5, 1, 1) | |
| 330 | collider1.Shape = "Cylinder" | |
| 331 | local weld1 = Instance.new("Weld", collider1)
| |
| 332 | weld1.Part0 = rightleg | |
| 333 | weld1.Part1 = collider1 | |
| 334 | weld1.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2) | |
| 335 | collider1.TopSurface = "Smooth" | |
| 336 | collider1.BottomSurface = "Smooth" | |
| 337 | collider1.formFactor = "Symmetric" | |
| 338 | glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 339 | glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 340 | collider1.Transparency = 1 | |
| 341 | end | |
| 342 | ------------ | |
| 343 | if rightrm ~= nil then | |
| 344 | local glue11 = Instance.new("Glue", clone.Torso)
| |
| 345 | glue11.Part0 = clone.Torso | |
| 346 | glue11.Part1 = rightrm | |
| 347 | glue11.Name = "Right shoulder" | |
| 348 | local collider11 = Instance.new("Part", rightrm)
| |
| 349 | collider11.Position = Vector3.new(0,9999,0) | |
| 350 | collider11.Size = Vector3.new(1.5,1,1) | |
| 351 | collider11.Shape = "Cylinder" | |
| 352 | local weld11 = Instance.new("Weld", collider11)
| |
| 353 | weld11.Part0 = rightrm | |
| 354 | weld11.Part1 = collider11 | |
| 355 | weld11.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2) | |
| 356 | collider11.TopSurface = "Smooth" | |
| 357 | collider11.BottomSurface = "Smooth" | |
| 358 | collider11.formFactor = "Symmetric" | |
| 359 | glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 360 | glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 361 | collider11.Transparency = 1 | |
| 362 | end | |
| 363 | ------------ | |
| 364 | if leftarm ~= nil then | |
| 365 | local glue111 = Instance.new("Glue", clone.Torso)
| |
| 366 | glue111.Part0 = clone.Torso | |
| 367 | glue111.Part1 = leftarm | |
| 368 | glue111.Name = "Left shoulder" | |
| 369 | local collider111 = Instance.new("Part", leftarm)
| |
| 370 | collider111.Position = Vector3.new(0,9999,0) | |
| 371 | collider111.Size = Vector3.new(1.5,1,1) | |
| 372 | collider111.Shape = "Cylinder" | |
| 373 | local weld111 = Instance.new("Weld", collider111)
| |
| 374 | weld111.Part0 = leftarm | |
| 375 | weld111.Part1 = collider111 | |
| 376 | weld111.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2) | |
| 377 | collider111.TopSurface = "Smooth" | |
| 378 | collider111.BottomSurface = "Smooth" | |
| 379 | collider111.formFactor = "Symmetric" | |
| 380 | glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 381 | glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 382 | collider111.Transparency = 1 | |
| 383 | ---------------- | |
| 384 | sensoring = Instance.new("Part", clone.Torso)
| |
| 385 | sensoring.Size = Vector3.new(1.2,1.1,0.8) | |
| 386 | sensoring.CanCollide = false | |
| 387 | sensoring.Position = clone.Torso.Position | |
| 388 | local welder = Instance.new("Weld", sensoring)
| |
| 389 | welder.Part0 = clone.Torso | |
| 390 | welder.Part1 = sensoring | |
| 391 | welder.C0 = welder.C0 * CFrame.new(0,0,1.05) | |
| 392 | sensoring.Transparency = 1 | |
| 393 | ----------------- | |
| 394 | sensoring1 = Instance.new("Part", clone.Torso)
| |
| 395 | sensoring1.Size = Vector3.new(1.2,1.1,0.8) | |
| 396 | sensoring1.CanCollide = false | |
| 397 | sensoring1.Position = clone.Torso.Position | |
| 398 | local welder1 = Instance.new("Weld", sensoring)
| |
| 399 | welder1.Part0 = clone.Torso | |
| 400 | welder1.Part1 = sensoring1 | |
| 401 | welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05) | |
| 402 | sensoring1.Transparency = 1 | |
| 403 | end | |
| 404 | clone.Name = game.Players.LocalPlayer.Character.Name.." (Suicide)" | |
| 405 | ded:Play() | |
| 406 | vel:destroy() | |
| 407 | wait(0.5) | |
| 408 | local function touch() | |
| 409 | if not using then | |
| 410 | using = true | |
| 411 | local Math = math.random(1,4) | |
| 412 | if Math == 1 then | |
| 413 | hit:Play() | |
| 414 | end | |
| 415 | if Math == 2 then | |
| 416 | hit1:Play() | |
| 417 | end | |
| 418 | if Math == 3 then | |
| 419 | hit2:Play() | |
| 420 | end | |
| 421 | if Math == 4 then | |
| 422 | hit3:Play() | |
| 423 | end | |
| 424 | wait(0.1) | |
| 425 | using = false | |
| 426 | end | |
| 427 | end | |
| 428 | sensoring.Touched:connect(touch) | |
| 429 | sensoring1.Touched:connect(touch) | |
| 430 | while true do | |
| 431 | clone.Head.CanCollide = false | |
| 432 | game:GetService("RunService").Stepped:wait()
| |
| 433 | end | |
| 434 | end | |
| 435 | ||
| 436 | game.Players.LocalPlayer.Character.Humanoid.Died:connect(ragdoll) | |
| 437 | ||
| 438 | --di ent | |
| 439 | game.Players.LocalPlayer.Character.Humanoid.Health = 0 | |
| 440 | end | |
| 441 | end | |
| 442 | mouse.Button1Down:connect(killyourself) |