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"))
- WeldConstraint0 = Instance.new("WeldConstraint")
- Script1 = Instance.new("Script")
- Part2 = Instance.new("Part")
- Tool3 = Instance.new("Tool")
- Script4 = Instance.new("Script")
- Part5 = Instance.new("Part")
- WeldConstraint6 = Instance.new("WeldConstraint")
- Part7 = Instance.new("Part")
- Part8 = Instance.new("Part")
- WeldConstraint9 = Instance.new("WeldConstraint")
- WeldConstraint9.Parent = Part8
- WeldConstraint9.Part0 = Part8
- WeldConstraint9.Part1 = Part7
- Script4.Parent = Tool3
- Part7.Name = "Parttotouch"
- Part7.Parent = Tool3
- Part7.CFrame = CFrame.new(0, 0.500003994, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part7.Position = Vector3.new(0, 0.500003994, 0)
- Part7.Transparency = 1
- Part7.Size = Vector3.new(1.20000005, 1, 1.60000002)
- Part7.BottomSurface = Enum.SurfaceType.Smooth
- Part7.TopSurface = Enum.SurfaceType.Smooth
- Tool3.Name = "Leash"
- Tool3.Parent = owner.Backpack
- Part8.Name = "Handle"
- Part8.Parent = Tool3
- Part8.CFrame = CFrame.new(0, 0.500003815, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part8.Position = Vector3.new(0, 0.500003815, 0)
- Part8.Transparency = 1
- Part8.Size = Vector3.new(1.20000005, 1, 1.60000002)
- Part8.BottomSurface = Enum.SurfaceType.Smooth
- Part8.TopSurface = Enum.SurfaceType.Smooth
- WeldConstraint9.Parent = Part8
- WeldConstraint9.Part0 = Part8
- WeldConstraint9.Part1 = Part7
- Part7.Name = "Parttotouch"
- Part7.Parent = Tool3
- Part7.CFrame = CFrame.new(0, 0.500003994, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part7.Position = Vector3.new(0, 0.500003994, 0)
- Part7.Transparency = 1
- Part7.Size = Vector3.new(1.20000005, 1, 1.60000002)
- Part7.BottomSurface = Enum.SurfaceType.Smooth
- Part7.TopSurface = Enum.SurfaceType.Smooth
- Part8.Name = "Handle"
- Part8.Parent = Tool3
- Part8.CFrame = CFrame.new(0, 0.500003815, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part8.Position = Vector3.new(0, 0.500003815, 0)
- Part8.Transparency = 1
- Part8.Size = Vector3.new(1.20000005, 1, 1.60000002)
- Part8.BottomSurface = Enum.SurfaceType.Smooth
- Part8.TopSurface = Enum.SurfaceType.Smooth
- WeldConstraint9.Parent = Part8
- WeldConstraint9.Part0 = Part8
- WeldConstraint9.Part1 = Part7
- NS([[tool = script.Parent
- local debounce = false
- tool.Activated:Connect(function()
- if not debounce then
- debounce = true
- local part = script.Parent.Parttotouch
- local function onPartTouched(otherPart)
- local ropeeee = Instance.new("RopeConstraint", workspace)
- local attaty1 = Instance.new("Attachment", otherPart)
- local attaty2 = Instance.new("Attachment", part)
- ropeeee.Attachment0 = attaty1
- ropeeee.Attachment1 = attaty2
- ropeeee.Length = 10
- ropeeee.Visible = true
- wait(5)
- debounce = false
- end
- part.Touched:Connect(onPartTouched)
- end
- end)]],Tool3)
- 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
Add Comment
Please, Sign In to add comment