zza

guard

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