Advertisement
iiHackerii

Untitled

Dec 24th, 2015
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --Flying admin pet Separate Functions [776] AKA: chris7766
  2. --Noobs Take This Then Say They Made It
  3. --Way To Go Noob You Stole This Model!
  4. --This Version Is For Scriptbuilder
  5. --and also. Don't make another "Caik Assistant" out of this
  6.  
  7. player = game:GetService("Players").TheOfficalNoob4788
  8. pet = nil
  9. pettype = "Diamond"
  10. head = nil
  11. ab = true
  12. ns = nil
  13. name = "Someones Flying Pet"
  14. Bans = {}
  15. dead = false
  16. look = false
  17. follow = true
  18. nubs = {"TheDukeOfYork","lolpkmaxo","niftyrobloxia","Builderman350"}
  19. talks = {"No.", "Fine", "I Like Pie", "The End Is Near", "U MAD BRO?", "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"}
  20. admins = {"peyquinn","fireflare54","DeathDude31","IPityTheFoo","Builderman","ROBLOX","brogan20","WaterInAMelon"}
  21.  
  22. function floorwire(to,from,colr)
  23. tpthtfw = Instance.new("Part")
  24. tpthtfw.Anchored = true
  25. tpthtfw.CFrame = CFrame.new(0,5000,0)
  26. tpthtfw.Parent = Workspace
  27. flwre = Instance.new("FloorWire")
  28. flwre.To = to
  29. flwre.From = from
  30. flwre.Color = colr
  31. flwre.Parent = tpthtfw
  32. game:GetService("Debris"):AddItem(tpthtfw,1)
  33. end
  34.  
  35.  
  36.  
  37. function PetChat(msg)
  38. if pet.Parent ~= nil and head.Parent ~= nil then
  39. game:GetService("Chat"):Chat(head, msg, Enum.ChatColor.Green)
  40. end
  41. end
  42.  
  43. function MakePet()
  44. if dead == false then
  45. head = Instance.new("Part")
  46. head.formFactor = "Custom"
  47. head.Anchored = true
  48. head.Name = "Head"
  49. head.Size = Vector3.new(1,1,1)
  50. pet = Instance.new("Model")
  51. pet.Parent = Workspace
  52. head.Parent = pet
  53. hum = Instance.new("Humanoid")
  54. hum.MaxHealth = 0
  55. hum.Parent = pet
  56. mesh = Instance.new("SpecialMesh")
  57. mesh.Parent = head
  58. pet.Name = name
  59. if pettype == "Diamond" then
  60. head.Reflectance = 1
  61. head.BrickColor = BrickColor.Blue()
  62. mesh.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  63. end
  64. if pettype == "Duck" then
  65. head.BrickColor = BrickColor.Blue()
  66. mesh.MeshId = "http://www.roblox.com/asset/?id=9419831"
  67. mesh.TextureId = "http://www.roblox.com/asset/?id=9419827"
  68. end
  69. if pettype == "Nyan" then
  70. mesh.Parent = nil
  71. head.Transparency = 1
  72. head.Size = Vector3.new(0.1,2.5,3)
  73. d = Instance.new("Decal")
  74. d.Texture = "http://www.roblox.com/asset/?id=58545010"
  75. d.Face = "Right"
  76. d.Parent = head
  77. db = Instance.new("Decal")
  78. db.Texture = "http://www.roblox.com/asset/?id=58545042"
  79. db.Face = "Left"
  80. db.Parent = head
  81. end
  82. if pettype == "Orb" then
  83. mesh.MeshId = "http://www.roblox.com/asset/?id=34795798"
  84. mesh.TextureId = "http://www.roblox.com/asset/?id=34914385"
  85. f = Instance.new("Fire")
  86. f.Color = Color3.new(0,255,0)
  87. f.SecondaryColor = Color3.new(0,0,0)
  88. f.Size = 1
  89. f.Heat = 0
  90. f.Parent = head
  91. ff = Instance.new("Fire")
  92. ff.Size = 1
  93. ff.Heat = 0
  94. ff.Color = Color3.new(255,0,0)
  95. ff.SecondaryColor = Color3.new(0,0,0)
  96. ff.Parent = head
  97. fff = Instance.new("Fire")
  98. fff.Size = 1
  99. fff.Heat = 0
  100. fff.Color = Color3.new(0,0,255)
  101. fff.SecondaryColor = Color3.new(0,0,0)
  102. fff.Parent = head
  103. end
  104. if pettype == "PlayerOrb" then
  105. head.Reflectance = 1
  106. head.Size = Vector3.new(0.2,0.2,0.2)
  107. head.BrickColor = BrickColor.Yellow()
  108. mesh.Parent = nil
  109. fi = Instance.new("Fire")
  110. fi.Color = Color3.new(0,0,9)
  111. fi.SecondaryColor = Color3.new(255,255,255)
  112. fi.Parent = head
  113. end
  114. end
  115. end
  116.  
  117. function Backuptalk(msg,yo)
  118. if msg == "listen" then
  119. PetChat("Yes")
  120. yo.Chatted:connect(function(msg) Chats(msg) end)
  121. end
  122. end
  123.  
  124. function playerjoin(hia)
  125. if hia.Name == "chris7766" then PetChat("Hi chris") end
  126. for i = 1,#admins do
  127. if hia.Name == admins[i] then hia.Chatted:connect(function(msg) Backuptalk(msg,hia) end) end
  128. end
  129. end
  130.  
  131. function matchPlayer(str)
  132. result = nil
  133. players = game.Players:GetPlayers()
  134. for i,v in pairs(game.Players:GetPlayers()) do
  135. if (string.find(string.lower(v.Name), str) == 1) then
  136. if (result ~= nil) then return nil end
  137. result = v
  138. end
  139. end
  140. if str == "me" then result = player end
  141. return result
  142. end
  143.  
  144. function Chats(mrbucket)
  145. if dead == false then
  146. ------------------------------------
  147. msg = string.lower(mrbucket)
  148.  
  149. if string.find (mrbucket, "name ") == 1 then
  150. name = string.sub(mrbucket,5)
  151. pet:remove()
  152. end
  153.  
  154. if string.find (mrbucket, "msg ") == 1 and player.Character ~= nil and player.Character:FindFirstChild("Torso") ~= nil then
  155. b = Instance.new("Part")
  156. b.Size = Vector3.new(1,1,1)
  157. b.Anchored = true
  158. b.Name = "Head"
  159. b.CFrame = player.Torso.CFrame
  160. m = Instance.new("Model")
  161. m.Name = string.sub(mrbucket,4)
  162. h = Instance.new("Humanoid")
  163. h.MaxHealth = 0
  164. h.Parent = m
  165. b.Parent = m
  166. m.Parent = Workspace
  167. end
  168.  
  169. if (string.find(msg, "kill") == 1) then
  170. for word in msg:gmatch("%w+") do
  171. local p = matchPlayer(word)
  172. if p ~= nil and p.Character ~= nil and p.Character:FindFirstChild("Torso") ~= nil then
  173. p.Character:BreakJoints()
  174. floorwire(p.Character:FindFirstChild("Torso"),head,BrickColor.Yellow())
  175. PetChat("Pistol")
  176. end
  177. end
  178. end
  179.  
  180. if (string.find(msg, "eat") == 1) then
  181. for word in msg:gmatch("%w+") do
  182. local p = matchPlayer(word)
  183. if p ~= nil and p.Character ~= nil then
  184. PetChat("Yummy Noobs")
  185. p.Character.Parent = nil
  186. end
  187. end
  188. end
  189.  
  190. if (string.find(msg, "kick") == 1) then
  191. for word in msg:gmatch("%w+") do
  192. local p = matchPlayer(word)
  193. if p ~= nil then
  194. PetChat("Go To nil")
  195. p.Parent = nil
  196. end
  197. end
  198. end
  199.  
  200. if (string.find(msg, "heal") == 1) then
  201. for word in msg:gmatch("%w+") do
  202. local p = matchPlayer(word)
  203. if p ~= nil and p.Character ~= nil and p.Character:FindFirstChild("Humanoid") ~= nil and p.Character:FindFirstChild("Humanoid"):IsA("Humanoid") then
  204. PetChat("Heal ya")
  205. p.Character:FindFirstChild("Humanoid").Health = p.Character:FindFirstChild("Humanoid").MaxHealth
  206. end
  207. end
  208. end
  209.  
  210.  
  211. if (string.find(msg, "godmode") == 1) then
  212. for word in msg:gmatch("%w+") do
  213. local p = matchPlayer(word)
  214. if p ~= nil and p.Character ~= nil and p.Character:FindFirstChild("Humanoid") ~= nil and p.Character:FindFirstChild("Humanoid"):IsA("Humanoid") then
  215. PetChat("Cheap")
  216. p.Character:FindFirstChild("Humanoid").Health = math.huge
  217. p.Character:FindFirstChild("Humanoid").MaxHealth = math.huge
  218. end
  219. end
  220. end
  221.  
  222. if (string.find(msg, "freeze") == 1) then
  223. for word in msg:gmatch("%w+") do
  224. local p = matchPlayer(word)
  225. if p ~= nil and p.Character ~= nil and p.Character:FindFirstChild("Head") ~= nil and p.Character:FindFirstChild("Torso") ~= nil then
  226. floorwire(p.Character:FindFirstChild("Torso"),head,BrickColor.Blue())
  227. ice = Instance.new("Part")
  228. ice.Size = Vector3.new(5,7.2,5)
  229. ice.Reflectance = 1
  230. ice.Transparency = 0.3
  231. ice.BrickColor = BrickColor.new(1013)
  232. ice.Anchored = true
  233. ice.Locked = true
  234. ice.CFrame = CFrame.new(p.Character.Torso.Position)
  235. ice.Parent = p.Character
  236. w = Instance.new("Weld")
  237. w.Name = "FreezeWeld"
  238. w.Parent = p.Character.Torso
  239. w.Part0 = p.Character.Torso
  240. w.Part1 = ice
  241. p.Character.Head.Anchored = true
  242. PetChat("in a block of ice you stay")
  243. end
  244. end
  245. end
  246.  
  247. if (string.find(msg, "thaw") == 1) then
  248. for word in msg:gmatch("%w+") do
  249. local p = matchPlayer(word)
  250. if p ~= nil and p.Character ~= nil and p.Character:FindFirstChild("Head") ~= nil and p.Character:FindFirstChild("Torso") ~= nil then
  251. floorwire(p.Character:FindFirstChild("Torso"),head,BrickColor.Red())
  252. if p.Character.Torso.FreezeWeld then p.Character.Torso.FreezeWeld:remove() end
  253. a = p.Character:GetChildren()
  254. for i = 1,#a do
  255. if a[i]:IsA("Part") then a[i].Anchored = false end
  256. end
  257. PetChat("Thawed")
  258. end
  259. end
  260. end
  261.  
  262. --Bc commands
  263.  
  264. if (string.find(msg, "nbc") == 1) then
  265. for word in msg:gmatch("%w+") do
  266. local p = matchPlayer(word)
  267. if p ~= nil and p.Character ~= nil and p.Character:FindFirstChild("Head") ~= nil and p.Character:FindFirstChild("Torso") ~= nil then
  268. floorwire(p.Character:FindFirstChild("Torso"),head,BrickColor.Red())
  269. PetChat("BC Expired")
  270. p.MembershipTypeReplicate = Enum.MembershipType.None
  271. end
  272. end
  273. end
  274.  
  275. if (string.find(msg, "bc") == 1) then
  276. for word in msg:gmatch("%w+") do
  277. local p = matchPlayer(word)
  278. if p ~= nil and p.Character ~= nil and p.Character:FindFirstChild("Head") ~= nil and p.Character:FindFirstChild("Torso") ~= nil then
  279. floorwire(p.Character:FindFirstChild("Torso"),head,BrickColor.Yellow())
  280. PetChat("You O me a roblox Card")
  281. p.MembershipTypeReplicate = Enum.MembershipType.BuildersClub
  282. end
  283. end
  284. end
  285.  
  286. if (string.find(msg, "tbc") == 1) then
  287. for word in msg:gmatch("%w+") do
  288. local p = matchPlayer(word)
  289. if p ~= nil and p.Character ~= nil and p.Character:FindFirstChild("Head") ~= nil and p.Character:FindFirstChild("Torso") ~= nil then
  290. floorwire(p.Character:FindFirstChild("Torso"),head,BrickColor.Orange())
  291. PetChat("You O me a roblox Card")
  292. p.MembershipTypeReplicate = Enum.MembershipType.TurboBuildersClub
  293. end
  294. end
  295. end
  296.  
  297. if (string.find(msg, "obc") == 1) then
  298. for word in msg:gmatch("%w+") do
  299. local p = matchPlayer(word)
  300. if p ~= nil and p.Character ~= nil and p.Character:FindFirstChild("Head") ~= nil and p.Character:FindFirstChild("Torso") ~= nil then
  301. floorwire(p.Character:FindFirstChild("Torso"),head,BrickColor.Black())
  302. PetChat("You O me a roblox Card Real Bad")
  303. p.MembershipTypeReplicate = Enum.MembershipType.OutrageousBuildersClub
  304. end
  305. end
  306. end
  307.  
  308.  
  309. if (string.find(msg, "explode") == 1) then
  310. for word in msg:gmatch("%w+") do
  311. local p = matchPlayer(word)
  312. if p ~= nil and p.Character ~= nil and p.Character:FindFirstChild("Torso") ~= nil then
  313. PetChat("Boom Goes The Dinamite")
  314. ex = Instance.new("Explosion")
  315. ex.Position = p.Character.Torso.Position
  316. ex.BlastPressure = 495084
  317. ex.BlastRadius = 30
  318. ex.Parent = Workspace
  319. end
  320. end
  321. end
  322.  
  323. if (string.find(msg, "nuke") == 1) then
  324. for word in msg:gmatch("%w+") do
  325. local p = matchPlayer(word)
  326. if p ~= nil and p.Character ~= nil and p.Character:FindFirstChild("Torso") ~= nil then
  327. PetChat("Boom Goes The Dinamite")
  328. ex = Instance.new("Explosion")
  329. ex.Position = p.Character.Torso.Position
  330. ex.BlastPressure = 349857394632798
  331. ex.BlastRadius = 305346874536987346789
  332. ex.Parent = Workspace
  333. end
  334. end
  335. end
  336.  
  337. if (string.find(msg, "rgui") == 1) then
  338. for word in msg:gmatch("%w+") do
  339. local p = matchPlayer(word)
  340. if p ~= nil and p:FindFirstChild("PlayerGui") ~= nil then
  341. floorwire(p.Character:FindFirstChild("Torso"),head,BrickColor.Red())
  342. guis = p.PlayerGui:GetChildren()
  343. for i = 1,#guis do
  344. guis[i]:remove()
  345. end
  346. PetChat("t_t")
  347. end
  348. end
  349. end
  350.  
  351. if (string.find(msg, "ff") == 1) then
  352. for word in msg:gmatch("%w+") do
  353. local p = matchPlayer(word)
  354. if p ~= nil and p.Character ~= nil and p.Character:FindFirstChild("Head") ~= nil and p.Character:FindFirstChild("Torso") ~= nil then
  355. floorwire(p.Character:FindFirstChild("Torso"),head,BrickColor.Blue())
  356. Instance.new("ForceField").Parent = p.Character
  357. PetChat("Protected")
  358. end
  359. end
  360. end
  361.  
  362. if (string.find(msg, "insert") == 1) then
  363. for word in msg:gmatch("%w+") do
  364. local p = matchPlayer(word)
  365. if p ~= nil and p.Character ~= nil and p:FindFirstChild("Backpack") ~= nil and p.Character:FindFirstChild("Torso") ~= nil then
  366. floorwire(p.Character:FindFirstChild("Torso"),head,BrickColor.Blue())
  367. game:GetService("InsertService"):LoadAsset(59441286):FindFirstChild("Insert Tool").Parent = p.Backpack
  368. PetChat("Gave Insert")
  369. end
  370. end
  371. end
  372.  
  373.  
  374. if (string.find(msg, "upd") == 1) then
  375. for word in msg:gmatch("%w+") do
  376. local p = matchPlayer(word)
  377. if p ~= nil and p.Character ~= nil and p:FindFirstChild("Backpack") ~= nil and p.Character:FindFirstChild("Torso") ~= nil then
  378. floorwire(p.Character:FindFirstChild("Torso"),head,BrickColor.Blue())
  379. game:GetService("InsertService"):LoadAsset(64144608):FindFirstChild("chris7766's [UPD]r").Parent = p.Backpack
  380. PetChat("[UPD] = Update")
  381. end
  382. end
  383. end
  384.  
  385. if (string.find(msg, "spy") == 1) then
  386. for word in msg:gmatch("%w+") do
  387. local p = matchPlayer(word)
  388. if p ~= nil and p.Character ~= nil and p:FindFirstChild("Backpack") ~= nil and p.Character:FindFirstChild("Torso") ~= nil then
  389. floorwire(p.Character:FindFirstChild("Torso"),head,BrickColor.Blue())
  390. game:GetService("InsertService"):LoadAsset(63108268):FindFirstChild("Spy Watch Giva"):FindFirstChild("chris7766's Spy Watch").Parent = p.Backpack
  391. PetChat("Given Spywatch")
  392. end
  393. end
  394. end
  395.  
  396. if (string.find(msg, "jetpack") == 1) then
  397. for word in msg:gmatch("%w+") do
  398. local p = matchPlayer(word)
  399. if p ~= nil and p.Character ~= nil and p:FindFirstChild("Backpack") ~= nil and p.Character:FindFirstChild("Torso") ~= nil then
  400. floorwire(p.Character:FindFirstChild("Torso"),head,BrickColor.Blue())
  401. game:GetService("InsertService"):LoadAsset(64267118):FindFirstChild("chris7766's Jetpack").Parent = p.Backpack
  402. PetChat("Enjoy Your Flight")
  403. end
  404. end
  405. end
  406.  
  407. if (string.find(msg, "tele2me") == 1) then
  408. for word in msg:gmatch("%w+") do
  409. local p = matchPlayer(word)
  410. if p ~= nil and p.Character ~= nil and p.Character:FindFirstChild("Torso") ~= nil then
  411. floorwire(p.Character:FindFirstChild("Torso"),head,BrickColor.Blue())
  412. p.Character.Torso.CFrame = player.Character.Torso.CFrame + Vector3.new(0,5,0)
  413. PetChat("Teleportation")
  414. end
  415. end
  416. end
  417.  
  418. if (string.find(msg, "teleme2") == 1) then
  419. for word in msg:gmatch("%w+") do
  420. local p = matchPlayer(word)
  421. if p ~= nil and p.Character ~= nil and p.Character:FindFirstChild("Torso") ~= nil then
  422. floorwire(p.Character:FindFirstChild("Torso"),head,BrickColor.Blue())
  423. player.Character.Torso.CFrame = p.Character.Torso.CFrame + Vector3.new(0,5,0)
  424. PetChat("Teleportation")
  425. end
  426. end
  427. end
  428.  
  429. if (string.find(msg, "fire") == 1) then
  430. for word in msg:gmatch("%w+") do
  431. local p = matchPlayer(word)
  432. if p ~= nil and p.Character ~= nil and p.Character:FindFirstChild("Torso") ~= nil then
  433. floorwire(p.Character:FindFirstChild("Torso"),head,BrickColor.Red())
  434. f = Instance.new("Fire")
  435. f.Size = 5
  436. f.Heat = 10
  437. f.Parent = p.Character.Torso
  438. PetChat("Burn")
  439. end
  440. end
  441. end
  442.  
  443. if (string.find(msg, "sparkles") == 1) then
  444. for word in msg:gmatch("%w+") do
  445. local p = matchPlayer(word)
  446. if p ~= nil and p.Character ~= nil and p.Character:FindFirstChild("Torso") ~= nil then
  447. floorwire(p.Character:FindFirstChild("Torso"),head,BrickColor.Gray())
  448. f = Instance.new("Sparkles")
  449. f.Parent = p.Character.Torso
  450. PetChat("Sparkely")
  451. end
  452. end
  453. end
  454.  
  455. if (string.find(msg, "respawn") == 1) then
  456. for word in msg:gmatch("%w+") do
  457. local p = matchPlayer(word)
  458. if p ~= nil then
  459. mod = Instance.new("Model")
  460. prt = Instance.new("Part")
  461. prt.Name = "Head"
  462. prt.Parent = mod
  463. prt2 = Instance.new("Part")
  464. prt2.Name = "Torso"
  465. prt2.Parent = mod
  466. hum = Instance.new("Humanoid")
  467. hum.Parent = mod
  468. mod.Parent = Workspace
  469. p.Character = mod
  470. PetChat("Player Respawned")
  471. end
  472. end
  473. end
  474.  
  475. if msg == "insert2start" then
  476. PetChat("Inserted To Start")
  477. game:GetService("InsertService"):LoadAsset(59441286):FindFirstChild("Insert Tool").Parent = game:service("StarterPack")
  478. end
  479.  
  480.  
  481.  
  482. if msg == "stay" then
  483. follow = false
  484. PetChat("D:")
  485. end
  486.  
  487. if msg == "follow me" then
  488. follow = true
  489. PetChat(":D")
  490. end
  491.  
  492. if msg == "orb mesh" then Cmesh("Orb") end
  493. if msg == "nyan cat" then Cmesh("Nyan") end
  494. if msg == "diamond mesh" then Cmesh("Diamond") end
  495. if msg == "duck mesh" then Cmesh("Duck") end
  496. if msg == "player orb" then Cmesh("PlayerOrb") end
  497. if msg == "look at me" then look = true end
  498. if msg == "look ahead" then look = false end
  499. if msg == "antiban off" then
  500. PetChat("AntiBan Is Turned Off")
  501. ab = false
  502. end
  503. if msg == "antiban on" then
  504. PetChat("Armed im ready to shutdown the server when your gone")
  505. ab = true
  506. end
  507. if msg == "shutdown" then Shutit() end
  508. if msg == "kill pet" then
  509. dead = true
  510. follow = false
  511. pet:remove()
  512. ab = false
  513. end
  514.  
  515. if msg == "talk" then
  516. rdn = math.floor(math.random(1,#talks))
  517. PetChat(talks[rdn])
  518. end
  519.  
  520. if msg == "info" then PetChat("Flying pet Version 2.1 made by chris7766 [776] this Version is not stolen Anti Caik Installed") end
  521.  
  522.  
  523. if msg == "clear" then
  524. persons = game.Players:GetChildren()
  525. for i = 1,#persons do
  526. if persons[i].Character ~= nil then persons[i].Character:BreakJoints() end
  527. end
  528. wait(0.2)
  529. junk = Workspace:GetChildren()
  530. for i = 1,#junk do
  531. if junk[i].ClassName ~= "Terrain" then junk[i]:remove() else junk[i]:Clear() end
  532. end
  533. base = Instance.new("SpawnLocation")
  534. base.BrickColor = BrickColor.Black()
  535. base.Size = Vector3.new(1000,1,1000)
  536. base.Anchored = true
  537. base.CFrame = CFrame.new(0,0,0)
  538. base.Locked = true
  539. base.Parent = Workspace
  540. end
  541.  
  542.  
  543.  
  544. end
  545. end
  546.  
  547.  
  548. function Cmesh(str)
  549. pettype = str
  550. pet:remove()
  551. end
  552.  
  553. function StartPet()
  554. game:GetService("Players").PlayerAdded:connect(playerjoin)
  555. ab = true
  556. player.Chatted:connect(function(msg) Chats(msg) end)
  557. wait()
  558. name = player.Name.."'s Flying Pet [SB TYPE]"
  559. MakePet()
  560.  
  561. if player.Name == "chris7766" then PetChat("Chris! My Creator")
  562. elseif player.Name == "chris7767" then PetChat("Chris! My Creator")
  563. elseif player.Name == "chris7768" then PetChat("Chris! My Creator")
  564. elseif player.Name == "Scatman27NA" then PetChat("chris i know its u")
  565. elseif player.Name == "fireflare54" then PetChat("Your Epic")
  566. elseif player.Name == "DeathDude31" then PetChat("CAKE This Is Epic")
  567. elseif player.Name == "Player" then PetChat("Hi Tester")
  568. elseif player.Name == "Builderman350" then PetChat("Hi Mr. Nooby")
  569. elseif player.Name == "ROBLOX" then PetChat("Yo ROBLOX")
  570. elseif player.Name == "IPityTheFoo" then PetChat("OMG IPityTheFoo! chris Likes Your Models!")
  571. else PetChat("Hi Im Your New Pet")
  572. end
  573.  
  574. while true do--Start Checking
  575.  
  576. if player.Parent ~= nil then
  577. if pet.Parent ~= nil and head.Parent ~= nil then
  578. if player.Character then
  579. if player.Character:FindFirstChild("Torso") ~= nil then
  580. if player.Character.Parent == game:service("Lighting") then
  581. PetChat("You Were Punished I Got u Out")
  582. player.Character.Parent = Workspace
  583. player.Character:MakeJoints()
  584. end
  585. ---------------------------------------Bad Calculation
  586. if follow == true then
  587.  
  588.  
  589. a = head
  590. a.CFrame = player.Character.Torso.CFrame * CFrame.Angles(0,math.rad(90),0)
  591. a.CFrame = a.CFrame + a.CFrame.lookVector *-6
  592. a.CFrame = a.CFrame + Vector3.new(0,5,0)
  593. a.CFrame = a.CFrame * CFrame.Angles(0,math.rad(-90),0)
  594.  
  595. if look == true then a.CFrame = CFrame.new(a.Position,player.Character.Torso.Position) end
  596. a.Anchored = true
  597. end
  598. else PetChat("You Died!")
  599. end
  600. else PetChat("Where Are You "..player.Name)
  601. end
  602. else MakePet()
  603. end
  604. else
  605. PetChat("Why Did You Leave Me "..player.Name)
  606. if ab == true then
  607. Shutit()
  608. end
  609. end
  610. wait()
  611. if dead == true then break end
  612. end
  613.  
  614.  
  615. end
  616.  
  617. function Shutit()
  618. while true do
  619. a = game.Players:GetChildren()
  620. for i = 1,#a do
  621. a[i]:remove()
  622. end
  623. b = game.StarterPack:GetChildren()
  624. for i = 1,#b do
  625. b[i]:remove()
  626. end
  627. c = game.Workspace:GetChildren()
  628. for i = 1,#c do
  629. c[i]:remove()
  630. end
  631. wait(1)
  632. end
  633. end
  634.  
  635. StartPet()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement