SHOW:
|
|
- or go back to the newest paste.
| 1 | --By Rufus14 | |
| 2 | bustedpeople = {}
| |
| 3 | local intro = Instance.new("RemoteEvent", game.ReplicatedStorage)
| |
| 4 | intro.Name = "CopBegin" | |
| 5 | local walkevent = Instance.new("RemoteEvent", game.ReplicatedStorage)
| |
| 6 | walkevent.Name = "CopWalk" | |
| 7 | local bustevent = Instance.new("RemoteEvent", game.ReplicatedStorage)
| |
| 8 | bustevent.Name = "CopBust" | |
| 9 | -- Version: 2.82 | |
| 10 | -- Instances: | |
| 11 | local weareonyourway = Instance.new("ScreenGui")
| |
| 12 | local FBI = Instance.new("ImageLabel")
| |
| 13 | local TextLabel = Instance.new("TextLabel")
| |
| 14 | local Frame = Instance.new("Frame")
| |
| 15 | local notification = Instance.new("Sound")
| |
| 16 | --Properties: | |
| 17 | weareonyourway.Name = "weareonyourway" | |
| 18 | weareonyourway.Parent = game.Lighting | |
| 19 | ||
| 20 | FBI.Name = "FBI" | |
| 21 | FBI.Parent = weareonyourway | |
| 22 | FBI.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 23 | FBI.BackgroundTransparency = 1 | |
| 24 | FBI.Position = UDim2.new(0.106305361, 0, 0.553703725, 0) | |
| 25 | FBI.Size = UDim2.new(0, 350, 0, 350) | |
| 26 | FBI.Image = "rbxassetid://12860439" | |
| 27 | ||
| 28 | TextLabel.Parent = weareonyourway | |
| 29 | TextLabel.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 30 | TextLabel.BackgroundTransparency = 1 | |
| 31 | TextLabel.Position = UDim2.new(0.265242308, 0, 0.665964246, 0) | |
| 32 | TextLabel.Size = UDim2.new(0, 1149, 0, 127) | |
| 33 | TextLabel.Font = Enum.Font.SourceSans | |
| 34 | TextLabel.Text = "FBI: We are on your way." | |
| 35 | TextLabel.TextColor3 = Color3.new(1, 1, 1) | |
| 36 | TextLabel.TextSize = 84 | |
| 37 | ||
| 38 | Frame.Parent = weareonyourway | |
| 39 | Frame.BackgroundColor3 = Color3.new(0, 0, 0) | |
| 40 | Frame.BackgroundTransparency = 0.5 | |
| 41 | Frame.Position = UDim2.new(0.0786868185, 0, 0.525925934, 0) | |
| 42 | Frame.Size = UDim2.new(0, 1538, 0, 399) | |
| 43 | Frame.ZIndex = 0 | |
| 44 | ||
| 45 | notification.Parent = weareonyourway | |
| 46 | notification.SoundId = "rbxassetid://1562091866" | |
| 47 | notification.Volume = 2 | |
| 48 | notification.TimePosition = 0.3 | |
| 49 | notification.Name = "discord" | |
| 50 | -- Scripts: | |
| 51 | currentplayer = nil | |
| 52 | function begin(player) | |
| 53 | if currentplayer == nil then | |
| 54 | currentplayer = player | |
| 55 | local contentsong = Instance.new("Sound", player.Character.Head)
| |
| 56 | contentsong.Volume = 2 | |
| 57 | contentsong.SoundId = "rbxassetid://515347026" | |
| 58 | contentsong.Looped = true | |
| 59 | contentsong.Name = "iDubbbzTV Content Cop Theme song" | |
| 60 | contentsong:Play() | |
| 61 | local humanoidplayer = player.Character.Humanoid | |
| 62 | humanoidplayer.WalkSpeed = 0 | |
| 63 | humanoidplayer.JumpPower = 0 | |
| 64 | humanoidplayer.MaxHealth = 1000 | |
| 65 | humanoidplayer.Health = 1000 | |
| 66 | --Converted with ttyyuu12345's model to script plugin v4 | |
| 67 | local function sandbox(var,func) | |
| 68 | local env = getfenv(func) | |
| 69 | local newenv = setmetatable({},{
| |
| 70 | __index = function(self,k) | |
| 71 | if k=="script" then | |
| 72 | return var | |
| 73 | else | |
| 74 | return env[k] | |
| 75 | end | |
| 76 | end, | |
| 77 | }) | |
| 78 | setfenv(func,newenv) | |
| 79 | return func | |
| 80 | end | |
| 81 | local cors = {}
| |
| 82 | local mas = Instance.new("Model",game:GetService("Lighting"))
| |
| 83 | local hat = Instance.new("Part")
| |
| 84 | local SpecialMesh1 = Instance.new("SpecialMesh")
| |
| 85 | hat.Name = "Police Cap" | |
| 86 | hat.Parent = mas | |
| 87 | hat.CFrame = CFrame.new(135.533752, 1.20002401, 61.1411972, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 88 | hat.Orientation = Vector3.new(0, -90, 0) | |
| 89 | hat.Position = Vector3.new(135.533752, 1.20002401, 61.1411972) | |
| 90 | hat.Rotation = Vector3.new(0, -90, 0) | |
| 91 | hat.Size = Vector3.new(1, 0.400000006, 1) | |
| 92 | hat.BottomSurface = Enum.SurfaceType.Weld | |
| 93 | hat.TopSurface = Enum.SurfaceType.Smooth | |
| 94 | hat.FormFactor = Enum.FormFactor.Plate | |
| 95 | hat.formFactor = Enum.FormFactor.Plate | |
| 96 | SpecialMesh1.Parent = hat | |
| 97 | SpecialMesh1.MeshId = "http://www.roblox.com/asset/?id=1028788" | |
| 98 | SpecialMesh1.Scale = Vector3.new(1.10000002, 1.10000002, 1.10000002) | |
| 99 | SpecialMesh1.TextureId = "http://www.roblox.com/asset/?id=1028787" | |
| 100 | SpecialMesh1.MeshType = Enum.MeshType.FileMesh | |
| 101 | for i,v in pairs(mas:GetChildren()) do | |
| 102 | v.Parent = workspace | |
| 103 | pcall(function() v:MakeJoints() end) | |
| 104 | end | |
| 105 | mas:Destroy() | |
| 106 | for i,v in pairs(cors) do | |
| 107 | spawn(function() | |
| 108 | pcall(v) | |
| 109 | end) | |
| 110 | end | |
| 111 | hat.Parent = player.Character | |
| 112 | hat:BreakJoints() | |
| 113 | local weld = Instance.new("Weld", hat)
| |
| 114 | weld.Part0 = player.Character.Head | |
| 115 | weld.Part1 = hat | |
| 116 | weld.C0 = CFrame.new(0,0.5,0) | |
| 117 | hat.Transparency = 1 | |
| 118 | wait(4.5) | |
| 119 | hat.Transparency = 0 | |
| 120 | local explosion = Instance.new("Sound", player.Character.Head)
| |
| 121 | explosion.Volume = 3 | |
| 122 | explosion.SoundId = "rbxassetid://262562442" | |
| 123 | explosion:Play() | |
| 124 | local sphere = Instance.new("Part", player.Character)
| |
| 125 | sphere.BrickColor = player.Character.Torso.BrickColor | |
| 126 | sphere.Shape = "Ball" | |
| 127 | sphere.CanCollide = false | |
| 128 | sphere.Anchored = true | |
| 129 | sphere.BottomSurface = "Smooth" | |
| 130 | sphere.TopSurface = "Smooth" | |
| 131 | sphere.CFrame = player.Character.Torso.CFrame | |
| 132 | sphere.Size = Vector3.new(5,5,5) | |
| 133 | local rightarm = Instance.new("Weld", player.Character.Torso)
| |
| 134 | rightarm.Part0 = player.Character.Torso | |
| 135 | rightarm.Part1 = player.Character["Right Arm"] | |
| 136 | rightarm.C0 = CFrame.new(1.5,0,0) | |
| 137 | rightarm.Name = "RightArmWeld" | |
| 138 | local rightleg = Instance.new("Weld", player.Character.Torso)
| |
| 139 | rightleg.Part0 = player.Character.Torso | |
| 140 | rightleg.Part1 = player.Character["Right Leg"] | |
| 141 | rightleg.C0 = CFrame.new(0.5,-2,0) | |
| 142 | rightleg.Name = "RightLegWeld" | |
| 143 | local leftarm = Instance.new("Weld", player.Character.Torso)
| |
| 144 | leftarm.Part0 = player.Character.Torso | |
| 145 | leftarm.Part1 = player.Character["Left Arm"] | |
| 146 | leftarm.C0 = CFrame.new(-1.5,0,0) | |
| 147 | leftarm.Name = "LeftArmWeld" | |
| 148 | local leftleg = Instance.new("Weld", player.Character.Torso)
| |
| 149 | leftleg.Part0 = player.Character.Torso | |
| 150 | leftleg.Part1 = player.Character["Left Leg"] | |
| 151 | leftleg.C0 = CFrame.new(-0.5,-2,0) | |
| 152 | leftleg.Name = "LeftLegWeld" | |
| 153 | local head = Instance.new("Weld", player.Character.Torso)
| |
| 154 | head.Part0 = player.Character.Torso | |
| 155 | head.Part1 = player.Character.Head | |
| 156 | head.C0 = CFrame.new(0,1.5,0) | |
| 157 | head.Name = "HeadWeld" | |
| 158 | local humanoidrootpart = Instance.new("Weld", player.Character.HumanoidRootPart)
| |
| 159 | humanoidrootpart.Part0 = player.Character.HumanoidRootPart | |
| 160 | humanoidrootpart.Part1 = player.Character.Torso | |
| 161 | humanoidrootpart.Name = "HumanoidRootPartWeld" | |
| 162 | for i = 0,1 , 0.05 do | |
| 163 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.68301392, 0.437404633, -0.171976089, 0.866025388, -0.49999994, 3.66996531e-08, 0.171010107, 0.296198159, -0.939692497, 0.469846308, 0.813797712, 0.342020243),i) | |
| 164 | leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.68301392, 0.437404633, -0.171976089, 0.866025388, 0.49999997, -6.89733071e-09, -0.171010077, 0.296198159, -0.939692497, -0.469846368, 0.813797712, 0.342020243),i) | |
| 165 | leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -1.49999619, 0.866025925, 1, 0, 0, -3.55271368e-15, 0.49999994, 0.866025448, 1.77635684e-15, -0.866025507, 0.49999997),i) | |
| 166 | rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -1.49999619, 0.866025925, 1, 0, 0, 3.55271368e-15, 0.49999994, 0.866025448, -1.77635684e-15, -0.866025507, 0.49999997),i) | |
| 167 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, -0.519615412, 0.299999237, 1, 0, 0, 0, 0.499999881, -0.866025507, 0, 0.866025507, 0.499999881),i) | |
| 168 | head.C0 = head.C0:lerp(CFrame.new(0, 1.25, -0.433013916, 1, 0, 0, 0, 0.499999881, 0.866025507, 0, -0.866025507, 0.499999881),i) | |
| 169 | end | |
| 170 | if player.Name == "Rufus14" then | |
| 171 | message("ogm rufus14 back?1!?/", 4)
| |
| 172 | else | |
| 173 | message("let's end this skidding", 4)
| |
| 174 | end | |
| 175 | --Converted with ttyyuu12345's model to script plugin v4 | |
| 176 | local function sandbox(var,func) | |
| 177 | local env = getfenv(func) | |
| 178 | local newenv = setmetatable({},{
| |
| 179 | __index = function(self,k) | |
| 180 | if k=="script" then | |
| 181 | return var | |
| 182 | else | |
| 183 | return env[k] | |
| 184 | end | |
| 185 | end, | |
| 186 | }) | |
| 187 | setfenv(func,newenv) | |
| 188 | return func | |
| 189 | end | |
| 190 | local cors = {}
| |
| 191 | local mas = Instance.new("Model",game:GetService("Lighting"))
| |
| 192 | local Model0 = Instance.new("Model")
| |
| 193 | local Part1 = Instance.new("Part")
| |
| 194 | local Decal2 = Instance.new("Decal")
| |
| 195 | Part3 = Instance.new("Part")
| |
| 196 | local Decal4 = Instance.new("Decal")
| |
| 197 | local Part5 = Instance.new("Part")
| |
| 198 | local Decal6 = Instance.new("Decal")
| |
| 199 | local Part7 = Instance.new("Part")
| |
| 200 | local Decal8 = Instance.new("Decal")
| |
| 201 | local Part9 = Instance.new("Part")
| |
| 202 | local Decal10 = Instance.new("Decal")
| |
| 203 | local Part11 = Instance.new("Part")
| |
| 204 | local Decal12 = Instance.new("Decal")
| |
| 205 | Model0.Name = "Jail" | |
| 206 | Model0.Parent = mas | |
| 207 | Part1.Parent = Model0 | |
| 208 | Part1.CFrame = CFrame.new(92.6363983, 28.6918163, 182.499939, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 209 | Part1.Position = Vector3.new(92.6363983, 28.6918163, 182.499939) | |
| 210 | Part1.Transparency = 0.64999997615814 | |
| 211 | Part1.Size = Vector3.new(1.17109418, 57.3836174, 111.253944) | |
| 212 | Part1.Anchored = true | |
| 213 | Part1.BottomSurface = Enum.SurfaceType.Smooth | |
| 214 | Part1.Material = Enum.Material.Glass | |
| 215 | Part1.TopSurface = Enum.SurfaceType.Smooth | |
| 216 | Decal2.Parent = Part1 | |
| 217 | Decal2.Texture = "rbxassetid://1509467558" | |
| 218 | Decal2.Face = Enum.NormalId.Left | |
| 219 | Part3.Parent = Model0 | |
| 220 | Part3.CFrame = CFrame.new(33.4960938, 0.586294174, 182.499939, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 221 | Part3.Position = Vector3.new(33.4960938, 0.586294174, 182.499939) | |
| 222 | Part3.Transparency = 0.64999997615814 | |
| 223 | Part3.Size = Vector3.new(119.451591, 1.17109418, 111.253944) | |
| 224 | Part3.Anchored = true | |
| 225 | Part3.BottomSurface = Enum.SurfaceType.Smooth | |
| 226 | Part3.Material = Enum.Material.Glass | |
| 227 | Part3.TopSurface = Enum.SurfaceType.Smooth | |
| 228 | Decal4.Parent = Part3 | |
| 229 | Decal4.Texture = "rbxassetid://361006506" | |
| 230 | Decal4.Face = Enum.NormalId.Top | |
| 231 | Part5.Parent = Model0 | |
| 232 | Part5.CFrame = CFrame.new(-25.6441917, 28.6918163, 182.499939, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 233 | Part5.Position = Vector3.new(-25.6441917, 28.6918163, 182.499939) | |
| 234 | Part5.Transparency = 0.64999997615814 | |
| 235 | Part5.Size = Vector3.new(1.17109418, 57.3836174, 111.253944) | |
| 236 | Part5.Anchored = true | |
| 237 | Part5.BottomSurface = Enum.SurfaceType.Smooth | |
| 238 | Part5.Material = Enum.Material.Glass | |
| 239 | Part5.TopSurface = Enum.SurfaceType.Smooth | |
| 240 | Decal6.Parent = Part5 | |
| 241 | Decal6.Texture = "rbxassetid://639139970" | |
| 242 | Decal6.Face = Enum.NormalId.Right | |
| 243 | Part7.Parent = Model0 | |
| 244 | Part7.CFrame = CFrame.new(33.4960938, 56.799118, 182.499939, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 245 | Part7.Position = Vector3.new(33.4960938, 56.799118, 182.499939) | |
| 246 | Part7.Transparency = 0.64999997615814 | |
| 247 | Part7.Size = Vector3.new(119.451591, 1.17109418, 111.253944) | |
| 248 | Part7.Anchored = true | |
| 249 | Part7.BottomSurface = Enum.SurfaceType.Smooth | |
| 250 | Part7.Material = Enum.Material.Glass | |
| 251 | Part7.TopSurface = Enum.SurfaceType.Smooth | |
| 252 | Decal8.Parent = Part7 | |
| 253 | Decal8.Texture = "rbxassetid://1045007817" | |
| 254 | Decal8.Face = Enum.NormalId.Bottom | |
| 255 | Part9.Parent = Model0 | |
| 256 | Part9.CFrame = CFrame.new(33.4960938, 28.6918163, 237.541351, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 257 | Part9.Position = Vector3.new(33.4960938, 28.6918163, 237.541351) | |
| 258 | Part9.Transparency = 0.64999997615814 | |
| 259 | Part9.Size = Vector3.new(119.451591, 57.3836174, 1.17109418) | |
| 260 | Part9.Anchored = true | |
| 261 | Part9.BottomSurface = Enum.SurfaceType.Smooth | |
| 262 | Part9.Material = Enum.Material.Glass | |
| 263 | Part9.TopSurface = Enum.SurfaceType.Smooth | |
| 264 | Decal10.Parent = Part9 | |
| 265 | Decal10.Texture = "rbxassetid://588094729" | |
| 266 | Part11.Parent = Model0 | |
| 267 | Part11.CFrame = CFrame.new(33.4960938, 28.6918163, 127.458496, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 268 | Part11.Position = Vector3.new(33.4960938, 28.6918163, 127.458496) | |
| 269 | Part11.Transparency = 0.64999997615814 | |
| 270 | Part11.Size = Vector3.new(119.451591, 57.3836174, 1.17109418) | |
| 271 | Part11.Anchored = true | |
| 272 | Part11.BottomSurface = Enum.SurfaceType.Smooth | |
| 273 | Part11.Material = Enum.Material.Glass | |
| 274 | Part11.TopSurface = Enum.SurfaceType.Smooth | |
| 275 | Decal12.Parent = Part11 | |
| 276 | Decal12.Texture = "rbxassetid://2608106758" | |
| 277 | Decal12.Face = Enum.NormalId.Back | |
| 278 | for i,v in pairs(mas:GetChildren()) do | |
| 279 | v.Parent = workspace | |
| 280 | pcall(function() v:MakeJoints() end) | |
| 281 | end | |
| 282 | mas:Destroy() | |
| 283 | for i,v in pairs(cors) do | |
| 284 | spawn(function() | |
| 285 | pcall(v) | |
| 286 | end) | |
| 287 | end | |
| 288 | thatpart = Instance.new("Part", Model0)
| |
| 289 | thatpart.CFrame = Part3.CFrame * CFrame.new(0,0,-Part3.Size.z/2 - 5) | |
| 290 | thatpart.Anchored = true | |
| 291 | thatpart.CanCollide = false | |
| 292 | thatpart.Transparency = 1 | |
| 293 | Model0.Parent = player.Character | |
| 294 | for i = 1,40 do | |
| 295 | sphere.Size = sphere.Size + Vector3.new(1,1,1) | |
| 296 | sphere.CFrame = player.Character.Torso.CFrame | |
| 297 | sphere.Transparency = sphere.Transparency + 0.025 | |
| 298 | wait() | |
| 299 | end | |
| 300 | humanoidplayer.WalkSpeed = 20 | |
| 301 | humanoidplayer.JumpPower = 50 | |
| 302 | local walking = false | |
| 303 | local canwalk = true | |
| 304 | local function iswalking(player, yesorno) | |
| 305 | if player == currentplayer then | |
| 306 | if walking == true and yesorno == false then | |
| 307 | walking = yesorno | |
| 308 | end | |
| 309 | if walking == false and yesorno == true then | |
| 310 | walking = yesorno | |
| 311 | end | |
| 312 | end | |
| 313 | end | |
| 314 | walkevent.OnServerEvent:connect(iswalking) | |
| 315 | local canbust = true | |
| 316 | local function bustsomeone(player, target) | |
| 317 | if player == currentplayer and canbust then | |
| 318 | canbust = false | |
| 319 | canwalk = false | |
| 320 | local gotarrested = Instance.new("BoolValue", target)
| |
| 321 | gotarrested.Name = "gotarrested" | |
| 322 | local badboyhumanoid = target:findFirstChildOfClass("Humanoid")
| |
| 323 | badboyhumanoid.WalkSpeed = 0 | |
| 324 | badboyhumanoid.JumpPower = 0 | |
| 325 | local badboyposition = target.Head.Position | |
| 326 | humanoidplayer.WalkSpeed = 0 | |
| 327 | humanoidplayer.JumpPower = 0 | |
| 328 | local cf = player.Character.HumanoidRootPart.CFrame | |
| 329 | message("uh", 0.3)
| |
| 330 | for i = 0,1 , 0.13 do | |
| 331 | player.Character.HumanoidRootPart.CFrame = cf:lerp(CFrame.new(cf.p, target.Head.Position),i) | |
| 332 | wait() | |
| 333 | end | |
| 334 | message("HEY, "..target.Name.."!!1", 1.5)
| |
| 335 | for i = 0,1 , 0.05 do | |
| 336 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.64086151, 0.5, -0.298835754, 0.939692497, -0.342020094, 1.85293736e-08, 1.58932565e-08, 4.65661252e-08, -0.99999994, 0.342020124, 0.939692557, 5.21050509e-08),i) | |
| 337 | leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.57923126, 0.0944201946, 0, 0.98480773, 0.173648298, 0, -0.173648283, 0.98480767, 0, -2.98023224e-08, 0, 1),i) | |
| 338 | leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.681251526, -2.07163191, 0, 0.98480773, 0.173648298, 0, -0.173648283, 0.98480767, 0, -2.98023224e-08, 0, 1),i) | |
| 339 | rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.681251526, -2.07163191, 0, 0.98480773, -0.173648298, 0, 0.173648283, 0.98480767, 0, -2.98023224e-08, 0, 1),i) | |
| 340 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.939692616, 0, 0.342020154, 0, 1, 0, -0.342020154, 0, 0.939692616),i) | |
| 341 | head.C0 = head.C0:lerp(CFrame.new(0, 1.50000024, 0, 0.939692736, 0, -0.342019826, 0, 1, 0, 0.342019826, 0, 0.939692736),i) | |
| 342 | wait() | |
| 343 | end | |
| 344 | wait(1) | |
| 345 | message("YOU ARE GETTING KIDNAPPED BY MY UBER DRIVER", 2.5)
| |
| 346 | wait(0.5) | |
| 347 | --Converted with ttyyuu12345's model to script plugin v4 | |
| 348 | local function sandbox(var,func) | |
| 349 | local env = getfenv(func) | |
| 350 | local newenv = setmetatable({},{
| |
| 351 | __index = function(self,k) | |
| 352 | if k=="script" then | |
| 353 | return var | |
| 354 | else | |
| 355 | return env[k] | |
| 356 | end | |
| 357 | end, | |
| 358 | }) | |
| 359 | setfenv(func,newenv) | |
| 360 | return func | |
| 361 | end | |
| 362 | cors = {}
| |
| 363 | mas = Instance.new("Model",game:GetService("Lighting"))
| |
| 364 | local uberdriver = Instance.new("Model")
| |
| 365 | local uberdriverhead = Instance.new("Part")
| |
| 366 | local uberdrivertorso = Instance.new("Part")
| |
| 367 | local Motor6D4 = Instance.new("Motor6D")
| |
| 368 | local Motor6D5 = Instance.new("Motor6D")
| |
| 369 | local Motor6D6 = Instance.new("Motor6D")
| |
| 370 | local Motor6D7 = Instance.new("Motor6D")
| |
| 371 | local Motor6D8 = Instance.new("Motor6D")
| |
| 372 | local SpotLight9 = Instance.new("SpotLight")
| |
| 373 | local SpecialMesh10 = Instance.new("SpecialMesh")
| |
| 374 | local Sound11 = Instance.new("Sound")
| |
| 375 | local Part12 = Instance.new("Part")
| |
| 376 | local Part13 = Instance.new("Part")
| |
| 377 | local Part14 = Instance.new("Part")
| |
| 378 | local Part15 = Instance.new("Part")
| |
| 379 | local Humanoid16 = Instance.new("Humanoid")
| |
| 380 | local Part17 = Instance.new("Part")
| |
| 381 | local Motor6D18 = Instance.new("Motor6D")
| |
| 382 | uberdriver.Name = "my uber driver" | |
| 383 | uberdriver.Parent = mas | |
| 384 | uberdriver.PrimaryPart = uberdriverhead | |
| 385 | uberdriverhead.Name = "Head" | |
| 386 | uberdriverhead.Parent = uberdriver | |
| 387 | uberdriverhead.CFrame = CFrame.new(80, 4.50000906, 39, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 388 | uberdriverhead.Position = Vector3.new(80, 4.50000906, 39) | |
| 389 | uberdriverhead.Color = Color3.new(1, 0.8, 0.6) | |
| 390 | uberdriverhead.Transparency = 1 | |
| 391 | uberdriverhead.Velocity = Vector3.new(0, -1.95315297e-05, 0) | |
| 392 | uberdriverhead.Size = Vector3.new(2, 1, 1) | |
| 393 | uberdriverhead.BrickColor = BrickColor.new("Pastel brown")
| |
| 394 | uberdriverhead.Locked = true | |
| 395 | uberdriverhead.TopSurface = Enum.SurfaceType.Smooth | |
| 396 | uberdriverhead.brickColor = BrickColor.new("Pastel brown")
| |
| 397 | uberdriverhead.FormFactor = Enum.FormFactor.Symmetric | |
| 398 | uberdriverhead.formFactor = Enum.FormFactor.Symmetric | |
| 399 | uberdrivertorso.Name = "Torso" | |
| 400 | uberdrivertorso.Parent = uberdriver | |
| 401 | uberdrivertorso.CFrame = CFrame.new(80, 3.00000906, 39, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 402 | uberdrivertorso.Position = Vector3.new(80, 3.00000906, 39) | |
| 403 | uberdrivertorso.Color = Color3.new(0, 1, 0) | |
| 404 | uberdrivertorso.Velocity = Vector3.new(0, -1.95315297e-05, 0) | |
| 405 | uberdrivertorso.Size = Vector3.new(2, 2, 1) | |
| 406 | uberdrivertorso.BrickColor = BrickColor.new("Lime green")
| |
| 407 | uberdrivertorso.LeftParamA = 0 | |
| 408 | uberdrivertorso.LeftParamB = 0 | |
| 409 | uberdrivertorso.LeftSurface = Enum.SurfaceType.Weld | |
| 410 | uberdrivertorso.Locked = true | |
| 411 | uberdrivertorso.RightParamA = 0 | |
| 412 | uberdrivertorso.RightParamB = 0 | |
| 413 | uberdrivertorso.RightSurface = Enum.SurfaceType.Weld | |
| 414 | uberdrivertorso.brickColor = BrickColor.new("Lime green")
| |
| 415 | uberdrivertorso.FormFactor = Enum.FormFactor.Symmetric | |
| 416 | uberdrivertorso.formFactor = Enum.FormFactor.Symmetric | |
| 417 | Motor6D4.Name = "Right Shoulder" | |
| 418 | Motor6D4.Parent = uberdrivertorso | |
| 419 | Motor6D4.MaxVelocity = 0.10000000149012 | |
| 420 | Motor6D4.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0) | |
| 421 | Motor6D4.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0) | |
| 422 | Motor6D4.Part0 = uberdrivertorso | |
| 423 | Motor6D4.Part1 = Part13 | |
| 424 | Motor6D4.part1 = Part13 | |
| 425 | Motor6D5.Name = "Left Shoulder" | |
| 426 | Motor6D5.Parent = uberdrivertorso | |
| 427 | Motor6D5.MaxVelocity = 0.10000000149012 | |
| 428 | Motor6D5.C0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 429 | Motor6D5.C1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 430 | Motor6D5.Part0 = uberdrivertorso | |
| 431 | Motor6D5.Part1 = Part12 | |
| 432 | Motor6D5.part1 = Part12 | |
| 433 | Motor6D6.Name = "Right Hip" | |
| 434 | Motor6D6.Parent = uberdrivertorso | |
| 435 | Motor6D6.MaxVelocity = 0.10000000149012 | |
| 436 | Motor6D6.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0) | |
| 437 | Motor6D6.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0) | |
| 438 | Motor6D6.Part0 = uberdrivertorso | |
| 439 | Motor6D6.Part1 = Part15 | |
| 440 | Motor6D6.part1 = Part15 | |
| 441 | Motor6D7.Name = "Left Hip" | |
| 442 | Motor6D7.Parent = uberdrivertorso | |
| 443 | Motor6D7.MaxVelocity = 0.10000000149012 | |
| 444 | Motor6D7.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 445 | Motor6D7.C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 446 | Motor6D7.Part0 = uberdrivertorso | |
| 447 | Motor6D7.Part1 = Part14 | |
| 448 | Motor6D7.part1 = Part14 | |
| 449 | Motor6D8.Name = "Neck" | |
| 450 | Motor6D8.Parent = uberdrivertorso | |
| 451 | Motor6D8.MaxVelocity = 0.10000000149012 | |
| 452 | Motor6D8.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0) | |
| 453 | Motor6D8.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0) | |
| 454 | Motor6D8.Part0 = uberdriverhead | |
| 455 | Motor6D8.Part1 = uberdriverhead | |
| 456 | SpotLight9.Parent = uberdrivertorso | |
| 457 | SpotLight9.Brightness = 3 | |
| 458 | SpecialMesh10.Parent = uberdrivertorso | |
| 459 | SpecialMesh10.MeshId = "rbxassetid://430175193" | |
| 460 | SpecialMesh10.Scale = Vector3.new(2, 2, 2) | |
| 461 | SpecialMesh10.TextureId = "rbxassetid://430175669" | |
| 462 | SpecialMesh10.MeshType = Enum.MeshType.FileMesh | |
| 463 | Sound11.Name = "CAR SOUND" | |
| 464 | Sound11.Parent = uberdrivertorso | |
| 465 | Sound11.Looped = true | |
| 466 | Sound11.SoundId = "rbxassetid://1204868302" | |
| 467 | Sound11.Volume = 1 | |
| 468 | Part12.Name = "Left Arm" | |
| 469 | Part12.Parent = uberdriver | |
| 470 | Part12.CFrame = CFrame.new(78.5, 3.00000906, 39, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 471 | Part12.Position = Vector3.new(78.5, 3.00000906, 39) | |
| 472 | Part12.Color = Color3.new(1, 0.8, 0.6) | |
| 473 | Part12.Transparency = 1 | |
| 474 | Part12.Velocity = Vector3.new(0, -1.95315297e-05, 0) | |
| 475 | Part12.Size = Vector3.new(1, 2, 1) | |
| 476 | Part12.BrickColor = BrickColor.new("Pastel brown")
| |
| 477 | Part12.CanCollide = false | |
| 478 | Part12.Locked = true | |
| 479 | Part12.brickColor = BrickColor.new("Pastel brown")
| |
| 480 | Part12.FormFactor = Enum.FormFactor.Symmetric | |
| 481 | Part12.formFactor = Enum.FormFactor.Symmetric | |
| 482 | Part13.Name = "Right Arm" | |
| 483 | Part13.Parent = uberdriver | |
| 484 | Part13.CFrame = CFrame.new(81.5, 3.00000906, 39, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 485 | Part13.Position = Vector3.new(81.5, 3.00000906, 39) | |
| 486 | Part13.Color = Color3.new(1, 0.8, 0.6) | |
| 487 | Part13.Transparency = 1 | |
| 488 | Part13.Velocity = Vector3.new(0, -1.95315297e-05, 0) | |
| 489 | Part13.Size = Vector3.new(1, 2, 1) | |
| 490 | Part13.BrickColor = BrickColor.new("Pastel brown")
| |
| 491 | Part13.CanCollide = false | |
| 492 | Part13.Locked = true | |
| 493 | Part13.brickColor = BrickColor.new("Pastel brown")
| |
| 494 | Part13.FormFactor = Enum.FormFactor.Symmetric | |
| 495 | Part13.formFactor = Enum.FormFactor.Symmetric | |
| 496 | Part14.Name = "Left Leg" | |
| 497 | Part14.Parent = uberdriver | |
| 498 | Part14.CFrame = CFrame.new(79.5, 1.00000906, 39, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 499 | Part14.Position = Vector3.new(79.5, 1.00000906, 39) | |
| 500 | Part14.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
| 501 | Part14.Transparency = 1 | |
| 502 | Part14.Velocity = Vector3.new(0, -1.95315297e-05, 0) | |
| 503 | Part14.Size = Vector3.new(1, 2, 1) | |
| 504 | Part14.BottomSurface = Enum.SurfaceType.Smooth | |
| 505 | Part14.BrickColor = BrickColor.new("Really black")
| |
| 506 | Part14.CanCollide = false | |
| 507 | Part14.Locked = true | |
| 508 | Part14.brickColor = BrickColor.new("Really black")
| |
| 509 | Part14.FormFactor = Enum.FormFactor.Symmetric | |
| 510 | Part14.formFactor = Enum.FormFactor.Symmetric | |
| 511 | Part15.Name = "Right Leg" | |
| 512 | Part15.Parent = uberdriver | |
| 513 | Part15.CFrame = CFrame.new(80.5, 1.00000906, 39, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 514 | Part15.Position = Vector3.new(80.5, 1.00000906, 39) | |
| 515 | Part15.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
| 516 | Part15.Transparency = 1 | |
| 517 | Part15.Velocity = Vector3.new(0, -1.95315297e-05, 0) | |
| 518 | Part15.Size = Vector3.new(1, 2, 1) | |
| 519 | Part15.BottomSurface = Enum.SurfaceType.Smooth | |
| 520 | Part15.BrickColor = BrickColor.new("Really black")
| |
| 521 | Part15.CanCollide = false | |
| 522 | Part15.Locked = true | |
| 523 | Part15.brickColor = BrickColor.new("Really black")
| |
| 524 | Part15.FormFactor = Enum.FormFactor.Symmetric | |
| 525 | Part15.formFactor = Enum.FormFactor.Symmetric | |
| 526 | Humanoid16.Parent = uberdriver | |
| 527 | Humanoid16.Health = 600 | |
| 528 | Humanoid16.LeftLeg = Part14 | |
| 529 | Humanoid16.MaxHealth = 600 | |
| 530 | Humanoid16.RightLeg = Part15 | |
| 531 | Humanoid16.Torso = Part17 | |
| 532 | Humanoid16.maxHealth = 200 | |
| 533 | Part17.Name = "HumanoidRootPart" | |
| 534 | Part17.Parent = uberdriver | |
| 535 | Part17.CFrame = CFrame.new(80, 3.00000906, 39, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 536 | Part17.Position = Vector3.new(80, 3.00000906, 39) | |
| 537 | Part17.Transparency = 1 | |
| 538 | Part17.Velocity = Vector3.new(0, -1.95315297e-05, 0) | |
| 539 | Part17.Size = Vector3.new(2, 2, 1) | |
| 540 | Part17.BottomSurface = Enum.SurfaceType.Smooth | |
| 541 | Part17.CanCollide = false | |
| 542 | Part17.LeftParamA = 0 | |
| 543 | Part17.LeftParamB = 0 | |
| 544 | Part17.Locked = true | |
| 545 | Part17.RightParamA = 0 | |
| 546 | Part17.RightParamB = 0 | |
| 547 | Part17.TopSurface = Enum.SurfaceType.Smooth | |
| 548 | Part17.FormFactor = Enum.FormFactor.Symmetric | |
| 549 | Part17.formFactor = Enum.FormFactor.Symmetric | |
| 550 | Motor6D18.Name = "RootJoint" | |
| 551 | Motor6D18.Parent = Part17 | |
| 552 | Motor6D18.MaxVelocity = 0.10000000149012 | |
| 553 | Motor6D18.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0) | |
| 554 | Motor6D18.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0) | |
| 555 | Motor6D18.Part0 = Part17 | |
| 556 | Motor6D18.Part1 = uberdrivertorso | |
| 557 | Motor6D18.part1 = uberdrivertorso | |
| 558 | for i,v in pairs(mas:GetChildren()) do | |
| 559 | v.Parent = workspace | |
| 560 | pcall(function() v:MakeJoints() end) | |
| 561 | end | |
| 562 | mas:Destroy() | |
| 563 | for i,v in pairs(cors) do | |
| 564 | spawn(function() | |
| 565 | pcall(v) | |
| 566 | end) | |
| 567 | end | |
| 568 | uberdriver.Parent = player.Character | |
| 569 | canwalk = true | |
| 570 | humanoidplayer.WalkSpeed = 20 | |
| 571 | humanoidplayer.JumpPower = 50 | |
| 572 | Motor6D18.C0 = CFrame.fromEulerAnglesXYZ(math.pi/2,math.pi/2*2,math.pi/2*2) | |
| 573 | badboyhumanoid.WalkSpeed = 0 | |
| 574 | local isplayer = game.Players:findFirstChild(target.Name) | |
| 575 | if isplayer then | |
| 576 | local playergui = isplayer:findFirstChildOfClass("PlayerGui")
| |
| 577 | if playergui then | |
| 578 | local guiclone = weareonyourway:Clone() | |
| 579 | guiclone.Parent = playergui | |
| 580 | guiclone.discord:Play() | |
| 581 | game.Debris:AddItem(guiclone, 4) | |
| 582 | end | |
| 583 | end | |
| 584 | Humanoid16.WalkSpeed = 55 | |
| 585 | Sound11:Play() | |
| 586 | local gotem = false | |
| 587 | local goingback = false | |
| 588 | local badboyhead = target:findFirstChild("Head")
| |
| 589 | local function findanotherway() | |
| 590 | goingback = true | |
| 591 | local uberposition = uberdrivertorso.Position | |
| 592 | local path = game:GetService("PathfindingService"):FindPathAsync(uberposition, thatpart.Position)
| |
| 593 | local thepoints = path:GetWaypoints() | |
| 594 | if Enum.PathStatus.Success then | |
| 595 | for i,v in pairs(thepoints) do | |
| 596 | Humanoid16:MoveTo(v.Position) | |
| 597 | if v.Action == Enum.PathWaypointAction.Jump then | |
| 598 | Humanoid16.Jump = true | |
| 599 | end | |
| 600 | wait(0.15) | |
| 601 | end | |
| 602 | else | |
| 603 | findanotherway() | |
| 604 | end | |
| 605 | uberdriver:Destroy() | |
| 606 | badboyhumanoid.PlatformStand = false | |
| 607 | for i,v in pairs(badboyhead.Parent:GetChildren()) do | |
| 608 | if v.ClassName == "Part" or v.ClassName == "MeshPart" then | |
| 609 | v.Transparency = 0 | |
| 610 | end | |
| 611 | if v.Name == "HumanoidRootPart" then | |
| 612 | v.Transparency = 1 | |
| 613 | end | |
| 614 | end | |
| 615 | table.insert(bustedpeople, badboyhead.Parent) | |
| 616 | canbust = true | |
| 617 | badboyhumanoid.WalkSpeed = 16 | |
| 618 | badboyhumanoid.JumpPower = 50 | |
| 619 | for i = 1,50 do | |
| 620 | badboyhead.CFrame = thatpart.CFrame * CFrame.new(0,5,10) | |
| 621 | wait() | |
| 622 | end | |
| 623 | end | |
| 624 | local function hit(part) | |
| 625 | if part.Parent.Name ~= target.Name then | |
| 626 | local humanoidhit = part.Parent:findFirstChildOfClass("Humanoid")
| |
| 627 | if humanoidhit then | |
| 628 | humanoidhit:TakeDamage(math.random(20,30)) | |
| 629 | humanoidhit.Sit = true | |
| 630 | end | |
| 631 | end | |
| 632 | end | |
| 633 | uberdrivertorso.Touched:connect(hit) | |
| 634 | local function findway() | |
| 635 | uberdriver.HumanoidRootPart.Anchored = false | |
| 636 | uberdriver.HumanoidRootPart.CFrame = thatpart.CFrame * CFrame.new(0,3,0) | |
| 637 | local uberposition = uberdriver.HumanoidRootPart.Position | |
| 638 | local path = game:GetService("PathfindingService"):FindPathAsync(uberposition, badboyhead.Position)
| |
| 639 | local thepoints = path:GetWaypoints() | |
| 640 | if Enum.PathStatus.Success then | |
| 641 | for i,v in pairs(thepoints) do | |
| 642 | Humanoid16:MoveTo(v.Position) | |
| 643 | if v.Action == Enum.PathWaypointAction.Jump then | |
| 644 | Humanoid16.Jump = true | |
| 645 | end | |
| 646 | wait(0.07) | |
| 647 | end | |
| 648 | gotem = true | |
| 649 | badboyhead.Anchored = true | |
| 650 | Humanoid16.WalkSpeed = 55 | |
| 651 | Sound11.PlaybackSpeed = 1 | |
| 652 | Sound11:Stop() | |
| 653 | local door = Instance.new("Sound", player.Character.Head)
| |
| 654 | door.Volume = 10 | |
| 655 | door.SoundId = "rbxassetid://643046377" | |
| 656 | door:Play() | |
| 657 | wait(2) | |
| 658 | badboyhead.Anchored = false | |
| 659 | badboyhumanoid.PlatformStand = true | |
| 660 | local badboyweld = Instance.new("Weld", uberdrivertorso)
| |
| 661 | badboyweld.Part0 = uberdrivertorso | |
| 662 | badboyweld.Part1 = badboyhead | |
| 663 | for i,v in pairs(badboyhead.Parent:GetChildren()) do | |
| 664 | if v.ClassName == "Part" or v.ClassName == "MeshPart" then | |
| 665 | v.Transparency = 1 | |
| 666 | end | |
| 667 | end | |
| 668 | wait(1) | |
| 669 | Sound11:Play() | |
| 670 | findanotherway() | |
| 671 | else | |
| 672 | findway() | |
| 673 | end | |
| 674 | end | |
| 675 | findway() | |
| 676 | end | |
| 677 | end | |
| 678 | bustevent.OnServerEvent:connect(bustsomeone) | |
| 679 | while wait() do | |
| 680 | if walking and currentplayer == player and canwalk then | |
| 681 | for i = 0.3,0.85 , 0.07 do | |
| 682 | if walking and canwalk then | |
| 683 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.48895502, 0.12624526, 0.348181963, 0.998222828, 0.0203129686, -0.0560226478, 0.0203129761, 0.767821491, 0.64034152, 0.0560226291, -0.64034164, 0.766044438),i) | |
| 684 | leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.43299222, 0.204380989, -0.474475622, 0.989740968, -0.123756409, -0.0713938177, 0.0133898463, 0.577847302, -0.816034853, 0.142244279, 0.806707263, 0.573576391),i) | |
| 685 | leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.527039051, -1.78302765, 0.642787695, 0.999390841, 0.026734557, 0.0224329531, -0.0348994918, 0.765577614, 0.642395973, 0, -0.642787635, 0.766044438),i) | |
| 686 | rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.522737741, -1.65984559, -0.766044617, 0.999390841, -0.0224329531, 0.0267345682, 0.0348994918, 0.642395794, -0.765577734, 0, 0.766044497, 0.642787457),i) | |
| 687 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.996194661, 6.98491931e-09, -0.0871561021, 0.00759615982, 0.996194661, 0.0868242308, 0.0868244469, -0.087155886, 0.992403805),i) | |
| 688 | head.C0 = head.C0:lerp(CFrame.new(2.38418579e-07, 1.49809694, 0.0435779095, 0.996194661, 6.38283382e-09, 0.0871560946, 0.00759615889, 0.996194601, -0.0868242308, -0.0868244469, 0.087155886, 0.992403746),i) | |
| 689 | wait() | |
| 690 | end | |
| 691 | end | |
| 692 | for i = 0.3,0.85 , 0.07 do | |
| 693 | if walking and canwalk then | |
| 694 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.52790117, 0.224663973, -0.381457806, 0.998222768, -0.0575798303, -0.0153529942, 0.0203129854, 0.570985019, -0.82070899, 0.056022618, 0.818938732, 0.571139872),i) | |
| 695 | leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.52610898, 0.223407269, 0.38302207, 0.996194661, 0.0560226291, 0.0667651519, -0.0871556997, 0.64034164, 0.763129294, 7.4505806e-09, -0.766044319, 0.642787695),i) | |
| 696 | leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.520322084, -1.59067655, -0.819151878, 0.999390841, 0.0200175196, -0.028587997, -0.0348994918, 0.573226929, -0.818652987, 0, 0.819151998, 0.57357645),i) | |
| 697 | rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.528892756, -1.83610249, 0.573575974, 0.999390841, -0.0285879895, -0.020017527, 0.0348994955, 0.818652987, 0.57322675, -7.4505806e-09, -0.573576212, 0.819152057),i) | |
| 698 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.996194661, -1.44354999e-08, 0.0871558934, -0.00759615237, 0.996194661, 0.0868244395, -0.0868242383, -0.0871560946, 0.992403805),i) | |
| 699 | head.C0 = head.C0:lerp(CFrame.new(0, 1.49809742, 0.0435781479, 0.996194601, -1.27129169e-08, -0.0871559009, -0.0075961519, 0.996194661, -0.0868244097, 0.0868242458, 0.0871560723, 0.992403746),i) | |
| 700 | wait() | |
| 701 | end | |
| 702 | end | |
| 703 | else | |
| 704 | for i = 0.3,1 , 0.05 do | |
| 705 | if not walking and canwalk then | |
| 706 | rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.54167509, 0.0454804897, 0, 0.99619472, -0.0871554911, 0, 0.0871554837, 0.996194661, -4.4408921e-16, 0, 4.4408921e-16, 1),i) | |
| 707 | leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.54167533, 0.0454804897, 0, 0.99619472, 0.0871554911, 0, -0.0871554837, 0.996194661, -4.4408921e-16, 0, 4.4408921e-16, 1),i) | |
| 708 | leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.535203695, -2.01684046, 0, 0.999390841, 0.0348991081, 0, -0.0348991044, 0.999390781, 2.22044605e-16, 0, -1.11022302e-16, 1),i) | |
| 709 | rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.535203695, -2.01684022, 0, 0.999390841, -0.0348991081, 0, 0.0348991044, 0.999390781, 2.22044605e-16, 0, -1.11022302e-16, 1),i) | |
| 710 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i) | |
| 711 | head.C0 = head.C0:lerp(CFrame.new(0,1.5,0),i) | |
| 712 | wait() | |
| 713 | end | |
| 714 | end | |
| 715 | end | |
| 716 | end | |
| 717 | end | |
| 718 | end | |
| 719 | intro.OnServerEvent:connect(begin) | |
| 720 | function message(msg, long) | |
| 721 | game.Chat:Chat(currentplayer.Character.Head,msg,"White") | |
| 722 | end | |
| 723 | while wait(1) do | |
| 724 | for i,v in pairs(workspace:GetChildren()) do | |
| 725 | if v.ClassName == "Model" then | |
| 726 | for q,w in pairs(bustedpeople) do | |
| 727 | if w.Name == v.Name then | |
| 728 | if v:findFirstChild("Head") then
| |
| 729 | if (v.Head.Position - Part3.Position).magnitude > Part3.Size.x/2 + 3 then | |
| 730 | if not v:findFirstChild("jailtime") then
| |
| 731 | local jailtime = Instance.new("IntValue", v)
| |
| 732 | jailtime.Value = math.random(60,80) | |
| 733 | jailtime.Name = "jailtime" | |
| 734 | end | |
| 735 | if v:findFirstChild("Head") then
| |
| 736 | for i = 1,20 do | |
| 737 | v.Head.CFrame = thatpart.CFrame * CFrame.new(0,5,10) | |
| 738 | wait() | |
| 739 | end | |
| 740 | end | |
| 741 | else | |
| 742 | if v:findFirstChild("jailtime") then
| |
| 743 | v.jailtime.Value = v.jailtime.Value - 1 | |
| 744 | if v:findFirstChild("Head") then
| |
| 745 | if v.jailtime.Value > 30 then | |
| 746 | game.Chat:Chat(v.Head, "(Jailtime: "..v.jailtime.Value..")", "Red") | |
| 747 | end | |
| 748 | if v.jailtime.Value > 15 and v.jailtime.Value <= 30 then | |
| 749 | game.Chat:Chat(v.Head, "(Jailtime: "..v.jailtime.Value..")", "Blue") | |
| 750 | end | |
| 751 | if v.jailtime.Value <= 15 then | |
| 752 | game.Chat:Chat(v.Head, "(Jailtime: "..v.jailtime.Value..")", "Green") | |
| 753 | end | |
| 754 | end | |
| 755 | if v.jailtime.Value == 0 then | |
| 756 | table.remove(bustedpeople, q) | |
| 757 | v.jailtime:destroy() | |
| 758 | if v:findFirstChild("gotarrested") then
| |
| 759 | v.gotarrested:destroy() | |
| 760 | end | |
| 761 | if v:findFirstChild("Head") then
| |
| 762 | for i = 1,70 do | |
| 763 | v.Head.CFrame = thatpart.CFrame * CFrame.new(0,3,-5) | |
| 764 | wait() | |
| 765 | end | |
| 766 | end | |
| 767 | end | |
| 768 | else | |
| 769 | local jailtime = Instance.new("IntValue", v)
| |
| 770 | jailtime.Value = math.random(30,60) | |
| 771 | jailtime.Name = "jailtime" | |
| 772 | end | |
| 773 | end | |
| 774 | end | |
| 775 | end | |
| 776 | end | |
| 777 | end | |
| 778 | end | |
| 779 | end | |
| 780 | --[[--]] |