SHOW:
|
|
- or go back to the newest paste.
| 1 | if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end
| |
| 2 | print("FE Compatibility: by WaverlyCole & Mokiros")
| |
| 3 | InternalData = {}
| |
| 4 | do | |
| 5 | script.Parent = owner.Character | |
| 6 | local Event = Instance.new("RemoteEvent")
| |
| 7 | Event.Name = "UserInput" | |
| 8 | local function NewFakeEvent() | |
| 9 | local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
| |
| 10 | return Fake | |
| 11 | end | |
| 12 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
| |
| 13 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
| |
| 14 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
| |
| 15 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
| |
| 16 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
| 17 | local function TriggerEvent(self,Event,...) | |
| 18 | local Trigger = Mouse[Event] | |
| 19 | if Trigger and Trigger.fakeEvent and Trigger.Function then | |
| 20 | Trigger.Function(...) | |
| 21 | end | |
| 22 | end | |
| 23 | Mouse.TrigEvent = TriggerEvent | |
| 24 | UserInputService.TrigEvent = TriggerEvent | |
| 25 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
| 26 | if FiredBy.Name ~= owner.Name then end | |
| 27 | if Input.MouseEvent then | |
| 28 | Mouse.Target = Input.Target | |
| 29 | Mouse.Hit = Input.Hit | |
| 30 | else | |
| 31 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
| 32 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 33 | return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") | |
| 34 | end | |
| 35 | for _,Action in pairs(ContextActionService.Actions) do | |
| 36 | for _,Key in pairs(Action.Keys) do | |
| 37 | if Key==Input.KeyCode then | |
| 38 | Action.Function(Action.Name,Input.UserInputState,Input) | |
| 39 | end | |
| 40 | end | |
| 41 | end | |
| 42 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
| 43 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
| 44 | end | |
| 45 | end) | |
| 46 | InternalData["Mouse"] = Mouse | |
| 47 | InternalData["ContextActionService"] = ContextActionService | |
| 48 | InternalData["UserInputService"] = UserInputService | |
| 49 | Event.Parent = NLS([[ | |
| 50 | local Player = owner | |
| 51 | local Event = script:WaitForChild("UserInput")
| |
| 52 | local UserInputService = game:GetService("UserInputService")
| |
| 53 | local Mouse = Player:GetMouse() | |
| 54 | local Input = function(Input,gameProcessedEvent) | |
| 55 | if gameProcessedEvent then return end | |
| 56 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
| |
| 57 | end | |
| 58 | UserInputService.InputBegan:Connect(Input) | |
| 59 | UserInputService.InputEnded:Connect(Input) | |
| 60 | local Hit,Target | |
| 61 | while wait(1/30) do | |
| 62 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
| 63 | Hit,Target = Mouse.Hit,Mouse.Target | |
| 64 | Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
| |
| 65 | end | |
| 66 | end | |
| 67 | ]],owner.Character) | |
| 68 | end | |
| 69 | RealGame = game;game = setmetatable({},{
| |
| 70 | __index = function (self,Index) | |
| 71 | local Sandbox = function (Thing) | |
| 72 | if Thing:IsA("Player") then
| |
| 73 | local RealPlayer = Thing | |
| 74 | return setmetatable({},{
| |
| 75 | __index = function (self,Index) | |
| 76 | local Type = type(RealPlayer[Index]) | |
| 77 | if Type == "function" then | |
| 78 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
| 79 | return function (self) | |
| 80 | return InternalData["Mouse"] | |
| 81 | end | |
| 82 | end | |
| 83 | return function (self,...) | |
| 84 | return RealPlayer[Index](RealPlayer,...) | |
| 85 | end | |
| 86 | else | |
| 87 | if Index == "PlrObj" then | |
| 88 | return RealPlayer | |
| 89 | end | |
| 90 | return RealPlayer[Index] | |
| 91 | end | |
| 92 | end; | |
| 93 | __tostring = function(self) | |
| 94 | return RealPlayer.Name | |
| 95 | end | |
| 96 | }) | |
| 97 | end | |
| 98 | end | |
| 99 | if RealGame[Index] then | |
| 100 | local Type = type(RealGame[Index]) | |
| 101 | if Type == "function" then | |
| 102 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
| 103 | return function (self,Service) | |
| 104 | if Service:lower() == "players" then | |
| 105 | return setmetatable({},{
| |
| 106 | __index = function (self2,Index2) | |
| 107 | local RealService = RealGame:GetService(Service) | |
| 108 | local Type2 = type(Index2) | |
| 109 | if Type2 == "function" then | |
| 110 | return function (self,...) | |
| 111 | return RealService[Index2](RealService,...) | |
| 112 | end | |
| 113 | else | |
| 114 | if Index2:lower() == "localplayer" then | |
| 115 | return Sandbox(owner) | |
| 116 | end | |
| 117 | return RealService[Index2] | |
| 118 | end | |
| 119 | end; | |
| 120 | __tostring = function(self) | |
| 121 | return RealGame:GetService(Service).Name | |
| 122 | end | |
| 123 | }) | |
| 124 | elseif Service:lower() == "contextactionservice" then | |
| 125 | return InternalData["ContextActionService"] | |
| 126 | elseif Service:lower() == "contextactionservice" then | |
| 127 | return InternalData["UserInputService"] | |
| 128 | elseif Service:lower() == "runservice" then | |
| 129 | return setmetatable({},{
| |
| 130 | __index = function(self2,Index2) | |
| 131 | local RealService = RealGame:GetService(Service) | |
| 132 | local Type2 = type(Index2) | |
| 133 | if Type2 == "function" then | |
| 134 | return function (self,...) | |
| 135 | return RealService[Index2](RealService,...) | |
| 136 | end | |
| 137 | else | |
| 138 | if Index2:lower() == "bindtorenderstep" then | |
| 139 | return function (self,Name,Priority,Function) | |
| 140 | return RealGame:GetService("RunService").Stepped:Connect(Function)
| |
| 141 | end | |
| 142 | end | |
| 143 | if Index2:lower() == "renderstepped" then | |
| 144 | return RealService["Stepped"] | |
| 145 | end | |
| 146 | return RealService[Index2] | |
| 147 | end | |
| 148 | end | |
| 149 | }) | |
| 150 | else | |
| 151 | return RealGame:GetService(Service) | |
| 152 | end | |
| 153 | end | |
| 154 | end | |
| 155 | return function (self,...) | |
| 156 | return RealGame[Index](RealGame,...) | |
| 157 | end | |
| 158 | else | |
| 159 | if game:GetService(Index) then | |
| 160 | return game:GetService(Index) | |
| 161 | end | |
| 162 | return RealGame[Index] | |
| 163 | end | |
| 164 | else | |
| 165 | return nil | |
| 166 | end | |
| 167 | end | |
| 168 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = {}
| |
| 169 | print("Complete! Running...")
| |
| 170 | ||
| 171 | --[[disappear, | |
| 172 | appear, | |
| 173 | transform, 1-9 | |
| 174 | dance, | |
| 175 | guns, ot | |
| 176 | guns, out | |
| 177 | guns, in | |
| 178 | guns, explodingbullet | |
| 179 | guns, smokebullet | |
| 180 | guns, normalbullet | |
| 181 | ride, | |
| 182 | unride, | |
| 183 | ]]-- | |
| 184 | char = game.Players.LocalPlayer.Character | |
| 185 | plr = game.Players.LocalPlayer | |
| 186 | char.Archivable = true | |
| 187 | ||
| 188 | folder = Instance.new('Folder', game.Workspace.CurrentCamera)
| |
| 189 | folder.Name = 'DataValue' | |
| 190 | nvm = Instance.new('NumberValue', game.Workspace.CurrentCamera)
| |
| 191 | nvm.Value = 0 | |
| 192 | nvm.Name = "IsGunsOut" | |
| 193 | nvm2 = Instance.new('NumberValue', game.Workspace.CurrentCamera)
| |
| 194 | nvm2.Value = 1 | |
| 195 | nvm2.Name = "IsFollowMode" | |
| 196 | nvm3 = Instance.new('NumberValue', game.Workspace.CurrentCamera)
| |
| 197 | nvm3.Value = 0 | |
| 198 | nvm3.Name = "IsRideMode" | |
| 199 | nvm4 = Instance.new('NumberValue', game.Workspace.CurrentCamera)
| |
| 200 | nvm4.Value = 0 | |
| 201 | nvm4.Name = "IsVisible" | |
| 202 | nvm5 = Instance.new('NumberValue', game.Workspace.CurrentCamera)
| |
| 203 | nvm5.Value = 0 | |
| 204 | nvm5.Name = "IsBulletType" | |
| 205 | ||
| 206 | nvm.Parent = folder | |
| 207 | nvm2.Parent = folder | |
| 208 | nvm3.Parent = folder | |
| 209 | nvm4.Parent = folder | |
| 210 | nvm5.Parent = folder | |
| 211 | ||
| 212 | bg1 = char:Clone() | |
| 213 | bg1.Archivable = false | |
| 214 | bg1.Head.face.Texture = "http://www.roblox.com/asset/?id=20612916" | |
| 215 | ||
| 216 | bgname1 = math.random(1, 10) | |
| 217 | if bgname1 == 1 then | |
| 218 | bg1.Name = "John" | |
| 219 | end | |
| 220 | if bgname1 == 2 then | |
| 221 | bg1.Name = "Max" | |
| 222 | end | |
| 223 | if bgname1 == 3 then | |
| 224 | bg1.Name = "Christian" | |
| 225 | end | |
| 226 | if bgname1 == 4 then | |
| 227 | bg1.Name = "Laurence" | |
| 228 | end | |
| 229 | if bgname1 == 5 then | |
| 230 | bg1.Name = "Kelvin" | |
| 231 | end | |
| 232 | if bgname1 == 6 then | |
| 233 | bg1.Name = "Johvany" | |
| 234 | end | |
| 235 | if bgname1 == 7 then | |
| 236 | bg1.Name = "Scott" | |
| 237 | end | |
| 238 | if bgname1 == 8 then | |
| 239 | bg1.Name = "Jonathan" | |
| 240 | end | |
| 241 | if bgname1 == 9 then | |
| 242 | bg1.Name = "Darryl" | |
| 243 | end | |
| 244 | if bgname1 == 10 then | |
| 245 | bg1.Name = "Archie" | |
| 246 | end | |
| 247 | ||
| 248 | bgpoint1 = Instance.new('Part', char)
| |
| 249 | bgpoint1.Anchored = false | |
| 250 | bgpoint1.CanCollide = false | |
| 251 | bgpoint1.Transparency = 1 | |
| 252 | bgpoint1.Size = Vector3.new(0.2,0.2,0.2) | |
| 253 | ||
| 254 | Weld = Instance.new("Weld",game.Players.LocalPlayer.Character)
| |
| 255 | Weld.Part0 = game.Players.LocalPlayer.Character["Torso"] | |
| 256 | Weld.Part1 = bgpoint1 | |
| 257 | Weld.C1 = CFrame.new(10, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 258 | ||
| 259 | bg2 = char:Clone() | |
| 260 | bg2.Head.face.Texture = "http://www.roblox.com/asset/?id=20612916" | |
| 261 | bg2.Archivable = false | |
| 262 | bgname2 = math.random(1, 10) | |
| 263 | if bgname2 == 1 then | |
| 264 | bg2.Name = "John" | |
| 265 | end | |
| 266 | if bgname2 == 2 then | |
| 267 | bg2.Name = "Max" | |
| 268 | end | |
| 269 | if bgname2 == 3 then | |
| 270 | bg2.Name = "Christian" | |
| 271 | end | |
| 272 | if bgname2 == 4 then | |
| 273 | bg2.Name = "Kevin" | |
| 274 | end | |
| 275 | if bgname2 == 5 then | |
| 276 | bg2.Name = "Steven" | |
| 277 | end | |
| 278 | if bgname2 == 6 then | |
| 279 | bg2.Name = "Steve" | |
| 280 | end | |
| 281 | if bgname2 == 7 then | |
| 282 | bg2.Name = "David" | |
| 283 | end | |
| 284 | if bgname2 == 8 then | |
| 285 | bg2.Name = "Michael" | |
| 286 | end | |
| 287 | if bgname2 == 9 then | |
| 288 | bg2.Name = "Robert" | |
| 289 | end | |
| 290 | if bgname2 == 10 then | |
| 291 | bg2.Name = "James" | |
| 292 | end | |
| 293 | ||
| 294 | bgpoint2 = Instance.new('Part', char)
| |
| 295 | bgpoint2.Anchored = false | |
| 296 | bgpoint2.CanCollide = false | |
| 297 | bgpoint2.Transparency = 1 | |
| 298 | bgpoint2.Size = Vector3.new(0.2,0.2,0.2) | |
| 299 | ||
| 300 | Weld = Instance.new("Weld",game.Players.LocalPlayer.Character)
| |
| 301 | Weld.Part0 = game.Players.LocalPlayer.Character["Torso"] | |
| 302 | Weld.Part1 = bgpoint2 | |
| 303 | Weld.C1 = CFrame.new(-10, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 304 | ||
| 305 | for _,c in pairs(bg2:GetChildren()) do | |
| 306 | if c:IsA('Accessory') then
| |
| 307 | c:Destroy() | |
| 308 | end | |
| 309 | end | |
| 310 | ||
| 311 | for _,c in pairs(bg1:GetChildren()) do | |
| 312 | if c:IsA('Accessory') then
| |
| 313 | c:Destroy() | |
| 314 | end | |
| 315 | end | |
| 316 | ||
| 317 | for _,c in pairs(bg2:GetChildren()) do | |
| 318 | if c:IsA('CharacterMesh') then
| |
| 319 | c:Destroy() | |
| 320 | end | |
| 321 | end | |
| 322 | ||
| 323 | for _,c in pairs(bg1:GetChildren()) do | |
| 324 | if c:IsA('CharacterMesh') then
| |
| 325 | c:Destroy() | |
| 326 | end | |
| 327 | end | |
| 328 | ||
| 329 | for _,c in pairs(bg2:GetChildren()) do | |
| 330 | if c:IsA('Shirt') then
| |
| 331 | c:Destroy() | |
| 332 | shirt = Instance.new("Shirt", bg2)
| |
| 333 | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=47740174" | |
| 334 | end | |
| 335 | end | |
| 336 | ||
| 337 | for _,c in pairs(bg1:GetChildren()) do | |
| 338 | if c:IsA('Pants') then
| |
| 339 | c:Destroy() | |
| 340 | pants = Instance.new("Pants", bg1)
| |
| 341 | pants.PantsTemplate = "http://www.roblox.com/asset/?id=132066612" | |
| 342 | end | |
| 343 | end | |
| 344 | ||
| 345 | for _,c in pairs(bg2:GetChildren()) do | |
| 346 | if c:IsA('Pants') then
| |
| 347 | c:Destroy() | |
| 348 | pants = Instance.new("Pants", bg2)
| |
| 349 | pants.PantsTemplate = "http://www.roblox.com/asset/?id=132066612" | |
| 350 | end | |
| 351 | end | |
| 352 | ||
| 353 | for _,c in pairs(bg1:GetChildren()) do | |
| 354 | if c:IsA('Shirt') then
| |
| 355 | c:Destroy() | |
| 356 | shirt = Instance.new("Shirt", bg1)
| |
| 357 | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=47740174" | |
| 358 | end | |
| 359 | end | |
| 360 | ||
| 361 | bg2.Parent = char | |
| 362 | bg1.Parent = char | |
| 363 | bg2.Torso.CFrame = bgpoint2.CFrame | |
| 364 | bg1.Torso.CFrame = bgpoint1.CFrame | |
| 365 | ||
| 366 | health = game.Players.LocalPlayer.Character.Humanoid.Health | |
| 367 | game.Players.LocalPlayer.Character.Humanoid.Changed:connect(function() | |
| 368 | if game.Players.LocalPlayer.Character.Humanoid.Health < health then | |
| 369 | bgheal = math.random(1, 2) | |
| 370 | if bgheal == 1 then | |
| 371 | bgpoint1.CFrame = char.Torso.CFrame | |
| 372 | Weld = Instance.new("Weld",game.Players.LocalPlayer.Character)
| |
| 373 | Weld.Part0 = game.Players.LocalPlayer.Character["Torso"] | |
| 374 | Weld.Part1 = bgpoint1 | |
| 375 | Weld.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 376 | wait(3.5) | |
| 377 | char.Humanoid.Health = char.Humanoid.Health + 50 | |
| 378 | bgpoint1.CFrame = char.Torso.CFrame * CFrame.new(0,0.1,0) | |
| 379 | Weld = Instance.new("Weld",game.Players.LocalPlayer.Character)
| |
| 380 | Weld.Part0 = game.Players.LocalPlayer.Character["Torso"] | |
| 381 | Weld.Part1 = bgpoint1 | |
| 382 | Weld.C1 = CFrame.new(10, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 383 | end | |
| 384 | if bgheal == 2 then | |
| 385 | bgpoint2.CFrame = char.Torso.CFrame | |
| 386 | Weld = Instance.new("Weld",game.Players.LocalPlayer.Character)
| |
| 387 | Weld.Part0 = game.Players.LocalPlayer.Character["Torso"] | |
| 388 | Weld.Part1 = bgpoint2 | |
| 389 | Weld.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 390 | wait(3.5) | |
| 391 | char.Humanoid.Health = char.Humanoid.Health + 50 | |
| 392 | bgpoint2.CFrame = char.Torso.CFrame * CFrame.new(0,0.1,0) | |
| 393 | Weld = Instance.new("Weld",game.Players.LocalPlayer.Character)
| |
| 394 | Weld.Part0 = game.Players.LocalPlayer.Character["Torso"] | |
| 395 | Weld.Part1 = bgpoint2 | |
| 396 | Weld.C1 = CFrame.new(-10, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 397 | end | |
| 398 | end | |
| 399 | health = game.Players.LocalPlayer.Character.Humanoid.Health | |
| 400 | end) | |
| 401 | ||
| 402 | bgskin = math.random(1, 2) | |
| 403 | if bgskin == 1 then | |
| 404 | r = bg1:getChildren() | |
| 405 | for i = 1, #r do | |
| 406 | if r[i].className == "Part" then | |
| 407 | r[i].BrickColor = BrickColor.new('Cool yellow')
| |
| 408 | end | |
| 409 | end | |
| 410 | end | |
| 411 | if bgskin == 1 then | |
| 412 | a = bg2:getChildren() | |
| 413 | for i = 1, #a do | |
| 414 | if a[i].className == "Part" then | |
| 415 | a[i].BrickColor = BrickColor.new('CGA brown')
| |
| 416 | end | |
| 417 | end | |
| 418 | end | |
| 419 | ||
| 420 | game.Players.LocalPlayer.Chatted:connect(function(say) | |
| 421 | ||
| 422 | if say == "disappear," then | |
| 423 | bg1["Head"].Transparency = 1 | |
| 424 | bg1["Left Arm"].Transparency = 1 | |
| 425 | bg1["Left Leg"].Transparency = 1 | |
| 426 | bg1["Right Leg"].Transparency = 1 | |
| 427 | bg1["Right Arm"].Transparency = 1 | |
| 428 | bg1["Torso"].Transparency = 1 | |
| 429 | bg1.Head.face.Transparency = 1 | |
| 430 | ||
| 431 | bg2["Head"].Transparency = 1 | |
| 432 | bg2["Left Arm"].Transparency = 1 | |
| 433 | bg2["Left Leg"].Transparency = 1 | |
| 434 | bg2["Right Leg"].Transparency = 1 | |
| 435 | bg2["Right Arm"].Transparency = 1 | |
| 436 | bg2["Torso"].Transparency = 1 | |
| 437 | bg2.Head.face.Transparency = 1 | |
| 438 | ||
| 439 | brick22 = Instance.new("Part")
| |
| 440 | brick22.CanCollide = false | |
| 441 | brick22.Anchored = true | |
| 442 | brick22.CFrame = bg1.Torso.CFrame | |
| 443 | brick22.Transparency = 1 | |
| 444 | brick22.Parent = game.Workspace | |
| 445 | brick222 = Instance.new("Part")
| |
| 446 | brick222.CanCollide = false | |
| 447 | brick222.Anchored = true | |
| 448 | brick222.CFrame = bg2.Torso.CFrame | |
| 449 | brick222.Transparency = 1 | |
| 450 | brick222.Parent = game.Workspace | |
| 451 | local sou2 = Instance.new("Sound")
| |
| 452 | sou2.Pitch = 1 | |
| 453 | sou2.Volume = 1 | |
| 454 | sou2.SoundId = "rbxassetid://722960601" | |
| 455 | sou2.Parent = bg1.Torso | |
| 456 | sou2:Play() | |
| 457 | local pe2 = Instance.new("ParticleEmitter")
| |
| 458 | pe2.Acceleration = Vector3.new(0, 8, 0) | |
| 459 | pe2.Lifetime = NumberRange.new(1, 1.5) | |
| 460 | pe2.Rate = 20000 | |
| 461 | pe2.RotSpeed = NumberRange.new(-30, 30) | |
| 462 | pe2.Rotation = NumberRange.new(0, 360) | |
| 463 | pe2.Size = NumberSequence.new({
| |
| 464 | NumberSequenceKeypoint.new(0, 4.38, 0), | |
| 465 | NumberSequenceKeypoint.new(0.672, 4.14, 0), | |
| 466 | NumberSequenceKeypoint.new(1, 1.48, 0) | |
| 467 | }) | |
| 468 | pe2.Texture = "rbxassetid://244221440" | |
| 469 | pe2.Transparency = NumberSequence.new({
| |
| 470 | NumberSequenceKeypoint.new(0, 0, 0), | |
| 471 | NumberSequenceKeypoint.new(0.529, 0.3, 0), | |
| 472 | NumberSequenceKeypoint.new(1, 1, 1) | |
| 473 | }) | |
| 474 | pe2.ZOffset = 5 | |
| 475 | pe2.VelocitySpread = 360 | |
| 476 | pe2.Parent = brick22 | |
| 477 | pe2.Enabled = true | |
| 478 | clpe2 = pe2:Clone() | |
| 479 | clpe2.Parent = brick222 | |
| 480 | wait(0.25) | |
| 481 | pe2.Enabled = false | |
| 482 | clpe2.Enabled = false | |
| 483 | nvm4.Value = 1 | |
| 484 | bg1.Humanoid.HipHeight = 10000 | |
| 485 | bg2.Humanoid.HipHeight = 10000 | |
| 486 | end | |
| 487 | ||
| 488 | if say == "appear," then | |
| 489 | bg1.Humanoid.HipHeight = 0 | |
| 490 | bg2.Humanoid.HipHeight = 0 | |
| 491 | bg1.Torso.CFrame = bgpoint1.CFrame | |
| 492 | bg2.Torso.CFrame = bgpoint2.CFrame | |
| 493 | ||
| 494 | bg1["Head"].Transparency = 0 | |
| 495 | bg1["Left Arm"].Transparency = 0 | |
| 496 | bg1["Left Leg"].Transparency = 0 | |
| 497 | bg1["Right Leg"].Transparency = 0 | |
| 498 | bg1["Right Arm"].Transparency = 0 | |
| 499 | bg1["Torso"].Transparency = 0 | |
| 500 | bg1.Head.face.Transparency = 0 | |
| 501 | ||
| 502 | bg2["Head"].Transparency = 0 | |
| 503 | bg2["Left Arm"].Transparency = 0 | |
| 504 | bg2["Left Leg"].Transparency = 0 | |
| 505 | bg2["Right Leg"].Transparency = 0 | |
| 506 | bg2["Right Arm"].Transparency = 0 | |
| 507 | bg2["Torso"].Transparency = 0 | |
| 508 | bg2.Head.face.Transparency = 0 | |
| 509 | ||
| 510 | brick223 = Instance.new("Part")
| |
| 511 | brick223.CanCollide = false | |
| 512 | brick223.Anchored = true | |
| 513 | brick223.CFrame = bg1.Torso.CFrame | |
| 514 | brick223.Transparency = 1 | |
| 515 | brick223.Parent = game.Workspace | |
| 516 | brick2223 = Instance.new("Part")
| |
| 517 | brick2223.CanCollide = false | |
| 518 | brick2223.Anchored = true | |
| 519 | brick2223.CFrame = bg2.Torso.CFrame | |
| 520 | brick2223.Transparency = 1 | |
| 521 | brick2223.Parent = game.Workspace | |
| 522 | local sou23 = Instance.new("Sound")
| |
| 523 | sou23.Pitch = 1 | |
| 524 | sou23.Volume = 1 | |
| 525 | sou23.SoundId = "rbxassetid://722960601" | |
| 526 | sou23.Parent = bg1.Torso | |
| 527 | sou23:Play() | |
| 528 | local pe2 = Instance.new("ParticleEmitter")
| |
| 529 | pe2.Acceleration = Vector3.new(0, 8, 0) | |
| 530 | pe2.Lifetime = NumberRange.new(1, 1.5) | |
| 531 | pe2.Rate = 20000 | |
| 532 | pe2.RotSpeed = NumberRange.new(-30, 30) | |
| 533 | pe2.Rotation = NumberRange.new(0, 360) | |
| 534 | pe2.Size = NumberSequence.new({
| |
| 535 | NumberSequenceKeypoint.new(0, 4.38, 0), | |
| 536 | NumberSequenceKeypoint.new(0.672, 4.14, 0), | |
| 537 | NumberSequenceKeypoint.new(1, 1.48, 0) | |
| 538 | }) | |
| 539 | pe2.Texture = "rbxassetid://244221440" | |
| 540 | pe2.Transparency = NumberSequence.new({
| |
| 541 | NumberSequenceKeypoint.new(0, 0, 0), | |
| 542 | NumberSequenceKeypoint.new(0.529, 0.3, 0), | |
| 543 | NumberSequenceKeypoint.new(1, 1, 1) | |
| 544 | }) | |
| 545 | pe2.ZOffset = 5 | |
| 546 | pe2.VelocitySpread = 360 | |
| 547 | pe2.Parent = brick223 | |
| 548 | pe2.Enabled = true | |
| 549 | clpe2 = pe2:Clone() | |
| 550 | clpe2.Parent = brick2223 | |
| 551 | wait(0.25) | |
| 552 | pe2.Enabled = false | |
| 553 | clpe2.Enabled = false | |
| 554 | nvm4.Value = 0 | |
| 555 | end | |
| 556 | ||
| 557 | if say == "transform, 9" then | |
| 558 | bg1.Head.face.Texture = "http://www.roblox.com/asset/?id=20612916" | |
| 559 | bg2.Head.face.Texture = "http://www.roblox.com/asset/?id=20612916" | |
| 560 | ||
| 561 | a = bg1.Head:getChildren() | |
| 562 | for i = 1, #a do | |
| 563 | if a[i].className == "Part" then | |
| 564 | a[i]:Destroy() | |
| 565 | end | |
| 566 | end | |
| 567 | ||
| 568 | b = bg2.Head:getChildren() | |
| 569 | for i = 1, #b do | |
| 570 | if b[i].className == "Part" then | |
| 571 | b[i]:Destroy() | |
| 572 | end | |
| 573 | end | |
| 574 | ||
| 575 | for _,c in pairs(bg2:GetChildren()) do | |
| 576 | if c:IsA('Shirt') then
| |
| 577 | c:Destroy() | |
| 578 | shirt = Instance.new("Shirt", bg2)
| |
| 579 | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=70292296" | |
| 580 | end | |
| 581 | end | |
| 582 | ||
| 583 | for _,c in pairs(bg1:GetChildren()) do | |
| 584 | if c:IsA('Pants') then
| |
| 585 | c:Destroy() | |
| 586 | pants = Instance.new("Pants", bg1)
| |
| 587 | pants.PantsTemplate = "http://www.roblox.com/asset/?id=31728834" | |
| 588 | end | |
| 589 | end | |
| 590 | ||
| 591 | for _,c in pairs(bg2:GetChildren()) do | |
| 592 | if c:IsA('Pants') then
| |
| 593 | c:Destroy() | |
| 594 | pants = Instance.new("Pants", bg2)
| |
| 595 | pants.PantsTemplate = "http://www.roblox.com/asset/?id=31728834" | |
| 596 | end | |
| 597 | end | |
| 598 | ||
| 599 | for _,c in pairs(bg1:GetChildren()) do | |
| 600 | if c:IsA('Shirt') then
| |
| 601 | c:Destroy() | |
| 602 | shirt = Instance.new("Shirt", bg1)
| |
| 603 | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=70292296" | |
| 604 | end | |
| 605 | end | |
| 606 | ||
| 607 | hair = Instance.new("Part", bg1.Head)
| |
| 608 | hairmesh = Instance.new("SpecialMesh", hair)
| |
| 609 | hairmesh.MeshId = "http://www.roblox.com/asset/?id=1038653" | |
| 610 | hairmesh.TextureId = "http://www.roblox.com/asset/?id=1038654" | |
| 611 | hair.BrickColor = BrickColor.new('Pearl')
| |
| 612 | hairmesh.Scale = Vector3.new(1, 1, 1) | |
| 613 | hair.Transparency = 0 | |
| 614 | hair.CanCollide = false | |
| 615 | hair.Name = "plrhair" | |
| 616 | hair.Anchored = false | |
| 617 | clhair = hair:Clone() | |
| 618 | clhair.Parent = bg2.Head | |
| 619 | Weld = Instance.new("Weld", bg1)
| |
| 620 | Weld.Part0 = bg1.Head | |
| 621 | Weld.Part1 = hair | |
| 622 | Weld.C1 = CFrame.new(0, -0.50, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 623 | Weld = Instance.new("Weld", bg2)
| |
| 624 | Weld.Part0 = bg2.Head | |
| 625 | Weld.Part1 = clhair | |
| 626 | Weld.C1 = CFrame.new(0, -0.50, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 627 | ||
| 628 | brick = Instance.new("Part")
| |
| 629 | brick.CanCollide = false | |
| 630 | brick.Anchored = true | |
| 631 | brick.CFrame = bg1.Torso.CFrame | |
| 632 | brick.Transparency = 1 | |
| 633 | brick.Parent = game.Workspace | |
| 634 | brick2 = Instance.new("Part")
| |
| 635 | brick2.CanCollide = false | |
| 636 | brick2.Anchored = true | |
| 637 | brick2.CFrame = bg2.Torso.CFrame | |
| 638 | brick2.Transparency = 1 | |
| 639 | brick2.Parent = game.Workspace | |
| 640 | local sou = Instance.new("Sound")
| |
| 641 | sou.Pitch = 1 | |
| 642 | sou.Volume = 1 | |
| 643 | sou.SoundId = "rbxassetid://722960601" | |
| 644 | sou.Parent = bg1.Torso | |
| 645 | sou:Play() | |
| 646 | local pe = Instance.new("ParticleEmitter")
| |
| 647 | pe.Acceleration = Vector3.new(0, 8, 0) | |
| 648 | pe.Lifetime = NumberRange.new(1, 1.5) | |
| 649 | pe.Rate = 20000 | |
| 650 | pe.RotSpeed = NumberRange.new(-30, 30) | |
| 651 | pe.Rotation = NumberRange.new(0, 360) | |
| 652 | pe.Size = NumberSequence.new({
| |
| 653 | NumberSequenceKeypoint.new(0, 4.38, 0), | |
| 654 | NumberSequenceKeypoint.new(0.672, 4.14, 0), | |
| 655 | NumberSequenceKeypoint.new(1, 1.48, 0) | |
| 656 | }) | |
| 657 | pe.Texture = "rbxassetid://244221440" | |
| 658 | pe.Transparency = NumberSequence.new({
| |
| 659 | NumberSequenceKeypoint.new(0, 0, 0), | |
| 660 | NumberSequenceKeypoint.new(0.529, 0.3, 0), | |
| 661 | NumberSequenceKeypoint.new(1, 1, 1) | |
| 662 | }) | |
| 663 | pe.ZOffset = 5 | |
| 664 | pe.VelocitySpread = 360 | |
| 665 | pe.Parent = brick | |
| 666 | pe.Enabled = true | |
| 667 | clpe = pe:Clone() | |
| 668 | clpe.Parent = brick2 | |
| 669 | wait(0.25) | |
| 670 | pe.Enabled = false | |
| 671 | clpe.Enabled = false | |
| 672 | while wait() do | |
| 673 | if not sou.IsPlaying then | |
| 674 | sou:Destroy() | |
| 675 | end | |
| 676 | end | |
| 677 | end | |
| 678 | ||
| 679 | if say == "transform, 8" then | |
| 680 | bg1.Head.face.Texture = "http://www.roblox.com/asset/?id=7074749" | |
| 681 | bg2.Head.face.Texture = "http://www.roblox.com/asset/?id=7074749" | |
| 682 | ||
| 683 | a = bg1.Head:getChildren() | |
| 684 | for i = 1, #a do | |
| 685 | if a[i].className == "Part" then | |
| 686 | a[i]:Destroy() | |
| 687 | end | |
| 688 | end | |
| 689 | ||
| 690 | b = bg2.Head:getChildren() | |
| 691 | for i = 1, #b do | |
| 692 | if b[i].className == "Part" then | |
| 693 | b[i]:Destroy() | |
| 694 | end | |
| 695 | end | |
| 696 | ||
| 697 | for _,c in pairs(bg2:GetChildren()) do | |
| 698 | if c:IsA('Shirt') then
| |
| 699 | c:Destroy() | |
| 700 | shirt = Instance.new("Shirt", bg2)
| |
| 701 | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=11380099" | |
| 702 | end | |
| 703 | end | |
| 704 | ||
| 705 | for _,c in pairs(bg1:GetChildren()) do | |
| 706 | if c:IsA('Pants') then
| |
| 707 | c:Destroy() | |
| 708 | pants = Instance.new("Pants", bg1)
| |
| 709 | pants.PantsTemplate = "http://www.roblox.com/asset/?id=11380110" | |
| 710 | end | |
| 711 | end | |
| 712 | ||
| 713 | for _,c in pairs(bg2:GetChildren()) do | |
| 714 | if c:IsA('Pants') then
| |
| 715 | c:Destroy() | |
| 716 | pants = Instance.new("Pants", bg2)
| |
| 717 | pants.PantsTemplate = "http://www.roblox.com/asset/?id=11380110" | |
| 718 | end | |
| 719 | end | |
| 720 | ||
| 721 | for _,c in pairs(bg1:GetChildren()) do | |
| 722 | if c:IsA('Shirt') then
| |
| 723 | c:Destroy() | |
| 724 | shirt = Instance.new("Shirt", bg1)
| |
| 725 | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=11380099" | |
| 726 | end | |
| 727 | end | |
| 728 | ||
| 729 | hair = Instance.new("Part", bg1.Head)
| |
| 730 | hairmesh = Instance.new("SpecialMesh", hair)
| |
| 731 | hairmesh.MeshId = "http://www.roblox.com/asset/?id=1286427" | |
| 732 | hairmesh.TextureId = "http://www.roblox.com/asset/?id=5808536" | |
| 733 | hair.BrickColor = BrickColor.new('Pearl')
| |
| 734 | hairmesh.Scale = Vector3.new(1.1, 1.1, 1.1) | |
| 735 | hair.Transparency = 0 | |
| 736 | hair.CanCollide = false | |
| 737 | hair.Name = "plrhair" | |
| 738 | hair.Anchored = false | |
| 739 | clhair = hair:Clone() | |
| 740 | clhair.Parent = bg2.Head | |
| 741 | Weld = Instance.new("Weld", bg1)
| |
| 742 | Weld.Part0 = bg1.Head | |
| 743 | Weld.Part1 = hair | |
| 744 | Weld.C1 = CFrame.new(0, -0.10, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 745 | Weld = Instance.new("Weld", bg2)
| |
| 746 | Weld.Part0 = bg2.Head | |
| 747 | Weld.Part1 = clhair | |
| 748 | Weld.C1 = CFrame.new(0, -0.10, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 749 | ||
| 750 | brick = Instance.new("Part")
| |
| 751 | brick.CanCollide = false | |
| 752 | brick.Anchored = true | |
| 753 | brick.CFrame = bg1.Torso.CFrame | |
| 754 | brick.Transparency = 1 | |
| 755 | brick.Parent = game.Workspace | |
| 756 | brick2 = Instance.new("Part")
| |
| 757 | brick2.CanCollide = false | |
| 758 | brick2.Anchored = true | |
| 759 | brick2.CFrame = bg2.Torso.CFrame | |
| 760 | brick2.Transparency = 1 | |
| 761 | brick2.Parent = game.Workspace | |
| 762 | local sou = Instance.new("Sound")
| |
| 763 | sou.Pitch = 1 | |
| 764 | sou.Volume = 1 | |
| 765 | sou.SoundId = "rbxassetid://722960601" | |
| 766 | sou.Parent = bg1.Torso | |
| 767 | sou:Play() | |
| 768 | local pe = Instance.new("ParticleEmitter")
| |
| 769 | pe.Acceleration = Vector3.new(0, 8, 0) | |
| 770 | pe.Lifetime = NumberRange.new(1, 1.5) | |
| 771 | pe.Rate = 20000 | |
| 772 | pe.RotSpeed = NumberRange.new(-30, 30) | |
| 773 | pe.Rotation = NumberRange.new(0, 360) | |
| 774 | pe.Size = NumberSequence.new({
| |
| 775 | NumberSequenceKeypoint.new(0, 4.38, 0), | |
| 776 | NumberSequenceKeypoint.new(0.672, 4.14, 0), | |
| 777 | NumberSequenceKeypoint.new(1, 1.48, 0) | |
| 778 | }) | |
| 779 | pe.Texture = "rbxassetid://244221440" | |
| 780 | pe.Transparency = NumberSequence.new({
| |
| 781 | NumberSequenceKeypoint.new(0, 0, 0), | |
| 782 | NumberSequenceKeypoint.new(0.529, 0.3, 0), | |
| 783 | NumberSequenceKeypoint.new(1, 1, 1) | |
| 784 | }) | |
| 785 | pe.ZOffset = 5 | |
| 786 | pe.VelocitySpread = 360 | |
| 787 | pe.Parent = brick | |
| 788 | pe.Enabled = true | |
| 789 | clpe = pe:Clone() | |
| 790 | clpe.Parent = brick2 | |
| 791 | wait(0.25) | |
| 792 | pe.Enabled = false | |
| 793 | clpe.Enabled = false | |
| 794 | while wait() do | |
| 795 | if not sou.IsPlaying then | |
| 796 | sou:Destroy() | |
| 797 | end | |
| 798 | end | |
| 799 | end | |
| 800 | ||
| 801 | ||
| 802 | if say == "transform, 4" then | |
| 803 | ||
| 804 | bg1.Head.face.Texture = "http://www.roblox.com/asset/?id=7074749" | |
| 805 | bg2.Head.face.Texture = "http://www.roblox.com/asset/?id=7074749" | |
| 806 | ||
| 807 | a = bg1.Head:getChildren() | |
| 808 | for i = 1, #a do | |
| 809 | if a[i].className == "Part" then | |
| 810 | a[i]:Destroy() | |
| 811 | end | |
| 812 | end | |
| 813 | ||
| 814 | b = bg2.Head:getChildren() | |
| 815 | for i = 1, #b do | |
| 816 | if b[i].className == "Part" then | |
| 817 | b[i]:Destroy() | |
| 818 | end | |
| 819 | end | |
| 820 | ||
| 821 | for _,c in pairs(bg2:GetChildren()) do | |
| 822 | if c:IsA('Shirt') then
| |
| 823 | c:Destroy() | |
| 824 | shirt = Instance.new("Shirt", bg2)
| |
| 825 | shirt.ShirtTemplate = "rbxassetid://519774803" | |
| 826 | end | |
| 827 | end | |
| 828 | ||
| 829 | for _,c in pairs(bg1:GetChildren()) do | |
| 830 | if c:IsA('Pants') then
| |
| 831 | c:Destroy() | |
| 832 | pants = Instance.new("Pants", bg1)
| |
| 833 | pants.PantsTemplate = "rbxassetid://519782833" | |
| 834 | end | |
| 835 | end | |
| 836 | ||
| 837 | for _,c in pairs(bg2:GetChildren()) do | |
| 838 | if c:IsA('Pants') then
| |
| 839 | c:Destroy() | |
| 840 | pants = Instance.new("Pants", bg2)
| |
| 841 | pants.PantsTemplate = "rbxassetid://519782833" | |
| 842 | end | |
| 843 | end | |
| 844 | ||
| 845 | for _,c in pairs(bg1:GetChildren()) do | |
| 846 | if c:IsA('Shirt') then
| |
| 847 | c:Destroy() | |
| 848 | shirt = Instance.new("Shirt", bg1)
| |
| 849 | shirt.ShirtTemplate = "rbxassetid://519774803" | |
| 850 | end | |
| 851 | end | |
| 852 | ||
| 853 | hair = Instance.new("Part", bg1.Head)
| |
| 854 | hairmesh = Instance.new("SpecialMesh", hair)
| |
| 855 | hairmesh.MeshId = "http://www.roblox.com/asset/?id=1286427" | |
| 856 | hairmesh.TextureId = "http://www.roblox.com/asset/?id=1309894" | |
| 857 | hairmesh.Scale = Vector3.new(1.1, 1.1, 1.1) | |
| 858 | hair.Transparency = 0 | |
| 859 | hair.CanCollide = false | |
| 860 | hair.Name = "plrhair" | |
| 861 | hair.Anchored = false | |
| 862 | clhair = hair:Clone() | |
| 863 | clhair.Parent = bg2.Head | |
| 864 | Weld = Instance.new("Weld", bg1)
| |
| 865 | Weld.Part0 = bg1.Head | |
| 866 | Weld.Part1 = hair | |
| 867 | Weld.C1 = CFrame.new(0, -0.10, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 868 | Weld = Instance.new("Weld", bg2)
| |
| 869 | Weld.Part0 = bg2.Head | |
| 870 | Weld.Part1 = clhair | |
| 871 | Weld.C1 = CFrame.new(0, -0.10, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 872 | ||
| 873 | brick = Instance.new("Part")
| |
| 874 | brick.CanCollide = false | |
| 875 | brick.Anchored = true | |
| 876 | brick.CFrame = bg1.Torso.CFrame | |
| 877 | brick.Transparency = 1 | |
| 878 | brick.Parent = game.Workspace | |
| 879 | brick2 = Instance.new("Part")
| |
| 880 | brick2.CanCollide = false | |
| 881 | brick2.Anchored = true | |
| 882 | brick2.CFrame = bg2.Torso.CFrame | |
| 883 | brick2.Transparency = 1 | |
| 884 | brick2.Parent = game.Workspace | |
| 885 | local sou = Instance.new("Sound")
| |
| 886 | sou.Pitch = 1 | |
| 887 | sou.Volume = 1 | |
| 888 | sou.SoundId = "rbxassetid://722960601" | |
| 889 | sou.Parent = bg1.Torso | |
| 890 | sou:Play() | |
| 891 | local pe = Instance.new("ParticleEmitter")
| |
| 892 | pe.Acceleration = Vector3.new(0, 8, 0) | |
| 893 | pe.Lifetime = NumberRange.new(1, 1.5) | |
| 894 | pe.Rate = 20000 | |
| 895 | pe.RotSpeed = NumberRange.new(-30, 30) | |
| 896 | pe.Rotation = NumberRange.new(0, 360) | |
| 897 | pe.Size = NumberSequence.new({
| |
| 898 | NumberSequenceKeypoint.new(0, 4.38, 0), | |
| 899 | NumberSequenceKeypoint.new(0.672, 4.14, 0), | |
| 900 | NumberSequenceKeypoint.new(1, 1.48, 0) | |
| 901 | }) | |
| 902 | pe.Texture = "rbxassetid://244221440" | |
| 903 | pe.Transparency = NumberSequence.new({
| |
| 904 | NumberSequenceKeypoint.new(0, 0, 0), | |
| 905 | NumberSequenceKeypoint.new(0.529, 0.3, 0), | |
| 906 | NumberSequenceKeypoint.new(1, 1, 1) | |
| 907 | }) | |
| 908 | pe.ZOffset = 5 | |
| 909 | pe.VelocitySpread = 360 | |
| 910 | pe.Parent = brick | |
| 911 | pe.Enabled = true | |
| 912 | clpe = pe:Clone() | |
| 913 | clpe.Parent = brick2 | |
| 914 | wait(0.25) | |
| 915 | pe.Enabled = false | |
| 916 | clpe.Enabled = false | |
| 917 | while wait() do | |
| 918 | if not sou.IsPlaying then | |
| 919 | sou:Destroy() | |
| 920 | end | |
| 921 | end | |
| 922 | end | |
| 923 | ||
| 924 | if say == "transform, 3" then | |
| 925 | bg1.Head.face.Texture = "http://www.roblox.com/asset/?id=20612916" | |
| 926 | bg2.Head.face.Texture = "http://www.roblox.com/asset/?id=20612916" | |
| 927 | ||
| 928 | ||
| 929 | a = bg1.Head:getChildren() | |
| 930 | for i = 1, #a do | |
| 931 | if a[i].className == "Part" then | |
| 932 | a[i]:Destroy() | |
| 933 | end | |
| 934 | end | |
| 935 | ||
| 936 | b = bg2.Head:getChildren() | |
| 937 | for i = 1, #b do | |
| 938 | if b[i].className == "Part" then | |
| 939 | b[i]:Destroy() | |
| 940 | end | |
| 941 | end | |
| 942 | ||
| 943 | for _,c in pairs(bg2:GetChildren()) do | |
| 944 | if c:IsA('Shirt') then
| |
| 945 | c:Destroy() | |
| 946 | shirt = Instance.new("Shirt", bg2)
| |
| 947 | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=108783381" | |
| 948 | end | |
| 949 | end | |
| 950 | ||
| 951 | for _,c in pairs(bg1:GetChildren()) do | |
| 952 | if c:IsA('Pants') then
| |
| 953 | c:Destroy() | |
| 954 | pants = Instance.new("Pants", bg1)
| |
| 955 | pants.PantsTemplate = "http://www.roblox.com/asset/?id=412444864" | |
| 956 | end | |
| 957 | end | |
| 958 | ||
| 959 | for _,c in pairs(bg2:GetChildren()) do | |
| 960 | if c:IsA('Pants') then
| |
| 961 | c:Destroy() | |
| 962 | pants = Instance.new("Pants", bg2)
| |
| 963 | pants.PantsTemplate = "http://www.roblox.com/asset/?id=412444864" | |
| 964 | end | |
| 965 | end | |
| 966 | ||
| 967 | for _,c in pairs(bg1:GetChildren()) do | |
| 968 | if c:IsA('Shirt') then
| |
| 969 | c:Destroy() | |
| 970 | shirt = Instance.new("Shirt", bg1)
| |
| 971 | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=108783381" | |
| 972 | ||
| 973 | hair = Instance.new("Part", bg1.Head)
| |
| 974 | hairmesh = Instance.new("SpecialMesh", hair)
| |
| 975 | hairmesh.MeshId = "http://www.roblox.com/asset/?id=1028788" | |
| 976 | hairmesh.TextureId = "http://www.roblox.com/asset/?id=1028787" | |
| 977 | hairmesh.Scale = Vector3.new(1.1, 1.1, 1.1) | |
| 978 | hair.Transparency = 0 | |
| 979 | hair.CanCollide = false | |
| 980 | hair.Name = "plrhair" | |
| 981 | hair.Anchored = false | |
| 982 | clhair = hair:Clone() | |
| 983 | clhair.Parent = bg2.Head | |
| 984 | Weld = Instance.new("Weld", bg1)
| |
| 985 | Weld.Part0 = bg1.Head | |
| 986 | Weld.Part1 = hair | |
| 987 | Weld.C1 = CFrame.new(0, -0.50, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 988 | Weld = Instance.new("Weld", bg2)
| |
| 989 | Weld.Part0 = bg2.Head | |
| 990 | Weld.Part1 = clhair | |
| 991 | Weld.C1 = CFrame.new(0, -0.50, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 992 | ||
| 993 | ||
| 994 | hair3 = Instance.new("Part", bg1.Head)
| |
| 995 | hairmesh3 = Instance.new("SpecialMesh", hair3)
| |
| 996 | hairmesh3.MeshId = "http://www.roblox.com/asset/?id=30166087" | |
| 997 | hairmesh3.TextureId = "http://www.roblox.com/asset/?id=30166098" | |
| 998 | hairmesh3.Scale = Vector3.new(1, 1, 1) | |
| 999 | hair3.Transparency = 0 | |
| 1000 | hair3.CanCollide = false | |
| 1001 | hair3.Name = "plrhair" | |
| 1002 | hair3.Anchored = false | |
| 1003 | clhair3 = hair3:Clone() | |
| 1004 | clhair3.Parent = bg2.Head | |
| 1005 | Weld = Instance.new("Weld", bg1)
| |
| 1006 | Weld.Part0 = bg1.Head | |
| 1007 | Weld.Part1 = hair3 | |
| 1008 | Weld.C1 = CFrame.new(0, -0.10, 0.3)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1009 | Weld = Instance.new("Weld", bg2)
| |
| 1010 | Weld.Part0 = bg2.Head | |
| 1011 | Weld.Part1 = clhair3 | |
| 1012 | Weld.C1 = CFrame.new(0, -0.10, 0.3)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1013 | ||
| 1014 | brick = Instance.new("Part")
| |
| 1015 | brick.CanCollide = false | |
| 1016 | brick.Anchored = true | |
| 1017 | brick.CFrame = bg1.Torso.CFrame | |
| 1018 | brick.Transparency = 1 | |
| 1019 | brick.Parent = game.Workspace | |
| 1020 | brick2 = Instance.new("Part")
| |
| 1021 | brick2.CanCollide = false | |
| 1022 | brick2.Anchored = true | |
| 1023 | brick2.CFrame = bg2.Torso.CFrame | |
| 1024 | brick2.Transparency = 1 | |
| 1025 | brick2.Parent = game.Workspace | |
| 1026 | local sou = Instance.new("Sound")
| |
| 1027 | sou.Pitch = 1 | |
| 1028 | sou.Volume = 1 | |
| 1029 | sou.SoundId = "rbxassetid://722960601" | |
| 1030 | sou.Parent = bg1.Torso | |
| 1031 | sou:Play() | |
| 1032 | local pe = Instance.new("ParticleEmitter")
| |
| 1033 | pe.Acceleration = Vector3.new(0, 8, 0) | |
| 1034 | pe.Lifetime = NumberRange.new(1, 1.5) | |
| 1035 | pe.Rate = 20000 | |
| 1036 | pe.RotSpeed = NumberRange.new(-30, 30) | |
| 1037 | pe.Rotation = NumberRange.new(0, 360) | |
| 1038 | pe.Size = NumberSequence.new({
| |
| 1039 | NumberSequenceKeypoint.new(0, 4.38, 0), | |
| 1040 | NumberSequenceKeypoint.new(0.672, 4.14, 0), | |
| 1041 | NumberSequenceKeypoint.new(1, 1.48, 0) | |
| 1042 | }) | |
| 1043 | pe.Texture = "rbxassetid://244221440" | |
| 1044 | pe.Transparency = NumberSequence.new({
| |
| 1045 | NumberSequenceKeypoint.new(0, 0, 0), | |
| 1046 | NumberSequenceKeypoint.new(0.529, 0.3, 0), | |
| 1047 | NumberSequenceKeypoint.new(1, 1, 1) | |
| 1048 | }) | |
| 1049 | pe.ZOffset = 5 | |
| 1050 | pe.VelocitySpread = 360 | |
| 1051 | pe.Parent = brick | |
| 1052 | pe.Enabled = true | |
| 1053 | clpe = pe:Clone() | |
| 1054 | clpe.Parent = brick2 | |
| 1055 | wait(0.25) | |
| 1056 | pe.Enabled = false | |
| 1057 | clpe.Enabled = false | |
| 1058 | while wait() do | |
| 1059 | if not sou.IsPlaying then | |
| 1060 | sou:Destroy() | |
| 1061 | end | |
| 1062 | end | |
| 1063 | end | |
| 1064 | end | |
| 1065 | end | |
| 1066 | ||
| 1067 | if say == "transform, 1" then | |
| 1068 | bg1.Head.face.Texture = "http://www.roblox.com/asset/?id=20612916" | |
| 1069 | bg2.Head.face.Texture = "http://www.roblox.com/asset/?id=20612916" | |
| 1070 | ||
| 1071 | ||
| 1072 | a = bg1.Head:getChildren() | |
| 1073 | for i = 1, #a do | |
| 1074 | if a[i].className == "Part" then | |
| 1075 | a[i]:Destroy() | |
| 1076 | end | |
| 1077 | end | |
| 1078 | ||
| 1079 | b = bg2.Head:getChildren() | |
| 1080 | for i = 1, #b do | |
| 1081 | if b[i].className == "Part" then | |
| 1082 | b[i]:Destroy() | |
| 1083 | end | |
| 1084 | end | |
| 1085 | ||
| 1086 | for _,c in pairs(bg2:GetChildren()) do | |
| 1087 | if c:IsA('Shirt') then
| |
| 1088 | c:Destroy() | |
| 1089 | shirt = Instance.new("Shirt", bg2)
| |
| 1090 | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=47740174" | |
| 1091 | end | |
| 1092 | end | |
| 1093 | ||
| 1094 | for _,c in pairs(bg1:GetChildren()) do | |
| 1095 | if c:IsA('Pants') then
| |
| 1096 | c:Destroy() | |
| 1097 | pants = Instance.new("Pants", bg1)
| |
| 1098 | pants.PantsTemplate = "http://www.roblox.com/asset/?id=132066612" | |
| 1099 | end | |
| 1100 | end | |
| 1101 | ||
| 1102 | for _,c in pairs(bg2:GetChildren()) do | |
| 1103 | if c:IsA('Pants') then
| |
| 1104 | c:Destroy() | |
| 1105 | pants = Instance.new("Pants", bg2)
| |
| 1106 | pants.PantsTemplate = "http://www.roblox.com/asset/?id=132066612" | |
| 1107 | end | |
| 1108 | end | |
| 1109 | ||
| 1110 | for _,c in pairs(bg1:GetChildren()) do | |
| 1111 | if c:IsA('Shirt') then
| |
| 1112 | c:Destroy() | |
| 1113 | shirt = Instance.new("Shirt", bg1)
| |
| 1114 | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=47740174" | |
| 1115 | end | |
| 1116 | end | |
| 1117 | ||
| 1118 | ||
| 1119 | brick = Instance.new("Part")
| |
| 1120 | brick.CanCollide = false | |
| 1121 | brick.Anchored = true | |
| 1122 | brick.CFrame = bg1.Torso.CFrame | |
| 1123 | brick.Transparency = 1 | |
| 1124 | brick.Parent = game.Workspace | |
| 1125 | brick2 = Instance.new("Part")
| |
| 1126 | brick2.CanCollide = false | |
| 1127 | brick2.Anchored = true | |
| 1128 | brick2.CFrame = bg2.Torso.CFrame | |
| 1129 | brick2.Transparency = 1 | |
| 1130 | brick2.Parent = game.Workspace | |
| 1131 | local sou = Instance.new("Sound")
| |
| 1132 | sou.Pitch = 1 | |
| 1133 | sou.Volume = 1 | |
| 1134 | sou.SoundId = "rbxassetid://722960601" | |
| 1135 | sou.Parent = bg1.Torso | |
| 1136 | sou:Play() | |
| 1137 | local pe = Instance.new("ParticleEmitter")
| |
| 1138 | pe.Acceleration = Vector3.new(0, 8, 0) | |
| 1139 | pe.Lifetime = NumberRange.new(1, 1.5) | |
| 1140 | pe.Rate = 20000 | |
| 1141 | pe.RotSpeed = NumberRange.new(-30, 30) | |
| 1142 | pe.Rotation = NumberRange.new(0, 360) | |
| 1143 | pe.Size = NumberSequence.new({
| |
| 1144 | NumberSequenceKeypoint.new(0, 4.38, 0), | |
| 1145 | NumberSequenceKeypoint.new(0.672, 4.14, 0), | |
| 1146 | NumberSequenceKeypoint.new(1, 1.48, 0) | |
| 1147 | }) | |
| 1148 | pe.Texture = "rbxassetid://244221440" | |
| 1149 | pe.Transparency = NumberSequence.new({
| |
| 1150 | NumberSequenceKeypoint.new(0, 0, 0), | |
| 1151 | NumberSequenceKeypoint.new(0.529, 0.3, 0), | |
| 1152 | NumberSequenceKeypoint.new(1, 1, 1) | |
| 1153 | }) | |
| 1154 | pe.ZOffset = 5 | |
| 1155 | pe.VelocitySpread = 360 | |
| 1156 | pe.Parent = brick | |
| 1157 | pe.Enabled = true | |
| 1158 | clpe = pe:Clone() | |
| 1159 | clpe.Parent = brick2 | |
| 1160 | wait(0.25) | |
| 1161 | pe.Enabled = false | |
| 1162 | clpe.Enabled = false | |
| 1163 | while wait() do | |
| 1164 | if not sou.IsPlaying then | |
| 1165 | sou:Destroy() | |
| 1166 | end | |
| 1167 | end | |
| 1168 | end | |
| 1169 | ||
| 1170 | if say == "transform, 7" then | |
| 1171 | bg1.Head.face.Texture = "http://www.roblox.com/asset/?id=119839939" | |
| 1172 | bg2.Head.face.Texture = "http://www.roblox.com/asset/?id=119839939" | |
| 1173 | ||
| 1174 | a = bg1.Head:getChildren() | |
| 1175 | for i = 1, #a do | |
| 1176 | if a[i].className == "Part" then | |
| 1177 | a[i]:Destroy() | |
| 1178 | end | |
| 1179 | end | |
| 1180 | ||
| 1181 | b = bg2.Head:getChildren() | |
| 1182 | for i = 1, #b do | |
| 1183 | if b[i].className == "Part" then | |
| 1184 | b[i]:Destroy() | |
| 1185 | end | |
| 1186 | end | |
| 1187 | ||
| 1188 | for _,c in pairs(bg2:GetChildren()) do | |
| 1189 | if c:IsA('Shirt') then
| |
| 1190 | c:Destroy() | |
| 1191 | shirt = Instance.new("Shirt", bg2)
| |
| 1192 | shirt.ShirtTemplate = "rbxassetid://575169492" | |
| 1193 | end | |
| 1194 | end | |
| 1195 | ||
| 1196 | for _,c in pairs(bg1:GetChildren()) do | |
| 1197 | if c:IsA('Pants') then
| |
| 1198 | c:Destroy() | |
| 1199 | pants = Instance.new("Pants", bg1)
| |
| 1200 | pants.PantsTemplate = "rbxassetid://768690244" | |
| 1201 | end | |
| 1202 | end | |
| 1203 | ||
| 1204 | for _,c in pairs(bg2:GetChildren()) do | |
| 1205 | if c:IsA('Pants') then
| |
| 1206 | c:Destroy() | |
| 1207 | pants = Instance.new("Pants", bg2)
| |
| 1208 | pants.PantsTemplate = "rbxassetid://768690244" | |
| 1209 | end | |
| 1210 | end | |
| 1211 | ||
| 1212 | for _,c in pairs(bg1:GetChildren()) do | |
| 1213 | if c:IsA('Shirt') then
| |
| 1214 | c:Destroy() | |
| 1215 | shirt = Instance.new("Shirt", bg1)
| |
| 1216 | shirt.ShirtTemplate = "rbxassetid://575169492" | |
| 1217 | end | |
| 1218 | end | |
| 1219 | ||
| 1220 | hair = Instance.new("Part", bg1.Head)
| |
| 1221 | hairmesh = Instance.new("SpecialMesh", hair)
| |
| 1222 | hairmesh.MeshId = "http://www.roblox.com/asset/?id=14394711" | |
| 1223 | hairmesh.TextureId = "http://www.roblox.com/asset/?id=14394687" | |
| 1224 | hairmesh.Scale = Vector3.new(1, 0.95, 0.85) | |
| 1225 | hair.Transparency = 0 | |
| 1226 | hair.CanCollide = false | |
| 1227 | hair.Name = "plrhair" | |
| 1228 | hair.Anchored = false | |
| 1229 | clhair = hair:Clone() | |
| 1230 | clhair.Parent = bg2.Head | |
| 1231 | Weld = Instance.new("Weld", bg1)
| |
| 1232 | Weld.Part0 = bg1.Head | |
| 1233 | Weld.Part1 = hair | |
| 1234 | Weld.C1 = CFrame.new(0, -0.50, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1235 | Weld = Instance.new("Weld", bg2)
| |
| 1236 | Weld.Part0 = bg2.Head | |
| 1237 | Weld.Part1 = clhair | |
| 1238 | Weld.C1 = CFrame.new(0, -0.50, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1239 | ||
| 1240 | brick = Instance.new("Part")
| |
| 1241 | brick.CanCollide = false | |
| 1242 | brick.Anchored = true | |
| 1243 | brick.CFrame = bg1.Torso.CFrame | |
| 1244 | brick.Transparency = 1 | |
| 1245 | brick.Parent = game.Workspace | |
| 1246 | brick2 = Instance.new("Part")
| |
| 1247 | brick2.CanCollide = false | |
| 1248 | brick2.Anchored = true | |
| 1249 | brick2.CFrame = bg2.Torso.CFrame | |
| 1250 | brick2.Transparency = 1 | |
| 1251 | brick2.Parent = game.Workspace | |
| 1252 | local sou = Instance.new("Sound")
| |
| 1253 | sou.Pitch = 1 | |
| 1254 | sou.Volume = 1 | |
| 1255 | sou.SoundId = "rbxassetid://722960601" | |
| 1256 | sou.Parent = bg1.Torso | |
| 1257 | sou:Play() | |
| 1258 | local pe = Instance.new("ParticleEmitter")
| |
| 1259 | pe.Acceleration = Vector3.new(0, 8, 0) | |
| 1260 | pe.Lifetime = NumberRange.new(1, 1.5) | |
| 1261 | pe.Rate = 20000 | |
| 1262 | pe.RotSpeed = NumberRange.new(-30, 30) | |
| 1263 | pe.Rotation = NumberRange.new(0, 360) | |
| 1264 | pe.Size = NumberSequence.new({
| |
| 1265 | NumberSequenceKeypoint.new(0, 4.38, 0), | |
| 1266 | NumberSequenceKeypoint.new(0.672, 4.14, 0), | |
| 1267 | NumberSequenceKeypoint.new(1, 1.48, 0) | |
| 1268 | }) | |
| 1269 | pe.Texture = "rbxassetid://244221440" | |
| 1270 | pe.Transparency = NumberSequence.new({
| |
| 1271 | NumberSequenceKeypoint.new(0, 0, 0), | |
| 1272 | NumberSequenceKeypoint.new(0.529, 0.3, 0), | |
| 1273 | NumberSequenceKeypoint.new(1, 1, 1) | |
| 1274 | }) | |
| 1275 | pe.ZOffset = 5 | |
| 1276 | pe.VelocitySpread = 360 | |
| 1277 | pe.Parent = brick | |
| 1278 | pe.Enabled = true | |
| 1279 | clpe = pe:Clone() | |
| 1280 | clpe.Parent = brick2 | |
| 1281 | wait(0.25) | |
| 1282 | pe.Enabled = false | |
| 1283 | clpe.Enabled = false | |
| 1284 | while wait() do | |
| 1285 | if not sou.IsPlaying then | |
| 1286 | sou:Destroy() | |
| 1287 | end | |
| 1288 | end | |
| 1289 | end | |
| 1290 | ||
| 1291 | if say == "transform, 6" then | |
| 1292 | bg1.Head.face.Texture = "http://www.roblox.com/asset/?id=7074749" | |
| 1293 | bg2.Head.face.Texture = "http://www.roblox.com/asset/?id=7074749" | |
| 1294 | ||
| 1295 | a = bg1.Head:getChildren() | |
| 1296 | for i = 1, #a do | |
| 1297 | if a[i].className == "Part" then | |
| 1298 | a[i]:Destroy() | |
| 1299 | end | |
| 1300 | end | |
| 1301 | ||
| 1302 | b = bg2.Head:getChildren() | |
| 1303 | for i = 1, #b do | |
| 1304 | if b[i].className == "Part" then | |
| 1305 | b[i]:Destroy() | |
| 1306 | end | |
| 1307 | end | |
| 1308 | ||
| 1309 | for _,c in pairs(bg2:GetChildren()) do | |
| 1310 | if c:IsA('Shirt') then
| |
| 1311 | c:Destroy() | |
| 1312 | shirt = Instance.new("Shirt", bg2)
| |
| 1313 | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=4904066" | |
| 1314 | end | |
| 1315 | end | |
| 1316 | ||
| 1317 | for _,c in pairs(bg1:GetChildren()) do | |
| 1318 | if c:IsA('Pants') then
| |
| 1319 | c:Destroy() | |
| 1320 | pants = Instance.new("Pants", bg1)
| |
| 1321 | pants.PantsTemplate = "http://www.roblox.com/asset/?id=2577832" | |
| 1322 | end | |
| 1323 | end | |
| 1324 | ||
| 1325 | for _,c in pairs(bg2:GetChildren()) do | |
| 1326 | if c:IsA('Pants') then
| |
| 1327 | c:Destroy() | |
| 1328 | pants = Instance.new("Pants", bg2)
| |
| 1329 | pants.PantsTemplate = "http://www.roblox.com/asset/?id=2577832" | |
| 1330 | end | |
| 1331 | end | |
| 1332 | ||
| 1333 | for _,c in pairs(bg1:GetChildren()) do | |
| 1334 | if c:IsA('Shirt') then
| |
| 1335 | c:Destroy() | |
| 1336 | shirt = Instance.new("Shirt", bg1)
| |
| 1337 | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=4904066" | |
| 1338 | end | |
| 1339 | end | |
| 1340 | ||
| 1341 | ||
| 1342 | hair = Instance.new("Part", bg1.Head)
| |
| 1343 | hairmesh = Instance.new("SpecialMesh", hair)
| |
| 1344 | hairmesh.MeshId = "http://www.roblox.com/asset/?id=1286427" | |
| 1345 | hairmesh.TextureId = "http://www.roblox.com/asset/?id=1309894" | |
| 1346 | hairmesh.Scale = Vector3.new(1.1, 1.1, 1.1) | |
| 1347 | hair.Transparency = 0 | |
| 1348 | hair.CanCollide = false | |
| 1349 | hair.Name = "plrhair" | |
| 1350 | hair.Anchored = false | |
| 1351 | clhair = hair:Clone() | |
| 1352 | clhair.Parent = bg2.Head | |
| 1353 | Weld = Instance.new("Weld", bg1)
| |
| 1354 | Weld.Part0 = bg1.Head | |
| 1355 | Weld.Part1 = hair | |
| 1356 | Weld.C1 = CFrame.new(0, -0.10, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1357 | Weld = Instance.new("Weld", bg2)
| |
| 1358 | Weld.Part0 = bg2.Head | |
| 1359 | Weld.Part1 = clhair | |
| 1360 | Weld.C1 = CFrame.new(0, -0.10, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1361 | ||
| 1362 | ||
| 1363 | hair = Instance.new("Part", bg1.Head)
| |
| 1364 | hairmesh = Instance.new("SpecialMesh", hair)
| |
| 1365 | hairmesh.MeshId = "http://www.roblox.com/asset/?id=25648271" | |
| 1366 | hairmesh.TextureId = "http://www.roblox.com/asset/?id=28664001" | |
| 1367 | hairmesh.Scale = Vector3.new(1.3, 1.35, 1.3) | |
| 1368 | hair.Transparency = 0 | |
| 1369 | hair.CanCollide = false | |
| 1370 | hair.Name = "plrhair" | |
| 1371 | hair.Anchored = false | |
| 1372 | clhair = hair:Clone() | |
| 1373 | clhair.Parent = bg2.Head | |
| 1374 | Weld = Instance.new("Weld", bg1)
| |
| 1375 | Weld.Part0 = bg1.Head | |
| 1376 | Weld.Part1 = hair | |
| 1377 | Weld.C1 = CFrame.new(0, -0.60, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1378 | Weld = Instance.new("Weld", bg2)
| |
| 1379 | Weld.Part0 = bg2.Head | |
| 1380 | Weld.Part1 = clhair | |
| 1381 | Weld.C1 = CFrame.new(0, -0.60, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1382 | ||
| 1383 | brick = Instance.new("Part")
| |
| 1384 | brick.CanCollide = false | |
| 1385 | brick.Anchored = true | |
| 1386 | brick.CFrame = bg1.Torso.CFrame | |
| 1387 | brick.Transparency = 1 | |
| 1388 | brick.Parent = game.Workspace | |
| 1389 | brick2 = Instance.new("Part")
| |
| 1390 | brick2.CanCollide = false | |
| 1391 | brick2.Anchored = true | |
| 1392 | brick2.CFrame = bg2.Torso.CFrame | |
| 1393 | brick2.Transparency = 1 | |
| 1394 | brick2.Parent = game.Workspace | |
| 1395 | local sou = Instance.new("Sound")
| |
| 1396 | sou.Pitch = 1 | |
| 1397 | sou.Volume = 1 | |
| 1398 | sou.SoundId = "rbxassetid://722960601" | |
| 1399 | sou.Parent = bg1.Torso | |
| 1400 | sou:Play() | |
| 1401 | local pe = Instance.new("ParticleEmitter")
| |
| 1402 | pe.Acceleration = Vector3.new(0, 8, 0) | |
| 1403 | pe.Lifetime = NumberRange.new(1, 1.5) | |
| 1404 | pe.Rate = 20000 | |
| 1405 | pe.RotSpeed = NumberRange.new(-30, 30) | |
| 1406 | pe.Rotation = NumberRange.new(0, 360) | |
| 1407 | pe.Size = NumberSequence.new({
| |
| 1408 | NumberSequenceKeypoint.new(0, 4.38, 0), | |
| 1409 | NumberSequenceKeypoint.new(0.672, 4.14, 0), | |
| 1410 | NumberSequenceKeypoint.new(1, 1.48, 0) | |
| 1411 | }) | |
| 1412 | pe.Texture = "rbxassetid://244221440" | |
| 1413 | pe.Transparency = NumberSequence.new({
| |
| 1414 | NumberSequenceKeypoint.new(0, 0, 0), | |
| 1415 | NumberSequenceKeypoint.new(0.529, 0.3, 0), | |
| 1416 | NumberSequenceKeypoint.new(1, 1, 1) | |
| 1417 | }) | |
| 1418 | pe.ZOffset = 5 | |
| 1419 | pe.VelocitySpread = 360 | |
| 1420 | pe.Parent = brick | |
| 1421 | pe.Enabled = true | |
| 1422 | clpe = pe:Clone() | |
| 1423 | clpe.Parent = brick2 | |
| 1424 | wait(0.25) | |
| 1425 | pe.Enabled = false | |
| 1426 | clpe.Enabled = false | |
| 1427 | while wait() do | |
| 1428 | if not sou.IsPlaying then | |
| 1429 | sou:Destroy() | |
| 1430 | end | |
| 1431 | end | |
| 1432 | end | |
| 1433 | ||
| 1434 | if say == "transform, 5" then | |
| 1435 | bg1.Head.face.Texture = "http://www.roblox.com/asset/?id=20612916" | |
| 1436 | bg2.Head.face.Texture = "http://www.roblox.com/asset/?id=20612916" | |
| 1437 | ||
| 1438 | a = bg1.Head:getChildren() | |
| 1439 | for i = 1, #a do | |
| 1440 | if a[i].className == "Part" then | |
| 1441 | a[i]:Destroy() | |
| 1442 | end | |
| 1443 | end | |
| 1444 | ||
| 1445 | b = bg2.Head:getChildren() | |
| 1446 | for i = 1, #b do | |
| 1447 | if b[i].className == "Part" then | |
| 1448 | b[i]:Destroy() | |
| 1449 | end | |
| 1450 | end | |
| 1451 | ||
| 1452 | for _,c in pairs(bg2:GetChildren()) do | |
| 1453 | if c:IsA('Shirt') then
| |
| 1454 | c:Destroy() | |
| 1455 | shirt = Instance.new("Shirt", bg2)
| |
| 1456 | shirt.ShirtTemplate = "rbxassetid://146364138" | |
| 1457 | end | |
| 1458 | end | |
| 1459 | ||
| 1460 | for _,c in pairs(bg1:GetChildren()) do | |
| 1461 | if c:IsA('Pants') then
| |
| 1462 | c:Destroy() | |
| 1463 | pants = Instance.new("Pants", bg1)
| |
| 1464 | pants.PantsTemplate = "rbxassetid://195399271" | |
| 1465 | end | |
| 1466 | end | |
| 1467 | ||
| 1468 | for _,c in pairs(bg2:GetChildren()) do | |
| 1469 | if c:IsA('Pants') then
| |
| 1470 | c:Destroy() | |
| 1471 | pants = Instance.new("Pants", bg2)
| |
| 1472 | pants.PantsTemplate = "rbxassetid://195399271" | |
| 1473 | end | |
| 1474 | end | |
| 1475 | ||
| 1476 | for _,c in pairs(bg1:GetChildren()) do | |
| 1477 | if c:IsA('Shirt') then
| |
| 1478 | c:Destroy() | |
| 1479 | shirt = Instance.new("Shirt", bg1)
| |
| 1480 | shirt.ShirtTemplate = "rbxassetid://175602621" | |
| 1481 | end | |
| 1482 | end | |
| 1483 | ||
| 1484 | hair = Instance.new("Part", bg1.Head)
| |
| 1485 | hairmesh = Instance.new("SpecialMesh", hair)
| |
| 1486 | hairmesh.MeshId = "http://www.roblox.com/asset/?id=16190466" | |
| 1487 | hairmesh.TextureId = "http://www.roblox.com/asset/?id=59293792" | |
| 1488 | hairmesh.Scale = Vector3.new(1.1, 1.1, 1.1) | |
| 1489 | hair.Transparency = 0 | |
| 1490 | hair.CanCollide = false | |
| 1491 | hair.Name = "plrhair" | |
| 1492 | hair.Anchored = false | |
| 1493 | clhair = hair:Clone() | |
| 1494 | clhair.Parent = bg2.Head | |
| 1495 | clhair.Mesh.TextureId = "http://www.roblox.com/asset/?id=114723589" | |
| 1496 | clhair.Mesh.MeshId = "http://www.roblox.com/asset/?id=16101994" | |
| 1497 | clhair.Mesh.Scale = Vector3.new(1.02,1.02,1.02) | |
| 1498 | Weld = Instance.new("Weld", bg1)
| |
| 1499 | Weld.Part0 = bg1.Head | |
| 1500 | Weld.Part1 = hair | |
| 1501 | Weld.C1 = CFrame.new(0, -0.50, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1502 | Weld = Instance.new("Weld", bg2)
| |
| 1503 | Weld.Part0 = bg2.Head | |
| 1504 | Weld.Part1 = clhair | |
| 1505 | Weld.C1 = CFrame.new(0, -0.14, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1506 | ||
| 1507 | hair3 = Instance.new("Part", bg1.Head)
| |
| 1508 | hairmesh3 = Instance.new("SpecialMesh", hair3)
| |
| 1509 | hairmesh3.MeshId = "http://www.roblox.com/asset/?id=30166087" | |
| 1510 | hairmesh3.TextureId = "http://www.roblox.com/asset/?id=30166098" | |
| 1511 | hairmesh3.Scale = Vector3.new(1, 1, 1) | |
| 1512 | hair3.Transparency = 0 | |
| 1513 | hair3.CanCollide = false | |
| 1514 | hair3.Name = "plrhair" | |
| 1515 | hair3.Anchored = false | |
| 1516 | clhair3 = hair3:Clone() | |
| 1517 | clhair3.Parent = bg2.Head | |
| 1518 | Weld = Instance.new("Weld", bg1)
| |
| 1519 | Weld.Part0 = bg1.Head | |
| 1520 | Weld.Part1 = hair3 | |
| 1521 | Weld.C1 = CFrame.new(0, -0.10, 0.3)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1522 | Weld = Instance.new("Weld", bg2)
| |
| 1523 | Weld.Part0 = bg2.Head | |
| 1524 | Weld.Part1 = clhair3 | |
| 1525 | Weld.C1 = CFrame.new(0, -0.10, 0.3)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1526 | ||
| 1527 | brick = Instance.new("Part")
| |
| 1528 | brick.CanCollide = false | |
| 1529 | brick.Anchored = true | |
| 1530 | brick.CFrame = bg1.Torso.CFrame | |
| 1531 | brick.Transparency = 1 | |
| 1532 | brick.Parent = game.Workspace | |
| 1533 | brick2 = Instance.new("Part")
| |
| 1534 | brick2.CanCollide = false | |
| 1535 | brick2.Anchored = true | |
| 1536 | brick2.CFrame = bg2.Torso.CFrame | |
| 1537 | brick2.Transparency = 1 | |
| 1538 | brick2.Parent = game.Workspace | |
| 1539 | local sou = Instance.new("Sound")
| |
| 1540 | sou.Pitch = 1 | |
| 1541 | sou.Volume = 1 | |
| 1542 | sou.SoundId = "rbxassetid://722960601" | |
| 1543 | sou.Parent = bg1.Torso | |
| 1544 | sou:Play() | |
| 1545 | local pe = Instance.new("ParticleEmitter")
| |
| 1546 | pe.Acceleration = Vector3.new(0, 8, 0) | |
| 1547 | pe.Lifetime = NumberRange.new(1, 1.5) | |
| 1548 | pe.Rate = 20000 | |
| 1549 | pe.RotSpeed = NumberRange.new(-30, 30) | |
| 1550 | pe.Rotation = NumberRange.new(0, 360) | |
| 1551 | pe.Size = NumberSequence.new({
| |
| 1552 | NumberSequenceKeypoint.new(0, 4.38, 0), | |
| 1553 | NumberSequenceKeypoint.new(0.672, 4.14, 0), | |
| 1554 | NumberSequenceKeypoint.new(1, 1.48, 0) | |
| 1555 | }) | |
| 1556 | pe.Texture = "rbxassetid://244221440" | |
| 1557 | pe.Transparency = NumberSequence.new({
| |
| 1558 | NumberSequenceKeypoint.new(0, 0, 0), | |
| 1559 | NumberSequenceKeypoint.new(0.529, 0.3, 0), | |
| 1560 | NumberSequenceKeypoint.new(1, 1, 1) | |
| 1561 | }) | |
| 1562 | pe.ZOffset = 5 | |
| 1563 | pe.VelocitySpread = 360 | |
| 1564 | pe.Parent = brick | |
| 1565 | pe.Enabled = true | |
| 1566 | clpe = pe:Clone() | |
| 1567 | clpe.Parent = brick2 | |
| 1568 | wait(0.25) | |
| 1569 | pe.Enabled = false | |
| 1570 | clpe.Enabled = false | |
| 1571 | while wait() do | |
| 1572 | if not sou.IsPlaying then | |
| 1573 | sou:Destroy() | |
| 1574 | end | |
| 1575 | end | |
| 1576 | end | |
| 1577 | ||
| 1578 | ||
| 1579 | if say == "transform, 2" then | |
| 1580 | bg1.Head.face.Texture = "http://www.roblox.com/asset/?id=20612916" | |
| 1581 | bg2.Head.face.Texture = "http://www.roblox.com/asset/?id=20612916" | |
| 1582 | ||
| 1583 | a = bg1.Head:getChildren() | |
| 1584 | for i = 1, #a do | |
| 1585 | if a[i].className == "Part" then | |
| 1586 | a[i]:Destroy() | |
| 1587 | end | |
| 1588 | end | |
| 1589 | ||
| 1590 | b = bg2.Head:getChildren() | |
| 1591 | for i = 1, #b do | |
| 1592 | if b[i].className == "Part" then | |
| 1593 | b[i]:Destroy() | |
| 1594 | end | |
| 1595 | end | |
| 1596 | hair = Instance.new("Part", bg1.Head)
| |
| 1597 | hairmesh = Instance.new("SpecialMesh", hair)
| |
| 1598 | hairmesh.MeshId = "http://www.roblox.com/asset/?id=28035864" | |
| 1599 | hairmesh.TextureId = "http://www.roblox.com/asset/?id=28035854" | |
| 1600 | hairmesh.Scale = Vector3.new(1.03, 1.03, 0.98) | |
| 1601 | hair.Transparency = 0 | |
| 1602 | hair.CanCollide = false | |
| 1603 | hair.Name = "plrhair" | |
| 1604 | hair.Anchored = false | |
| 1605 | clhair = hair:Clone() | |
| 1606 | clhair.Parent = bg2.Head | |
| 1607 | Weld = Instance.new("Weld", bg1)
| |
| 1608 | Weld.Part0 = bg1.Head | |
| 1609 | Weld.Part1 = hair | |
| 1610 | Weld.C1 = CFrame.new(0, -0.50, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1611 | Weld = Instance.new("Weld", bg2)
| |
| 1612 | Weld.Part0 = bg2.Head | |
| 1613 | Weld.Part1 = clhair | |
| 1614 | Weld.C1 = CFrame.new(0, -0.50, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1615 | ||
| 1616 | hair3 = Instance.new("Part", bg1.Head)
| |
| 1617 | hairmesh3 = Instance.new("SpecialMesh", hair3)
| |
| 1618 | hairmesh3.MeshId = "http://www.roblox.com/asset/?id=30166087" | |
| 1619 | hairmesh3.TextureId = "http://www.roblox.com/asset/?id=30166098" | |
| 1620 | hairmesh3.Scale = Vector3.new(1, 1, 1) | |
| 1621 | hair3.Transparency = 0 | |
| 1622 | hair3.CanCollide = false | |
| 1623 | hair3.Name = "plrhair" | |
| 1624 | hair3.Anchored = false | |
| 1625 | clhair3 = hair3:Clone() | |
| 1626 | clhair3.Parent = bg2.Head | |
| 1627 | Weld = Instance.new("Weld", bg1)
| |
| 1628 | Weld.Part0 = bg1.Head | |
| 1629 | Weld.Part1 = hair3 | |
| 1630 | Weld.C1 = CFrame.new(0, -0.10, 0.3)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1631 | Weld = Instance.new("Weld", bg2)
| |
| 1632 | Weld.Part0 = bg2.Head | |
| 1633 | Weld.Part1 = clhair3 | |
| 1634 | Weld.C1 = CFrame.new(0, -0.10, 0.3)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1635 | ||
| 1636 | for _,c in pairs(bg1:GetChildren()) do | |
| 1637 | if c:IsA('Pants') then
| |
| 1638 | c:Destroy() | |
| 1639 | pants = Instance.new("Pants", bg1)
| |
| 1640 | pants.PantsTemplate = "http://www.roblox.com/asset/?id=747111515" | |
| 1641 | end | |
| 1642 | end | |
| 1643 | ||
| 1644 | for _,c in pairs(bg1:GetChildren()) do | |
| 1645 | if c:IsA('Shirt') then
| |
| 1646 | c:Destroy() | |
| 1647 | shirt = Instance.new("Shirt", bg1)
| |
| 1648 | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=153259531" | |
| 1649 | end | |
| 1650 | end | |
| 1651 | ||
| 1652 | for _,c in pairs(bg2:GetChildren()) do | |
| 1653 | if c:IsA('Pants') then
| |
| 1654 | c:Destroy() | |
| 1655 | pants = Instance.new("Pants", bg2)
| |
| 1656 | pants.PantsTemplate = "http://www.roblox.com/asset/?id=747111515" | |
| 1657 | end | |
| 1658 | end | |
| 1659 | ||
| 1660 | for _,c in pairs(bg2:GetChildren()) do | |
| 1661 | if c:IsA('Shirt') then
| |
| 1662 | c:Destroy() | |
| 1663 | shirt = Instance.new("Shirt", bg2)
| |
| 1664 | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=153259531" | |
| 1665 | end | |
| 1666 | end | |
| 1667 | ||
| 1668 | brick = Instance.new("Part")
| |
| 1669 | brick.CanCollide = false | |
| 1670 | brick.Anchored = true | |
| 1671 | brick.CFrame = bg1.Torso.CFrame | |
| 1672 | brick.Transparency = 1 | |
| 1673 | brick.Parent = game.Workspace | |
| 1674 | brick2 = Instance.new("Part")
| |
| 1675 | brick2.CanCollide = false | |
| 1676 | brick2.Anchored = true | |
| 1677 | brick2.CFrame = bg2.Torso.CFrame | |
| 1678 | brick2.Transparency = 1 | |
| 1679 | brick2.Parent = game.Workspace | |
| 1680 | local sou = Instance.new("Sound")
| |
| 1681 | sou.Pitch = 1 | |
| 1682 | sou.Volume = 1 | |
| 1683 | sou.SoundId = "rbxassetid://722960601" | |
| 1684 | sou.Parent = bg1.Torso | |
| 1685 | sou:Play() | |
| 1686 | local pe = Instance.new("ParticleEmitter")
| |
| 1687 | pe.Acceleration = Vector3.new(0, 8, 0) | |
| 1688 | pe.Lifetime = NumberRange.new(1, 1.5) | |
| 1689 | pe.Rate = 20000 | |
| 1690 | pe.RotSpeed = NumberRange.new(-30, 30) | |
| 1691 | pe.Rotation = NumberRange.new(0, 360) | |
| 1692 | pe.Size = NumberSequence.new({
| |
| 1693 | NumberSequenceKeypoint.new(0, 4.38, 0), | |
| 1694 | NumberSequenceKeypoint.new(0.672, 4.14, 0), | |
| 1695 | NumberSequenceKeypoint.new(1, 1.48, 0) | |
| 1696 | }) | |
| 1697 | pe.Texture = "rbxassetid://244221440" | |
| 1698 | pe.Transparency = NumberSequence.new({
| |
| 1699 | NumberSequenceKeypoint.new(0, 0, 0), | |
| 1700 | NumberSequenceKeypoint.new(0.529, 0.3, 0), | |
| 1701 | NumberSequenceKeypoint.new(1, 1, 1) | |
| 1702 | }) | |
| 1703 | pe.ZOffset = 5 | |
| 1704 | pe.VelocitySpread = 360 | |
| 1705 | pe.Parent = brick | |
| 1706 | pe.Enabled = true | |
| 1707 | clpe = pe:Clone() | |
| 1708 | clpe.Parent = brick2 | |
| 1709 | wait(0.25) | |
| 1710 | pe.Enabled = false | |
| 1711 | clpe.Enabled = false | |
| 1712 | while wait() do | |
| 1713 | if not sou.IsPlaying then | |
| 1714 | sou:Destroy() | |
| 1715 | end | |
| 1716 | end | |
| 1717 | end | |
| 1718 | ||
| 1719 | ||
| 1720 | if say == "guns, normalbullet" then | |
| 1721 | nvm5.Value = 0 | |
| 1722 | end | |
| 1723 | ||
| 1724 | if say == "guns, explodingbullet" then | |
| 1725 | nvm5.Value = 1 | |
| 1726 | end | |
| 1727 | ||
| 1728 | if say == "guns, smokebullet" then | |
| 1729 | nvm5.Value = 2 | |
| 1730 | end | |
| 1731 | ||
| 1732 | if say == "guns, out" then | |
| 1733 | nvm.Value = 1 | |
| 1734 | Mouse = plr:GetMouse() | |
| 1735 | ||
| 1736 | Mouse.Button1Down:connect(function() | |
| 1737 | if nvm.Value == 1 then | |
| 1738 | randomg = math.random(1,2) | |
| 1739 | if randomg == 1 then | |
| 1740 | bullet = Instance.new('Part', game.Workspace)
| |
| 1741 | bullet.Touched:connect(function(hit) | |
| 1742 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 1743 | hit.Parent:BreakJoints() | |
| 1744 | end | |
| 1745 | end) | |
| 1746 | if nvm5.Value == 0 then | |
| 1747 | bullet.Anchored = false | |
| 1748 | bullet.CanCollide = false | |
| 1749 | bullet.Size = Vector3.new(0.2,0.2,0.2) | |
| 1750 | bullet.BrickColor = BrickColor.new('Really black')
| |
| 1751 | bullet.CFrame = Mouse.Hit | |
| 1752 | bullet.Name = 'Bullet' | |
| 1753 | game.Debris:AddItem(bullet, 1) | |
| 1754 | local shoot2 = Instance.new("Sound", bg2["Right Arm"])
| |
| 1755 | shoot2.SoundId="rbxassetid://180955656" | |
| 1756 | shoot2:Play() | |
| 1757 | bg1.Torso.CFrame = CFrame.new(bg1.Torso.Position, Mouse.Hit.p) | |
| 1758 | end | |
| 1759 | ||
| 1760 | if nvm5.Value == 1 then | |
| 1761 | bullet.CFrame = Mouse.Hit | |
| 1762 | local Ex = Instance.new("Explosion", Workspace)
| |
| 1763 | Ex.BlastRadius = 16 | |
| 1764 | Ex.DestroyJointRadiusPercent = 0.5 | |
| 1765 | Ex.Position = Mouse.Hit.p | |
| 1766 | bullet.Anchored = false | |
| 1767 | bullet.CanCollide = false | |
| 1768 | bullet.Size = Vector3.new(0.2,0.2,0.2) | |
| 1769 | bullet.BrickColor = BrickColor.new('Really black')
| |
| 1770 | bullet.Name = 'Bullet' | |
| 1771 | game.Debris:AddItem(bullet, 1) | |
| 1772 | local shoot2 = Instance.new("Sound", bg2["Right Arm"])
| |
| 1773 | shoot2.SoundId="rbxassetid://180955656" | |
| 1774 | shoot2:Play() | |
| 1775 | bg1.Torso.CFrame = CFrame.new(bg1.Torso.Position, Mouse.Hit.p) | |
| 1776 | end | |
| 1777 | ||
| 1778 | ||
| 1779 | if nvm5.Value == 2 then | |
| 1780 | bullet.CFrame = Mouse.Hit | |
| 1781 | x1 = Instance.new("Smoke", bullet)
| |
| 1782 | x1.Color = Color3.new(0.596078, 0.596078, 0.596078) | |
| 1783 | x1.Opacity = 0.89999997615814 | |
| 1784 | x1.RiseVelocity = 20 | |
| 1785 | x1.Size = 45 | |
| 1786 | bullet.Anchored = false | |
| 1787 | bullet.CanCollide = false | |
| 1788 | bullet.Size = Vector3.new(0.2,0.2,0.2) | |
| 1789 | bullet.BrickColor = BrickColor.new('Really black')
| |
| 1790 | bullet.Name = 'Bullet' | |
| 1791 | game.Debris:AddItem(bullet, 5) | |
| 1792 | local shoot2 = Instance.new("Sound", bg2["Right Arm"])
| |
| 1793 | shoot2.SoundId="rbxassetid://180955656" | |
| 1794 | shoot2:Play() | |
| 1795 | bg1.Torso.CFrame = CFrame.new(bg1.Torso.Position, Mouse.Hit.p) | |
| 1796 | end | |
| 1797 | ||
| 1798 | end | |
| 1799 | if randomg == 2 then | |
| 1800 | bullet = Instance.new('Part', game.Workspace)
| |
| 1801 | bullet.Touched:connect(function(hit) | |
| 1802 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 1803 | hit.Parent:BreakJoints() | |
| 1804 | end | |
| 1805 | end) | |
| 1806 | if nvm5.Value == 0 then | |
| 1807 | bullet.Anchored = false | |
| 1808 | bullet.CanCollide = false | |
| 1809 | bullet.Size = Vector3.new(0.2,0.2,0.2) | |
| 1810 | bullet.BrickColor = BrickColor.new('Really black')
| |
| 1811 | bullet.CFrame = Mouse.Hit | |
| 1812 | bullet.Name = 'Bullet' | |
| 1813 | game.Debris:AddItem(bullet, 1) | |
| 1814 | local shoot2 = Instance.new("Sound", bg2["Right Arm"])
| |
| 1815 | shoot2.SoundId="rbxassetid://180955656" | |
| 1816 | shoot2:Play() | |
| 1817 | bg2.Torso.CFrame = CFrame.new(bg2.Torso.Position, Mouse.Hit.p) | |
| 1818 | end | |
| 1819 | ||
| 1820 | if nvm5.Value == 1 then | |
| 1821 | bullet.CFrame = Mouse.Hit | |
| 1822 | local Ex = Instance.new("Explosion", Workspace)
| |
| 1823 | Ex.BlastRadius = 16 | |
| 1824 | Ex.DestroyJointRadiusPercent = 0.5 | |
| 1825 | Ex.Position = Mouse.Hit.p | |
| 1826 | bullet.Anchored = false | |
| 1827 | bullet.CanCollide = false | |
| 1828 | bullet.Size = Vector3.new(0.2,0.2,0.2) | |
| 1829 | bullet.BrickColor = BrickColor.new('Really black')
| |
| 1830 | bullet.Name = 'Bullet' | |
| 1831 | game.Debris:AddItem(bullet, 1) | |
| 1832 | local shoot2 = Instance.new("Sound", bg2["Right Arm"])
| |
| 1833 | shoot2.SoundId="rbxassetid://180955656" | |
| 1834 | shoot2:Play() | |
| 1835 | bg2.Torso.CFrame = CFrame.new(bg2.Torso.Position, Mouse.Hit.p) | |
| 1836 | end | |
| 1837 | ||
| 1838 | if nvm5.Value == 2 then | |
| 1839 | bullet.CFrame = Mouse.Hit | |
| 1840 | x1 = Instance.new("Smoke", bullet)
| |
| 1841 | x1.Color = Color3.new(0.596078, 0.596078, 0.596078) | |
| 1842 | x1.Opacity = 0.89999997615814 | |
| 1843 | x1.RiseVelocity = 20 | |
| 1844 | x1.Size = 45 | |
| 1845 | bullet.Anchored = false | |
| 1846 | bullet.CanCollide = false | |
| 1847 | bullet.Size = Vector3.new(0.2,0.2,0.2) | |
| 1848 | bullet.BrickColor = BrickColor.new('Really black')
| |
| 1849 | bullet.Name = 'Bullet' | |
| 1850 | game.Debris:AddItem(bullet, 50) | |
| 1851 | local shoot2 = Instance.new("Sound", bg2["Right Arm"])
| |
| 1852 | shoot2.SoundId="rbxassetid://180955656" | |
| 1853 | shoot2:Play() | |
| 1854 | bg2.Torso.CFrame = CFrame.new(bg2.Torso.Position, Mouse.Hit.p) | |
| 1855 | wait(4) | |
| 1856 | x1.Enabled = false | |
| 1857 | end | |
| 1858 | ||
| 1859 | end | |
| 1860 | end | |
| 1861 | end) | |
| 1862 | ||
| 1863 | part1 = Instance.new("Part")
| |
| 1864 | part1.Parent = char | |
| 1865 | part1.Transparency = 0 | |
| 1866 | part1.BrickColor = BrickColor.new('Really black')
| |
| 1867 | part1.TopSurface = 0 | |
| 1868 | part1.BottomSurface = 0 | |
| 1869 | part1.CanCollide = false | |
| 1870 | part1.Anchored = false | |
| 1871 | gun = Instance.new("SpecialMesh", part1)
| |
| 1872 | gun.MeshId = "rbxassetid://4372594" | |
| 1873 | gun.Scale = Vector3.new(1, 1, 1) | |
| 1874 | part1.CFrame = bg1["Right Arm"].CFrame * CFrame.new(0, 1, 1.75) | |
| 1875 | Weld5 = Instance.new("Weld", bg1)
| |
| 1876 | Weld5.Part0 = bg1["Right Arm"] | |
| 1877 | Weld5.Part1 = part1 | |
| 1878 | Weld5.C1 = CFrame.Angles(math.rad(-83),math.rad(180),math.rad(180)) * CFrame.new(0, 1.50, 0.2) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1879 | ||
| 1880 | part2 = Instance.new("Part")
| |
| 1881 | part2.Parent = char | |
| 1882 | part2.Transparency = 0 | |
| 1883 | part2.BrickColor = BrickColor.new('Really black')
| |
| 1884 | part2.TopSurface = 0 | |
| 1885 | part2.BottomSurface = 0 | |
| 1886 | part2.CanCollide = false | |
| 1887 | part2.Anchored = false | |
| 1888 | gun2 = Instance.new("SpecialMesh", part2)
| |
| 1889 | gun2.MeshId = "rbxassetid://4372594" | |
| 1890 | gun2.Scale = Vector3.new(1, 1, 1) | |
| 1891 | part2.CFrame = bg2["Right Arm"].CFrame * CFrame.new(0, 1, 1.75) | |
| 1892 | Weld10 = Instance.new("Weld", bg1)
| |
| 1893 | Weld10.Part0 = bg2["Right Arm"] | |
| 1894 | Weld10.Part1 = part2 | |
| 1895 | Weld10.C1 = CFrame.Angles(math.rad(-83),math.rad(180),math.rad(180)) * CFrame.new(0, 1.50, 0.2) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1896 | ||
| 1897 | charbg1 = bg1 | |
| 1898 | arm = {charbg1["Right Arm"]}
| |
| 1899 | charbg1.Torso["Right Shoulder"].Archivable = true | |
| 1900 | mc = charbg1.Torso["Right Shoulder"]:Clone() | |
| 1901 | weld = Instance.new("Weld", arm[1])
| |
| 1902 | weld.Part0 = charbg1.Torso | |
| 1903 | weld.Part1 = weld.Parent | |
| 1904 | weld.C1 = CFrame.new(-1.5,.5,.5)*CFrame.Angles(math.rad(-90),0,0) | |
| 1905 | ||
| 1906 | charbg2 = bg2 | |
| 1907 | arm = {charbg2["Right Arm"]}
| |
| 1908 | charbg2.Torso["Right Shoulder"].Archivable = true | |
| 1909 | mc3 = charbg2.Torso["Right Shoulder"]:Clone() | |
| 1910 | weld12 = Instance.new("Weld", arm[1])
| |
| 1911 | weld12.Part0 = charbg2.Torso | |
| 1912 | weld12.Part1 = weld12.Parent | |
| 1913 | weld12.C1 = CFrame.new(-1.5,.5,.5)*CFrame.Angles(math.rad(-90),0,0) | |
| 1914 | end | |
| 1915 | ||
| 1916 | if say == "dance," then | |
| 1917 | dance1 = math.random(1,7) | |
| 1918 | if dance1 == 1 then | |
| 1919 | local animation = Instance.new("Animation")
| |
| 1920 | animation.AnimationId = "rbxassetid://27789359" | |
| 1921 | local animTrack = bg1.Humanoid:LoadAnimation(animation) | |
| 1922 | animTrack:Play() | |
| 1923 | end | |
| 1924 | if dance1 == 2 then | |
| 1925 | local animation = Instance.new("Animation")
| |
| 1926 | animation.AnimationId = "rbxassetid://30196114" | |
| 1927 | local animTrack = bg1.Humanoid:LoadAnimation(animation) | |
| 1928 | animTrack:Play() | |
| 1929 | end | |
| 1930 | if dance1 == 3 then | |
| 1931 | local animation = Instance.new("Animation")
| |
| 1932 | animation.AnimationId = "rbxassetid://248263260" | |
| 1933 | local animTrack = bg1.Humanoid:LoadAnimation(animation) | |
| 1934 | animTrack:Play() | |
| 1935 | end | |
| 1936 | if dance1 == 4 then | |
| 1937 | local animation = Instance.new("Animation")
| |
| 1938 | animation.AnimationId = "rbxassetid://45834924" | |
| 1939 | local animTrack = bg1.Humanoid:LoadAnimation(animation) | |
| 1940 | animTrack:Play() | |
| 1941 | end | |
| 1942 | if dance1 == 5 then | |
| 1943 | local animation = Instance.new("Animation")
| |
| 1944 | animation.AnimationId = "rbxassetid://33796059" | |
| 1945 | local animTrack = bg1.Humanoid:LoadAnimation(animation) | |
| 1946 | animTrack:Play() | |
| 1947 | end | |
| 1948 | if dance1 == 6 then | |
| 1949 | local animation = Instance.new("Animation")
| |
| 1950 | animation.AnimationId = "rbxassetid://28488254" | |
| 1951 | local animTrack = bg1.Humanoid:LoadAnimation(animation) | |
| 1952 | animTrack:Play() | |
| 1953 | end | |
| 1954 | if dance1 == 7 then | |
| 1955 | local animation = Instance.new("Animation")
| |
| 1956 | animation.AnimationId = "rbxassetid://52155728" | |
| 1957 | local animTrack = bg1.Humanoid:LoadAnimation(animation) | |
| 1958 | animTrack:Play() | |
| 1959 | end | |
| 1960 | ||
| 1961 | dance2 = math.random(1,7) | |
| 1962 | if dance2 == 1 then | |
| 1963 | local animation = Instance.new("Animation")
| |
| 1964 | animation.AnimationId = "rbxassetid://27789359" | |
| 1965 | local animTrack = bg2.Humanoid:LoadAnimation(animation) | |
| 1966 | animTrack:Play() | |
| 1967 | end | |
| 1968 | if dance2 == 2 then | |
| 1969 | local animation = Instance.new("Animation")
| |
| 1970 | animation.AnimationId = "rbxassetid://30196114" | |
| 1971 | local animTrack = bg2.Humanoid:LoadAnimation(animation) | |
| 1972 | animTrack:Play() | |
| 1973 | end | |
| 1974 | if dance2 == 3 then | |
| 1975 | local animation = Instance.new("Animation")
| |
| 1976 | animation.AnimationId = "rbxassetid://248263260" | |
| 1977 | local animTrack = bg2.Humanoid:LoadAnimation(animation) | |
| 1978 | animTrack:Play() | |
| 1979 | end | |
| 1980 | if dance2 == 4 then | |
| 1981 | local animation = Instance.new("Animation")
| |
| 1982 | animation.AnimationId = "rbxassetid://45834924" | |
| 1983 | local animTrack = bg2.Humanoid:LoadAnimation(animation) | |
| 1984 | animTrack:Play() | |
| 1985 | end | |
| 1986 | if dance2 == 5 then | |
| 1987 | local animation = Instance.new("Animation")
| |
| 1988 | animation.AnimationId = "rbxassetid://33796059" | |
| 1989 | local animTrack = bg2.Humanoid:LoadAnimation(animation) | |
| 1990 | animTrack:Play() | |
| 1991 | end | |
| 1992 | if dance2 == 6 then | |
| 1993 | local animation = Instance.new("Animation")
| |
| 1994 | animation.AnimationId = "rbxassetid://28488254" | |
| 1995 | local animTrack = bg2.Humanoid:LoadAnimation(animation) | |
| 1996 | animTrack:Play() | |
| 1997 | end | |
| 1998 | if dance2 == 7 then | |
| 1999 | local animation = Instance.new("Animation")
| |
| 2000 | animation.AnimationId = "rbxassetid://52155728" | |
| 2001 | local animTrack = bg2.Humanoid:LoadAnimation(animation) | |
| 2002 | animTrack:Play() | |
| 2003 | end | |
| 2004 | end | |
| 2005 | ||
| 2006 | if say == "focus," then | |
| 2007 | local animation = Instance.new("Animation")
| |
| 2008 | animation.AnimationId = "rbxassetid://0" | |
| 2009 | local animTrack = bg1.Humanoid:LoadAnimation(animation) | |
| 2010 | animTrack:Play() | |
| 2011 | ||
| 2012 | local animation = Instance.new("Animation")
| |
| 2013 | animation.AnimationId = "rbxassetid://0" | |
| 2014 | local animTrack = bg2.Humanoid:LoadAnimation(animation) | |
| 2015 | animTrack:Play() | |
| 2016 | end | |
| 2017 | ||
| 2018 | if say == "guns, in" then | |
| 2019 | nvm.Value = 0 | |
| 2020 | weld:Destroy() | |
| 2021 | mc.Parent = charbg1.Torso | |
| 2022 | ||
| 2023 | Weld10:Destroy() | |
| 2024 | Weld5:Destroy() | |
| 2025 | part1:Destroy() | |
| 2026 | part2:Destroy() | |
| 2027 | ||
| 2028 | weld12:Destroy() | |
| 2029 | mc3.Parent = charbg2.Torso | |
| 2030 | end | |
| 2031 | ||
| 2032 | if say == "unride," then | |
| 2033 | nvm3.Value = 0 | |
| 2034 | nvm2.Value = 1 | |
| 2035 | if bg1.Head:FindFirstChild('noobweld') then
| |
| 2036 | bg1.Head.noobweld:Destroy() | |
| 2037 | end | |
| 2038 | if char.Head:FindFirstChild('firstweld') then
| |
| 2039 | char.Head.firstweld:Destroy() | |
| 2040 | end | |
| 2041 | bg2.Humanoid.WalkSpeed = 16 | |
| 2042 | bg1.Humanoid.Sit = false | |
| 2043 | bg2.Humanoid.Sit = false | |
| 2044 | char.Humanoid.Sit = false | |
| 2045 | end | |
| 2046 | ||
| 2047 | if say == "ride," then | |
| 2048 | Mouse = plr:GetMouse() | |
| 2049 | nvm2.Value = 0 | |
| 2050 | nvm3.Value = 1 | |
| 2051 | p = Instance.new('Weld', plr.Character.Head)
| |
| 2052 | p.Part0 = plr.Character:FindFirstChild("Torso") or plr.Character:FindFirstChild("UpperTorso")
| |
| 2053 | p.Part1 = bg1:FindFirstChild("Torso") or bg1:FindFirstChild("UpperTorso")
| |
| 2054 | p.Name = 'firstweld' | |
| 2055 | p.C0 = CFrame.new(0,-2.2,-.50) | |
| 2056 | a = Instance.new('Weld', bg1.Head)
| |
| 2057 | a.Part0 = bg1:FindFirstChild("Torso") or bg1:FindFirstChild("UpperTorso")
| |
| 2058 | a.Part1 = bg2:FindFirstChild("Torso") or bg2:FindFirstChild("UpperTorso")
| |
| 2059 | a.C0 = CFrame.new(0,-2.2,-.50) | |
| 2060 | a.Name = 'noobweld' | |
| 2061 | plr.Character.Humanoid.Sit = true | |
| 2062 | bg1.Humanoid.Sit = true | |
| 2063 | while wait() do | |
| 2064 | if nvm3.Value == 1 then | |
| 2065 | bg2.Humanoid:MoveTo(Mouse.Hit.p) | |
| 2066 | plr.Character.Humanoid.Sit = true | |
| 2067 | bg1.Humanoid.Sit = true | |
| 2068 | bg1.Humanoid.Health = bg1.Humanoid.Health + 100 | |
| 2069 | bg2.Humanoid.Health = bg2.Humanoid.Health + 100 | |
| 2070 | bg2.Humanoid.WalkSpeed = 65 | |
| 2071 | end | |
| 2072 | end | |
| 2073 | ||
| 2074 | if say == "spy," then | |
| 2075 | signal = Instance.new('Part', game.ReplicatedStorage)
| |
| 2076 | local ply = game.Players:GetPlayers()[math.random(game.Players.NumPlayers)] | |
| 2077 | bgchoose = math.random(1, 2) | |
| 2078 | if bgchoose == 1 then | |
| 2079 | ||
| 2080 | bg1.Head.face.Texture = "http://www.roblox.com/asset/?id=20722053" | |
| 2081 | ||
| 2082 | for _,c in pairs(bg1:GetChildren()) do | |
| 2083 | if c:IsA('Pants') then
| |
| 2084 | c:Destroy() | |
| 2085 | pants = Instance.new("Pants", bg1)
| |
| 2086 | pants.PantsTemplate = "http://www.roblox.com/asset/?id=144076759" | |
| 2087 | end | |
| 2088 | end | |
| 2089 | ||
| 2090 | for _,c in pairs(bg1:GetChildren()) do | |
| 2091 | if c:IsA('Shirt') then
| |
| 2092 | c:Destroy() | |
| 2093 | shirt = Instance.new("Shirt", bg1)
| |
| 2094 | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=382538058" | |
| 2095 | end | |
| 2096 | end | |
| 2097 | ||
| 2098 | hair = Instance.new("Part", bg1.Head)
| |
| 2099 | hairmesh = Instance.new("SpecialMesh", hair)
| |
| 2100 | hairmesh.MeshId = "rbxassetid://494950128" | |
| 2101 | hairmesh.Scale = Vector3.new(1, 1, 1) | |
| 2102 | hair.Transparency = 0 | |
| 2103 | hair.CanCollide = false | |
| 2104 | hair.Name = "plrhair" | |
| 2105 | hair.Anchored = false | |
| 2106 | hair.BrickColor = BrickColor.new("Really red")
| |
| 2107 | Weld = Instance.new("Weld", bg1)
| |
| 2108 | Weld.Part0 = bg1.Head | |
| 2109 | Weld.Part1 = hair | |
| 2110 | Weld.C1 = CFrame.new(0, -0.50, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 2111 | while wait() do | |
| 2112 | if game.ReplicatedStorage:FindFirstChild('Part') then
| |
| 2113 | bg1.Torso.CFrame = CFrame.new(bg1.Torso.Position, ply.Character.Torso.Position) | |
| 2114 | end | |
| 2115 | end | |
| 2116 | ||
| 2117 | if bgchoose == 2 then | |
| 2118 | ||
| 2119 | bg2.Head.face.Texture = "http://www.roblox.com/asset/?id=20418518" | |
| 2120 | ||
| 2121 | for _,c in pairs(bg2:GetChildren()) do | |
| 2122 | if c:IsA('Pants') then
| |
| 2123 | c:Destroy() | |
| 2124 | pants = Instance.new("Pants", bg2)
| |
| 2125 | pants.PantsTemplate = "http://www.roblox.com/asset/?id=442560707" | |
| 2126 | end | |
| 2127 | end | |
| 2128 | ||
| 2129 | for _,c in pairs(bg2:GetChildren()) do | |
| 2130 | if c:IsA('Shirt') then
| |
| 2131 | c:Destroy() | |
| 2132 | shirt = Instance.new("Shirt", bg2)
| |
| 2133 | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=442557590" | |
| 2134 | end | |
| 2135 | end | |
| 2136 | ||
| 2137 | hair1 = Instance.new("Part", bg2.Head)
| |
| 2138 | hairmesh1 = Instance.new("SpecialMesh", hair1)
| |
| 2139 | hairmesh1.MeshId = "rbxassetid://494950128" | |
| 2140 | hairmesh1.Scale = Vector3.new(1, 1, 1) | |
| 2141 | hair1.Transparency = 0 | |
| 2142 | hair1.CanCollide = false | |
| 2143 | hair1.Name = "plrhair" | |
| 2144 | hair1.Anchored = false | |
| 2145 | hair1.BrickColor = BrickColor.new("Really black")
| |
| 2146 | Weld1 = Instance.new("Weld", bg2)
| |
| 2147 | Weld1.Part0 = bg2.Head | |
| 2148 | Weld1.Part1 = hair1 | |
| 2149 | Weld1.C1 = CFrame.new(0, -0.50, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 2150 | signal2 = Instance.new('Part', game.ReplicatedStorage)
| |
| 2151 | signal2.Name = "Part2" | |
| 2152 | while wait() do | |
| 2153 | if game.ReplicatedStorage:FindFirstChild('Part2') then
| |
| 2154 | bg2.Torso.CFrame = CFrame.new(bg2.Torso.Position, ply.Character.Torso.Position) | |
| 2155 | end | |
| 2156 | end | |
| 2157 | end | |
| 2158 | end | |
| 2159 | end | |
| 2160 | end | |
| 2161 | end) | |
| 2162 | ||
| 2163 | game:GetService('RunService').RenderStepped:connect(function()
| |
| 2164 | if nvm2.Value == 1 then | |
| 2165 | bg1.Humanoid.Health = bg1.Humanoid.Health + 5000 | |
| 2166 | bg2.Humanoid.Health = bg2.Humanoid.Health + 5000 | |
| 2167 | bg1.Humanoid:MoveTo(bgpoint1.Position) | |
| 2168 | bg2.Humanoid:MoveTo(bgpoint2.Position) | |
| 2169 | if bg1.Humanoid.PlatformStand == true then | |
| 2170 | bg1.Humanoid.PlatformStand = false | |
| 2171 | end | |
| 2172 | if bg2.Humanoid.PlatformStand == true then | |
| 2173 | bg2.Humanoid.PlatformStand = false | |
| 2174 | end | |
| 2175 | if bg1.Humanoid.Sit == true then | |
| 2176 | bg1.Humanoid.Sit = false | |
| 2177 | end | |
| 2178 | if bg2.Humanoid.Sit == true then | |
| 2179 | bg2.Humanoid.Sit = false | |
| 2180 | end | |
| 2181 | for _,v in pairs(workspace:children()) do | |
| 2182 | if v:IsA('Model') and v:FindFirstChild("HumanoidRootPart") and v:FindFirstChildOfClass("Humanoid") then
| |
| 2183 | if (v.HumanoidRootPart.Position-bg1.Torso.Position).magnitude <=2 then | |
| 2184 | bg1.Humanoid.Jump=true | |
| 2185 | end | |
| 2186 | end | |
| 2187 | end | |
| 2188 | for _,v in pairs(workspace:children()) do | |
| 2189 | if v:IsA('Model') and v:FindFirstChild("HumanoidRootPart") and v:FindFirstChildOfClass("Humanoid") then
| |
| 2190 | if (v.HumanoidRootPart.Position-bg2.Torso.Position).magnitude <=2 then | |
| 2191 | bg2.Humanoid.Jump=true | |
| 2192 | end | |
| 2193 | end | |
| 2194 | end | |
| 2195 | if (game.Players.LocalPlayer.Character.Torso.Position - bg2.Torso.Position).magnitude <= 20 then | |
| 2196 | bg2.Humanoid.WalkSpeed = 16 | |
| 2197 | else | |
| 2198 | bg2.Humanoid.WalkSpeed = 55 | |
| 2199 | end | |
| 2200 | if (game.Players.LocalPlayer.Character.Torso.Position - bg1.Torso.Position).magnitude <= 20 then | |
| 2201 | bg1.Humanoid.WalkSpeed = 16 | |
| 2202 | else | |
| 2203 | bg1.Humanoid.WalkSpeed = 55 | |
| 2204 | end | |
| 2205 | end | |
| 2206 | end) |