Advertisement
pinappleboi

sword

Jul 20th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.54 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. Part2 = Instance.new("Part")
  21. Script3 = Instance.new("Script")
  22. Script4 = Instance.new("Script")
  23. Sound5 = Instance.new("Sound")
  24. Script6 = Instance.new("Script")
  25. LocalScript7 = Instance.new("LocalScript")
  26. Animation8 = Instance.new("Animation")
  27. Animation9 = Instance.new("Animation")
  28. BoolValue10 = Instance.new("BoolValue")
  29. MeshPart11 = Instance.new("MeshPart")
  30. MeshPart12 = Instance.new("MeshPart")
  31. SurfaceLight13 = Instance.new("SurfaceLight")
  32. SurfaceLight14 = Instance.new("SurfaceLight")
  33. MeshPart15 = Instance.new("MeshPart")
  34. Tool0.Name = "Green Goblin"
  35. Tool0.Parent = mas
  36. Part1.Name = "Handle"
  37. Part1.Parent = Tool0
  38. Part1.CFrame = CFrame.new(-0.0500050001, 0.713413, 348.699982, -0.171010062, 0.0301539823, -0.984807789, 0.173648059, 0.984807849, 3.13053391e-07, 0.969846368, -0.171009913, -0.173648238)
  39. Part1.Orientation = Vector3.new(0, -100, 10)
  40. Part1.Position = Vector3.new(-0.0500050001, 0.713413, 348.699982)
  41. Part1.Rotation = Vector3.new(-180, -80, -170)
  42. Part1.Transparency = 1
  43. Part1.Size = Vector3.new(0.100000553, 1, 0.0999997482)
  44. Part1.Anchored = true
  45. Part1.BottomSurface = Enum.SurfaceType.Smooth
  46. Part1.TopSurface = Enum.SurfaceType.Smooth
  47. Part2.Name = "blade"
  48. Part2.Parent = Tool0
  49. Part2.CFrame = CFrame.new(-2.49999994e-05, 4.73843002, 348.699982, 0, 1, -0, -1, 0, 0, 0, 0, 1)
  50. Part2.Orientation = Vector3.new(0, 0, -90)
  51. Part2.Position = Vector3.new(-2.49999994e-05, 4.73843002, 348.699982)
  52. Part2.Rotation = Vector3.new(0, 0, -90)
  53. Part2.Color = Color3.new(0.627451, 0.517647, 0.309804)
  54. Part2.Transparency = 1
  55. Part2.Size = Vector3.new(5.05000067, 1.50000024, 0.400000036)
  56. Part2.BottomSurface = Enum.SurfaceType.Smooth
  57. Part2.BrickColor = BrickColor.new("Fawn brown")
  58. Part2.CanCollide = false
  59. Part2.Material = Enum.Material.Wood
  60. Part2.TopSurface = Enum.SurfaceType.Smooth
  61. Part2.brickColor = BrickColor.new("Fawn brown")
  62. Script3.Name = "hit"
  63. Script3.Parent = Part2
  64. table.insert(cors,sandbox(Script3,function()
  65. local db = 0
  66. function touch(hit)
  67.  
  68.  
  69. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  70. if db == 0 then
  71. head = hit.Parent.Head:Clone()
  72. head.Parent = hit.Parent
  73. h = hit.Parent:FindFirstChild("Humanoid")
  74. h.Health = h.Health - 100
  75. wait(2)
  76. hit.Parent:Destroy()
  77. db = 0
  78. end
  79. end
  80. end
  81.  
  82. script.Parent.Touched:connect(touch)
  83.  
  84.  
  85. end))
  86. Script4.Name = "hitsound"
  87. Script4.Parent = Part2
  88. table.insert(cors,sandbox(Script4,function()
  89. local db = 0
  90. function touch(hit)
  91. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  92. if db == 0 then
  93. db = 1
  94. script.Parent.Sound:Play()
  95. wait(2)
  96. script.Parent.Sound:Stop()
  97. db = 0
  98. end
  99.  
  100. end
  101. end
  102.  
  103. script.Parent.Touched:connect(touch)
  104.  
  105.  
  106. end))
  107. Sound5.Parent = Part2
  108. Sound5.SoundId = "rbxassetid://1624609598"
  109. Script6.Name = "Weld"
  110. Script6.Parent = Tool0
  111. table.insert(cors,sandbox(Script6,function()
  112. function weld()
  113. local parts,last = {}
  114. local function scan(parent)
  115. for _,v in pairs(parent:GetChildren()) do
  116. if (v:IsA("BasePart")) then
  117. if (last) then
  118. local w = Instance.new("Weld")
  119. w.Name = ("%s_Weld"):format(v.Name)
  120. w.Part0,w.Part1 = last,v
  121. w.C0 = last.CFrame:inverse()
  122. w.C1 = v.CFrame:inverse()
  123. w.Parent = last
  124. end
  125. last = v
  126. table.insert(parts,v)
  127. end
  128. scan(v)
  129. end
  130. end
  131. scan(script.Parent)
  132. for _,v in pairs(parts) do
  133. v.Anchored = false
  134. end
  135. end
  136.  
  137. weld()
  138. script:Remove()
  139. end))
  140. LocalScript7.Parent = Tool0
  141. table.insert(cors,sandbox(LocalScript7,function()
  142. local CanAttack = true
  143. script.Parent.Equipped:connect(function()
  144. idle = script.Parent.Parent.Humanoid:LoadAnimation(script.Idle)
  145. idle:Play()
  146. end)
  147.  
  148.  
  149.  
  150. script.Parent.Activated:connect(function()
  151. local attack = script.Parent.Parent.Humanoid:LoadAnimation(script.Attack)
  152.  
  153.  
  154.  
  155.  
  156.  
  157. if CanAttack == true then
  158.  
  159. attack:Play()
  160.  
  161. CanAttack = false
  162. wait(1)
  163.  
  164. attack:Stop()
  165. CanAttack = true
  166.  
  167. script.Parent.CanDamage.Value = true
  168.  
  169. end
  170.  
  171. end)
  172.  
  173.  
  174. script.Parent.Unequipped:connect(function()
  175. idle:Stop()
  176. end)
  177. end))
  178. Animation8.Name = "Attack"
  179. Animation8.Parent = LocalScript7
  180. Animation8.AnimationId = "rbxassetid://2107321250"
  181. Animation9.Name = "Idle"
  182. Animation9.Parent = LocalScript7
  183. Animation9.AnimationId = "rbxassetid://2107313677"
  184. BoolValue10.Name = "CanDamage"
  185. BoolValue10.Parent = Tool0
  186. MeshPart11.Parent = Tool0
  187. MeshPart11.CFrame = CFrame.new(-0.0373129994, 1.43891597, 348.705048, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  188. MeshPart11.Position = Vector3.new(-0.0373129994, 1.43891597, 348.705048)
  189. MeshPart11.Color = Color3.new(0.803922, 0.803922, 0.803922)
  190. MeshPart11.Size = Vector3.new(1.23261595, 2.85782456, 0.233993039)
  191. MeshPart11.BrickColor = BrickColor.new("Mid gray")
  192. MeshPart11.CanCollide = false
  193. MeshPart11.brickColor = BrickColor.new("Mid gray")
  194. MeshPart11.TextureID = "rbxassetid://1123443795"
  195. MeshPart12.Parent = Tool0
  196. MeshPart12.CFrame = CFrame.new(0.0458239987, 4.68542719, 348.682831, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  197. MeshPart12.Position = Vector3.new(0.0458239987, 4.68542719, 348.682831)
  198. MeshPart12.Color = Color3.new(0, 1, 0)
  199. MeshPart12.Transparency = 0.44999998807907
  200. MeshPart12.Size = Vector3.new(1.28280342, 5.25589514, 0.0834085271)
  201. MeshPart12.BrickColor = BrickColor.new("Lime green")
  202. MeshPart12.CanCollide = false
  203. MeshPart12.brickColor = BrickColor.new("Lime green")
  204. SurfaceLight13.Parent = MeshPart12
  205. SurfaceLight13.Color = Color3.new(0.333333, 1, 0)
  206. SurfaceLight13.Face = Enum.NormalId.Back
  207. SurfaceLight14.Parent = MeshPart12
  208. SurfaceLight14.Color = Color3.new(0.333333, 1, 0)
  209. MeshPart15.Parent = Tool0
  210. MeshPart15.CFrame = CFrame.new(0.0458239987, 4.03542519, 348.686127, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  211. MeshPart15.Position = Vector3.new(0.0458239987, 4.03542519, 348.686127)
  212. MeshPart15.Color = Color3.new(0.356863, 0.603922, 0.298039)
  213. MeshPart15.Size = Vector3.new(0.882803321, 3.95589638, 0.0500000007)
  214. MeshPart15.BrickColor = BrickColor.new("Shamrock")
  215. MeshPart15.CanCollide = false
  216. MeshPart15.Material = Enum.Material.SmoothPlastic
  217. MeshPart15.brickColor = BrickColor.new("Shamrock")
  218. for i,v in pairs(mas:GetChildren()) do
  219. v.Parent = workspace
  220. pcall(function() v:MakeJoints() end)
  221. end
  222. mas:Destroy()
  223. for i,v in pairs(cors) do
  224. spawn(function()
  225. pcall(v)
  226. end)
  227. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement