Advertisement
popster12345

Untitled

Mar 4th, 2016
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.33 KB | None | 0 0
  1. --Separate Functions [776] AKA: chris7766
  2. --Noobs Take This Then Say They Made It
  3. --Way To Go Noob You Stole This Model!
  4.  
  5. player = nil
  6. pet = nil
  7. pettype = "Diamond"
  8. head = nil
  9. ab = true
  10. ns = nil
  11. name = "Someones Flying Pet"
  12. Bans = {}
  13. dead = false
  14. look = false
  15. follow = true
  16. talks = {"No.", "Fine", "I Like Pie", "The Game", "T_T", ":D", "Do You Like Pie", "Feed Me", "Are You Canadian eh", "I Spy The Base Plate!", "Noobs Must Die", "I Like Trains", "I Like Turtles"}
  17. admins = {"chris7766","fireflare54","DeathDude31","IPityTheFoo","Builderman","ROBLOX"}
  18.  
  19. function floorwire(to,from,colr)
  20. tpthtfw = Instance.new("Part")
  21. tpthtfw.Anchored = true
  22. tpthtfw.CFrame = CFrame.new(0,5000,0)
  23. tpthtfw.Parent = Workspace
  24. flwre = Instance.new("FloorWire")
  25. flwre.To = to
  26. flwre.From = from
  27. flwre.Color = colr
  28. flwre.Parent = tpthtfw
  29. game:GetService("Debris"):AddItem(tpthtfw,1)
  30. end
  31.  
  32.  
  33. function Touch(part)
  34. if part.Parent then
  35. player = game.Players:GetPlayerFromCharacter(part.Parent)
  36. if player then
  37. print("We Have a Player")
  38. print("Giving pet")
  39. ex = Instance.new("Explosion")
  40. ex.Position = script.Parent.Position
  41. ex.BlastPressure = 0
  42. ex.Parent = Workspace
  43. ns = script.tobuild:clone()
  44. noob = false
  45. if player:IsInGroup(355081) == true then
  46. noob = true
  47. game:GetService("Chat"):Chat(script.Parent,"The N00B Group Caik is not allowed to use chris7766's pet",Enum.ChatColor.Red)
  48. game:GetService("Chat"):Chat(script.Parent,"Sorry CAKEASSAULT im fighting Caik by myself",Enum.ChatColor.Blue)
  49. end
  50. if noob == false then StartPet() end
  51. end
  52. end
  53. end
  54.  
  55. function PetChat(msg)
  56. if pet.Parent ~= nil and head.Parent ~= nil then
  57. game:GetService("Chat"):Chat(head, msg, Enum.ChatColor.Green)
  58. end
  59. end
  60.  
  61. function MakePet()
  62. if dead == false then
  63. head = Instance.new("Part")
  64. head.formFactor = "Custom"
  65. head.Anchored = true
  66. head.Name = "Head"
  67. head.Size = Vector3.new(1,1,1)
  68. pet = Instance.new("Model")
  69. pet.Parent = Workspace
  70. head.Parent = pet
  71. hum = Instance.new("Humanoid")
  72. hum.MaxHealth = 0
  73. hum.Parent = pet
  74. mesh = Instance.new("SpecialMesh")
  75. mesh.Parent = head
  76. pet.Name = name
  77. if pettype == "Diamond" then
  78. head.Reflectance = 1
  79. head.BrickColor = BrickColor.Blue()
  80. mesh.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  81. end
  82. if pettype == "Duck" then
  83. head.BrickColor = BrickColor.Blue()
  84. mesh.MeshId = "http://www.roblox.com/asset/?id=9419831"
  85. mesh.TextureId = "http://www.roblox.com/asset/?id=9419827"
  86. end
  87. if pettype == "Orb" then
  88. mesh.MeshId = "http://www.roblox.com/asset/?id=34795798"
  89. mesh.TextureId = "http://www.roblox.com/asset/?id=34914385"
  90. f = Instance.new("Fire")
  91. f.Color = Color3.new(0,255,0)
  92. f.SecondaryColor = Color3.new(0,0,0)
  93. f.Size = 1
  94. f.Heat = 0
  95. f.Parent = head
  96. ff = Instance.new("Fire")
  97. ff.Size = 1
  98. ff.Heat = 0
  99. ff.Color = Color3.new(255,0,0)
  100. ff.SecondaryColor = Color3.new(0,0,0)
  101. ff.Parent = head
  102. fff = Instance.new("Fire")
  103. fff.Size = 1
  104. fff.Heat = 0
  105. fff.Color = Color3.new(0,0,255)
  106. fff.SecondaryColor = Color3.new(0,0,0)
  107. fff.Parent = head
  108. end
  109. if pettype == "PlayerOrb" then
  110. head.Reflectance = 1
  111. head.Size = Vector3.new(0.2,0.2,0.2)
  112. head.BrickColor = BrickColor.Yellow()
  113. mesh.Parent = nil
  114. fi = Instance.new("Fire")
  115. fi.Color = Color3.new(0,0,9)
  116. fi.SecondaryColor = Color3.new(255,255,255)
  117. fi.Parent = head
  118. end
  119. end
  120. end
  121.  
  122. function matchPlayer(str)
  123. result = nil
  124. players = game.Players:GetPlayers()
  125. for i,v in pairs(game.Players:GetPlayers()) do
  126. if (string.find(string.lower(v.Name), str) == 1) then
  127. if (result ~= nil) then return nil end
  128. result = v
  129. end
  130. end
  131. if str == "me" then result = player end
  132. return result
  133. end
  134.  
  135. function Chats(mrbucket)
  136. if dead == false then
  137. ------------------------------------
  138. msg = string.lower(mrbucket)
  139.  
  140. if string.find (mrbucket, "name ") == 1 then
  141. name = string.sub(mrbucket,5)
  142. pet:remove()
  143. end
  144.  
  145. if string.find (mrbucket, "script ") == 1 then
  146. sc = ns:clone()
  147. val = Instance.new("StringValue")
  148. val.Value = string.sub(mrbucket,7)
  149. val.Parent = sc
  150. sc.Parent = Workspace
  151. PetChat("On It")
  152. end
  153.  
  154. if (string.find(msg, "kill") == 1) then
  155. for word in msg:gmatch("%w+") do
  156. local p = matchPlayer(word)
  157. if p ~= nil and p.Character ~= nil and p.Character:FindFirstChild("Torso") ~= nil then
  158. p.Character:BreakJoints()
  159. floorwire(p.Character:FindFirstChild("Torso"),head,BrickColor.Yellow())
  160. PetChat("Pistol")
  161. end
  162. end
  163. end
  164.  
  165. if (string.find(msg, "eat") == 1) then
  166. for word in msg:gmatch("%w+") do
  167. local p = matchPlayer(word)
  168. if p ~= nil and p.Character then
  169. PetChat("Yummy Noobs")
  170. p.Character.Parent = nil
  171. end
  172. end
  173. end
  174.  
  175. if (string.find(msg, "kick") == 1) then
  176. for word in msg:gmatch("%w+") do
  177. local p = matchPlayer(word)
  178. if p ~= nil then
  179. PetChat("Go To nil")
  180. p.Parent = nil
  181. end
  182. end
  183. end
  184.  
  185. if (string.find(msg, "freeze") == 1) then
  186. for word in msg:gmatch("%w+") do
  187. local p = matchPlayer(word)
  188. if p ~= nil and p.Character ~= nil and p.Character:FindFirstChild("Head") ~= nil and p.Character:FindFirstChild("Torso") ~= nil then
  189. floorwire(p.Character:FindFirstChild("Torso"),head,BrickColor.Blue())
  190. ice = Instance.new("Part")
  191. ice.Size = Vector3.new(5,7.2,5)
  192. ice.Reflectance = 1
  193. ice.Transparency = 0.3
  194. ice.BrickColor = BrickColor.new(1013)
  195. ice.Anchored = true
  196. ice.Locked = true
  197. ice.CFrame = CFrame.new(p.Character.Torso.Position)
  198. ice.Parent = p.Character
  199. w = Instance.new("Weld")
  200. w.Name = "FreezeWeld"
  201. w.Parent = p.Character.Torso
  202. w.Part0 = p.Character.Torso
  203. w.Part1 = ice
  204. p.Character.Head.Anchored = true
  205. PetChat("in a block of ice you stay")
  206. end
  207. end
  208. end
  209.  
  210. if (string.find(msg, "thaw") == 1) then
  211. for word in msg:gmatch("%w+") do
  212. local p = matchPlayer(word)
  213. if p ~= nil and p.Character ~= nil and p.Character:FindFirstChild("Head") ~= nil and p.Character:FindFirstChild("Torso") ~= nil then
  214. floorwire(p.Character:FindFirstChild("Torso"),head,BrickColor.Red())
  215. if p.Character.Torso.FreezeWeld then p.Character.Torso.FreezeWeld:remove() end
  216. a = p.Character:GetChildren()
  217. for i = 1,#a do
  218. if a[i]:IsA("Part") then a[i].Anchored = false end
  219. end
  220. PetChat("Thawed")
  221. end
  222. end
  223. end
  224.  
  225. if (string.find(msg, "rgui") == 1) then
  226. for word in msg:gmatch("%w+") do
  227. local p = matchPlayer(word)
  228. if p ~= nil and p:FindFirstChild("PlayerGui") then
  229. floorwire(p.Character:FindFirstChild("Torso"),head,BrickColor.Red())
  230. guis = p.PlayerGui:GetChildren()
  231. for i = 1,#guis do
  232. guis[i]:remove()
  233. end
  234. PetChat("t_t")
  235. end
  236. end
  237. end
  238.  
  239. if (string.find(msg, "ff") == 1) then
  240. for word in msg:gmatch("%w+") do
  241. local p = matchPlayer(word)
  242. if p ~= nil and p.Character ~= nil and p.Character:FindFirstChild("Head") ~= nil and p.Character:FindFirstChild("Torso") ~= nil then
  243. floorwire(p.Character:FindFirstChild("Torso"),head,BrickColor.Blue())
  244. Instance.new("ForceField").Parent = p.Character
  245. PetChat("Protected")
  246. end
  247. end
  248. end
  249.  
  250. if (string.find(msg, "insert") == 1) then
  251. for word in msg:gmatch("%w+") do
  252. local p = matchPlayer(word)
  253. if p ~= nil and p.Character ~= nil and p:FindFirstChild("Backpack") ~= nil and p.Character:FindFirstChild("Torso") ~= nil then
  254. floorwire(p.Character:FindFirstChild("Torso"),head,BrickColor.Blue())
  255. game:GetService("InsertService"):LoadAsset(59441286):FindFirstChild("Insert Tool").Parent = p.Backpack
  256. PetChat("Gave Insert")
  257. end
  258. end
  259. end
  260.  
  261. if (string.find(msg, "jetpack") == 1) then
  262. for word in msg:gmatch("%w+") do
  263. local p = matchPlayer(word)
  264. if p ~= nil and p.Character ~= nil and p:FindFirstChild("Backpack") ~= nil and p.Character:FindFirstChild("Torso") ~= nil then
  265. floorwire(p.Character:FindFirstChild("Torso"),head,BrickColor.Blue())
  266. game:GetService("InsertService"):LoadAsset(64267118):FindFirstChild("chris7766's Jetpack").Parent = p.Backpack
  267. PetChat("Enjoy Your Flight")
  268. end
  269. end
  270. end
  271.  
  272. if (string.find(msg, "tele2me") == 1) then
  273. for word in msg:gmatch("%w+") do
  274. local p = matchPlayer(word)
  275. if p ~= nil and p.Character ~= nil and p.Character:FindFirstChild("Torso") ~= nil then
  276. floorwire(p.Character:FindFirstChild("Torso"),head,BrickColor.Blue())
  277. p.Character.Torso.CFrame = player.Character.Torso.CFrame + Vector3.new(0,5,0)
  278. PetChat("Teleportation")
  279. end
  280. end
  281. end
  282.  
  283. if (string.find(msg, "teleme2") == 1) then
  284. for word in msg:gmatch("%w+") do
  285. local p = matchPlayer(word)
  286. if p ~= nil and p.Character ~= nil and p.Character:FindFirstChild("Torso") ~= nil then
  287. floorwire(p.Character:FindFirstChild("Torso"),head,BrickColor.Blue())
  288. player.Character.Torso.CFrame = p.Character.Torso.CFrame + Vector3.new(0,5,0)
  289. PetChat("Teleportation")
  290. end
  291. end
  292. end
  293.  
  294. if (string.find(msg, "fire") == 1) then
  295. for word in msg:gmatch("%w+") do
  296. local p = matchPlayer(word)
  297. if p ~= nil and p.Character ~= nil and p.Character:FindFirstChild("Torso") ~= nil then
  298. floorwire(p.Character:FindFirstChild("Torso"),head,BrickColor.Red())
  299. f = Instance.new("Fire")
  300. f.Size = 5
  301. f.Heat = 10
  302. f.Parent = p.Character.Torso
  303. PetChat("Burn")
  304. end
  305. end
  306. end
  307.  
  308. if (string.find(msg, "sparkles") == 1) then
  309. for word in msg:gmatch("%w+") do
  310. local p = matchPlayer(word)
  311. if p ~= nil and p.Character ~= nil and p.Character:FindFirstChild("Torso") ~= nil then
  312. floorwire(p.Character:FindFirstChild("Torso"),head,BrickColor.Gray())
  313. f = Instance.new("Sparkles")
  314. f.Parent = p.Character.Torso
  315. PetChat("Sparkely")
  316. end
  317. end
  318. end
  319.  
  320. if (string.find(msg, "respawn") == 1) then
  321. for word in msg:gmatch("%w+") do
  322. local p = matchPlayer(word)
  323. if p ~= nil then
  324. mod = Instance.new("Model")
  325. prt = Instance.new("Part")
  326. prt.Name = "Head"
  327. prt.Parent = mod
  328. hum = Instance.new("Humanoid")
  329. hum.Parent = mod
  330. mod.Parent = Workspace
  331. p.Character = mod
  332. PetChat("Player Respawned")
  333. end
  334. end
  335. end
  336.  
  337. if msg == "insert2start" then
  338. PetChat("Inserted To Start")
  339. game:GetService("InsertService"):LoadAsset(59441286):FindFirstChild("Insert Tool").Parent = game:service("StarterPack")
  340. end
  341.  
  342.  
  343.  
  344. if msg == "stay" then
  345. follow = false
  346. PetChat("D:")
  347. end
  348.  
  349. if msg == "follow me" then
  350. follow = true
  351. PetChat(":D")
  352. end
  353.  
  354. if msg == "orb mesh" then Cmesh("Orb") end
  355. if msg == "diamond mesh" then Cmesh("Diamond") end
  356. if msg == "duck mesh" then Cmesh("Duck") end
  357. if msg == "player orb" then Cmesh("PlayerOrb") end
  358. if msg == "look at me" then look = true end
  359. if msg == "look ahead" then look = false end
  360. if msg == "antiban off" then
  361. PetChat("AntiBan Is Turned Off")
  362. ab = false
  363. end
  364. if msg == "antiban on" then
  365. PetChat("Armed im ready to shutdown the server when your gone")
  366. ab = true
  367. end
  368. if msg == "shutdown" then Shutit() end
  369. if msg == "kill pet" then
  370. dead = true
  371. follow = false
  372. pet:remove()
  373. ab = false
  374. end
  375.  
  376. if msg == "talk" then
  377. rdn = math.floor(math.random(1,#talks))
  378. PetChat(talks[rdn])
  379. end
  380.  
  381. if msg == "info" then PetChat("Flying pet Version 1.8 made by chris7766 [776] this Version is not stolen Anti Caik Installed") end
  382.  
  383.  
  384. if msg == "clear" then
  385. persons = game.Players:GetChildren()
  386. for i = 1,#persons do
  387. if persons[i].Character ~= nil then persons[i].Character:BreakJoints() end
  388. end
  389. wait(0.2)
  390. junk = Workspace:GetChildren()
  391. for i = 1,#junk do
  392. if junk[i].ClassName ~= "Terrain" then junk[i]:remove() else junk[i]:clear() end
  393. end
  394. base = Instance.new("SpawnLocation")
  395. base.BrickColor = BrickColor.Black()
  396. base.Size = Vector3.new(1000,1,1000)
  397. base.Anchored = true
  398. base.CFrame = CFrame.new(0,0,0)
  399. base.Locked = true
  400. base.Parent = Workspace
  401. end
  402.  
  403.  
  404.  
  405. end
  406. end
  407.  
  408.  
  409. function Cmesh(str)
  410. pettype = str
  411. pet:remove()
  412. end
  413.  
  414. function StartPet()
  415. script.Parent.Parent = nil --Anti Remove / Remove
  416. ab = true
  417. con = player.Chatted:connect(function(msg) Chats(msg) end)
  418. wait()
  419. name = player.Name.."'s Flying Pet"
  420. MakePet()
  421.  
  422. if player.Name == "chris7766" then PetChat("Chris! My Creator")
  423. elseif player.Name == "chris7767" then PetChat("Chris! My Creator")
  424. elseif player.Name == "chris7768" then PetChat("Chris! My Creator")
  425. elseif player.Name == "Scatman27NA" then PetChat("chris i know its u")
  426. elseif player.Name == "fireflare54" then PetChat("Your Epic")
  427. elseif player.Name == "DeathDude31" then PetChat("CAKE This Is Epic")
  428. elseif player.Name == "Player" then PetChat("Hi Tester")
  429. elseif player.Name == "Builderman350" then PetChat("Hi Mr. Nooby")
  430. elseif player.Name == "ROBLOX" then PetChat("Yo ROBLOX")
  431. elseif player.Name == "IPityTheFoo" then PetChat("OMG IPityTheFoo! chris Likes Your Models!")
  432. else PetChat("Hi Im Your New Pet")
  433. end
  434.  
  435. while true do--Start Checking
  436.  
  437. if player.Parent ~= nil then
  438. if pet.Parent ~= nil and head.Parent ~= nil then
  439. if player.Character then
  440. if player.Character:FindFirstChild("Torso") ~= nil then
  441. if player.Character.Parent == game:service("Lighting") then
  442. PetChat("You Were Punished I Got u Out")
  443. player.Character.Parent = Workspace
  444. player.Character:MakeJoints()
  445. end
  446. ---------------------------------------Bad Calculation
  447. if follow == true then
  448. a = head
  449. a.CFrame = player.Character.Torso.CFrame * CFrame.Angles(0,math.rad(90),0)
  450. a.CFrame = a.CFrame + a.CFrame.lookVector *-6
  451. a.CFrame = a.CFrame + Vector3.new(0,5,0)
  452. a.CFrame = a.CFrame * CFrame.Angles(0,math.rad(-90),0)
  453. if look == true then a.CFrame = CFrame.new(a.Position,player.Character.Torso.Position) end
  454. a.Anchored = true
  455. end
  456. else PetChat("You Died!")
  457. end
  458. else PetChat("Where Are You "..player.Name)
  459. end
  460. else MakePet()
  461. end
  462. else
  463. PetChat("Why Did You Leave Me "..player.Name)
  464. if ab == true then
  465. Shutit()
  466. end
  467. end
  468. wait()
  469. if dead == true then break end
  470. end
  471.  
  472. end
  473.  
  474. function Shutit()
  475. while true do
  476. a = game.Players:GetChildren()
  477. for i = 1,#a do
  478. a[i]:remove()
  479. end
  480. b = game.StarterPack:GetChildren()
  481. for i = 1,#b do
  482. b[i]:remove()
  483. end
  484. c = game.Workspace:GetChildren()
  485. for i = 1,#c do
  486. c[i]:remove()
  487. end
  488. wait(1)
  489. end
  490. end
  491.  
  492. script.Parent.Touched:connect(Touch)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement