Advertisement
DaOMEGAa32

guinea pig v3

Oct 11th, 2019
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.36 KB | None | 0 0
  1. -----gimmie veggies
  2. print ("Made by DaOMEGAa32")
  3. local s = Instance.new("Sound")
  4.  
  5. s.Name = "theme"
  6. s.SoundId = "rbxassetid://3395159863"
  7. s.Volume = 4
  8. s.Looped = true
  9. s.archivable = false
  10.  
  11. s.Parent = game.Workspace
  12.  
  13. wait(0.2)
  14.  
  15. s:play()
  16. local pchar = game.Players.LocalPlayer.Character -- Can change player here --
  17.  
  18. for i,v in pairs(pchar.Torso:GetChildren()) do
  19. if v.ClassName == 'Decal' then
  20. v:Destroy()
  21. end
  22. end
  23. for i,v in pairs(pchar:GetChildren()) do
  24. if v.ClassName == 'Hat' then
  25. v:Destroy()
  26. end
  27. end
  28.  
  29. for i,v in pairs(pchar.Head:GetChildren()) do
  30. if v.ClassName == 'Decal' then
  31. v:Destroy()
  32. end
  33. end
  34.  
  35. local duck = Instance.new('SpecialMesh', pchar.Torso)
  36. duck.MeshType = 'FileMesh'
  37. duck.MeshId = 'rbxassetid://1719079794'
  38. duck.TextureId = 'rbxassetid://1719079844'
  39. duck.Scale = Vector3.new(0.1, 0.1, 0.1)
  40. pchar.Head.Transparency = 1
  41. pchar['Left Arm'].Transparency = 1
  42. pchar['Right Arm'].Transparency = 1
  43. pchar['Left Leg'].Transparency = 1
  44. pchar['Right Leg'].Transparency = 1
  45. CV="White"
  46.  
  47. p = game.Players.LocalPlayer
  48. char = p.Character
  49. local txt = Instance.new("BillboardGui", char)
  50. txt.Adornee = char .Head
  51. txt.Name = "_status"
  52. txt.Size = UDim2.new(2, 0, 1.2, 0)
  53. txt.StudsOffset = Vector3.new(-9, 8, 0)
  54. local text = Instance.new("TextLabel", txt)
  55. text.Size = UDim2.new(10, 0, 7, 0)
  56. text.FontSize = "Size24"
  57. text.TextScaled = true
  58. text.TextTransparency = 0
  59. text.BackgroundTransparency = 1
  60. text.TextTransparency = 0
  61. text.TextStrokeTransparency = 1
  62. text.Font = "Code"
  63. text.TextStrokeColor3 = Color3.fromRGB(255,0,0)
  64.  
  65. v=Instance.new("Part")
  66. v.Name = "ColorBrick"
  67. v.Parent=p.Character
  68. v.FormFactor="Symmetric"
  69. v.Anchored=true
  70. v.CanCollide=false
  71. v.BottomSurface="Smooth"
  72. v.TopSurface="Smooth"
  73. v.Size=Vector3.new(10,5,3)
  74. v.Transparency=1
  75. v.CFrame=char.Torso.CFrame
  76. v.BrickColor=BrickColor.new(CV)
  77. v.Transparency=1
  78. text.TextColor3 = Color3.fromRGB(255,192,203)
  79. v.Shape="Block"
  80. text.Text = "Guinea pig"
  81.  
  82. --Converted with ttyyuu12345's model to script plugin v4
  83. function sandbox(var,func)
  84. local env = getfenv(func)
  85. local newenv = setmetatable({},{
  86. __index = function(self,k)
  87. if k=="script" then
  88. return var
  89. else
  90. return env[k]
  91. end
  92. end,
  93. })
  94. setfenv(func,newenv)
  95. return func
  96. end
  97. cors = {}
  98. mas = Instance.new("Model",game:GetService("Lighting"))
  99. Tool0 = Instance.new("Tool")
  100. Part1 = Instance.new("Part")
  101. SpecialMesh2 = Instance.new("SpecialMesh")
  102. Sound3 = Instance.new("Sound")
  103. Script4 = Instance.new("Script")
  104. Sound5 = Instance.new("Sound")
  105. Script6 = Instance.new("Script")
  106. Tool7 = Instance.new("Tool")
  107. Part8 = Instance.new("Part")
  108. Sound9 = Instance.new("Sound")
  109. Sound10 = Instance.new("Sound")
  110. Sound11 = Instance.new("Sound")
  111. Script12 = Instance.new("Script")
  112. LocalScript13 = Instance.new("LocalScript")
  113. Camera14 = Instance.new("Camera")
  114. Tool15 = Instance.new("Tool")
  115. Sound16 = Instance.new("Sound")
  116. Script17 = Instance.new("Script")
  117. Tool0.Name = "poo"
  118. Tool0.Parent = mas
  119. Tool0.TextureId = "http://www.roblox.com/asset/?id=28937264"
  120. Tool0.Grip = CFrame.new(0, 0.100000001, 0, 0, -0, 1, 0, 1, 0, -1, 0, 0)
  121. Tool0.GripForward = Vector3.new(-1, -0, -0)
  122. Tool0.GripPos = Vector3.new(0, 0.100000001, 0)
  123. Tool0.GripRight = Vector3.new(0, 0, -1)
  124. Part1.Name = "Handle"
  125. Part1.Parent = Tool0
  126. Part1.CFrame = CFrame.new(13.8183784, 1.00001204, 31.0377197, 1, -1.49596917e-18, -8.62736868e-19, 1.49596917e-18, 1, -2.2265894e-08, 8.62736868e-19, 2.2265894e-08, 1)
  127. Part1.Position = Vector3.new(13.8183784, 1.00001204, 31.0377197)
  128. Part1.Color = Color3.new(0.666667, 0.333333, 0)
  129. Part1.Size = Vector3.new(1, 2, 1)
  130. Part1.BottomSurface = Enum.SurfaceType.Smooth
  131. Part1.BrickColor = BrickColor.new("CGA brown")
  132. Part1.TopSurface = Enum.SurfaceType.Smooth
  133. Part1.brickColor = BrickColor.new("CGA brown")
  134. SpecialMesh2.Parent = Part1
  135. SpecialMesh2.MeshId = "rbxassetid://491491086"
  136. SpecialMesh2.Scale = Vector3.new(0.100000001, 0.100000001, 0.100000001)
  137. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  138. Sound3.Parent = Part1
  139. Sound3.SoundId = "http://www.roblox.com/asset/?id=28940430"
  140. Script4.Name = "PlantBomb"
  141. Script4.Parent = Tool0
  142. table.insert(cors,sandbox(Script4,function()
  143. Tool = script.Parent
  144. local bomb = nil
  145. local debris = game:GetService("Debris")
  146.  
  147. function plant(pos)
  148.  
  149. Tool.Handle.Sound:Play()
  150.  
  151. local vCharacter = Tool.Parent
  152. local vPlayer = game.Players:playerFromCharacter(vCharacter)
  153.  
  154. local spawnPos = vCharacter.PrimaryPart.Position
  155.  
  156. bomb = Instance.new("Part")
  157. bomb.Locked = true
  158. bomb.Size = Vector3.new(1,2,1)
  159. bomb.Name = "BananaPeel"
  160. bomb.Position = pos
  161.  
  162. local mesh = Tool.Handle.Mesh:clone()
  163. mesh.Parent = bomb
  164.  
  165. local creator_tag = Instance.new("ObjectValue")
  166. creator_tag.Value = vPlayer
  167. creator_tag.Name = "creator"
  168. creator_tag.Parent = bomb
  169.  
  170. local slip = Tool.SlipSound:clone()
  171. slip.Parent = bomb
  172. slip.Name = "SlipSound"
  173.  
  174. local script = Tool.BananaScript:clone()
  175. script.Parent = bomb
  176. script.Disabled = false
  177.  
  178. bomb.Parent = game.Workspace
  179.  
  180. debris:AddItem(bomb, 120)
  181.  
  182. end
  183.  
  184. Tool.Enabled = true
  185. function onActivated()
  186.  
  187. if not Tool.Enabled then
  188. return
  189. end
  190.  
  191. Tool.Enabled = false
  192.  
  193. local character = Tool.Parent;
  194. local humanoid = character.Humanoid
  195. if humanoid == nil then
  196. print("Humanoid not found")
  197. return
  198. end
  199.  
  200. local targetPos = humanoid.TargetPoint
  201.  
  202. Tool.Handle.Transparency = 1
  203. plant(Tool.Handle.Position)
  204.  
  205. wait(0.2)
  206.  
  207. Tool.Handle.Transparency = 0
  208. Tool.Enabled = true
  209. end
  210.  
  211.  
  212. script.Parent.Activated:connect(onActivated)
  213. end))
  214. Sound5.Name = "SlipSound"
  215. Sound5.Parent = Tool0
  216. Sound5.SoundId = "rbxassetid://251309043"
  217. Sound5.Volume = 10
  218. Script6.Name = "BananaScript"
  219. Script6.Parent = Tool0
  220. table.insert(cors,sandbox(Script6,function()
  221. wait(0.5)
  222.  
  223. local banana = script.Parent
  224.  
  225. local touched = false
  226.  
  227. function onTouched(part)
  228.  
  229. if touched then
  230. return
  231. end
  232.  
  233. touched = true
  234.  
  235. local humanoid = part.Parent:FindFirstChild("Humanoid")
  236. if humanoid ~= nil then
  237.  
  238. banana.SlipSound:Play()
  239. humanoid.Jump = true
  240. humanoid.Sit = true
  241. wait(0.9)
  242. humanoid.Sit = false
  243.  
  244. end
  245.  
  246. touched = false
  247.  
  248. end
  249.  
  250. banana.Touched:connect(onTouched)
  251.  
  252. end))
  253. Script6.Disabled = true
  254. Tool7.Name = "bite"
  255. Tool7.Parent = mas
  256. Tool7.TextureId = "rbxasset://Textures/Sword128.png"
  257. Tool7.Grip = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  258. Tool7.GripForward = Vector3.new(-1, -0, -0)
  259. Tool7.GripPos = Vector3.new(0, 0, -1.5)
  260. Tool7.GripRight = Vector3.new(0, 1, 0)
  261. Tool7.GripUp = Vector3.new(0, 0, 1)
  262. Part8.Name = "Handle"
  263. Part8.Parent = Tool7
  264. Part8.CFrame = CFrame.new(27.2814255, 1.88732195, 4.34302521, 0.0910440385, -0.881099463, 0.464084357, 0.537011683, 0.435894847, 0.722229123, -0.838648558, 0.183463722, 0.512845576)
  265. Part8.Orientation = Vector3.new(-46.2400017, 42.1399994, 50.9300003)
  266. Part8.Position = Vector3.new(27.2814255, 1.88732195, 4.34302521)
  267. Part8.Rotation = Vector3.new(-54.6199989, 27.6499996, 84.0999985)
  268. Part8.Color = Color3.new(0.388235, 0.372549, 0.384314)
  269. Part8.Transparency = 234
  270. Part8.Size = Vector3.new(1, 0.800000012, 4)
  271. Part8.BottomSurface = Enum.SurfaceType.Smooth
  272. Part8.BrickColor = BrickColor.new("Dark stone grey")
  273. Part8.Locked = true
  274. Part8.Reflectance = 0.40000000596046
  275. Part8.TopSurface = Enum.SurfaceType.Smooth
  276. Part8.brickColor = BrickColor.new("Dark stone grey")
  277. Part8.FormFactor = Enum.FormFactor.Plate
  278. Part8.formFactor = Enum.FormFactor.Plate
  279. Sound9.Name = "SwordSlash"
  280. Sound9.Parent = Part8
  281. Sound9.SoundId = "rbxassetid://618667795"
  282. Sound9.Volume = 0.69999998807907
  283. Sound10.Name = "SwordLunge"
  284. Sound10.Parent = Part8
  285. Sound10.SoundId = "rbxassetid://618667795"
  286. Sound10.Volume = 0.60000002384186
  287. Sound11.Name = "Unsheath"
  288. Sound11.Parent = Part8
  289. Sound11.SoundId = "rbxassetid://618667795"
  290. Sound11.Volume = 1
  291. Script12.Name = "SwordScript"
  292. Script12.Parent = Tool7
  293. table.insert(cors,sandbox(Script12,function()
  294. --Rescripted by Luckymaxer
  295. --EUROCOW WAS HERE BECAUSE I MADE THE PARTICLES AND THEREFORE THIS ENTIRE SWORD PRETTY AND LOOK PRETTY WORDS AND I'D LIKE TO DEDICATE THIS TO MY FRIENDS AND HI LUCKYMAXER PLS FIX SFOTH SWORDS TY LOVE Y'ALl
  296. --Updated for R15 avatars by StarWars
  297. --Re-updated by TakeoHonorable
  298.  
  299. Tool = script.Parent
  300. Handle = Tool:WaitForChild("Handle")
  301.  
  302. function Create(ty)
  303. return function(data)
  304. local obj = Instance.new(ty)
  305. for k, v in pairs(data) do
  306. if type(k) == 'number' then
  307. v.Parent = obj
  308. else
  309. obj[k] = v
  310. end
  311. end
  312. return obj
  313. end
  314. end
  315.  
  316. local BaseUrl = "rbxassetid://"
  317.  
  318. Players = game:GetService("Players")
  319. Debris = game:GetService("Debris")
  320. RunService = game:GetService("RunService")
  321.  
  322. DamageValues = {
  323. BaseDamage = 5,
  324. SlashDamage = 10,
  325. LungeDamage = 30
  326. }
  327.  
  328. --For R15 avatars
  329. Animations = {
  330. R15Slash = 522635514,
  331. R15Lunge = 522638767
  332. }
  333.  
  334. Damage = DamageValues.BaseDamage
  335.  
  336. Grips = {
  337. Up = CFrame.new(0, 0, -1.70000005, 0, 0, 1, 1, 0, 0, 0, 1, 0),
  338. Out = CFrame.new(0, 0, -1.70000005, 0, 1, 0, 1, -0, 0, 0, 0, -1)
  339. }
  340.  
  341. Sounds = {
  342. Slash = Handle:WaitForChild("SwordSlash"),
  343. Lunge = Handle:WaitForChild("SwordLunge"),
  344. Unsheath = Handle:WaitForChild("Unsheath")
  345. }
  346.  
  347. ToolEquipped = false
  348.  
  349. --For Omega Rainbow Katana thumbnail to display a lot of particles.
  350. for i, v in pairs(Handle:GetChildren()) do
  351. if v:IsA("ParticleEmitter") then
  352. v.Rate = 20
  353. end
  354. end
  355.  
  356. Tool.Grip = Grips.Up
  357. Tool.Enabled = true
  358.  
  359. function IsTeamMate(Player1, Player2)
  360. return (Player1 and Player2 and not Player1.Neutral and not Player2.Neutral and Player1.TeamColor == Player2.TeamColor)
  361. end
  362.  
  363. function TagHumanoid(humanoid, player)
  364. local Creator_Tag = Instance.new("ObjectValue")
  365. Creator_Tag.Name = "creator"
  366. Creator_Tag.Value = player
  367. Debris:AddItem(Creator_Tag, 2)
  368. Creator_Tag.Parent = humanoid
  369. end
  370.  
  371. function UntagHumanoid(humanoid)
  372. for i, v in pairs(humanoid:GetChildren()) do
  373. if v:IsA("ObjectValue") and v.Name == "creator" then
  374. v:Destroy()
  375. end
  376. end
  377. end
  378.  
  379. function Blow(Hit)
  380. if not Hit or not Hit.Parent or not CheckIfAlive() or not ToolEquipped then
  381. return
  382. end
  383. local RightArm = Character:FindFirstChild("Right Arm") or Character:FindFirstChild("RightHand")
  384. if not RightArm then
  385. return
  386. end
  387. local RightGrip = RightArm:FindFirstChild("RightGrip")
  388. if not RightGrip or (RightGrip.Part0 ~= Handle and RightGrip.Part1 ~= Handle) then
  389. return
  390. end
  391. local character = Hit.Parent
  392. if character == Character then
  393. return
  394. end
  395. local humanoid = character:FindFirstChildOfClass("Humanoid")
  396. if not humanoid or humanoid.Health == 0 then
  397. return
  398. end
  399. local player = Players:GetPlayerFromCharacter(character)
  400. if player and (player == Player or IsTeamMate(Player, player)) then
  401. return
  402. end
  403. UntagHumanoid(humanoid)
  404. TagHumanoid(humanoid, Player)
  405. humanoid:TakeDamage(Damage)
  406. end
  407.  
  408.  
  409. function Attack()
  410. Damage = DamageValues.SlashDamage
  411. Sounds.Slash:Play()
  412.  
  413. if Humanoid then
  414. if Humanoid.RigType == Enum.HumanoidRigType.R6 then
  415. local Anim = Instance.new("StringValue")
  416. Anim.Name = "toolanim"
  417. Anim.Value = "Slash"
  418. Anim.Parent = Tool
  419. elseif Humanoid.RigType == Enum.HumanoidRigType.R15 then
  420. local Anim = Tool:FindFirstChild("R15Slash")
  421. if Anim then
  422. local Track = Humanoid:LoadAnimation(Anim)
  423. Track:Play(0)
  424. end
  425. end
  426. end
  427. end
  428.  
  429. function Lunge()
  430. Damage = DamageValues.LungeDamage
  431.  
  432. Sounds.Lunge:Play()
  433.  
  434. if Humanoid then
  435. if Humanoid.RigType == Enum.HumanoidRigType.R6 then
  436. local Anim = Instance.new("StringValue")
  437. Anim.Name = "toolanim"
  438. Anim.Value = "Lunge"
  439. Anim.Parent = Tool
  440. elseif Humanoid.RigType == Enum.HumanoidRigType.R15 then
  441. local Anim = Tool:FindFirstChild("R15Lunge")
  442. if Anim then
  443. local Track = Humanoid:LoadAnimation(Anim)
  444. Track:Play(0)
  445. end
  446. end
  447. end
  448. --[[
  449. if CheckIfAlive() then
  450. local Force = Instance.new("BodyVelocity")
  451. Force.velocity = Vector3.new(0, 10, 0)
  452. Force.maxForce = Vector3.new(0, 4000, 0)
  453. Debris:AddItem(Force, 0.4)
  454. Force.Parent = Torso
  455. end
  456. ]]
  457.  
  458. wait(0.2)
  459. Tool.Grip = Grips.Out
  460. wait(0.6)
  461. Tool.Grip = Grips.Up
  462.  
  463. Damage = DamageValues.SlashDamage
  464. end
  465.  
  466. Tool.Enabled = true
  467. LastAttack = 0
  468.  
  469. function Activated()
  470. if not Tool.Enabled or not ToolEquipped or not CheckIfAlive() then
  471. return
  472. end
  473. Tool.Enabled = false
  474. local Tick = RunService.Stepped:wait()
  475. if (Tick - LastAttack < 0.2) then
  476. Lunge()
  477. else
  478. Attack()
  479. end
  480. LastAttack = Tick
  481. --wait(0.5)
  482. Damage = DamageValues.BaseDamage
  483. local SlashAnim = (Tool:FindFirstChild("R15Slash") or Create("Animation"){
  484. Name = "R15Slash",
  485. AnimationId = BaseUrl .. Animations.R15Slash,
  486. Parent = Tool
  487. })
  488.  
  489. local LungeAnim = (Tool:FindFirstChild("R15Lunge") or Create("Animation"){
  490. Name = "R15Lunge",
  491. AnimationId = BaseUrl .. Animations.R15Lunge,
  492. Parent = Tool
  493. })
  494. Tool.Enabled = true
  495. end
  496.  
  497. function CheckIfAlive()
  498. return (((Player and Player.Parent and Character and Character.Parent and Humanoid and Humanoid.Parent and Humanoid.Health > 0 and Torso and Torso.Parent) and true) or false)
  499. end
  500.  
  501. function Equipped()
  502. Character = Tool.Parent
  503. Player = Players:GetPlayerFromCharacter(Character)
  504. Humanoid = Character:FindFirstChildOfClass("Humanoid")
  505. Torso = Character:FindFirstChild("Torso") or Character:FindFirstChild("HumanoidRootPart")
  506. if not CheckIfAlive() then
  507. return
  508. end
  509. ToolEquipped = true
  510. Sounds.Unsheath:Play()
  511. end
  512.  
  513. function Unequipped()
  514. Tool.Grip = Grips.Up
  515. ToolEquipped = false
  516. end
  517.  
  518. Tool.Activated:Connect(Activated)
  519. Tool.Equipped:Connect(Equipped)
  520. Tool.Unequipped:Connect(Unequipped)
  521.  
  522. Connection = Handle.Touched:Connect(Blow)
  523. end))
  524. LocalScript13.Name = "MouseIcon"
  525. LocalScript13.Parent = Tool7
  526. table.insert(cors,sandbox(LocalScript13,function()
  527. --Made by Luckymaxer
  528.  
  529. Mouse_Icon = "rbxasset://textures/GunCursor.png"
  530. Reloading_Icon = "rbxasset://textures/GunWaitCursor.png"
  531.  
  532. Tool = script.Parent
  533.  
  534. Mouse = nil
  535.  
  536. function UpdateIcon()
  537. if Mouse then
  538. Mouse.Icon = Tool.Enabled and Mouse_Icon or Reloading_Icon
  539. end
  540. end
  541.  
  542. function OnEquipped(ToolMouse)
  543. Mouse = ToolMouse
  544. UpdateIcon()
  545. end
  546.  
  547. function OnChanged(Property)
  548. if Property == "Enabled" then
  549. UpdateIcon()
  550. end
  551. end
  552.  
  553. Tool.Equipped:Connect(OnEquipped)
  554. Tool.Changed:Connect(OnChanged)
  555.  
  556. end))
  557. Camera14.Name = "ThumbnailCamera"
  558. Camera14.Parent = Tool7
  559. Camera14.CFrame = CFrame.new(-5.67428207, 2.83736515, 3.79184556, 0.289030313, 0.416664183, -0.861888885, -0, 0.900314331, 0.435240269, 0.957319915, -0.125797629, 0.260218143)
  560. Camera14.CoordinateFrame = CFrame.new(-5.67428207, 2.83736515, 3.79184556, 0.289030313, 0.416664183, -0.861888885, -0, 0.900314331, 0.435240269, 0.957319915, -0.125797629, 0.260218143)
  561. Camera14.Focus = CFrame.new(-3.9505043, 1.96688461, 3.27140927, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  562. Camera14.focus = CFrame.new(-3.9505043, 1.96688461, 3.27140927, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  563. Tool15.Name = "Sound Tool"
  564. Tool15.Parent = mas
  565. Tool15.TextureId = "rbxassetid://1059047363"
  566. Tool15.RequiresHandle = false
  567. Sound16.Name = "Sound_Needs_ID"
  568. Sound16.Parent = Tool15
  569. Sound16.SoundId = "rbxassetid://2568843432"
  570. Sound16.Volume = 10
  571. Script17.Parent = Tool15
  572. table.insert(cors,sandbox(Script17,function()
  573. function onActivated()
  574. script.Parent.Sound_Needs_ID:Play()
  575. end
  576.  
  577. script.Parent.Activated:Connect(onActivated)
  578. end))
  579. for i,v in pairs(mas:GetChildren()) do
  580. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  581. pcall(function() v:MakeJoints() end)
  582. end
  583. mas:Destroy()
  584. for i,v in pairs(cors) do
  585. spawn(function()
  586. pcall(v)
  587. end)
  588. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement