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")
- LocalScript1 = Instance.new("LocalScript")
- LocalScript2 = Instance.new("LocalScript")
- Part3 = Instance.new("Part")
- Part4 = Instance.new("Part")
- CylinderMesh5 = Instance.new("CylinderMesh")
- Part6 = Instance.new("Part")
- CylinderMesh7 = Instance.new("CylinderMesh")
- Part8 = Instance.new("Part")
- CylinderMesh9 = Instance.new("CylinderMesh")
- Part10 = Instance.new("Part")
- SpecialMesh11 = Instance.new("SpecialMesh")
- Part12 = Instance.new("Part")
- SpotLight13 = Instance.new("SpotLight")
- Tool0.Name = "Utility Light"
- Tool0.Parent = mas
- Tool0.ToolTip = "The Utility Light is a light that is held in a different way, but creates the same amount of light as any flashlight. It lets out a white light at an average radius."
- LocalScript1.Name = "BackupWeld"
- LocalScript1.Parent = Tool0
- table.insert(cors,sandbox(LocalScript1,function()
- function Weld(x,y)
- local W = Instance.new("Weld")
- W.Part0 = x
- W.Part1 = y
- local CJ = CFrame.new(x.Position)
- local C0 = x.CFrame:inverse()*CJ
- local C1 = y.CFrame:inverse()*CJ
- W.C0 = C0
- W.C1 = C1
- W.Parent = x
- end
- function Get(A)
- if A.className == "Part" then
- Weld(script.Parent.Handle, A)
- A.Anchored = false
- else
- local C = A:GetChildren()
- for i=1, #C do
- Get(C[i])
- end
- end
- end
- function Finale()
- Get(script.Parent)
- end
- script.Parent.Equipped:connect(Finale)
- script.Parent.Unequipped:connect(Finale)
- Finale()
- end))
- LocalScript2.Name = "BackupWeld"
- LocalScript2.Parent = Tool0
- table.insert(cors,sandbox(LocalScript2,function()
- function Weld(x,y)
- local W = Instance.new("Weld")
- W.Part0 = x
- W.Part1 = y
- local CJ = CFrame.new(x.Position)
- local C0 = x.CFrame:inverse()*CJ
- local C1 = y.CFrame:inverse()*CJ
- W.C0 = C0
- W.C1 = C1
- W.Parent = x
- end
- function Get(A)
- if A.className == "Part" then
- Weld(script.Parent.Handle, A)
- A.Anchored = false
- else
- local C = A:GetChildren()
- for i=1, #C do
- Get(C[i])
- end
- end
- end
- function Finale()
- Get(script.Parent)
- end
- script.Parent.Equipped:connect(Finale)
- script.Parent.Unequipped:connect(Finale)
- Finale()
- end))
- Part3.Name = "Handle"
- Part3.Parent = Tool0
- Part3.Transparency = 1
- Part3.Anchored = true
- Part3.FormFactor = Enum.FormFactor.Custom
- Part3.Size = Vector3.new(0.5, 0.5, 0.5)
- Part3.CFrame = CFrame.new(-4.24999809, 0.750009, 2.20000505, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part3.BackSurface = Enum.SurfaceType.Weld
- Part3.BottomSurface = Enum.SurfaceType.Weld
- Part3.FrontSurface = Enum.SurfaceType.Weld
- Part3.LeftSurface = Enum.SurfaceType.Weld
- Part3.RightSurface = Enum.SurfaceType.Weld
- Part3.TopSurface = Enum.SurfaceType.Weld
- Part3.Position = Vector3.new(-4.24999809, 0.750009, 2.20000505)
- Part4.Name = "Light"
- Part4.Parent = Tool0
- Part4.BrickColor = BrickColor.new("Institutional white")
- Part4.Rotation = Vector3.new(90, 90, 0)
- Part4.Anchored = true
- Part4.FormFactor = Enum.FormFactor.Custom
- Part4.Size = Vector3.new(0.400000006, 0.200000003, 0.400000006)
- Part4.CFrame = CFrame.new(-4.25999784, 1.50000596, 1.789994, -4.37113883e-08, 0, 1, 1, -1.62920685e-07, 4.37113883e-08, 1.62920685e-07, 1, 7.12148964e-15)
- Part4.BackSurface = Enum.SurfaceType.Weld
- Part4.BottomSurface = Enum.SurfaceType.Weld
- Part4.FrontSurface = Enum.SurfaceType.Weld
- Part4.LeftSurface = Enum.SurfaceType.Weld
- Part4.RightSurface = Enum.SurfaceType.Weld
- Part4.TopSurface = Enum.SurfaceType.Weld
- Part4.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part4.Position = Vector3.new(-4.25999784, 1.50000596, 1.789994)
- Part4.Orientation = Vector3.new(0, 90, 90)
- Part4.Color = Color3.new(0.972549, 0.972549, 0.972549)
- CylinderMesh5.Parent = Part4
- Part6.Parent = Tool0
- Part6.BrickColor = BrickColor.new("Black")
- Part6.Anchored = true
- Part6.FormFactor = Enum.FormFactor.Custom
- Part6.Size = Vector3.new(0.5, 1.5, 0.5)
- Part6.CFrame = CFrame.new(-4.24999809, 0.750009, 2.20000505, 1, 0, 0, 0, 1, -1.33158053e-07, 0, 1.33158053e-07, 1)
- Part6.BackSurface = Enum.SurfaceType.Weld
- Part6.BottomSurface = Enum.SurfaceType.Weld
- Part6.FrontSurface = Enum.SurfaceType.Weld
- Part6.LeftSurface = Enum.SurfaceType.Weld
- Part6.RightSurface = Enum.SurfaceType.Weld
- Part6.TopSurface = Enum.SurfaceType.Weld
- Part6.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part6.Position = Vector3.new(-4.24999809, 0.750009, 2.20000505)
- Part6.Color = Color3.new(0.105882, 0.164706, 0.207843)
- CylinderMesh7.Parent = Part6
- Part8.Parent = Tool0
- Part8.BrickColor = BrickColor.new("Black")
- Part8.Rotation = Vector3.new(90, -90, 0)
- Part8.Anchored = true
- Part8.FormFactor = Enum.FormFactor.Custom
- Part8.Size = Vector3.new(0.5, 0.5, 0.5)
- Part8.CFrame = CFrame.new(-4.24999809, 1.50000596, 1.95000601, -4.37113883e-08, 0, -1, -1, -1.62920685e-07, 4.37113883e-08, -1.62920685e-07, 1, 7.12148964e-15)
- Part8.BackSurface = Enum.SurfaceType.Weld
- Part8.BottomSurface = Enum.SurfaceType.Weld
- Part8.FrontSurface = Enum.SurfaceType.Weld
- Part8.LeftSurface = Enum.SurfaceType.Weld
- Part8.RightSurface = Enum.SurfaceType.Weld
- Part8.TopSurface = Enum.SurfaceType.Weld
- Part8.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part8.Position = Vector3.new(-4.24999809, 1.50000596, 1.95000601)
- Part8.Orientation = Vector3.new(0, -90, -90)
- Part8.Color = Color3.new(0.105882, 0.164706, 0.207843)
- CylinderMesh9.Parent = Part8
- Part10.Parent = Tool0
- Part10.BrickColor = BrickColor.new("Black")
- Part10.Anchored = true
- Part10.FormFactor = Enum.FormFactor.Custom
- Part10.Size = Vector3.new(0.5, 0.5, 0.5)
- Part10.CFrame = CFrame.new(-4.24999809, 1.50000596, 2.20000505, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part10.BottomSurface = Enum.SurfaceType.Smooth
- Part10.TopSurface = Enum.SurfaceType.Smooth
- Part10.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part10.Position = Vector3.new(-4.24999809, 1.50000596, 2.20000505)
- Part10.Color = Color3.new(0.105882, 0.164706, 0.207843)
- SpecialMesh11.Parent = Part10
- SpecialMesh11.MeshType = Enum.MeshType.Sphere
- Part12.Name = "Light Emitter"
- Part12.Parent = Tool0
- Part12.BrickColor = BrickColor.new("Institutional white")
- Part12.Transparency = 1
- Part12.Anchored = true
- Part12.FormFactor = Enum.FormFactor.Custom
- Part12.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part12.CFrame = CFrame.new(-4.24999809, 1.50000596, 1.59999204, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part12.BackSurface = Enum.SurfaceType.Weld
- Part12.BottomSurface = Enum.SurfaceType.Weld
- Part12.FrontSurface = Enum.SurfaceType.Weld
- Part12.LeftSurface = Enum.SurfaceType.Weld
- Part12.RightSurface = Enum.SurfaceType.Weld
- Part12.TopSurface = Enum.SurfaceType.Weld
- Part12.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part12.Position = Vector3.new(-4.24999809, 1.50000596, 1.59999204)
- Part12.Color = Color3.new(0.972549, 0.972549, 0.972549)
- SpotLight13.Parent = Part12
- SpotLight13.Range = 50
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Players").LocalPlayer.Backpack
- 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