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")
- Script1 = Instance.new("Script")
- Part2 = Instance.new("Part")
- Part3 = Instance.new("Part")
- Part4 = Instance.new("Part")
- Part5 = Instance.new("Part")
- Part6 = Instance.new("Part")
- Part7 = Instance.new("Part")
- Part8 = Instance.new("Part")
- Part9 = Instance.new("Part")
- Part10 = Instance.new("Part")
- Part11 = Instance.new("Part")
- Part12 = Instance.new("Part")
- Part13 = Instance.new("Part")
- Part14 = Instance.new("Part")
- ScreenGui15 = Instance.new("ScreenGui")
- TextBox16 = Instance.new("TextBox")
- TextButton17 = Instance.new("TextButton")
- Script18 = Instance.new("Script")
- LocalScript19 = Instance.new("LocalScript")
- Tool0.Name = "Death Note"
- Tool0.Parent = mas
- Tool0.GripForward = Vector3.new(0, 0, 1)
- Tool0.GripRight = Vector3.new(-1, 0, 0)
- Tool0.ToolTip = "X_X"
- Script1.Name = "qPerfectionWeld"
- Script1.Parent = Tool0
- table.insert(cors,sandbox(Script1,function()
- -- Created by Quenty (@Quenty, follow me on twitter).
- -- Should work with only ONE copy, seamlessly with weapons, trains, et cetera.
- -- Parts should be ANCHORED before use. It will, however, store relatives values and so when tools are reparented, it'll fix them.
- --[[ INSTRUCTIONS
- - Place in the model
- - Make sure model is anchored
- - That's it. It will weld the model and all children.
- THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
- THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
- THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
- THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
- THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
- THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
- THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
- THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
- This script is designed to be used is a regular script. In a local script it will weld, but it will not attempt to handle ancestory changes.
- ]]
- --[[ DOCUMENTATION
- - Will work in tools. If ran more than once it will not create more than one weld. This is especially useful for tools that are dropped and then picked up again.
- - Will work in PBS servers
- - Will work as long as it starts out with the part anchored
- - Stores the relative CFrame as a CFrame value
- - Takes careful measure to reduce lag by not having a joint set off or affected by the parts offset from origin
- - Utilizes a recursive algorith to find all parts in the model
- - Will reweld on script reparent if the script is initially parented to a tool.
- - Welds as fast as possible
- ]]
- -- qPerfectionWeld.lua
- -- Created 10/6/2014
- -- Author: Quenty
- -- Version 1.0.3
- -- Updated 10/14/2014 - Updated to 1.0.1
- --- Bug fix with existing ROBLOX welds ? Repro by asimo3089
- -- Updated 10/14/2014 - Updated to 1.0.2
- --- Fixed bug fix.
- -- Updated 10/14/2014 - Updated to 1.0.3
- --- Now handles joints semi-acceptably. May be rather hacky with some joints. :/
- local NEVER_BREAK_JOINTS = false -- If you set this to true it will never break joints (this can create some welding issues, but can save stuff like hinges).
- local function CallOnChildren(Instance, FunctionToCall)
- -- Calls a function on each of the children of a certain object, using recursion.
- FunctionToCall(Instance)
- for _, Child in next, Instance:GetChildren() do
- CallOnChildren(Child, FunctionToCall)
- end
- end
- local function GetNearestParent(Instance, ClassName)
- -- Returns the nearest parent of a certain class, or returns nil
- local Ancestor = Instance
- repeat
- Ancestor = Ancestor.Parent
- if Ancestor == nil then
- return nil
- end
- until Ancestor:IsA(ClassName)
- return Ancestor
- end
- local function GetBricks(StartInstance)
- local List = {}
- -- if StartInstance:IsA("BasePart") then
- -- List[#List+1] = StartInstance
- -- end
- CallOnChildren(StartInstance, function(Item)
- if Item:IsA("BasePart") then
- List[#List+1] = Item;
- end
- end)
- return List
- end
- local function Modify(Instance, Values)
- -- Modifies an Instance by using a table.
- assert(type(Values) == "table", "Values is not a table");
- for Index, Value in next, Values do
- if type(Index) == "number" then
- Value.Parent = Instance
- else
- Instance[Index] = Value
- end
- end
- return Instance
- end
- local function Make(ClassType, Properties)
- -- Using a syntax hack to create a nice way to Make new items.
- return Modify(Instance.new(ClassType), Properties)
- end
- local Surfaces = {"TopSurface", "BottomSurface", "LeftSurface", "RightSurface", "FrontSurface", "BackSurface"}
- local HingSurfaces = {"Hinge", "Motor", "SteppingMotor"}
- local function HasWheelJoint(Part)
- for _, SurfaceName in pairs(Surfaces) do
- for _, HingSurfaceName in pairs(HingSurfaces) do
- if Part[SurfaceName].Name == HingSurfaceName then
- return true
- end
- end
- end
- return false
- end
- local function ShouldBreakJoints(Part)
- --- We do not want to break joints of wheels/hinges. This takes the utmost care to not do this. There are
- -- definitely some edge cases.
- if NEVER_BREAK_JOINTS then
- return false
- end
- if HasWheelJoint(Part) then
- return false
- end
- local Connected = Part:GetConnectedParts()
- if #Connected == 1 then
- return false
- end
- for _, Item in pairs(Connected) do
- if HasWheelJoint(Item) then
- return false
- elseif not Item:IsDescendantOf(script.Parent) then
- return false
- end
- end
- return true
- end
- local function WeldTogether(Part0, Part1, JointType, WeldParent)
- --- Weld's 2 parts together
- -- @param Part0 The first part
- -- @param Part1 The second part (Dependent part most of the time).
- -- @param [JointType] The type of joint. Defaults to weld.
- -- @param [WeldParent] Parent of the weld, Defaults to Part0 (so GC is better).
- -- @return The weld created.
- JointType = JointType or "Weld"
- local RelativeValue = Part1:FindFirstChild("qRelativeCFrameWeldValue")
- local NewWeld = Part1:FindFirstChild("qCFrameWeldThingy") or Instance.new(JointType)
- Modify(NewWeld, {
- Name = "qCFrameWeldThingy";
- Part0 = Part0;
- Part1 = Part1;
- C0 = CFrame.new();--Part0.CFrame:inverse();
- C1 = RelativeValue and RelativeValue.Value or Part1.CFrame:toObjectSpace(Part0.CFrame); --Part1.CFrame:inverse() * Part0.CFrame;-- Part1.CFrame:inverse();
- Parent = Part1;
- })
- if not RelativeValue then
- RelativeValue = Make("CFrameValue", {
- Parent = Part1;
- Name = "qRelativeCFrameWeldValue";
- Archivable = true;
- Value = NewWeld.C1;
- })
- end
- return NewWeld
- end
- local function WeldParts(Parts, MainPart, JointType, DoNotUnanchor)
- -- @param Parts The Parts to weld. Should be anchored to prevent really horrible results.
- -- @param MainPart The part to weld the model to (can be in the model).
- -- @param [JointType] The type of joint. Defaults to weld.
- -- @parm DoNotUnanchor Boolean, if true, will not unachor the model after cmopletion.
- for _, Part in pairs(Parts) do
- if ShouldBreakJoints(Part) then
- Part:BreakJoints()
- end
- end
- for _, Part in pairs(Parts) do
- if Part ~= MainPart then
- WeldTogether(MainPart, Part, JointType, MainPart)
- end
- end
- if not DoNotUnanchor then
- for _, Part in pairs(Parts) do
- Part.Anchored = false
- end
- MainPart.Anchored = false
- end
- end
- local function PerfectionWeld()
- local Tool = GetNearestParent(script, "Tool")
- local Parts = GetBricks(script.Parent)
- local PrimaryPart = Tool and Tool:FindFirstChild("Handle") and Tool.Handle:IsA("BasePart") and Tool.Handle or script.Parent:IsA("Model") and script.Parent.PrimaryPart or Parts[1]
- if PrimaryPart then
- WeldParts(Parts, PrimaryPart, "Weld", false)
- else
- warn("qWeld - Unable to weld part")
- end
- return Tool
- end
- local Tool = PerfectionWeld()
- if Tool and script.ClassName == "Script" then
- --- Don't bother with local scripts
- script.Parent.AncestryChanged:connect(function()
- PerfectionWeld()
- end)
- end
- -- Created by Quenty (@Quenty, follow me on twitter).
- end))
- Part2.Parent = Tool0
- Part2.Material = Enum.Material.Sand
- Part2.BrickColor = BrickColor.new("Institutional white")
- Part2.Rotation = Vector3.new(9.73999977, -30, -9.73999977)
- Part2.Size = Vector3.new(0.250000119, 0.490000159, 0.229999959)
- Part2.CFrame = CFrame.new(-1.86704588, 1.69228172, -9.05548096, 0.853553176, 0.146447167, -0.500000179, -0.25000006, 0.957106948, -0.146445483, 0.457107127, 0.249999091, 0.853553534)
- Part2.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part2.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part2.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part2.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part2.Position = Vector3.new(-1.86704588, 1.69228172, -9.05548096)
- Part2.Orientation = Vector3.new(8.42000008, -30.3599987, -14.6399994)
- Part2.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part3.Parent = Tool0
- Part3.Material = Enum.Material.Sand
- Part3.BrickColor = BrickColor.new("Institutional white")
- Part3.Rotation = Vector3.new(9.73999977, -30, -99.7399979)
- Part3.Size = Vector3.new(0.250000119, 0.490000159, 0.229999959)
- Part3.CFrame = CFrame.new(-1.78240085, 1.5131427, -9.03663445, -0.146446973, 0.853553891, -0.499999166, -0.957106769, -0.250000149, -0.146446645, -0.24999994, 0.457105905, 0.853553951)
- Part3.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part3.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part3.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part3.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part3.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part3.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part3.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part3.Position = Vector3.new(-1.78240085, 1.5131427, -9.03663445)
- Part3.Orientation = Vector3.new(8.42000008, -30.3599987, -104.639999)
- Part3.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part4.Parent = Tool0
- Part4.Material = Enum.Material.Sand
- Part4.BrickColor = BrickColor.new("Institutional white")
- Part4.Rotation = Vector3.new(9.73999977, -30, -99.7399979)
- Part4.Size = Vector3.new(0.250000119, 0.490000159, 0.229999959)
- Part4.CFrame = CFrame.new(-1.30036998, 1.85398972, -8.69578743, -0.146446973, 0.853553891, -0.499999166, -0.957106769, -0.250000149, -0.146446645, -0.24999994, 0.457105905, 0.853553951)
- Part4.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part4.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part4.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part4.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part4.Position = Vector3.new(-1.30036998, 1.85398972, -8.69578743)
- Part4.Orientation = Vector3.new(8.42000008, -30.3599987, -104.639999)
- Part4.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part5.Parent = Tool0
- Part5.Material = Enum.Material.Sand
- Part5.BrickColor = BrickColor.new("Institutional white")
- Part5.Rotation = Vector3.new(9.73999977, -30, -9.73999977)
- Part5.Size = Vector3.new(0.250000119, 0.490000159, 0.229999959)
- Part5.CFrame = CFrame.new(-1.38501596, 2.03312874, -8.71463585, 0.853553176, 0.146447167, -0.500000179, -0.25000006, 0.957106948, -0.146445483, 0.457107127, 0.249999091, 0.853553534)
- Part5.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part5.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part5.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part5.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part5.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part5.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part5.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part5.Position = Vector3.new(-1.38501596, 2.03312874, -8.71463585)
- Part5.Orientation = Vector3.new(8.42000008, -30.3599987, -14.6399994)
- Part5.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part6.Parent = Tool0
- Part6.Material = Enum.Material.Sand
- Part6.BrickColor = BrickColor.new("Institutional white")
- Part6.Rotation = Vector3.new(0, 21.0900002, 0)
- Part6.Size = Vector3.new(1.12000012, 1.7700001, 0.0899999961)
- Part6.CFrame = CFrame.new(-3.4731617, 0.995000124, -9.7085228, 0.933016598, 0, 0.359854072, 0, 1, 0, -0.359856844, 0, 0.933011353)
- Part6.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part6.Position = Vector3.new(-3.4731617, 0.995000124, -9.7085228)
- Part6.Orientation = Vector3.new(0, 21.0900002, 0)
- Part6.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part7.Parent = Tool0
- Part7.Material = Enum.Material.Sand
- Part7.BrickColor = BrickColor.new("Institutional white")
- Part7.Rotation = Vector3.new(9.73999977, -30, -99.7399979)
- Part7.Size = Vector3.new(0.250000119, 0.490000159, 0.229999959)
- Part7.CFrame = CFrame.new(-1.5454998, 1.68065572, -8.86911964, -0.146446973, 0.853553891, -0.499999166, -0.957106769, -0.250000149, -0.146446645, -0.24999994, 0.457105905, 0.853553951)
- Part7.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part7.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part7.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part7.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part7.Position = Vector3.new(-1.5454998, 1.68065572, -8.86911964)
- Part7.Orientation = Vector3.new(8.42000008, -30.3599987, -104.639999)
- Part7.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part8.Parent = Tool0
- Part8.Material = Enum.Material.Sand
- Part8.BrickColor = BrickColor.new("Institutional white")
- Part8.Rotation = Vector3.new(9.73999977, -30, -9.73999977)
- Part8.Size = Vector3.new(0.250000119, 0.490000159, 0.229999959)
- Part8.CFrame = CFrame.new(-1.63014674, 1.85979569, -8.88796806, 0.853553176, 0.146447167, -0.500000179, -0.25000006, 0.957106948, -0.146445483, 0.457107127, 0.249999091, 0.853553534)
- Part8.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part8.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part8.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part8.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part8.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part8.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part8.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part8.Position = Vector3.new(-1.63014674, 1.85979569, -8.88796806)
- Part8.Orientation = Vector3.new(8.42000008, -30.3599987, -14.6399994)
- Part8.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part9.Parent = Tool0
- Part9.Material = Enum.Material.SmoothPlastic
- Part9.BrickColor = BrickColor.new("Really black")
- Part9.Rotation = Vector3.new(9.73999977, -30, -54.7399979)
- Part9.Size = Vector3.new(0.250000119, 0.490000159, 0.229999959)
- Part9.CFrame = CFrame.new(-2.10871005, 1.38648963, -9.2495079, 0.500000179, 0.707106709, -0.50000006, -0.853553295, 0.500000358, -0.146446332, 0.146447062, 0.499999881, 0.853553474)
- Part9.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part9.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part9.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part9.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part9.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part9.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part9.Position = Vector3.new(-2.10871005, 1.38648963, -9.2495079)
- Part9.Orientation = Vector3.new(8.42000008, -30.3599987, -59.6399994)
- Part9.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part10.Parent = Tool0
- Part10.Material = Enum.Material.Pebble
- Part10.BrickColor = BrickColor.new("Brown")
- Part10.Rotation = Vector3.new(-90, 0, -172.539993)
- Part10.Size = Vector3.new(0.0732943937, 0.200000003, 2)
- Part10.CFrame = CFrame.new(-2.98951197, 1, -10.0442381, -0.991529584, 0.129881382, -0, 0, 0, 1, 0.129881382, 0.991529584, -0)
- Part10.BottomSurface = Enum.SurfaceType.Smooth
- Part10.TopSurface = Enum.SurfaceType.Smooth
- Part10.Color = Color3.new(0.486275, 0.360784, 0.27451)
- Part10.Position = Vector3.new(-2.98951197, 1, -10.0442381)
- Part10.Orientation = Vector3.new(-90, -172.539993, 0)
- Part10.Color = Color3.new(0.486275, 0.360784, 0.27451)
- Part11.Parent = Tool0
- Part11.Material = Enum.Material.Sand
- Part11.BrickColor = BrickColor.new("Institutional white")
- Part11.Rotation = Vector3.new(0, -25.6299992, 0)
- Part11.Size = Vector3.new(1.12000012, 1.7700001, 0.0899999961)
- Part11.CFrame = CFrame.new(-2.59346795, 0.995000124, -9.64968204, 0.901623726, 0, -0.432521373, 0, 1, 0, 0.432521343, 0, 0.901623726)
- Part11.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part11.Position = Vector3.new(-2.59346795, 0.995000124, -9.64968204)
- Part11.Orientation = Vector3.new(0, -25.6299992, 0)
- Part11.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part12.Parent = Tool0
- Part12.Material = Enum.Material.Pebble
- Part12.BrickColor = BrickColor.new("Brown")
- Part12.Rotation = Vector3.new(0, 21.0900002, 0)
- Part12.Size = Vector3.new(1.25, 2, 0.25)
- Part12.CFrame = CFrame.new(-3.5769906, 1, -9.79709339, 0.933016598, 0, 0.359854072, 0, 1, 0, -0.359856844, 0, 0.933011353)
- Part12.Color = Color3.new(0.486275, 0.360784, 0.27451)
- Part12.Position = Vector3.new(-3.5769906, 1, -9.79709339)
- Part12.Orientation = Vector3.new(0, 21.0900002, 0)
- Part12.Color = Color3.new(0.486275, 0.360784, 0.27451)
- Part13.Parent = Tool0
- Part13.Material = Enum.Material.Pebble
- Part13.BrickColor = BrickColor.new("Brown")
- Part13.Rotation = Vector3.new(0, -25.7099991, 0)
- Part13.Size = Vector3.new(1.25, 2, 0.25)
- Part13.CFrame = CFrame.new(-2.45724392, 1, -9.76442051, 0.90102464, 0, -0.433768183, 0, 1, 0, 0.433762759, 0, 0.901024461)
- Part13.Color = Color3.new(0.486275, 0.360784, 0.27451)
- Part13.Position = Vector3.new(-2.45724392, 1, -9.76442051)
- Part13.Orientation = Vector3.new(0, -25.7099991, 0)
- Part13.Color = Color3.new(0.486275, 0.360784, 0.27451)
- Part14.Name = "Handle"
- Part14.Parent = Tool0
- Part14.Transparency = 1
- Part14.Rotation = Vector3.new(-180, 0, -180)
- Part14.Size = Vector3.new(1, 1, 1)
- Part14.CFrame = CFrame.new(-2.5, 0.815715075, -9.5, -1.00000262, 0, 0, 0, 1, 0, 0, 0, -1.00000262)
- Part14.BottomSurface = Enum.SurfaceType.Smooth
- Part14.TopSurface = Enum.SurfaceType.Smooth
- Part14.Position = Vector3.new(-2.5, 0.815715075, -9.5)
- Part14.Orientation = Vector3.new(0, 180, 0)
- ScreenGui15.Name = "DeathNoteGUI"
- ScreenGui15.Parent = Tool0
- TextBox16.Name = "PlayerName"
- TextBox16.Parent = ScreenGui15
- TextBox16.Transparency = 0.5
- TextBox16.Size = UDim2.new(0.196612671, 0, 0.132394373, 0)
- TextBox16.Text = "Type Name"
- TextBox16.Position = UDim2.new(0.392488956, 0, 0.156338021, 0)
- TextBox16.BackgroundColor3 = Color3.new(0, 0, 0)
- TextBox16.BackgroundTransparency = 0.5
- TextBox16.BorderSizePixel = 0
- TextBox16.Font = Enum.Font.SourceSans
- TextBox16.FontSize = Enum.FontSize.Size14
- TextBox16.TextColor3 = Color3.new(1, 1, 1)
- TextBox16.TextScaled = true
- TextBox16.TextWrapped = true
- TextButton17.Name = "KillButton"
- TextButton17.Parent = ScreenGui15
- TextButton17.Transparency = 0.5
- TextButton17.Size = UDim2.new(0, 200, 0, 50)
- TextButton17.Text = "Kill"
- TextButton17.Position = UDim2.new(0.415316641, 0, 0.302816898, 0)
- TextButton17.BackgroundColor3 = Color3.new(0, 0, 0)
- TextButton17.BackgroundTransparency = 0.5
- TextButton17.Font = Enum.Font.SourceSans
- TextButton17.FontSize = Enum.FontSize.Size14
- TextButton17.TextColor3 = Color3.new(1, 1, 1)
- TextButton17.TextScaled = true
- TextButton17.TextWrapped = true
- Script18.Name = "KillScript"
- Script18.Parent = TextButton17
- table.insert(cors,sandbox(Script18,function()
- script.Parent.MouseButton1Down : connect(function()
- local Plr = script.Parent.Parent.PlayerName.Text
- local Char = game.Players [Plr].Character
- Char.Humanoid.Health = 0
- end)
- end))
- LocalScript19.Name = "GUIActivate"
- LocalScript19.Parent = Tool0
- table.insert(cors,sandbox(LocalScript19,function()
- script.Parent.Equipped : connect(function()
- script.Parent.DeathNoteGUI : Clone().Parent = game.Players.LocalPlayer.PlayerGui
- end)
- script.Parent.Unequipped : connect(function()
- game.Players.LocalPlayer.PlayerGui.DeathNoteGUI : Destroy()
- end)
- end))
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement