SHOW:
|
|
- or go back to the newest paste.
| 1 | local plr = game.Players.LocalPlayer | |
| 2 | local good = true | |
| 3 | local R15 = false | |
| 4 | while plr.Character == nil or plr.Character:FindFirstChildOfClass('Humanoid') == nil do
| |
| 5 | wait() | |
| 6 | end | |
| 7 | if plr.Character:FindFirstChildOfClass('Humanoid').RigType == Enum.HumanoidRigType.R15 then
| |
| 8 | R15 = true | |
| 9 | end | |
| 10 | ||
| 11 | function makegui() | |
| 12 | -- Objects | |
| 13 | ||
| 14 | local ScreenGui = Instance.new("ScreenGui")
| |
| 15 | local Frame = Instance.new("Frame")
| |
| 16 | - | local TextBox = Instance.new("TextLabel")
|
| 16 | + | |
| 17 | -- Properties | |
| 18 | ||
| 19 | ScreenGui.Parent = plr.PlayerGui | |
| 20 | ||
| 21 | Frame.Parent = ScreenGui | |
| 22 | Frame.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647) | |
| 23 | Frame.BackgroundTransparency = 0.5 | |
| 24 | Frame.BorderSizePixel = 0 | |
| 25 | Frame.Size = UDim2.new(1, 0, 0, 0) | |
| 26 | ||
| 27 | ||
| 28 | - | TextBox.Parent = Frame |
| 28 | + | |
| 29 | - | TextBox.BackgroundColor3 = Color3.new(1, 1, 1) |
| 29 | + | |
| 30 | - | TextBox.BackgroundTransparency = 1 |
| 30 | + | |
| 31 | - | TextBox.Position = UDim2.new(0.05, 0, 0.05, 0) |
| 31 | + | |
| 32 | - | TextBox.Size = UDim2.new(0.899999976, 0, 0.899999976, 0) |
| 32 | + | |
| 33 | - | TextBox.Font = Enum.Font.Code |
| 33 | + | |
| 34 | - | TextBox.FontSize = Enum.FontSize.Size14 |
| 34 | + | good = true |
| 35 | - | TextBox.Text = "" |
| 35 | + | |
| 36 | - | TextBox.TextColor3 = Color3.new(1, 1, 1) |
| 36 | + | |
| 37 | - | TextBox.TextScaled = true |
| 37 | + | |
| 38 | - | TextBox.TextSize = 14 |
| 38 | + | |
| 39 | - | TextBox.TextWrapped = true |
| 39 | + | |
| 40 | - | Frame:TweenSize(UDim2.new(1, 0, 0.2, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,1,false) |
| 40 | + | |
| 41 | - | wait(1.5) |
| 41 | + | |
| 42 | - | local text = "This script doesn't work in R15, sorry!" |
| 42 | + | |
| 43 | - | for i=1,string.len(text) do |
| 43 | + | |
| 44 | - | TextBox.Text = string.sub(text,1,i) |
| 44 | + | |
| 45 | local choking = false | |
| 46 | local zapping = false | |
| 47 | - | wait(2) |
| 47 | + | |
| 48 | - | TextBox.Text = "" |
| 48 | + | |
| 49 | - | Frame:TweenSize(UDim2.new(1, 0, 0, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,1,false) |
| 49 | + | |
| 50 | local startpos = CFrame.new(0,0,0) | |
| 51 | - | function makegui2() |
| 51 | + | |
| 52 | local timez = 0 | |
| 53 | ||
| 54 | Gibs = workspace | |
| 55 | ||
| 56 | - | local TextBox = Instance.new("TextLabel")
|
| 56 | + | |
| 57 | if Character:FindFirstChildOfClass('Humanoid') then
| |
| 58 | Character:FindFirstChildOfClass('Humanoid').Health = 0
| |
| 59 | local svch = Character | |
| 60 | local hum = Character:findFirstChild("Humanoid")
| |
| 61 | Character.Archivable = true | |
| 62 | local chrclone = Character:clone() | |
| 63 | Character.Archivable = false | |
| 64 | ||
| 65 | local ch = chrclone:GetChildren() | |
| 66 | local i | |
| 67 | for i = 1,#ch do | |
| 68 | - | TextBox.Parent = Frame |
| 68 | + | |
| 69 | - | TextBox.BackgroundColor3 = Color3.new(1, 1, 1) |
| 69 | + | |
| 70 | - | TextBox.BackgroundTransparency = 1 |
| 70 | + | |
| 71 | - | TextBox.Position = UDim2.new(0.05, 0, 0.05, 0) |
| 71 | + | |
| 72 | - | TextBox.Size = UDim2.new(0.899999976, 0, 0.899999976, 0) |
| 72 | + | |
| 73 | - | TextBox.Font = Enum.Font.Code |
| 73 | + | |
| 74 | - | TextBox.FontSize = Enum.FontSize.Size14 |
| 74 | + | |
| 75 | - | TextBox.Text = "" |
| 75 | + | |
| 76 | - | TextBox.TextColor3 = Color3.new(1, 1, 1) |
| 76 | + | |
| 77 | - | TextBox.TextScaled = true |
| 77 | + | |
| 78 | - | TextBox.TextSize = 14 |
| 78 | + | |
| 79 | - | TextBox.TextWrapped = true |
| 79 | + | |
| 80 | - | Frame:TweenSize(UDim2.new(1, 0, 0.2, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,1,false) |
| 80 | + | |
| 81 | - | wait(1.5) |
| 81 | + | |
| 82 | - | local text = "This script doesn't work in Filtering Enabled, sorry!" |
| 82 | + | |
| 83 | - | for i=1,string.len(text) do |
| 83 | + | |
| 84 | - | TextBox.Text = string.sub(text,1,i) |
| 84 | + | |
| 85 | ||
| 86 | if hum2 ~= nil then | |
| 87 | - | wait(2) |
| 87 | + | |
| 88 | - | TextBox.Text = "" |
| 88 | + | |
| 89 | - | Frame:TweenSize(UDim2.new(1, 0, 0, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,1,false) |
| 89 | + | |
| 90 | hum2.MaxHealth = 0 | |
| 91 | - | function makegui3() |
| 91 | + | |
| 92 | end | |
| 93 | ||
| 94 | local ch = Character:GetChildren() | |
| 95 | local i | |
| 96 | - | local TextBox = Instance.new("TextLabel")
|
| 96 | + | |
| 97 | if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then | |
| 98 | ch[i]:remove() | |
| 99 | end | |
| 100 | end | |
| 101 | ||
| 102 | wait(0.2) | |
| 103 | ||
| 104 | local ch = Character:GetChildren() | |
| 105 | local i | |
| 106 | for i = 1,#ch do | |
| 107 | if ch[i].ClassName == "Part" or ch[i].ClassName == "Hat" or ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then | |
| 108 | - | TextBox.Parent = Frame |
| 108 | + | |
| 109 | - | TextBox.BackgroundColor3 = Color3.new(1, 1, 1) |
| 109 | + | |
| 110 | - | TextBox.BackgroundTransparency = 1 |
| 110 | + | |
| 111 | - | TextBox.Position = UDim2.new(0.05, 0, 0.05, 0) |
| 111 | + | |
| 112 | - | TextBox.Size = UDim2.new(0.899999976, 0, 0.899999976, 0) |
| 112 | + | |
| 113 | - | TextBox.Font = Enum.Font.Code |
| 113 | + | |
| 114 | - | TextBox.FontSize = Enum.FontSize.Size14 |
| 114 | + | |
| 115 | - | TextBox.Text = "" |
| 115 | + | |
| 116 | - | TextBox.TextColor3 = Color3.new(1, 1, 1) |
| 116 | + | |
| 117 | - | TextBox.TextScaled = true |
| 117 | + | |
| 118 | - | TextBox.TextSize = 14 |
| 118 | + | |
| 119 | - | TextBox.TextWrapped = true |
| 119 | + | |
| 120 | - | Frame:TweenSize(UDim2.new(1, 0, 0.2, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,1,false) |
| 120 | + | |
| 121 | - | wait(1.5) |
| 121 | + | |
| 122 | - | local text = "Press F on a player to force choke them, and hold G to use force lightning." |
| 122 | + | |
| 123 | - | for i=1,string.len(text) do |
| 123 | + | |
| 124 | - | TextBox.Text = string.sub(text,1,i) |
| 124 | + | |
| 125 | Neck.Part0 = Torso | |
| 126 | Neck.Part1 = Head | |
| 127 | - | wait(2) |
| 127 | + | |
| 128 | - | TextBox.Text = "" |
| 128 | + | |
| 129 | - | Frame:TweenSize(UDim2.new(1, 0, 0, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,1,false) |
| 129 | + | |
| 130 | end | |
| 131 | local Limb = Character:FindFirstChild("Right Arm")
| |
| 132 | if Limb then | |
| 133 | Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0) | |
| 134 | local Joint = Instance.new("Glue")
| |
| 135 | Joint.Name = "RightShoulder" | |
| 136 | Joint.Part0 = Torso | |
| 137 | Joint.Part1 = Limb | |
| 138 | Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 139 | Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 140 | Joint.Parent = Torso | |
| 141 | local B = Instance.new("Part")
| |
| 142 | B.TopSurface = 0 | |
| 143 | B.BottomSurface = 0 | |
| 144 | B.formFactor = "Symmetric" | |
| 145 | B.Size = Vector3.new(1, 1, 1) | |
| 146 | B.Transparency = 1 | |
| 147 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
| 148 | B.Parent = Character | |
| 149 | local W = Instance.new("Weld")
| |
| 150 | W.Part0 = Limb | |
| 151 | W.Part1 = B | |
| 152 | W.C0 = CFrame.new(0, -0.5, 0) | |
| 153 | W.Parent = Limb | |
| 154 | end | |
| 155 | local Limb = Character:FindFirstChild("Left Arm")
| |
| 156 | if Limb then | |
| 157 | Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0) | |
| 158 | local Joint = Instance.new("Glue")
| |
| 159 | Joint.Name = "LeftShoulder" | |
| 160 | Joint.Part0 = Torso | |
| 161 | Joint.Part1 = Limb | |
| 162 | Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 163 | Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 164 | Joint.Parent = Torso | |
| 165 | ||
| 166 | local B = Instance.new("Part")
| |
| 167 | B.TopSurface = 0 | |
| 168 | B.BottomSurface = 0 | |
| 169 | B.formFactor = "Symmetric" | |
| 170 | B.Size = Vector3.new(1, 1, 1) | |
| 171 | B.Transparency = 1 | |
| 172 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
| 173 | B.Parent = Character | |
| 174 | local W = Instance.new("Weld")
| |
| 175 | W.Part0 = Limb | |
| 176 | W.Part1 = B | |
| 177 | W.C0 = CFrame.new(0, -0.5, 0) | |
| 178 | W.Parent = Limb | |
| 179 | end | |
| 180 | local Limb = Character:FindFirstChild("Right Leg")
| |
| 181 | if Limb then | |
| 182 | ||
| 183 | Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0) | |
| 184 | local Joint = Instance.new("Glue")
| |
| 185 | Joint.Name = "RightHip" | |
| 186 | Joint.Part0 = Torso | |
| 187 | Joint.Part1 = Limb | |
| 188 | Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 189 | Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 190 | Joint.Parent = Torso | |
| 191 | ||
| 192 | local B = Instance.new("Part")
| |
| 193 | B.TopSurface = 0 | |
| 194 | B.BottomSurface = 0 | |
| 195 | B.formFactor = "Symmetric" | |
| 196 | B.Size = Vector3.new(1, 1, 1) | |
| 197 | B.Transparency = 1 | |
| 198 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
| 199 | B.Parent = Character | |
| 200 | local W = Instance.new("Weld")
| |
| 201 | W.Part0 = Limb | |
| 202 | W.Part1 = B | |
| 203 | W.C0 = CFrame.new(0, -0.5, 0) | |
| 204 | W.Parent = Limb | |
| 205 | ||
| 206 | end | |
| 207 | local Limb = Character:FindFirstChild("Left Leg")
| |
| 208 | if Limb then | |
| 209 | ||
| 210 | Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0) | |
| 211 | local Joint = Instance.new("Glue")
| |
| 212 | Joint.Name = "LeftHip" | |
| 213 | Joint.Part0 = Torso | |
| 214 | Joint.Part1 = Limb | |
| 215 | Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 216 | Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 217 | Joint.Parent = Torso | |
| 218 | ||
| 219 | local B = Instance.new("Part")
| |
| 220 | B.TopSurface = 0 | |
| 221 | B.BottomSurface = 0 | |
| 222 | B.formFactor = "Symmetric" | |
| 223 | B.Size = Vector3.new(1, 1, 1) | |
| 224 | B.Transparency = 1 | |
| 225 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
| 226 | B.Parent = Character | |
| 227 | local W = Instance.new("Weld")
| |
| 228 | W.Part0 = Limb | |
| 229 | W.Part1 = B | |
| 230 | W.C0 = CFrame.new(0, -0.5, 0) | |
| 231 | W.Parent = Limb | |
| 232 | ||
| 233 | end | |
| 234 | --[ | |
| 235 | local Bar = Instance.new("Part")
| |
| 236 | Bar.TopSurface = 0 | |
| 237 | Bar.BottomSurface = 0 | |
| 238 | Bar.formFactor = "Symmetric" | |
| 239 | Bar.Size = Vector3.new(1, 1, 1) | |
| 240 | Bar.Transparency = 1 | |
| 241 | Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0) | |
| 242 | Bar.Parent = Character | |
| 243 | local Weld = Instance.new("Weld")
| |
| 244 | Weld.Part0 = Torso | |
| 245 | Weld.Part1 = Bar | |
| 246 | Weld.C0 = CFrame.new(0, 0.5, 0) | |
| 247 | Weld.Parent = Torso | |
| 248 | --]] | |
| 249 | end | |
| 250 | Character.Parent = Gibs | |
| 251 | game.Debris:AddItem(Character, 12) | |
| 252 | Character.Torso.Velocity = plr.Character.Torso.CFrame.lookVector*10 | |
| 253 | Character.Head.Velocity = plr.Character.Torso.CFrame.lookVector*10 | |
| 254 | if oh then | |
| 255 | local repulse = Instance.new('BodyForce',Torso)
| |
| 256 | repulse.Force = movevector*10000 + Vector3.new(0,1000,0) | |
| 257 | game.Debris:AddItem(repulse,0.05) | |
| 258 | for i,v in pairs(chrclone:GetChildren()) do | |
| 259 | if v:IsA('BasePart') then
| |
| 260 | v.BrickColor = BrickColor.Black() | |
| 261 | end | |
| 262 | end | |
| 263 | local sound = Instance.new('Sound',Torso)
| |
| 264 | sound.EmitterSize = 50 | |
| 265 | sound.MaxDistance = 100 | |
| 266 | sound.Volume = 6 | |
| 267 | sound.SoundId = 'rbxassetid://157325701' | |
| 268 | sound:Play() | |
| 269 | sound.Ended:connect(function() | |
| 270 | sound:Destroy() | |
| 271 | end) | |
| 272 | end | |
| 273 | local duh = Torso | |
| 274 | if yee == true then | |
| 275 | ee = Instance.new("Part")
| |
| 276 | ee.Anchored = false | |
| 277 | ee.CanCollide = false | |
| 278 | ee.Parent = duh | |
| 279 | ee.Transparency =1 | |
| 280 | ee.Size = Vector3.new(0.15, 0.15, 0.15) | |
| 281 | wee = Instance.new("Weld")
| |
| 282 | wee.Parent = duh | |
| 283 | wee.Part0 = duh | |
| 284 | wee.Part1 = ee | |
| 285 | wee.C0 = CFrame.new(0, 1, 0) | |
| 286 | ge = Instance.new('ParticleEmitter')
| |
| 287 | ge.Parent = ee | |
| 288 | ge.Texture = "rbxassetid://29712167" | |
| 289 | ge.Size = NumberSequence.new(0.2,0.05) | |
| 290 | ge.Acceleration = Vector3.new(0, -20, 0) | |
| 291 | ge.Rate = 100000 | |
| 292 | ge.Speed = NumberRange.new(7,8) | |
| 293 | ge.Lifetime = NumberRange.new(3,4) | |
| 294 | ge.VelocitySpread = 10 | |
| 295 | ge.VelocityInheritance = 0.3 | |
| 296 | ea = Instance.new("Part")
| |
| 297 | ea.Anchored = false | |
| 298 | ea.CanCollide = false | |
| 299 | ea.Parent = Character.Head | |
| 300 | ea.Transparency =1 | |
| 301 | ea.Size = Vector3.new(0.15, 0.15, 0.15) | |
| 302 | wea = Instance.new("Weld")
| |
| 303 | wea.Parent = Character.Head | |
| 304 | wea.Part0 = Character.Head | |
| 305 | wea.Part1 = ea | |
| 306 | wea.C0 = CFrame.new(0, -0.7, 0) | |
| 307 | ga = Instance.new('ParticleEmitter')
| |
| 308 | ga.Parent = ea | |
| 309 | ga.Texture = "rbxassetid://29712167" | |
| 310 | ga.Size = NumberSequence.new(0.2,0.05) | |
| 311 | ga.Acceleration = Vector3.new(0, -20, 0) | |
| 312 | ga.Rate = 100000 | |
| 313 | ga.Speed = NumberRange.new(7,8) | |
| 314 | ga.Lifetime = NumberRange.new(3,4) | |
| 315 | ga.VelocitySpread = 10 | |
| 316 | ga.VelocityInheritance = 0.3 | |
| 317 | ga.EmissionDirection = Enum.NormalId.Bottom | |
| 318 | end | |
| 319 | end | |
| 320 | end | |
| 321 | ||
| 322 | function gettouching(startpos,endpos,dont) | |
| 323 | local ray = Ray.new(startpos,(endpos-startpos).unit*300) | |
| 324 | local ignore = {}
| |
| 325 | for i,v in pairs(game:GetService('Players'):GetChildren()) do
| |
| 326 | if v.Character and v ~= plr then | |
| 327 | table.insert(ignore,v.Character) | |
| 328 | end | |
| 329 | end | |
| 330 | local part,pos = workspace:FindPartOnRayWithWhitelist(ray,ignore,false) | |
| 331 | if part then | |
| 332 | if part.Parent:FindFirstChildOfClass('Humanoid') and part.Parent:FindFirstChildOfClass('Humanoid').Health > 0 then
| |
| 333 | local coru = coroutine.wrap(function() | |
| 334 | Kill(part.Parent,false,true) | |
| 335 | end) | |
| 336 | coru() | |
| 337 | end | |
| 338 | end | |
| 339 | table.insert(ignore,dont) | |
| 340 | local part2,pos2 = workspace:FindPartOnRayWithIgnoreList(ray,ignore,false,true) | |
| 341 | if part2 and part2.Parent and part2.Parent ~= plr.Character and part2.Parent:FindFirstChildOfClass('Humanoid') and part2.Parent:FindFirstChildOfClass('Humanoid').Health > 0 then
| |
| 342 | local coru = coroutine.wrap(function() | |
| 343 | Kill(part2.Parent,false,true) | |
| 344 | end) | |
| 345 | coru() | |
| 346 | end | |
| 347 | end | |
| 348 | ||
| 349 | function makelaser(parent) | |
| 350 | local part = Instance.new('Part',parent)
| |
| 351 | part.Size = Vector3.new(0.2,0.2,0.2) | |
| 352 | part.Transparency = 1 | |
| 353 | part.CanCollide = false | |
| 354 | local weld = Instance.new('Weld',part)
| |
| 355 | weld.Part0 = part | |
| 356 | weld.Part1 = plr.Character["Right Arm"] | |
| 357 | weld.C0 = CFrame.new(0,1.25,0) | |
| 358 | for i=1,5 do | |
| 359 | local mouse = mou | |
| 360 | targ = mouse.Target | |
| 361 | if targ then | |
| 362 | hum = targ.Parent:findFirstChild("Humanoid")
| |
| 363 | Hit = mouse.hit | |
| 364 | local P = Instance.new("Part")
| |
| 365 | P.Name = "Guideline" | |
| 366 | P.Material = Enum.Material.Neon | |
| 367 | local Place0 = part.CFrame | |
| 368 | P.formFactor = 0 | |
| 369 | P.Size = Vector3.new(1,1,(Place0.p - Hit.p).magnitude) | |
| 370 | if plr.Character:FindFirstChild('Right Arm') then
| |
| 371 | for i,v in pairs(plr.Character:FindFirstChild('Right Arm'):GetChildren()) do
| |
| 372 | if v:IsA('Sound') and v.Name == "Electricity" then
| |
| 373 | if Place0 and Hit and (Place0.p - Hit.p).magnitude >= 20 then | |
| 374 | v.MaxDistance = (Place0.p - Hit.p).magnitude | |
| 375 | v.EmitterSize = (Place0.p - Hit.p).magnitude | |
| 376 | elseif Place0 and Hit then | |
| 377 | v.MaxDistance = 20 | |
| 378 | v.EmitterSize = 20 | |
| 379 | end | |
| 380 | end | |
| 381 | end | |
| 382 | end | |
| 383 | P.CFrame = CFrame.new((Place0.p + Hit.p)/2,Place0.p) | |
| 384 | P.Parent = parent | |
| 385 | P.BrickColor = BrickColor.Yellow() | |
| 386 | P.Anchored = true | |
| 387 | P.CanCollide = false | |
| 388 | P.Transparency = 1 | |
| 389 | local m = Instance.new("BlockMesh")
| |
| 390 | m.Scale = Vector3.new(0.1,0.1,1) | |
| 391 | m.Parent = P | |
| 392 | local mh = mouse.Hit | |
| 393 | for c1 = 1, 1 do | |
| 394 | oldHit = part.CFrame | |
| 395 | for count = 1, 9 do | |
| 396 | local val1 = Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-1,1)) | |
| 397 | local val2 = P.Size.z / 10 | |
| 398 | local val3 = P.CFrame.lookVector * -1 | |
| 399 | local val4 = count * val2 | |
| 400 | local val5 = val4 * val3 | |
| 401 | local val6 = part.CFrame.p | |
| 402 | local Hit = CFrame.new(val5 + val1 + val6) | |
| 403 | local s = Instance.new("Part")
| |
| 404 | s.Name = "Spark" | |
| 405 | s.Material = Enum.Material.Neon | |
| 406 | local Place0 = oldHit | |
| 407 | s.formFactor = 0 | |
| 408 | s.Size = Vector3.new(1,1,(Place0.p - Hit.p).magnitude) | |
| 409 | s.CFrame = CFrame.new((Place0.p + Hit.p)/2,Place0.p) | |
| 410 | s.Parent = parent | |
| 411 | s.BrickColor = BrickColor.new('Instatutional white')
| |
| 412 | s.Anchored = true | |
| 413 | s.CanCollide = false | |
| 414 | m = Instance.new("BlockMesh")
| |
| 415 | m.Scale = Vector3.new(0.1,0.1,1) | |
| 416 | m.Parent = s | |
| 417 | local clone = s:clone() | |
| 418 | clone.Mesh.Scale = Vector3.new(0.3,0.3,1.1) | |
| 419 | clone.BrickColor = BrickColor.new('Electric blue')
| |
| 420 | clone.Transparency = 0.8 | |
| 421 | clone.Parent = s.Parent | |
| 422 | oldHit = Hit | |
| 423 | end | |
| 424 | Hit = oldHit | |
| 425 | local s = Instance.new("Part")
| |
| 426 | s.Name = "Spark" | |
| 427 | s.Material = Enum.Material.Neon | |
| 428 | local Place0 = mh | |
| 429 | s.formFactor = 0 | |
| 430 | s.Size = Vector3.new(1,1,(Place0.p - Hit.p).magnitude) | |
| 431 | s.CFrame = CFrame.new((Place0.p + Hit.p)/2,Place0.p) | |
| 432 | s.Parent = parent | |
| 433 | s.BrickColor = BrickColor.new('Instatutional white')
| |
| 434 | s.Anchored = true | |
| 435 | s.CanCollide = false | |
| 436 | m = Instance.new("BlockMesh")
| |
| 437 | m.Scale = Vector3.new(0.1,0.1,1) | |
| 438 | m.Parent = s | |
| 439 | local clone = s:clone() | |
| 440 | clone.Mesh.Scale = Vector3.new(0.3,0.3,1.1) | |
| 441 | clone.BrickColor = BrickColor.new('Electric blue')
| |
| 442 | clone.Transparency = 0.8 | |
| 443 | clone.Parent = s.Parent | |
| 444 | gettouching(part.Position,mou.Hit.p,parent) | |
| 445 | end | |
| 446 | P:remove() | |
| 447 | end | |
| 448 | end | |
| 449 | end | |
| 450 | ||
| 451 | function chokearms(chr) | |
| 452 | if chr:FindFirstChild('Torso') then
| |
| 453 | if chr:FindFirstChild('Right Arm') then
| |
| 454 | if chr.Torso:FindFirstChild('Right Shoulder') then
| |
| 455 | chr.Torso["Right Shoulder"]:Destroy() | |
| 456 | end | |
| 457 | local thing = Instance.new('Weld',chr.Torso)
| |
| 458 | thing.Name = "Right Shoulder" | |
| 459 | thing.Part0 = chr.Torso | |
| 460 | thing.Part1 = chr["Right Arm"] | |
| 461 | thing.C0 = CFrame.new(0.811074257, 0.835914135, -0.381313324, 0.27563563, 0.961260796, 2.0569455e-06, 0.488285512, -0.140010983, -0.861379266, -0.828009903, 0.237427771, -0.50796169) | |
| 462 | end | |
| 463 | if chr:FindFirstChild('Left Arm') then
| |
| 464 | if chr.Torso:FindFirstChild('Left Shoulder') then
| |
| 465 | chr.Torso["Left Shoulder"]:Destroy() | |
| 466 | end | |
| 467 | local thing = Instance.new('Weld',chr.Torso)
| |
| 468 | thing.Name = "Left Shoulder" | |
| 469 | thing.Part0 = chr["Left Arm"] | |
| 470 | thing.Part1 = chr.Torso | |
| 471 | thing.C0 = CFrame.new(0.962814331, -0.457080841, 0.306755066, 0.309041202, -0.579310298, 0.754249752, -0.951046288, -0.188228443, 0.245104745, -2.09111568e-05, -0.793076754, -0.609121859) | |
| 472 | end | |
| 473 | end | |
| 474 | end | |
| 475 | ||
| 476 | function fixarms(chr) | |
| 477 | if chr:FindFirstChild('Torso') then
| |
| 478 | for i,v in pairs(chr.Torso:GetChildren()) do | |
| 479 | if v.Name == "Right Shoulder" or v.Name == "Left Shoulder" then | |
| 480 | v:Destroy() | |
| 481 | end | |
| 482 | end | |
| 483 | if chr:FindFirstChild('Right Arm') then
| |
| 484 | local rs = Instance.new('Motor6D',chr.Torso)
| |
| 485 | rs.Name = "Right Shoulder" | |
| 486 | rs.Part0 = chr.Torso | |
| 487 | rs.Part1 = chr:FindFirstChild('Right Arm')
| |
| 488 | rs.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 489 | rs.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 490 | end | |
| 491 | if chr:FindFirstChild('Left Arm') then
| |
| 492 | local ls = Instance.new('Motor6D',chr.Torso)
| |
| 493 | ls.Name = "Left Shoulder" | |
| 494 | ls.Part0 = chr.Torso | |
| 495 | ls.Part1 = chr:FindFirstChild('Left Arm')
| |
| 496 | ls.C0 = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 497 | ls.C1 = CFrame.new(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 498 | end | |
| 499 | end | |
| 500 | end | |
| 501 | ||
| 502 | mou.KeyDown:connect(function(key) | |
| 503 | if key == "f" and mou.Target and zapping == false then | |
| 504 | if choking == false then | |
| 505 | local hum = mou.Target.Parent:FindFirstChildOfClass('Humanoid')
| |
| 506 | ||
| 507 | if hum == nil then | |
| 508 | hum = mou.Target.Parent.Parent:FindFirstChildOfClass('Humanoid')
| |
| 509 | end | |
| 510 | ||
| 511 | if hum and hum.Parent:FindFirstChild('Torso') and hum.Health > 0 then
| |
| 512 | beforehealth = hum.Health | |
| 513 | choking = true | |
| 514 | target = hum.Parent.Torso | |
| 515 | local sound = Instance.new('Sound',target)
| |
| 516 | sound.Volume = 5 | |
| 517 | sound.EmitterSize = 50 | |
| 518 | sound.MaxDistance = 100 | |
| 519 | sound.SoundId = 'rbxassetid://418658161' | |
| 520 | sound.Looped = false | |
| 521 | sound.PlaybackSpeed = 0.75 | |
| 522 | sound.Name = "Choking" | |
| 523 | sound:Play() | |
| 524 | startpos = target.CFrame | |
| 525 | chokearms(target.Parent) | |
| 526 | local bod = Instance.new('BodyPosition',hum.Parent.Torso)
| |
| 527 | bod.Position = target.Position+Vector3.new(0,12,0) | |
| 528 | bod.MaxForce = Vector3.new(100000,100000,100000) | |
| 529 | bod.P = 1000 | |
| 530 | bod.D = 500 | |
| 531 | end | |
| 532 | if target and target:FindFirstChild('Breathing') then
| |
| 533 | target.Breathing:Destroy() | |
| 534 | end | |
| 535 | local coru = coroutine.wrap(function() | |
| 536 | while timez < 5 and choking do | |
| 537 | timez = timez + 0.1 | |
| 538 | if target.Parent:FindFirstChildOfClass('Humanoid') then
| |
| 539 | if target.Parent:FindFirstChildOfClass('Humanoid').Health - (beforehealth/49) > 0 then
| |
| 540 | target.Parent:FindFirstChildOfClass('Humanoid').Health = target.Parent:FindFirstChildOfClass('Humanoid').Health - (beforehealth/49)
| |
| 541 | end | |
| 542 | end | |
| 543 | wait(0.1) | |
| 544 | end | |
| 545 | if timez >= 5 then | |
| 546 | if target and target.Parent and target.Parent:FindFirstChildOfClass('Humanoid') and target.Parent:FindFirstChildOfClass('Humanoid').Health > 0 then
| |
| 547 | if target and target:FindFirstChild('Choking') then
| |
| 548 | target.Choking:Stop() | |
| 549 | target.Choking:Destroy() | |
| 550 | end | |
| 551 | if target then | |
| 552 | for i,v in pairs(target:GetChildren()) do | |
| 553 | if v:IsA("BodyPosition") then
| |
| 554 | v:Destroy() | |
| 555 | end | |
| 556 | end | |
| 557 | end | |
| 558 | Kill(target.Parent,false,false) | |
| 559 | end | |
| 560 | end | |
| 561 | target = nil | |
| 562 | choking = false | |
| 563 | startpos = CFrame.new(0,0,0) | |
| 564 | timez = 0 | |
| 565 | for i,v in pairs(plr.Character.Torso:GetChildren()) do | |
| 566 | if v.Name == "Right Shoulder" and v:IsA('Weld') then
| |
| 567 | v:Destroy() | |
| 568 | end | |
| 569 | end | |
| 570 | if plr.Character.Torso:FindFirstChild('Right Shoulder') == nil then
| |
| 571 | local rs = Instance.new('Motor6D',plr.Character.Torso)
| |
| 572 | rs.Name = "Right Shoulder" | |
| 573 | rs.Part0 = plr.Character.Torso | |
| 574 | rs.Part1 = plr.Character:FindFirstChild('Right Arm')
| |
| 575 | rs.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 576 | rs.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 577 | end | |
| 578 | end) | |
| 579 | coru() | |
| 580 | else | |
| 581 | if target and target:FindFirstChild('Choking') then
| |
| 582 | fixarms(target.Parent) | |
| 583 | target.Choking:Stop() | |
| 584 | target.Choking:Destroy() | |
| 585 | local sound = Instance.new('Sound',target)
| |
| 586 | sound.Volume = 5 | |
| 587 | sound.EmitterSize = 50 | |
| 588 | sound.MaxDistance = 100 | |
| 589 | sound.SoundId = 'rbxassetid://304511128' | |
| 590 | sound.Looped = true | |
| 591 | sound.PlaybackSpeed = 1 | |
| 592 | sound.Name = "Breathing" | |
| 593 | sound:Play() | |
| 594 | game:GetService('Debris'):AddItem(sound,timez)
| |
| 595 | for i,v in pairs(target:GetChildren()) do | |
| 596 | if v:IsA("BodyPosition") then
| |
| 597 | v:Destroy() | |
| 598 | end | |
| 599 | end | |
| 600 | end | |
| 601 | if target.Parent:FindFirstChildOfClass('Humanoid') then
| |
| 602 | target.Parent:FindFirstChildOfClass('Humanoid').Health = beforehealth
| |
| 603 | end | |
| 604 | target = nil | |
| 605 | choking = false | |
| 606 | startpos = CFrame.new(0,0,0) | |
| 607 | timez = 0 | |
| 608 | end | |
| 609 | elseif key == "g" and choking == false then | |
| 610 | zapping = true | |
| 611 | local electricity = Instance.new("Sound",plr.Character:FindFirstChild('Right Arm'))
| |
| 612 | electricity.Name = "Electricity" | |
| 613 | electricity.SoundId = "rbxassetid://379557765" | |
| 614 | electricity.Volume = 5 | |
| 615 | electricity.EmitterSize = 100 | |
| 616 | electricity.MaxDistance = 100 | |
| 617 | electricity.Looped = true | |
| 618 | electricity:Play() | |
| 619 | end | |
| 620 | end) | |
| 621 | ||
| 622 | mou.KeyUp:connect(function(key) | |
| 623 | if key == "g" then | |
| 624 | zapping = false | |
| 625 | if plr.Character:FindFirstChild('Right Arm') then
| |
| 626 | for i,v in pairs(plr.Character:FindFirstChild('Right Arm'):GetChildren()) do
| |
| 627 | if v:IsA('Sound') and v.Name == "Electricity" then
| |
| 628 | v:Destroy() | |
| 629 | end | |
| 630 | end | |
| 631 | end | |
| 632 | end | |
| 633 | end) | |
| 634 | ||
| 635 | ||
| 636 | while true do | |
| 637 | if choking and plr.Character and target and target.Parent and plr.Character:FindFirstChild('Head') and plr.Character:FindFirstChild('Right Arm') and plr.Character:FindFirstChild('Torso') then
| |
| 638 | for i,v in pairs(plr.Character.Torso:GetChildren()) do | |
| 639 | if v.Name == "Right Shoulder" then | |
| 640 | v:Destroy() | |
| 641 | end | |
| 642 | end | |
| 643 | local Head = plr.Character.Head | |
| 644 | local RightArm = plr.Character["Right Arm"] | |
| 645 | local RightShoulder = Instance.new('Weld',plr.Character.Torso)
| |
| 646 | RightShoulder.Name = "Right Shoulder" | |
| 647 | RightShoulder.Part0 = plr.Character.Torso | |
| 648 | RightShoulder.Part1 = RightArm | |
| 649 | RightShoulder.C0 = CFrame.new(1,1,-0.75) | |
| 650 | local MousePosition = target.Position+(target.Size/2) | |
| 651 | local ToMouse = (MousePosition - Head.Position).unit | |
| 652 | local Angle = math.acos(ToMouse:Dot(Vector3.new(0, 1, 0))) | |
| 653 | local FromRightArmPos = (Head.Position + Head.CFrame:vectorToWorldSpace(Vector3.new(((Head.Size.X / 2) + (RightArm.Size.X / 2)), ((Head.Size.Y / 2) - (RightArm.Size.Z / 2)), 0))) | |
| 654 | local ToMouseRightArm = ((MousePosition - FromRightArmPos) * Vector3.new(1 ,0, 1)).unit | |
| 655 | local Look = (Head.CFrame.lookVector * Vector3.new(1, 0, 1)).unit | |
| 656 | local LateralAngle = math.acos(ToMouseRightArm:Dot(Look)) | |
| 657 | if tostring(LateralAngle) == "-1.#IND" then | |
| 658 | LateralAngle = 0 | |
| 659 | end | |
| 660 | local Cross = Head.CFrame.lookVector:Cross(ToMouseRightArm) | |
| 661 | local change = false | |
| 662 | if LateralAngle > (math.pi / 2) then | |
| 663 | LateralAngle = (math.pi / 2) | |
| 664 | change = true | |
| 665 | end | |
| 666 | if Cross.Y < 0 then | |
| 667 | LateralAngle = -LateralAngle | |
| 668 | end | |
| 669 | RightShoulder.C0 = CFrame.new(RightShoulder.C0.p) * CFrame.Angles(((math.pi / 2) - Angle), ((math.pi / 2) + LateralAngle), math.pi/2) | |
| 670 | for i,v in pairs(target.Parent:GetChildren()) do | |
| 671 | if v:IsA('Tool') then
| |
| 672 | v.ManualActivationOnly = true | |
| 673 | end | |
| 674 | end | |
| 675 | elseif zapping == false and plr and plr.Character and plr.Character:FindFirstChild("Torso") and plr.Character:FindFirstChild('Right Arm') then
| |
| 676 | for i,v in pairs(plr.Character.Torso:GetChildren()) do | |
| 677 | if v.Name == "Right Shoulder" and v:IsA('Weld') then
| |
| 678 | v:Destroy() | |
| 679 | end | |
| 680 | end | |
| 681 | if target then | |
| 682 | for i,v in pairs(target:GetChildren()) do | |
| 683 | if v:IsA("BodyPosition") then
| |
| 684 | v:Destroy() | |
| 685 | end | |
| 686 | end | |
| 687 | if plr.Character.Torso:FindFirstChild('Right Shoulder') == nil then
| |
| 688 | local rs = Instance.new('Motor6D',plr.Character.Torso)
| |
| 689 | rs.Name = "Right Shoulder" | |
| 690 | rs.Part0 = plr.Character.Torso | |
| 691 | rs.Part1 = plr.Character:FindFirstChild('Right Arm')
| |
| 692 | rs.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 693 | rs.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 694 | end | |
| 695 | if target.Parent then | |
| 696 | for i,v in pairs(target.Parent:GetChildren()) do | |
| 697 | if v:IsA('Tool') then
| |
| 698 | v.ManualActivationOnly = false | |
| 699 | end | |
| 700 | end | |
| 701 | end | |
| 702 | end | |
| 703 | target = nil | |
| 704 | choking = false | |
| 705 | startpos = CFrame.new(0,0,0) | |
| 706 | timez = 0 | |
| 707 | end | |
| 708 | if zapping and plr.Character and mou.Hit and plr.Character:FindFirstChild('Head') and plr.Character:FindFirstChild('Right Arm') and plr.Character:FindFirstChild('Torso') then
| |
| 709 | if lastzap then | |
| 710 | lastzap:Destroy() | |
| 711 | lastzap = nil | |
| 712 | end | |
| 713 | for i,v in pairs(plr.Character.Torso:GetChildren()) do | |
| 714 | if v.Name == "Right Shoulder" then | |
| 715 | v:Destroy() | |
| 716 | end | |
| 717 | end | |
| 718 | local Head = plr.Character.Head | |
| 719 | local RightArm = plr.Character["Right Arm"] | |
| 720 | local RightShoulder = Instance.new('Weld',plr.Character.Torso)
| |
| 721 | RightShoulder.Name = "Right Shoulder" | |
| 722 | RightShoulder.Part0 = plr.Character.Torso | |
| 723 | RightShoulder.Part1 = RightArm | |
| 724 | RightShoulder.C0 = CFrame.new(1,1,-0.75) | |
| 725 | local MousePosition = mou.Hit.p | |
| 726 | local ToMouse = (MousePosition - Head.Position).unit | |
| 727 | local Angle = math.acos(ToMouse:Dot(Vector3.new(0, 1, 0))) | |
| 728 | local FromRightArmPos = (Head.Position + Head.CFrame:vectorToWorldSpace(Vector3.new(((Head.Size.X / 2) + (RightArm.Size.X / 2)), ((Head.Size.Y / 2) - (RightArm.Size.Z / 2)), 0))) | |
| 729 | local ToMouseRightArm = ((MousePosition - FromRightArmPos) * Vector3.new(1 ,0, 1)).unit | |
| 730 | local Look = (Head.CFrame.lookVector * Vector3.new(1, 0, 1)).unit | |
| 731 | local LateralAngle = math.acos(ToMouseRightArm:Dot(Look)) | |
| 732 | if tostring(LateralAngle) == "-1.#IND" then | |
| 733 | LateralAngle = 0 | |
| 734 | end | |
| 735 | local Cross = Head.CFrame.lookVector:Cross(ToMouseRightArm) | |
| 736 | local change = false | |
| 737 | if LateralAngle > (math.pi / 2) then | |
| 738 | LateralAngle = (math.pi / 2) | |
| 739 | change = true | |
| 740 | end | |
| 741 | if Cross.Y < 0 then | |
| 742 | LateralAngle = -LateralAngle | |
| 743 | end | |
| 744 | RightShoulder.C0 = CFrame.new(RightShoulder.C0.p) * CFrame.Angles(((math.pi / 2) - Angle), ((math.pi / 2) + LateralAngle), math.pi/2) | |
| 745 | local thing = Instance.new('Model',workspace)
| |
| 746 | thing.Name = "Zap" | |
| 747 | lastzap = thing | |
| 748 | makelaser(thing) | |
| 749 | elseif choking == false and zapping == false then | |
| 750 | if lastzap then | |
| 751 | lastzap:Destroy() | |
| 752 | lastzap = nil | |
| 753 | end | |
| 754 | if plr.Character:FindFirstChild('Torso') then
| |
| 755 | for i,v in pairs(plr.Character.Torso:GetChildren()) do | |
| 756 | if v.Name == "Right Shoulder" and v:IsA('Weld') then
| |
| 757 | v:Destroy() | |
| 758 | end | |
| 759 | end | |
| 760 | if plr.Character.Torso:FindFirstChild('Right Shoulder') == nil then
| |
| 761 | local rs = Instance.new('Motor6D',plr.Character.Torso)
| |
| 762 | rs.Name = "Right Shoulder" | |
| 763 | rs.Part0 = plr.Character.Torso | |
| 764 | rs.Part1 = plr.Character:FindFirstChild('Right Arm')
| |
| 765 | rs.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 766 | rs.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 767 | end | |
| 768 | end | |
| 769 | end | |
| 770 | wait() | |
| 771 | end | |
| 772 | end |