SHOW:
|
|
- or go back to the newest paste.
| 1 | - | local player = game:GetService("Players").LocalPlayer
|
| 1 | + | local player = owner |
| 2 | local char = player.Character | |
| 3 | - | local mouse = player:GetMouse() |
| 3 | + | |
| 4 | local phone = false | |
| 5 | local rs = char.Torso["Right Shoulder"] | |
| 6 | local activated = false | |
| 7 | local Revolver = false | |
| 8 | local readyts = true | |
| 9 | local dmg = false | |
| 10 | local hum = char.Humanoid | |
| 11 | local chara = false | |
| 12 | local LS = char.Torso["Left Shoulder"] | |
| 13 | local RH = char.Torso["Right Hip"] | |
| 14 | local LH = char.Torso["Left Hip"] | |
| 15 | local RJ = char.HumanoidRootPart.RootJoint | |
| 16 | local spinSpecial = false | |
| 17 | local slash = false | |
| 18 | --------------------------------------------------------[[Settings]] | |
| 19 | char.Humanoid.MaxHealth = 200 | |
| 20 | char.Humanoid.Health = 200 | |
| 21 | --------------------------------------------------------[[Tools,Sounds]] | |
| 22 | local Knife = Instance.new("Part",char)
| |
| 23 | Knife.Size = Vector3.new(0.2,3,0.8) | |
| 24 | Knife.CanCollide = false | |
| 25 | mesh = Instance.new("SpecialMesh")
| |
| 26 | mesh.Parent = Knife | |
| 27 | mesh.MeshId = "http://www.roblox.com/asset/?id=121944778" | |
| 28 | mesh.TextureId = "http://www.roblox.com/asset/?id=358682478" | |
| 29 | weld = Instance.new("Weld")
| |
| 30 | weld.Parent = char | |
| 31 | weld.Part0 = char["Right Arm"] | |
| 32 | weld.Part1 = Knife | |
| 33 | weld.C0 = CFrame.new(0,-1,-1) * CFrame.Angles(-1.57,0,0) | |
| 34 | local realKnife = Instance.new("Part",char)
| |
| 35 | realKnife.Size = Vector3.new(0.2,3,0.8) | |
| 36 | realKnife.CanCollide = false | |
| 37 | meshaa = Instance.new("SpecialMesh")
| |
| 38 | meshaa.Parent = realKnife | |
| 39 | meshaa.MeshId = "http://www.roblox.com/asset/?id=121944778" | |
| 40 | meshaa.TextureId = "http://www.roblox.com/asset/?id=362719969" | |
| 41 | realKnife.Transparency = 1 | |
| 42 | weldsa = Instance.new("Weld")
| |
| 43 | weldsa.Parent = char | |
| 44 | weldsa.Part0 = char["Right Arm"] | |
| 45 | weldsa.Part1 = realKnife | |
| 46 | weldsa.C0 = CFrame.new(0,-1,-1) * CFrame.Angles(-1.57,0,0) | |
| 47 | local SlashSound = Instance.new("Sound", Knife)
| |
| 48 | SlashSound.SoundId = "rbxassetid://394934205" | |
| 49 | local DamageSound = Instance.new("Sound",Knife)
| |
| 50 | DamageSound.SoundId = "rbxassetid://388826051" | |
| 51 | local Pp = Instance.new("Part",char)
| |
| 52 | Pp.Size = Vector3.new(0.6,1.1,0.2) | |
| 53 | Pp.CanCollide = false | |
| 54 | Pp.Transparency = 1 | |
| 55 | meshphon = Instance.new("SpecialMesh",Pp)
| |
| 56 | meshphon.MeshId = "http://www.roblox.com/asset/?id=268471347" | |
| 57 | meshphon.TextureId = "http://www.roblox.com/asset/?id=270166778" | |
| 58 | meshphon.Scale = Vector3.new(1.8,1.8,1) | |
| 59 | weld2 = Instance.new("Weld")
| |
| 60 | weld2.Parent = char | |
| 61 | weld2.Part0 = char["Right Arm"] | |
| 62 | weld2.Part1 = Pp | |
| 63 | weld2.C0 = CFrame.new(0,-0.6,-1) * CFrame.Angles(2,0,3.14) | |
| 64 | local revol = Instance.new("Part",char)
| |
| 65 | revol.Size = Vector3.new(0.2,1.83,1.03) | |
| 66 | revol.CanCollide = false | |
| 67 | revol.Transparency = 1 | |
| 68 | local shotSound = Instance.new("Sound",revol)
| |
| 69 | shotSound.SoundId = "rbxassetid://145080998" | |
| 70 | shotSound.PlaybackSpeed = 3 | |
| 71 | meshrevol = Instance.new("SpecialMesh",revol)
| |
| 72 | meshrevol.MeshId = "http://www.roblox.com/asset/?id=79401392" | |
| 73 | meshrevol.TextureId = "rbxassetid://97889459" | |
| 74 | meshrevol.Scale = Vector3.new(1.6,1.6,1.6) | |
| 75 | meshrevol.VertexColor = Vector3.new(1,0.9,0) | |
| 76 | weld3 = Instance.new("Weld")
| |
| 77 | weld3.Parent = char | |
| 78 | weld3.Part0 = char["Right Arm"] | |
| 79 | weld3.Part1 = revol | |
| 80 | weld3.C0 = CFrame.new(0,-1.4,-0.3) * CFrame.Angles(3.14,0,0) | |
| 81 | music = Instance.new("Sound")
| |
| 82 | music.Parent = char | |
| 83 | music.SoundId = "rbxassetid://399570826" | |
| 84 | music.Volume = 2 | |
| 85 | music.PlaybackSpeed = 1.15 | |
| 86 | music.Looped = true | |
| 87 | laugh = Instance.new("Sound")
| |
| 88 | laugh.Parent = char | |
| 89 | laugh.SoundId = "rbxassetid://319332735" | |
| 90 | laugh.Volume = 4 | |
| 91 | --------------------------------------------------------[[Gui]] | |
| 92 | local menu = Instance.new("ScreenGui")
| |
| 93 | menu.Parent = player.PlayerGui | |
| 94 | local Frame = Instance.new("ImageLabel", menu)
| |
| 95 | Frame.Image = "rbxassetid://48656662" | |
| 96 | Frame.Size = UDim2.new(0,200,0,300) | |
| 97 | Frame.BackgroundTransparency = 1 | |
| 98 | Frame.Position = UDim2.new(0,10,0,200) | |
| 99 | Frame.Visible = false | |
| 100 | local button = Instance.new("TextButton", Frame)
| |
| 101 | button.Size = UDim2.new(1,-10,0,30) | |
| 102 | button.Position = UDim2.new(0,10,0,10) | |
| 103 | button.BackgroundTransparency = 1 | |
| 104 | button.Text = "Revolver(Yellow Soul)" | |
| 105 | button.BorderSizePixel = 0 | |
| 106 | button.TextColor3 = Color3.new(255,255,255) | |
| 107 | button.TextStrokeTransparency = 0 | |
| 108 | button.Font = "SciFi" | |
| 109 | button.TextScaled = true | |
| 110 | --------------------------------------------------------[[Gui Scripts]] | |
| 111 | button.MouseButton1Click:connect(function() | |
| 112 | if Revolver == true then | |
| 113 | Revolver = false | |
| 114 | button.TextColor3 = Color3.new(255,255,255) | |
| 115 | elseif Revolver == false then | |
| 116 | Revolver = true | |
| 117 | button.TextColor3 = Color3.new(255,255,0) | |
| 118 | end | |
| 119 | end) | |
| 120 | --------------------------------------------------------[[Animations]] | |
| 121 | slash = Instance.new("Animation",workspace)
| |
| 122 | slash.AnimationId = "http://www.roblox.com/asset/?id=186934753" | |
| 123 | shoot = Instance.new("Animation",workspace)
| |
| 124 | shoot.AnimationId = "http://www.roblox.com/Asset?ID=95383980" | |
| 125 | --------------------------------------------------------[[Damage Functions]] | |
| 126 | function DamageObject(hit) | |
| 127 | local char=hit.Parent | |
| 128 | if char and char~=player.Character and char.Name~="Arms_Model" and hit.Name~="Handle" and dmg == false then | |
| 129 | local h=char:FindFirstChild("Humanoid")
| |
| 130 | if h and h.Health > 0 then | |
| 131 | DamageSound:Play() | |
| 132 | h:TakeDamage(35) | |
| 133 | if h.Health == 0 then | |
| 134 | end | |
| 135 | dmg = true | |
| 136 | wait(1.5) | |
| 137 | end | |
| 138 | end | |
| 139 | end | |
| 140 | function shot(hit) | |
| 141 | local char=hit.Parent | |
| 142 | if char and char~=player.Character and char.Name~="Arms_Model" and hit.Name~="Handle" then | |
| 143 | local h=char:FindFirstChild("Humanoid")
| |
| 144 | if h and h.Health > 0 then | |
| 145 | h:TakeDamage(10) | |
| 146 | if h.Health == 0 then | |
| 147 | end | |
| 148 | end | |
| 149 | end | |
| 150 | end | |
| 151 | function CharaDmg(hit) | |
| 152 | local char=hit.Parent | |
| 153 | if char and char~=player.Character and char.Name~="Arms_Model" and hit.Name~="Handle" and dmg == false then | |
| 154 | local h=char:FindFirstChild("Humanoid")
| |
| 155 | if h and h.Health > 0 then | |
| 156 | DamageSound:Play() | |
| 157 | h:TakeDamage(105) | |
| 158 | if h.Health == 0 then | |
| 159 | end | |
| 160 | dmg = true | |
| 161 | wait(1.5) | |
| 162 | end | |
| 163 | end | |
| 164 | end | |
| 165 | --------------------------------------------------------[[Normal Actions]] | |
| 166 | mouse.KeyDown:connect(function(key) | |
| 167 | Key = key:lower() | |
| 168 | if Key == "z" and knife == true and phone == false and chara == false then -- Normal Slash | |
| 169 | knife = false | |
| 170 | dmg = false | |
| 171 | local slashstart = char.Humanoid:LoadAnimation(slash) | |
| 172 | Knife.Touched:connect(DamageObject) | |
| 173 | slashstart:Play() | |
| 174 | SlashSound:Play() | |
| 175 | wait(0.76) | |
| 176 | knife = true | |
| 177 | elseif Key == "c" and knife == true and phone == false and chara == false then -- Phone | |
| 178 | knife = false | |
| 179 | phone = true | |
| 180 | Knife.Transparency = 1 | |
| 181 | for i = 1,5 do | |
| 182 | rs.C0 = rs.C0 * CFrame.Angles(0,0,0.157) | |
| 183 | wait() | |
| 184 | end | |
| 185 | Frame.Visible = true | |
| 186 | Pp.Transparency = 0 | |
| 187 | local menu = Instance.new("ScreenGui")
| |
| 188 | menu.Parent = player.PlayerGui | |
| 189 | local button = Instance.new("TextButton", menu)
| |
| 190 | elseif Key == "c" and knife == false and phone == true and Revolver == false and chara == false then -- phone Gui | |
| 191 | knife = true | |
| 192 | phone = false | |
| 193 | for i = 1,5 do | |
| 194 | rs.C0 = rs.C0 * CFrame.Angles(0,0,-0.157) | |
| 195 | wait() | |
| 196 | end | |
| 197 | Frame.Visible = false | |
| 198 | Knife.Transparency = 0 | |
| 199 | Pp.Transparency = 1 | |
| 200 | elseif Key == "c" and Revolver == true and phone == true and chara == false then | |
| 201 | phone = false | |
| 202 | revol.Transparency = 0 | |
| 203 | Pp.Transparency = 1 | |
| 204 | Frame.Visible = false | |
| 205 | for i = 1,5 do | |
| 206 | rs.C0 = rs.C0 * CFrame.Angles(0,0,-0.157) | |
| 207 | wait() | |
| 208 | end | |
| 209 | elseif Key == "c" and Revolver == true and phone == false and chara == false then | |
| 210 | phone = true | |
| 211 | Frame.Visible = true | |
| 212 | revol.Transparency = 1 | |
| 213 | Pp.Transparency = 0 | |
| 214 | for i = 1,5 do | |
| 215 | rs.C0 = rs.C0 * CFrame.Angles(0,0,0.157) | |
| 216 | wait() | |
| 217 | end | |
| 218 | elseif Key == "z" and Revolver == true then -- Revolver Script | |
| 219 | local shootstart = char.Humanoid:LoadAnimation(shoot) | |
| 220 | if (not readyts) then return end | |
| 221 | readyts = false | |
| 222 | targ = mouse.Target | |
| 223 | if (targ == nil) then | |
| 224 | readyts = true | |
| 225 | return | |
| 226 | end | |
| 227 | hum = targ.Parent:findFirstChild("Humanoid")
| |
| 228 | Hit = mouse.hit | |
| 229 | shootstart:Play() | |
| 230 | shotSound:Play() | |
| 231 | local P = Instance.new("Part",char)
| |
| 232 | P.Name = "BulletTrail" | |
| 233 | local Place0 = revol.CFrame | |
| 234 | P.formFactor = 0 | |
| 235 | P.Size = Vector3.new(0,0,(Place0.p - Hit.p).magnitude) | |
| 236 | P.CFrame = CFrame.new((Place0.p + Hit.p)/2,Place0.p) | |
| 237 | P.Anchored = true | |
| 238 | P.CanCollide = false | |
| 239 | P.BrickColor = BrickColor.new("White")
| |
| 240 | P.Touched:connect(shot) | |
| 241 | for count = 1, 10 do | |
| 242 | P.Transparency = count/10 | |
| 243 | wait() | |
| 244 | end | |
| 245 | P:remove() | |
| 246 | readyts = true | |
| 247 | elseif Key == "b" and chara == false and phone == false and Revolver == false then -- Chara Mode | |
| 248 | dmg = false | |
| 249 | chara = true | |
| 250 | local eye = Instance.new("Part")
| |
| 251 | eye.Parent = game.Workspace | |
| 252 | eye.Size = Vector3.new(0,0,0) | |
| 253 | eye.BrickColor = BrickColor.new("Bright red")
| |
| 254 | eye.Transparency = 0.3 | |
| 255 | eye.Anchored = true | |
| 256 | eye.CanCollide = false | |
| 257 | eye.CFrame = char.Head.CFrame * CFrame.new(0.1,0.2,-0.6) | |
| 258 | local mesh = Instance.new("SpecialMesh")
| |
| 259 | mesh.Parent = eye | |
| 260 | mesh.MeshType = "Sphere" | |
| 261 | char.Torso.Anchored = true | |
| 262 | char.Head.face.Parent = char.Humanoid | |
| 263 | local charaface = Instance.new("Decal")
| |
| 264 | charaface.Parent = char.Head | |
| 265 | charaface.Texture = "http://www.roblox.com/asset/?id=435233416" | |
| 266 | char.Humanoid.MaxHealth = 1000 | |
| 267 | char.Humanoid.Health = 1000 | |
| 268 | laugh:Play() | |
| 269 | for i = 1,20 do | |
| 270 | mesh.Scale = mesh.Scale + Vector3.new(2,0,0) | |
| 271 | eye.Transparency = eye.Transparency + 0.035 | |
| 272 | wait() | |
| 273 | end | |
| 274 | char.Torso.Anchored = false | |
| 275 | char.Humanoid.WalkSpeed = 32 | |
| 276 | Knife.Touched:connect(CharaDmg) | |
| 277 | realKnife.Transparency = 0 | |
| 278 | Knife.Transparency = 1 | |
| 279 | music:Play() | |
| 280 | elseif Key == "z" and chara == true and knife == true then -- Chara Slash | |
| 281 | knife = false | |
| 282 | local slashstart = char.Humanoid:LoadAnimation(slash) | |
| 283 | slashstart:Play() | |
| 284 | SlashSound:Play() | |
| 285 | wait(0.1) | |
| 286 | knife = true | |
| 287 | elseif Key == "b" and chara == true then | |
| 288 | chara = false | |
| 289 | realKnife.Transparency = 1 | |
| 290 | Knife.Transparency = 0 | |
| 291 | music:Stop() | |
| 292 | char.Humanoid.WalkSpeed = 16 | |
| 293 | char.Humanoid.MaxHealth = 200 | |
| 294 | char.Humanoid.Health = 200 | |
| 295 | char.Humanoid.face.Parent = char.Head | |
| 296 | char.Head.Decal:Destroy() | |
| 297 | elseif Key == "f" and knife == true and phone == false and Revolver == false and spinSpecial == false and chara == false then | |
| 298 | spinSpecial = true | |
| 299 | rs.C0 = rs.C0 * CFrame.Angles(0,0.785,1.57) | |
| 300 | LS.C0 = LS.C0 * CFrame.Angles(0,-0.785,-1.57) | |
| 301 | LH.C0 = LH.C0 * CFrame.Angles(0,0,0.39) * CFrame.new(0,1,0) | |
| 302 | RH.C0 = RH.C0 * CFrame.Angles(0,0,-0.39) * CFrame.new(0,1,0) | |
| 303 | SlashSound:Play() | |
| 304 | Knife.Touched:connect(DamageObject) | |
| 305 | for i = 1,24 do | |
| 306 | dmg = false | |
| 307 | Knife.Touched:connect(DamageObject) | |
| 308 | RJ.C0 = RJ.C0 * CFrame.Angles(0.785,0,0) | |
| 309 | wait(0.008) | |
| 310 | end | |
| 311 | dmg = true | |
| 312 | spinSpecial = false | |
| 313 | LH.C0 = LH.C0 * CFrame.new(0,-1,0) | |
| 314 | RH.C0 = RH.C0 * CFrame.new(0,-1,0) | |
| 315 | LH.C0 = LH.C0 * CFrame.Angles(0,0,-0.39) | |
| 316 | RH.C0 = RH.C0 * CFrame.Angles(0,0,0.39) | |
| 317 | rs.C0 = rs.C0 * CFrame.Angles(-0.785,0,-1.57) | |
| 318 | LS.C0 = LS.C0 * CFrame.Angles(-0.785,0,1.57) | |
| 319 | elseif Key == "f" and knife == true and chara == true and spinSpecial == false then | |
| 320 | spinSpecial = true | |
| 321 | rs.C0 = rs.C0 * CFrame.Angles(0,0.785,1.57) | |
| 322 | LS.C0 = LS.C0 * CFrame.Angles(0,-0.785,-1.57) | |
| 323 | LH.C0 = LH.C0 * CFrame.Angles(0,0,0.39) * CFrame.new(0,1,0) | |
| 324 | RH.C0 = RH.C0 * CFrame.Angles(0,0,-0.39) * CFrame.new(0,1,0) | |
| 325 | SlashSound:Play() | |
| 326 | Knife.Touched:connect(CharaDmg) | |
| 327 | for i = 1,24 do | |
| 328 | dmg = false | |
| 329 | Knife.Touched:connect(CharaDmg) | |
| 330 | RJ.C0 = RJ.C0 * CFrame.Angles(0.785,0,0) | |
| 331 | wait(0.008) | |
| 332 | end | |
| 333 | dmg = true | |
| 334 | spinSpecial = false | |
| 335 | LH.C0 = LH.C0 * CFrame.new(0,-1,0) | |
| 336 | RH.C0 = RH.C0 * CFrame.new(0,-1,0) | |
| 337 | LH.C0 = LH.C0 * CFrame.Angles(0,0,-0.39) | |
| 338 | RH.C0 = RH.C0 * CFrame.Angles(0,0,0.39) | |
| 339 | rs.C0 = rs.C0 * CFrame.Angles(-0.785,0,-1.57) | |
| 340 | LS.C0 = LS.C0 * CFrame.Angles(-0.785,0,1.57) | |
| 341 | end | |
| 342 | end) |