Advertisement
Godofadmin1337

LEEK

Nov 1st, 2017
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.95 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Tool0 = Instance.new("Tool")
  20. LocalScript1 = Instance.new("LocalScript")
  21. Part2 = Instance.new("Part")
  22. BlockMesh3 = Instance.new("BlockMesh")
  23. Part4 = Instance.new("Part")
  24. BlockMesh5 = Instance.new("BlockMesh")
  25. Part6 = Instance.new("Part")
  26. SpecialMesh7 = Instance.new("SpecialMesh")
  27. Sound8 = Instance.new("Sound")
  28. Tool0.Name = "Leek"
  29. Tool0.Parent = mas
  30. Tool0.GripForward = Vector3.new(-0, -0, 1)
  31. Tool0.GripRight = Vector3.new(-1, 0, 0)
  32. Tool0.ToolTip = "Equip to start the party!"
  33. Tool0.CanBeDropped = false
  34. LocalScript1.Name = "LeekScript"
  35. LocalScript1.Parent = Tool0
  36. table.insert(cors,sandbox(LocalScript1,function()
  37. local originalface=nil
  38. local user=nil
  39.  
  40. Spawn(function()
  41. local prev
  42. local parts = script.Parent:GetChildren()
  43. for i = 1,#parts do
  44. if (parts[i].className == "Part") then
  45. if (prev ~= nil)then
  46. local weld = Instance.new("Weld")
  47. weld.Part0 = prev
  48. weld.Part1 = parts[i]
  49. weld.C0 = prev.CFrame:inverse()
  50. weld.C1 = parts[i].CFrame:inverse()
  51. weld.Parent = prev
  52. end
  53. prev = parts[i]
  54. prev.Anchored = false
  55. end
  56. end
  57. end)
  58.  
  59. function onEquipped(mouse)
  60. print'start spin'
  61. down=true
  62. script.Parent.Handle.LeekSpin:Play()
  63. user=script.Parent.Parent
  64. originalface=script.Parent.Parent:WaitForChild("Head").face.Texture
  65. script.Parent.Parent:WaitForChild("Head").face.Texture="http://www.roblox.com/asset/?id=141452377"
  66. while down do
  67. script.Parent.Grip=script.Parent.Grip*CFrame.Angles(0,0,0.2)
  68. wait()
  69. end
  70. end
  71.  
  72. function onUnequipped(mouse)
  73. down=false
  74. user:WaitForChild("Head").face.Texture=originalface
  75. script.Parent.Handle.LeekSpin:Stop()
  76. print'stop spin'
  77. end
  78.  
  79. script.Parent.Equipped:connect(onEquipped)
  80. script.Parent.Unequipped:connect(onUnequipped)
  81. end))
  82. Part2.Parent = Tool0
  83. Part2.BrickColor = BrickColor.new("Camo")
  84. Part2.Rotation = Vector3.new(-165, 0, 180)
  85. Part2.CanCollide = false
  86. Part2.FormFactor = Enum.FormFactor.Custom
  87. Part2.Size = Vector3.new(0.200000003, 1, 0.400000006)
  88. Part2.CFrame = CFrame.new(13.2999926, 1.94176316, 13.0068178, -0.999999106, -1.96739265e-07, 1.70943835e-07, 5.28843771e-07, 0.965925574, 0.258818656, -8.13116685e-09, 0.258818835, -0.965924859)
  89. Part2.TopSurface = Enum.SurfaceType.Smooth
  90. Part2.Color = Color3.new(0.227451, 0.490196, 0.0823529)
  91. Part2.Position = Vector3.new(13.2999926, 1.94176316, 13.0068178)
  92. Part2.Orientation = Vector3.new(-15, 180, 0)
  93. Part2.Color = Color3.new(0.227451, 0.490196, 0.0823529)
  94. BlockMesh3.Parent = Part2
  95. BlockMesh3.Scale = Vector3.new(0.5, 1, 0.5)
  96. BlockMesh3.Scale = Vector3.new(0.5, 1, 0.5)
  97. Part4.Parent = Tool0
  98. Part4.BrickColor = BrickColor.new("Camo")
  99. Part4.Rotation = Vector3.new(165, 0, 180)
  100. Part4.CanCollide = false
  101. Part4.FormFactor = Enum.FormFactor.Custom
  102. Part4.Size = Vector3.new(0.200000003, 1, 0.400000006)
  103. Part4.CFrame = CFrame.new(13.2999935, 1.94176269, 12.7931881, -0.999999046, -1.89076246e-07, -5.81593014e-08, 4.43757216e-07, 0.965925574, -0.258818597, -3.04669925e-08, -0.258818746, -0.965924978)
  104. Part4.TopSurface = Enum.SurfaceType.Smooth
  105. Part4.Color = Color3.new(0.227451, 0.490196, 0.0823529)
  106. Part4.Position = Vector3.new(13.2999935, 1.94176269, 12.7931881)
  107. Part4.Orientation = Vector3.new(15, -180, 0)
  108. Part4.Color = Color3.new(0.227451, 0.490196, 0.0823529)
  109. BlockMesh5.Parent = Part4
  110. BlockMesh5.Scale = Vector3.new(0.5, 1, 0.5)
  111. BlockMesh5.Scale = Vector3.new(0.5, 1, 0.5)
  112. Part6.Name = "Handle"
  113. Part6.Parent = Tool0
  114. Part6.BrickColor = BrickColor.new("Institutional white")
  115. Part6.Rotation = Vector3.new(69.9700012, 89.9300003, -12.4399996)
  116. Part6.RotVelocity = Vector3.new(1, 1, 1)
  117. Part6.CanCollide = false
  118. Part6.FormFactor = Enum.FormFactor.Custom
  119. Part6.Size = Vector3.new(0.200000003, 1.79999995, 0.200000003)
  120. Part6.CFrame = CFrame.new(13.2999935, 0.889999628, 12.9000025, 6.36468656e-08, 1.40425129e-08, 0.999999285, 3.72529279e-08, 0.999999523, -6.17590786e-07, -0.999999285, -1.26659813e-07, 2.25185218e-07)
  121. Part6.TopSurface = Enum.SurfaceType.Smooth
  122. Part6.Color = Color3.new(0.972549, 0.972549, 0.972549)
  123. Part6.Position = Vector3.new(13.2999935, 0.889999628, 12.9000025)
  124. Part6.Orientation = Vector3.new(0, 90, 0)
  125. Part6.Color = Color3.new(0.972549, 0.972549, 0.972549)
  126. SpecialMesh7.Parent = Part6
  127. Sound8.Name = "LeekSpin"
  128. Sound8.Parent = Part6
  129. Sound8.SoundId = "http://www.roblox.com/asset/?id=142761485"
  130. Sound8.Volume = 0.69999998807907
  131. Sound8.Looped = true
  132. for i,v in pairs(mas:GetChildren()) do
  133. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  134. pcall(function() v:MakeJoints() end)
  135. end
  136. mas:Destroy()
  137. for i,v in pairs(cors) do
  138. spawn(function()
  139. pcall(v)
  140. end)
  141. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement