hawoody

Tem Flakes

May 6th, 2018
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.46 KB | None | 0 0
  1. --Converted with ttyyuu12345's model to script plugin v4
  2. function sandbox(var,func)
  3. local env = getfenv(func)
  4. local newenv = setmetatable({},{
  5. __index = function(self,k)
  6. if k=="script" then
  7. return var
  8. else
  9. return env[k]
  10. end
  11. end,
  12. })
  13. setfenv(func,newenv)
  14. return func
  15. end
  16. cors = {}
  17. mas = Instance.new("Model",game:GetService("Lighting"))
  18. Tool0 = Instance.new("Tool")
  19. Part1 = Instance.new("Part")
  20. Sound2 = Instance.new("Sound")
  21. Sound3 = Instance.new("Sound")
  22. Decal4 = Instance.new("Decal")
  23. Decal5 = Instance.new("Decal")
  24. Decal6 = Instance.new("Decal")
  25. Decal7 = Instance.new("Decal")
  26. Decal8 = Instance.new("Decal")
  27. Decal9 = Instance.new("Decal")
  28. Script10 = Instance.new("Script")
  29. Tool0.Name = "Temmie Flakes"
  30. Tool0.Parent = mas
  31. Tool0.GripPos = Vector3.new(0, 0, 0.400000006)
  32. Tool0.CanBeDropped = false
  33. Part1.Name = "Handle"
  34. Part1.Parent = Tool0
  35. Part1.BrickColor = BrickColor.new("Really black")
  36. Part1.CanCollide = false
  37. Part1.FormFactor = Enum.FormFactor.Custom
  38. Part1.Size = Vector3.new(1.86000001, 2.17000008, 0.699999988)
  39. Part1.CFrame = CFrame.new(-5.92999983, 1.08503401, -11.3500004, 1.00000012, -2.55099497e-10, -8.94069672e-08, 2.19268514e-09, 1, -4.4408921e-16, 8.94069672e-08, -2.2340938e-09, 1.00000012)
  40. Part1.BottomSurface = Enum.SurfaceType.Smooth
  41. Part1.TopSurface = Enum.SurfaceType.Smooth
  42. Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  43. Part1.Position = Vector3.new(-5.92999983, 1.08503401, -11.3500004)
  44. Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  45. Sound2.Name = "DrinkSound"
  46. Sound2.Parent = Part1
  47. Sound2.SoundId = "http://www.roblox.com/asset/?id=12544690"
  48. Sound2.Volume = 0.30000001192093
  49. Sound3.Name = "OpenSound"
  50. Sound3.Parent = Part1
  51. Sound3.SoundId = "http://www.roblox.com/asset/?id=331174925"
  52. Sound3.Volume = 1
  53. Decal4.Parent = Part1
  54. Decal4.Texture = "http://www.roblox.com/asset/?id=327473548"
  55. Decal5.Parent = Part1
  56. Decal5.Texture = "http://www.roblox.com/asset/?id=327473548"
  57. Decal5.Face = Enum.NormalId.Back
  58. Decal6.Parent = Part1
  59. Decal6.Texture = "http://www.roblox.com/asset/?id=131299877"
  60. Decal6.Face = Enum.NormalId.Left
  61. Decal7.Parent = Part1
  62. Decal7.Texture = "http://www.roblox.com/asset/?id=131299877"
  63. Decal7.Face = Enum.NormalId.Right
  64. Decal8.Parent = Part1
  65. Decal8.Texture = "http://www.roblox.com/asset/?id=131299877"
  66. Decal8.Face = Enum.NormalId.Bottom
  67. Decal9.Parent = Part1
  68. Decal9.Texture = "http://www.roblox.com/asset/?id=131299877"
  69. Decal9.Face = Enum.NormalId.Top
  70. Script10.Name = "SandwichScript"
  71. Script10.Parent = Tool0
  72. table.insert(cors,sandbox(Script10,function()
  73. local Tool = script.Parent;
  74.  
  75. enabled = true
  76.  
  77. function onActivated()
  78. if not enabled then
  79. return
  80. end
  81. enabled = false
  82.  
  83. Tool.GripForward = Vector3.new(0,-.759,-.651)
  84. Tool.GripPos = Vector3.new(1.5,-0.3,.3)
  85. Tool.GripRight = Vector3.new(1,0,0)
  86. Tool.GripUp = Vector3.new(0,.651,-.759)
  87.  
  88. Tool.Handle.DrinkSound:Play()
  89.  
  90. wait(.8)
  91.  
  92. Tool.GripForward = Vector3.new(0, 0, -1)
  93. Tool.GripPos = Vector3.new(0, 0, 0.4)
  94. Tool.GripRight = Vector3.new(1, 0, 0)
  95. Tool.GripUp = Vector3.new(0, 1, 0)
  96.  
  97. enabled = true
  98.  
  99. end
  100.  
  101. function onEquipped()
  102. Tool.Handle.OpenSound:play()
  103. end
  104.  
  105. script.Parent.Activated:connect(onActivated)
  106. script.Parent.Equipped:connect(onEquipped)
  107.  
  108. end))
  109. for i,v in pairs(mas:GetChildren()) do
  110. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  111. pcall(function() v:MakeJoints() end)
  112. end
  113. mas:Destroy()
  114. for i,v in pairs(cors) do
  115. spawn(function()
  116. pcall(v)
  117. end)
  118. end
Add Comment
Please, Sign In to add comment