Advertisement
Nutgear

Pet script

Jan 3rd, 2018
2,414
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.36 KB | None | 1 0
  1. wait(1)
  2. local animal = "Dog" --Only 2 values: Cat, Dog
  3. local owner = game:GetService("Players").LocalPlayer
  4. local model = Instance.new("Model",owner.Character)
  5. local humanoid = Instance.new("Humanoid",model)
  6. local name = "Bombo"
  7.  
  8. local body = Instance.new("Part",model) --Very important.
  9. body.CanCollide = false
  10. body.Anchored = true
  11. model.Name = name
  12. body.Name = "Head"
  13.  
  14. if animal == "Dog" then
  15. body.Size = Vector3.new(1.5, 2.3, 3.5)
  16. local mesh = Instance.new("FileMesh",body)
  17. local bark = Instance.new("Sound",body)
  18. bark.Name = "Call"
  19. bark.SoundId = "rbxassetid://348993071"
  20. bark.PlaybackSpeed = 0.750
  21. bark.Volume = 5
  22. mesh.TextureId = "http://www.roblox.com/asset/?id=68331520"
  23. mesh.Scale = Vector3.new(1.5,1.5,1.5)
  24. mesh.MeshId = "http://www.roblox.com/asset/?id=68340830"
  25. elseif animal == "Cat" then
  26. body.Size = Vector3.new(1, 2.4, 3)
  27. local mesh2 = Instance.new("FileMesh",body)
  28. local meow = Instance.new("Sound",body)
  29. meow.Name = "Call"
  30. meow.SoundId = "rbxassetid://138093919"
  31. meow.PlaybackSpeed = 0.750
  32. meow.Volume = 5
  33. mesh2.TextureId = "rbxassetid://121228565"
  34. mesh2.Scale = Vector3.new(1.5, 1.5, 1.5)
  35. mesh2.MeshId = "rbxassetid://121228532"
  36. end
  37.  
  38. while true do
  39.     body.CFrame = owner.Character["Right Leg"].CFrame + Vector3.new(0,0,5)
  40.     body.Orientation = owner.Character.Torso.Orientation
  41.     wait(-1)
  42. end
  43. while true do
  44.     wait(3)
  45.     body.Call:Play()
  46. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement