ghostteen14

Untitled

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