Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Tool0 = Instance.new("Tool")
- Part1 = Instance.new("Part")
- Part2 = Instance.new("Part")
- Script3 = Instance.new("Script")
- Script4 = Instance.new("Script")
- Sound5 = Instance.new("Sound")
- Script6 = Instance.new("Script")
- LocalScript7 = Instance.new("LocalScript")
- Animation8 = Instance.new("Animation")
- Animation9 = Instance.new("Animation")
- BoolValue10 = Instance.new("BoolValue")
- MeshPart11 = Instance.new("MeshPart")
- MeshPart12 = Instance.new("MeshPart")
- SurfaceLight13 = Instance.new("SurfaceLight")
- SurfaceLight14 = Instance.new("SurfaceLight")
- MeshPart15 = Instance.new("MeshPart")
- Tool0.Name = "Green Goblin"
- Tool0.Parent = mas
- Part1.Name = "Handle"
- Part1.Parent = Tool0
- 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)
- Part1.Orientation = Vector3.new(0, -100, 10)
- Part1.Position = Vector3.new(-0.0500050001, 0.713413, 348.699982)
- Part1.Rotation = Vector3.new(-180, -80, -170)
- Part1.Transparency = 1
- Part1.Size = Vector3.new(0.100000553, 1, 0.0999997482)
- Part1.Anchored = true
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part2.Name = "blade"
- Part2.Parent = Tool0
- Part2.CFrame = CFrame.new(-2.49999994e-05, 4.73843002, 348.699982, 0, 1, -0, -1, 0, 0, 0, 0, 1)
- Part2.Orientation = Vector3.new(0, 0, -90)
- Part2.Position = Vector3.new(-2.49999994e-05, 4.73843002, 348.699982)
- Part2.Rotation = Vector3.new(0, 0, -90)
- Part2.Color = Color3.new(0.627451, 0.517647, 0.309804)
- Part2.Transparency = 1
- Part2.Size = Vector3.new(5.05000067, 1.50000024, 0.400000036)
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.BrickColor = BrickColor.new("Fawn brown")
- Part2.CanCollide = false
- Part2.Material = Enum.Material.Wood
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part2.brickColor = BrickColor.new("Fawn brown")
- Script3.Name = "hit"
- Script3.Parent = Part2
- table.insert(cors,sandbox(Script3,function()
- local db = 0
- function touch(hit)
- if hit.Parent:FindFirstChild("Humanoid") ~= nil then
- if db == 0 then
- head = hit.Parent.Head:Clone()
- head.Parent = hit.Parent
- h = hit.Parent:FindFirstChild("Humanoid")
- h.Health = h.Health - 100
- wait(2)
- hit.Parent:Destroy()
- db = 0
- end
- end
- end
- script.Parent.Touched:connect(touch)
- end))
- Script4.Name = "hitsound"
- Script4.Parent = Part2
- table.insert(cors,sandbox(Script4,function()
- local db = 0
- function touch(hit)
- if hit.Parent:FindFirstChild("Humanoid") ~= nil then
- if db == 0 then
- db = 1
- script.Parent.Sound:Play()
- wait(2)
- script.Parent.Sound:Stop()
- db = 0
- end
- end
- end
- script.Parent.Touched:connect(touch)
- end))
- Sound5.Parent = Part2
- Sound5.SoundId = "rbxassetid://1624609598"
- Script6.Name = "Weld"
- Script6.Parent = Tool0
- table.insert(cors,sandbox(Script6,function()
- function weld()
- local parts,last = {}
- local function scan(parent)
- for _,v in pairs(parent:GetChildren()) do
- if (v:IsA("BasePart")) then
- if (last) then
- local w = Instance.new("Weld")
- w.Name = ("%s_Weld"):format(v.Name)
- w.Part0,w.Part1 = last,v
- w.C0 = last.CFrame:inverse()
- w.C1 = v.CFrame:inverse()
- w.Parent = last
- end
- last = v
- table.insert(parts,v)
- end
- scan(v)
- end
- end
- scan(script.Parent)
- for _,v in pairs(parts) do
- v.Anchored = false
- end
- end
- weld()
- script:Remove()
- end))
- LocalScript7.Parent = Tool0
- table.insert(cors,sandbox(LocalScript7,function()
- local CanAttack = true
- script.Parent.Equipped:connect(function()
- idle = script.Parent.Parent.Humanoid:LoadAnimation(script.Idle)
- idle:Play()
- end)
- script.Parent.Activated:connect(function()
- local attack = script.Parent.Parent.Humanoid:LoadAnimation(script.Attack)
- if CanAttack == true then
- attack:Play()
- CanAttack = false
- wait(1)
- attack:Stop()
- CanAttack = true
- script.Parent.CanDamage.Value = true
- end
- end)
- script.Parent.Unequipped:connect(function()
- idle:Stop()
- end)
- end))
- Animation8.Name = "Attack"
- Animation8.Parent = LocalScript7
- Animation8.AnimationId = "rbxassetid://2107321250"
- Animation9.Name = "Idle"
- Animation9.Parent = LocalScript7
- Animation9.AnimationId = "rbxassetid://2107313677"
- BoolValue10.Name = "CanDamage"
- BoolValue10.Parent = Tool0
- MeshPart11.Parent = Tool0
- MeshPart11.CFrame = CFrame.new(-0.0373129994, 1.43891597, 348.705048, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart11.Position = Vector3.new(-0.0373129994, 1.43891597, 348.705048)
- MeshPart11.Color = Color3.new(0.803922, 0.803922, 0.803922)
- MeshPart11.Size = Vector3.new(1.23261595, 2.85782456, 0.233993039)
- MeshPart11.BrickColor = BrickColor.new("Mid gray")
- MeshPart11.CanCollide = false
- MeshPart11.brickColor = BrickColor.new("Mid gray")
- MeshPart11.TextureID = "rbxassetid://1123443795"
- MeshPart12.Parent = Tool0
- MeshPart12.CFrame = CFrame.new(0.0458239987, 4.68542719, 348.682831, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart12.Position = Vector3.new(0.0458239987, 4.68542719, 348.682831)
- MeshPart12.Color = Color3.new(0, 1, 0)
- MeshPart12.Transparency = 0.44999998807907
- MeshPart12.Size = Vector3.new(1.28280342, 5.25589514, 0.0834085271)
- MeshPart12.BrickColor = BrickColor.new("Lime green")
- MeshPart12.CanCollide = false
- MeshPart12.brickColor = BrickColor.new("Lime green")
- SurfaceLight13.Parent = MeshPart12
- SurfaceLight13.Color = Color3.new(0.333333, 1, 0)
- SurfaceLight13.Face = Enum.NormalId.Back
- SurfaceLight14.Parent = MeshPart12
- SurfaceLight14.Color = Color3.new(0.333333, 1, 0)
- MeshPart15.Parent = Tool0
- MeshPart15.CFrame = CFrame.new(0.0458239987, 4.03542519, 348.686127, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart15.Position = Vector3.new(0.0458239987, 4.03542519, 348.686127)
- MeshPart15.Color = Color3.new(0.356863, 0.603922, 0.298039)
- MeshPart15.Size = Vector3.new(0.882803321, 3.95589638, 0.0500000007)
- MeshPart15.BrickColor = BrickColor.new("Shamrock")
- MeshPart15.CanCollide = false
- MeshPart15.Material = Enum.Material.SmoothPlastic
- MeshPart15.brickColor = BrickColor.new("Shamrock")
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement