Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --By Rufus14
- --owner = game.Players:GetPlayerFromCharacter(script.Parent)
- character = owner.Character
- NLS([[--By Rufus14
- runservice = game:GetService("RunService")
- owner = game:GetService("Players").LocalPlayer
- character = owner.Character
- rootpart = character.HumanoidRootPart
- humanoidowner = character:findFirstChildOfClass("Humanoid")
- bow = character:WaitForChild("mybow")
- local bowweldlocal = Instance.new("Weld", bow)
- bowweldlocal.Name = "bowweldlocal"
- bowweldlocal.Part0 = character.Torso
- bowweldlocal.Part1 = bow:findFirstChild("theholder", true)
- bowweldlocal.C0 = CFrame.new(-0.363851786, 0.0303258896, 0.531646669, 0.347845018, -0.937389731, 0.0174473673, 0.937532127, 0.347898811, 5.02271178e-05, -0.00611700071, 0.016339995, 0.99984777)
- local linemiddleweld = Instance.new("Weld", bow)
- linemiddleweld.Name = "linemiddleweldlocal"
- linemiddleweld.Part0 = bow:findFirstChild("theholder", true)
- linemiddleweld.Part1 = bow:findFirstChild("linemiddle", true)
- linemiddleweld.C0 = CFrame.new(0, -0.625000954, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- local upperpartweld = Instance.new("Weld", bow)
- upperpartweld.Name = "mainupperweldlocal"
- upperpartweld.Part0 = bow:findFirstChild("theholder", true)
- upperpartweld.Part1 = bow:findFirstChild("mainupperpart", true)
- upperpartweld.C0 = CFrame.new(0.499999523, 0.0500001907, 4.76837158e-07, 0.999999881, 0, 0, 0, 0.999999881, 0, 0, 0, 1)
- local lowerpartweld = Instance.new("Weld", bow)
- lowerpartweld.Name = "mainlowerweldlocal"
- lowerpartweld.Part0 = bow:findFirstChild("theholder", true)
- lowerpartweld.Part1 = bow:findFirstChild("mainlowerpart", true)
- lowerpartweld.C0 = CFrame.new(-0.500000954, 0.0500001907, 4.76837158e-07, 0.999999642, 0, 0, 0, 0.999999642, 0, 0, 0, 1)
- canuse = true
- drawing = false
- equipped = false
- remote = character:WaitForChild("bowremote")
- mouse = owner:GetMouse()
- mouse.Button1Down:connect(function()
- if canuse and equipped then
- canuse = false
- if not drawing then
- drawing = true
- remote:FireServer("draw")
- remote:FireServer("makeweld", character.Torso, character["Right Arm"], "RightArmWeldbow", CFrame.new(1.5,0,0))
- local rightarm = Instance.new("Weld", character.Torso)
- rightarm.Part0 = character.Torso
- rightarm.Part1 = character["Right Arm"]
- rightarm.C0 = CFrame.new(1.5,0,0)
- rightarm.Name = "RightArmWeldbowlocal"
- for i = 0,0.4 , 0.015 do
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.29883623, 1.05499792, 0.320428252, 0.939692616, 0.342020124, 0, 0.29619807, -0.813797653, 0.5, 0.171010077, -0.469846368, -0.866025329),i)
- runservice.RenderStepped:wait()
- end
- remote:FireServer("makearrow", "hand")
- remote:FireServer("playsound", "drawarrow", true)
- local arrow = character["Right Arm"]:WaitForChild("arrow")
- local basedweld = Instance.new("Weld", character["Right Arm"])
- basedweld.Part0 = character["Right Arm"]
- basedweld.Part1 = arrow:findFirstChild("based")
- basedweld.C0 = CFrame.new(-0.606494904, -0.714157581, -0.790890455, -0.464412391, 0.211017355, -0.860111833, 0.530729294, -0.711173058, -0.461041301, -0.70897603, -0.670600176, 0.218284503)
- basedweld.Name = "based?basedonwhat?local"
- remote:FireServer("makeweld", character.HumanoidRootPart, character.Torso, "HumanoidRootPartWeldbow", CFrame.new(1.5,0,0))
- remote:FireServer("makeweld", character.Torso, character["Left Arm"], "LeftArmWeldbow", CFrame.new(1.5,0,0))
- remote:FireServer("makeweld", character.Torso, character.Head, "HeadWeldbow", CFrame.new(1.5,0,0))
- local leftarm = Instance.new("Weld", character.Torso)
- leftarm.Part0 = character.Torso
- leftarm.Part1 = character["Left Arm"]
- leftarm.C0 = CFrame.new(-1.5,0,0)
- leftarm.Name = "LeftArmWeldbowlocal"
- local head = Instance.new("Weld", character.Torso)
- head.Part0 = character.Torso
- head.Part1 = character.Head
- head.C0 = CFrame.new(0,1.5,0)
- head.Name = "HeadWeldbowlocal"
- local humanoidrootpart = Instance.new("Weld", character.HumanoidRootPart)
- humanoidrootpart.Part0 = character.HumanoidRootPart
- humanoidrootpart.Part1 = character.Torso
- humanoidrootpart.Name = "HumanoidRootPartWeldbowlocal"
- for i = 0,0.5 , 0.015 do
- basedweld.C0 = basedweld.C0:lerp(CFrame.new(0.296183109, -1.75894773, -0.576878786, 0.198091909, 0.0438630991, -0.979201138, -0.958058894, -0.202390447, -0.202880844, -0.207079992, 0.978322089, 0.00193150772),i)
- bowweldlocal.C0 = bowweldlocal.C0:lerp(CFrame.new(0.119829178, -1.04589534, -0.248363256, 0.00200265949, -0.945514143, -0.325574636, -0.00594672421, -0.325580806, 0.945495546, -0.999980271, 4.25971339e-05, -0.00627474068),i)
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.342020094, 0, -0.939692616, 0, 1, 0, 0.939692616, 0, 0.342020094),i)
- head.C0 = head.C0:lerp(CFrame.new(0, 1.5, 0, 0.342020124, 0, 0.939692557, 0, 1, 0, -0.939692557, 0, 0.342020124),i)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5, 0.5, -0.499999881, 0.999999881, 0, 0, 0, -4.37113847e-08, -0.99999994, 0, 0.99999994, -4.37113883e-08),i)
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(0.137348086, 0.5, -0.846068501, 0.342020124, 0.939692557, 0, -1.12057199e-08, 4.07854905e-09, -0.99999994, -0.939692557, 0.342020124, 1.19248806e-08),i)
- runservice.RenderStepped:wait()
- end
- humanoidowner.AutoRotate = false
- remote:FireServer("playsound", "drawbow", true)
- remote:FireServer("playsound", "bowpull", true)
- for i = 0,0.3 , 0.007 do
- rootpart.CFrame = rootpart.CFrame:lerp(CFrame.new(rootpart.Position, Vector3.new(mouse.Hit.p.x, rootpart.Position.y, mouse.Hit.p.z)),0.1)
- upperpartweld.C0 = upperpartweld.C0:lerp(CFrame.new(0.457489967, -0.0856485367, 0.00258511305, 0.923882544, 0.382608891, -0.00715102768, -0.382625222, 0.923902094, -0.00107337534, 0.00619618967, 0.00372780673, 0.999973297),i)
- lowerpartweld.C0 = lowerpartweld.C0:lerp(CFrame.new(-0.407845497, -0.0875036716, 5.36441803e-07, 0.93969202, -0.342021227, -2.04751518e-06, 0.342020929, 0.939691365, -2.51270831e-06, 2.77720392e-06, 1.62422657e-06, 0.999999464),i)
- linemiddleweld.C0 = linemiddleweld.C0:lerp(CFrame.new(0.212499619, -3.0749979, -0.249999374, 0.999999523, 2.03726813e-10, 6.89510671e-09, 2.03726813e-10, 0.999997973, -3.7252903e-08, 6.89510671e-09, -3.7252903e-08, 0.999998629),i)
- basedweld.C0 = basedweld.C0:lerp(CFrame.new(-0.233748376, -1.62766695, -0.38600111, -0.545380175, 0.0406345427, -0.837202609, -0.828170896, 0.127835572, 0.545701325, 0.129198596, 0.990962446, -0.0360666364),i*1.4)
- bowweldlocal.C0 = bowweldlocal.C0:lerp(CFrame.new(0.653082132, -0.794707417, -0.349150896, -0.165008023, -0.350964189, -0.92173481, 0.0658131093, -0.936380029, 0.344759166, -0.984093785, -0.00377401663, 0.17760846),i)
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, -2.68220901e-07, 0, -0.99999994, 0, 1, 0, 0.99999994, 0, -2.68220901e-07),i)
- head.C0 = head.C0:lerp(CFrame.new(1.49011612e-08, 1.49240398, -0.0868240595, 2.93495361e-08, 5.17511722e-09, 0.999999821, -0.173648179, 0.98480773, 0, -0.984807551, -0.173648134, 2.9802294e-08),i)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.84261894, 0.5, -0.127577424, 0.342020094, 0.939692378, -1.64202843e-15, 4.10752605e-08, -1.49501744e-08, -0.99999994, -0.939692378, 0.342020094, -4.37113812e-08),i)
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.29259133, 0.434195995, -0.631837368, 0.497520864, 0.851965904, -0.163175851, -0.0301536974, -0.171010032, -0.984807611, -0.866927385, 0.494882762, -0.0593911484),i)
- runservice.RenderStepped:wait()
- end
- coroutine.wrap(function()
- while runservice.RenderStepped:wait() and drawing do
- rootpart.CFrame = rootpart.CFrame:lerp(CFrame.new(rootpart.Position, Vector3.new(mouse.Hit.p.x, rootpart.Position.y, mouse.Hit.p.z)),0.15)
- end
- end)()
- else
- remote:FireServer("playsound", "bowrelease", true)
- remote:FireServer("playsound", "bowfire", true)
- if character:findFirstChild("arrow", true) then
- local arrow = character:findFirstChild("arrow", true)
- remote:FireServer("makearrow", "shoot", arrow.based.Position, mouse.Hit.p)
- arrow:destroy()
- end
- if character["Right Arm"]:findFirstChild("based?basedonwhat?local") then
- character["Right Arm"]:findFirstChild("based?basedonwhat?local"):destroy()
- end
- linemiddleweld.C0 = CFrame.new(0, -0.625000954, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- upperpartweld.C0 = CFrame.new(0.499999523, 0.0500001907, 4.76837158e-07, 0.999999881, 0, 0, 0, 0.999999881, 0, 0, 0, 1)
- lowerpartweld.C0 = CFrame.new(-0.500000954, 0.0500001907, 4.76837158e-07, 0.999999642, 0, 0, 0, 0.999999642, 0, 0, 0, 1)
- local leftarm = character.Torso:WaitForChild("LeftArmWeldbowlocal")
- local rightarm = character.Torso:WaitForChild("RightArmWeldbowlocal")
- local head = character.Torso:WaitForChild("HeadWeldbowlocal")
- local humanoidrootpart = character.HumanoidRootPart:WaitForChild("HumanoidRootPartWeldbowlocal")
- for i = 0,1, 0.15 do
- bowweldlocal.C0 = bowweldlocal.C0:lerp(CFrame.new(-0.0604534149, -0.960613728, 0.0429928601, -0.0174479969, -0.00626701396, -0.999828219, -4.29999855e-05, -0.99998039, 0.00626871781, -0.99984777, 0.00015236919, 0.0174473859),i)
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.49999994, -1.78813934e-07, -0.866025329, 0, 0.99999994, -2.08616257e-07, 0.866025388, 1.04308128e-07, 0.499999911),i)
- head.C0 = head.C0:lerp(CFrame.new(-0.0253726244, 1.49919367, -0.0127364397, 0.495843947, -0.0507452227, 0.866927505, 0.00304587232, 0.998386621, 0.0566980131, -0.868405879, -0.0254728198, 0.495198488),i)
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.28677678, 0.478546381, -0.77539587, 0.928756237, 0.256961197, -0.267174333, -0.133022159, -0.441711366, -0.887240529, -0.346000433, 0.859570384, -0.376060724),i)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.99088836, 0.260585785, -0.181543112, 0.342020154, 0.88302201, 0.321393967, 4.29001403e-08, 0.342020273, -0.939692318, -0.939692318, 0.321393758, 0.116977796),i)
- runservice.RenderStepped:wait()
- end
- wait(0.3)
- for i = 0,0.35, 0.01 do
- bowweldlocal.C0 = bowweldlocal.C0:lerp(CFrame.new(-0.0604534149, -0.960613728, 0.0429928601, -0.0174479969, -0.00626701396, -0.999828219, -4.29999855e-05, -0.99998039, 0.00626871781, -0.99984777, 0.00015236919, 0.0174473859),i)
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
- head.C0 = head.C0:lerp(CFrame.new(0,1.5,0),i)
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0,0),i)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0,0),i)
- runservice.RenderStepped:wait()
- end
- rightarm:destroy()
- leftarm:destroy()
- head:destroy()
- humanoidrootpart:destroy()
- remote:FireServer("removeweld", "LeftArmWeldbow")
- remote:FireServer("removeweld", "RightArmWeldbow")
- remote:FireServer("removeweld", "HeadWeldbow")
- remote:FireServer("removeweld", "HumanoidRootPartWeldbow")
- remote:FireServer("undraw")
- humanoidowner.AutoRotate = true
- drawing = false
- end
- canuse = true
- end
- end)
- mouse.KeyDown:connect(function(key)
- key = key:lower()
- if key == "z" and canuse and not drawing then
- canuse = false
- if equipped then
- remote:FireServer("makeweld", character.Torso, character["Left Arm"], "LeftArmWeldbow", CFrame.new(-1.5,0,0))
- local leftarm = Instance.new("Weld", character.Torso)
- leftarm.Part0 = character.Torso
- leftarm.Part1 = character["Left Arm"]
- leftarm.C0 = CFrame.new(-1.5,0,0)
- leftarm.Name = "LeftArmWeldbowlocal"
- for i = 0,0.6 , 0.015 do
- bowweldlocal.C0 = bowweldlocal.C0:lerp(CFrame.new(0.203918546, -0.605503321, -0.018055439, 0.699876904, -0.285870135, -0.654561341, 0.00241733389, 0.917357147, -0.398057669, 0.714259326, 0.2770091, 0.64272815),i)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-0.990192413, 0.125246763, 0.44661361, 0.5, -0.866025329, 0, 0.556670249, 0.321393758, 0.766044438, -0.663413942, -0.383022249, 0.642787516),i)
- runservice.RenderStepped:wait()
- end
- remote:FireServer("unequip")
- bowweldlocal.Part0 = character.Torso
- bowweldlocal.C0 = CFrame.new(-0.363851786, 0.0303258896, 0.531646669, 0.347845018, -0.937389731, 0.0174473673, 0.937532127, 0.347898811, 5.02271178e-05, -0.00611700071, 0.016339995, 0.99984777)
- for i = 0,0.4 , 0.015 do
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0,0),i)
- runservice.RenderStepped:wait()
- end
- leftarm:destroy()
- remote:FireServer("removeweld", "LeftArmWeldbow")
- equipped = false
- else
- remote:FireServer("makeweld", character.Torso, character["Left Arm"], "LeftArmWeldbow", CFrame.new(-1.5,0,0))
- local leftarm = Instance.new("Weld", character.Torso)
- leftarm.Part0 = character.Torso
- leftarm.Part1 = character["Left Arm"]
- leftarm.C0 = CFrame.new(-1.5,0,0)
- leftarm.Name = "LeftArmWeldbowlocal"
- for i = 0,0.6 , 0.015 do
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-0.990192413, 0.125246763, 0.44661361, 0.5, -0.866025329, 0, 0.556670249, 0.321393758, 0.766044438, -0.663413942, -0.383022249, 0.642787516),i)
- runservice.RenderStepped:wait()
- end
- remote:FireServer("equip")
- bowweldlocal.Part0 = character["Left Arm"]
- bowweldlocal.C0 = CFrame.new(0.203918546, -0.605503321, -0.018055439, 0.699876904, -0.285870135, -0.654561341, 0.00241733389, 0.917357147, -0.398057669, 0.714259326, 0.2770091, 0.64272815)
- for i = 0,0.5 , 0.015 do
- bowweldlocal.C0 = bowweldlocal.C0:lerp(CFrame.new(-0.0604534149, -0.960613728, 0.0429928601, -0.0174479969, -0.00626701396, -0.999828219, -4.29999855e-05, -0.99998039, 0.00626871781, -0.99984777, 0.00015236919, 0.0174473859),i)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-2,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,-math.pi/2),i)
- runservice.RenderStepped:wait()
- end
- for i = 0,0.4 , 0.015 do
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0,0),i)
- runservice.RenderStepped:wait()
- end
- leftarm:destroy()
- remote:FireServer("removeweld", "LeftArmWeldbow")
- equipped = true
- end
- canuse = true
- elseif key == "c" then
- remote:FireServer("changecolor")
- elseif key == "x" and canuse and not drawing then
- canuse = false
- remote:FireServer("makeweld", character.Torso, character["Right Arm"], "RightArmWeldbow", CFrame.new(1.5,0,0))
- local rightarm = Instance.new("Weld", character.Torso)
- rightarm.Part0 = character.Torso
- rightarm.Part1 = character["Right Arm"]
- rightarm.C0 = CFrame.new(1.5,0,0)
- rightarm.Name = "RightArmWeldbowlocal"
- for i = 0,0.4 , 0.02 do
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.29883623, 1.05499792, 0.320428252, 0.939692616, 0.342020124, 0, 0.29619807, -0.813797653, 0.5, 0.171010077, -0.469846368, -0.866025329),i)
- runservice.RenderStepped:wait()
- end
- remote:FireServer("makearrow", "hand")
- remote:FireServer("playsound", "drawarrow", true)
- local arrow = character["Right Arm"]:WaitForChild("arrow")
- local based = arrow.based
- local basedweld = Instance.new("Weld", character["Right Arm"])
- basedweld.Part0 = character["Right Arm"]
- basedweld.Part1 = arrow:findFirstChild("based")
- basedweld.C0 = CFrame.new(-0.606494904, -0.714157581, -0.790890455, -0.464412391, 0.211017355, -0.860111833, 0.530729294, -0.711173058, -0.461041301, -0.70897603, -0.670600176, 0.218284503)
- basedweld.Name = "based?basedonwhat?local"
- for i = 0,0.25 , 0.02 do
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5, 0.399776459, -0.489852279, 1, 0, 0, 0, 0.200446963, -0.979704499, 0, 0.979704559, 0.200446978),i)
- runservice.RenderStepped:wait()
- end
- remote:FireServer("makeweld", character.HumanoidRootPart, character.Torso, "HumanoidRootPartWeldbow", CFrame.new(1.5,0,0))
- remote:FireServer("makeweld", character.Torso, character["Left Arm"], "LeftArmWeldbow", CFrame.new(1.5,0,0))
- remote:FireServer("makeweld", character.Torso, character.Head, "HeadWeldbow", CFrame.new(1.5,0,0))
- local leftarm = Instance.new("Weld", character.Torso)
- leftarm.Part0 = character.Torso
- leftarm.Part1 = character["Left Arm"]
- leftarm.C0 = CFrame.new(-1.5,0,0)
- leftarm.Name = "LeftArmWeldbowlocal"
- local head = Instance.new("Weld", character.Torso)
- head.Part0 = character.Torso
- head.Part1 = character.Head
- head.C0 = CFrame.new(0,1.5,0)
- head.Name = "HeadWeldbowlocal"
- local humanoidrootpart = Instance.new("Weld", character.HumanoidRootPart)
- humanoidrootpart.Part0 = character.HumanoidRootPart
- humanoidrootpart.Part1 = character.Torso
- humanoidrootpart.Name = "HumanoidRootPartWeldbowlocal"
- remote:FireServer("trailon")
- for i = 0,0.45 , 0.015 do
- basedweld.C0 = basedweld.C0:lerp(CFrame.new(-0.0192564726, -0.921892881, -0.239903808, -0.0780922174, -0.331900746, -0.940076053, 0.0735273063, -0.942305267, 0.326579779, -0.994230866, -0.0436179563, 0.0979904234),i)
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.866025329, 0, -0.500000179, 0, 1, 0, 0.500000179, 0, 0.866025329),i)
- head.C0 = head.C0:lerp(CFrame.new(0, 1.5, 0, 0.866025329, 0, 0.500000179, 0, 1, 0, -0.500000179, 0, 0.866025329),i)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.57790899, 0.101901054, -0.0868239403, 0.98480773, 0.171010077, -0.030153662, -0.173648149, 0.96984607, -0.171010017, -2.98023224e-08, 0.173648119, 0.98480773),i)
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.6408565, 0.201163769, 0, 0.939692616, -0.342020154, 0, 0.342020094, 0.939692557, 0, 0, 1.49011612e-08, 1),i)
- runservice.RenderStepped:wait()
- end
- remote:FireServer("playsound", "swingarrow", true)
- local ignorlist = {character}
- for q,w in pairs(workspace:GetDescendants()) do
- if w.Name == "HumanoidRootPart" then
- table.insert(ignorlist, w)
- end
- if w.Parent.Name == "arrow" then
- table.insert(ignorlist, w.Parent)
- end
- if w.Parent.ClassName == "Accessory" or w.Parent.ClassName == "Hat" then
- table.insert(ignorlist, w)
- end
- end
- local stabdsom1 = false
- for i = 0,1 , 0.15 do
- if not stabdsom1 then
- local raye = Ray.new(based.Position, based.CFrame.rightVector*2)
- local hitE, posE, surfacE = workspace:FindPartOnRayWithIgnoreList(raye, ignorlist)
- if hitE and not stabdsom1 then
- local thismanshumanoid = hitE.Parent:findFirstChildOfClass("Humanoid")
- if thismanshumanoid then
- stabdsom1 = true
- remote:FireServer("damage", thismanshumanoid, 120)
- local s = math.random(1,3)
- if s == 1 then
- remote:FireServer("playsound", "stabsound", true)
- elseif s == 2 then
- remote:FireServer("playsound", "stabsound2", true)
- elseif s == 3 then
- remote:FireServer("playsound", "stabsound3", true)
- end
- end
- end
- end
- basedweld.C0 = basedweld.C0:lerp(CFrame.new(0.106897116, -1.13562441, -0.594026327, 0.0491852909, -0.790509939, -0.610470891, -0.313351363, -0.59256506, 0.742076457, -0.94836241, 0.154792741, -0.276852816),i)
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.499999911, 0, 0.866025448, 0, 1, 0, -0.866025448, 0, 0.499999911),i)
- head.C0 = head.C0:lerp(CFrame.new(0, 1.5, 0, 0.499999911, 0, -0.866025448, 0, 1, 0, 0.866025448, 0, 0.499999911),i)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.57922792, 0.0944201946, 0, 0.98480773, 0.173648179, 0, -0.173648164, 0.98480767, 0, 0, 0, 1),i)
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.68344319, 0.665054798, -0.0752484798, 0.556670368, -0.81021601, 0.183488727, 0.809456408, 0.47934705, -0.339126229, 0.186810672, 0.337307692, 0.922672868),i)
- runservice.RenderStepped:wait()
- end
- remote:FireServer("trailoff")
- for i = 0,0.25, 0.02 do
- basedweld.C0 = basedweld.C0:lerp(CFrame.new(-0.606494904, -0.714157581, -0.790890455, -0.464412391, 0.211017355, -0.860111833, 0.530729294, -0.711173058, -0.461041301, -0.70897603, -0.670600176, 0.218284503),i)
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
- head.C0 = head.C0:lerp(CFrame.new(0,1.5,0),i)
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5, 0.399776459, -0.489852279, 1, 0, 0, 0, 0.200446963, -0.979704499, 0, 0.979704559, 0.200446978),i)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0,0),i)
- runservice.RenderStepped:wait()
- end
- for i = 0,0.3, 0.015 do
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
- head.C0 = head.C0:lerp(CFrame.new(0,1.5,0),i)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0,0),i)
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.29883623, 1.05499792, 0.320428252, 0.939692616, 0.342020124, 0, 0.29619807, -0.813797653, 0.5, 0.171010077, -0.469846368, -0.866025329),i)
- runservice.RenderStepped:wait()
- end
- basedweld:destroy()
- arrow:destroy()
- for i = 0,0.4, 0.015 do
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
- head.C0 = head.C0:lerp(CFrame.new(0,1.5,0),i)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0,0),i)
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0,0),i)
- runservice.RenderStepped:wait()
- end
- rightarm:destroy()
- leftarm:destroy()
- head:destroy()
- humanoidrootpart:destroy()
- remote:FireServer("removeweld", "LeftArmWeldbow")
- remote:FireServer("removeweld", "RightArmWeldbow")
- remote:FireServer("removeweld", "HeadWeldbow")
- remote:FireServer("removeweld", "HumanoidRootPartWeldbow")
- canuse = true
- end
- end)
- coroutine.wrap(function()
- local chartors = character.Torso
- while wait() do
- if chartors:findFirstChild("RightArmWeldbowlocal") then
- remote:FireServer("updatec0", "RightArmWeldbow", chartors:findFirstChild("RightArmWeldbowlocal").C0)
- end
- if chartors:findFirstChild("LeftArmWeldbowlocal") then
- remote:FireServer("updatec0", "LeftArmWeldbow", chartors:findFirstChild("LeftArmWeldbowlocal").C0)
- end
- if chartors:findFirstChild("RightLegWeldbowlocal") then
- remote:FireServer("updatec0", "RightLegWeldbow", chartors:findFirstChild("RightLegWeldbowlocal").C0)
- end
- if chartors:findFirstChild("LeftLegWeldbowlocal") then
- remote:FireServer("updatec0", "LeftLegWeldbow", chartors:findFirstChild("LeftLegWeldbowlocal").C0)
- end
- if character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeldbowlocal") then
- remote:FireServer("updatec0", "HumanoidRootPartWeldbow", character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeldbowlocal").C0)
- end
- if chartors:findFirstChild("HeadWeldbowlocal") then
- remote:FireServer("updatec0", "HeadWeldbow", chartors:findFirstChild("HeadWeldbowlocal").C0)
- end
- if character["Right Arm"]:findFirstChild("linemiddleweldlocal") then
- remote:FireServer("updatec0", "linemiddleweld", character["Right Arm"]:findFirstChild("linemiddleweldlocal").C0)
- end
- if character["Right Arm"]:findFirstChild("based?basedonwhat?local") then
- remote:FireServer("updatec0", "based?basedonwhat?", character["Right Arm"]:findFirstChild("based?basedonwhat?local").C0)
- end
- if bow:findFirstChild("mainupperweldlocal") then
- remote:FireServer("updatec0", "upperweld", upperpartweld.C0)
- end
- if bow:findFirstChild("mainlowerweldlocal") then
- remote:FireServer("updatec0", "lowerweld", lowerpartweld.C0)
- end
- if bow:findFirstChild("bowweldlocal") then
- remote:FireServer("updatec0", "bowweld", bowweldlocal.C0)
- end
- if bow:findFirstChild("linemiddleweldlocal") then
- remote:FireServer("updatec0", "linemiddleweld", linemiddleweld.C0)
- end
- end
- end)()]], character)
- runservice = game:GetService("RunService")
- --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"))
- Model0 = Instance.new("Model")
- Model1 = Instance.new("Model")
- Part2 = Instance.new("Part")
- Part3 = Instance.new("Part")
- Part4 = Instance.new("Part")
- Weld5 = Instance.new("Weld")
- Weld6 = Instance.new("Weld")
- Weld7 = Instance.new("Weld")
- Weld8 = Instance.new("Weld")
- Weld9 = Instance.new("Weld")
- Weld10 = Instance.new("Weld")
- Weld11 = Instance.new("Weld")
- Part12 = Instance.new("Part")
- SpecialMesh13 = Instance.new("SpecialMesh")
- Part14 = Instance.new("Part")
- SpecialMesh15 = Instance.new("SpecialMesh")
- Part16 = Instance.new("Part")
- Beam17 = Instance.new("Beam")
- Beam18 = Instance.new("Beam")
- Model19 = Instance.new("Model")
- Part20 = Instance.new("Part")
- Part21 = Instance.new("Part")
- Part22 = Instance.new("Part")
- Part23 = Instance.new("Part")
- Part24 = Instance.new("Part")
- SpecialMesh25 = Instance.new("SpecialMesh")
- Part26 = Instance.new("Part")
- Weld27 = Instance.new("Weld")
- Weld28 = Instance.new("Weld")
- Weld29 = Instance.new("Weld")
- Weld30 = Instance.new("Weld")
- Weld31 = Instance.new("Weld")
- Weld32 = Instance.new("Weld")
- Weld33 = Instance.new("Weld")
- Weld34 = Instance.new("Weld")
- Weld35 = Instance.new("Weld")
- Part36 = Instance.new("Part")
- Part37 = Instance.new("Part")
- SpecialMesh38 = Instance.new("SpecialMesh")
- Part39 = Instance.new("Part")
- Part40 = Instance.new("Part")
- Model41 = Instance.new("Model")
- Part42 = Instance.new("Part")
- Part43 = Instance.new("Part")
- Part44 = Instance.new("Part")
- SpecialMesh45 = Instance.new("SpecialMesh")
- Part46 = Instance.new("Part")
- SpecialMesh47 = Instance.new("SpecialMesh")
- Part48 = Instance.new("Part")
- Part49 = Instance.new("Part")
- Part50 = Instance.new("Part")
- Part51 = Instance.new("Part")
- Weld52 = Instance.new("Weld")
- Weld53 = Instance.new("Weld")
- Weld54 = Instance.new("Weld")
- Weld55 = Instance.new("Weld")
- Weld56 = Instance.new("Weld")
- Weld57 = Instance.new("Weld")
- Weld58 = Instance.new("Weld")
- Weld59 = Instance.new("Weld")
- Part60 = Instance.new("Part")
- Model0.Name = "mybow"
- Model0.Parent = mas
- Model1.Name = "middlepart"
- Model1.Parent = Model0
- Part2.Parent = Model1
- Part2.CFrame = CFrame.new(-8.14999676, 2.94999933, 6.55000019, 0, -0.999999523, 0, 0.999999523, 0, 0, 0, 0, 1)
- Part2.Orientation = Vector3.new(0, 0, 90)
- Part2.Position = Vector3.new(-8.14999676, 2.94999933, 6.55000019)
- Part2.Rotation = Vector3.new(0, 0, 90)
- Part2.Color = Color3.new(0.827451, 0.764706, 0.443137)
- Part2.Size = Vector3.new(0.0999992117, 0.100000001, 0.0999999866)
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.BrickColor = BrickColor.new("Gold")
- Part2.Material = Enum.Material.Wood
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part2.brickColor = BrickColor.new("Gold")
- Part3.Parent = Model1
- Part3.CFrame = CFrame.new(-8.04999638, 2.70000029, 6.70000076, 0, -0.999999523, 0, 0.999999523, 0, 0, 0, 0, 1)
- Part3.Orientation = Vector3.new(0, 0, 90)
- Part3.Position = Vector3.new(-8.04999638, 2.70000029, 6.70000076)
- Part3.Rotation = Vector3.new(0, 0, 90)
- Part3.Color = Color3.new(0.827451, 0.764706, 0.443137)
- Part3.Size = Vector3.new(0.399999082, 0.100000001, 0.199999988)
- Part3.BottomSurface = Enum.SurfaceType.Smooth
- Part3.BrickColor = BrickColor.new("Gold")
- Part3.Material = Enum.Material.Wood
- Part3.TopSurface = Enum.SurfaceType.Smooth
- Part3.brickColor = BrickColor.new("Gold")
- Part4.Name = "theholder"
- Part4.Parent = Model1
- Part4.CFrame = CFrame.new(-8.09999657, 2.70000029, 6.70000029, 0, -0.999999523, 0, 0.999999523, 0, 0, 0, 0, 1)
- Part4.Orientation = Vector3.new(0, 0, 90)
- Part4.Position = Vector3.new(-8.09999657, 2.70000029, 6.70000029)
- Part4.Rotation = Vector3.new(0, 0, 90)
- Part4.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part4.Size = Vector3.new(0.199999094, 0.209999993, 0.209999993)
- Part4.BottomSurface = Enum.SurfaceType.Smooth
- Part4.BrickColor = BrickColor.new("Black")
- Part4.TopSurface = Enum.SurfaceType.Smooth
- Part4.brickColor = BrickColor.new("Black")
- Weld5.Parent = Part4
- Weld5.C0 = CFrame.new(-0.25, -0.0500001907, 4.76837158e-07, 0, 0, 1, 0, -1, 0, 1, 0, 0)
- Weld5.Part0 = Part4
- Weld5.Part1 = Part12
- Weld5.part1 = Part12
- Weld6.Parent = Part4
- Weld6.C0 = CFrame.new(0.249999762, -0.0500001907, 4.76837158e-07, 0, 1, 0, 0, 0, 1, 1, 0, 0)
- Weld6.Part0 = Part4
- Weld6.Part1 = Part14
- Weld6.part1 = Part14
- Weld7.Parent = Part4
- Weld7.C0 = CFrame.new(0, -0.625000954, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld7.Part0 = Part4
- Weld7.Part1 = Part16
- Weld7.part1 = Part16
- Weld7.Name = "linemiddleweld"
- Weld8.Parent = Part4
- Weld8.C0 = CFrame.new(0, -0.0500001907, 4.76837158e-07, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld8.Part0 = Part4
- Weld8.Part1 = Part3
- Weld8.part1 = Part3
- Weld9.Parent = Part4
- Weld9.C0 = CFrame.new(0.249999285, 0.0500001907, -0.150000095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld9.Part0 = Part4
- Weld9.Part1 = Part2
- Weld9.part1 = Part2
- Weld10.Name = "upperweld"
- Weld10.Parent = Part4
- Weld10.C0 = CFrame.new(0.499999523, 0.0500001907, 4.76837158e-07, 0.999999881, 0, 0, 0, 0.999999881, 0, 0, 0, 1)
- Weld10.Part0 = Part4
- Weld10.Part1 = Part26
- Weld10.part1 = Part26
- Weld11.Name = "lowerweld"
- Weld11.Parent = Part4
- Weld11.C0 = CFrame.new(-0.500000954, 0.0500001907, 4.76837158e-07, 0.999999642, 0, 0, 0, 0.999999642, 0, 0, 0, 1)
- Weld11.Part0 = Part4
- Weld11.Part1 = Part51
- Weld11.part1 = Part51
- Part12.Parent = Model1
- Part12.CFrame = CFrame.new(-8.04999638, 2.45000029, 6.70000076, 0, 0.999999523, 0, 0, 0, 0.999999523, 1, 0, 0)
- Part12.Orientation = Vector3.new(-89.9400024, 0, 0)
- Part12.Position = Vector3.new(-8.04999638, 2.45000029, 6.70000076)
- Part12.Rotation = Vector3.new(-90, 0, -90)
- Part12.Color = Color3.new(0.827451, 0.764706, 0.443137)
- Part12.Size = Vector3.new(0.199999094, 0.100000001, 0.0999999866)
- Part12.BottomSurface = Enum.SurfaceType.Smooth
- Part12.BrickColor = BrickColor.new("Gold")
- Part12.Material = Enum.Material.Wood
- Part12.TopSurface = Enum.SurfaceType.Smooth
- Part12.brickColor = BrickColor.new("Gold")
- SpecialMesh13.Parent = Part12
- SpecialMesh13.MeshType = Enum.MeshType.Wedge
- Part14.Parent = Model1
- Part14.CFrame = CFrame.new(-8.04999638, 2.94999981, 6.70000076, 0, 0, -0.999999523, 0, 0.999999523, 0, 1, 0, 0)
- Part14.Orientation = Vector3.new(0, -90, 0)
- Part14.Position = Vector3.new(-8.04999638, 2.94999981, 6.70000076)
- Part14.Rotation = Vector3.new(0, -89.9400024, 0)
- Part14.Color = Color3.new(0.827451, 0.764706, 0.443137)
- Part14.Size = Vector3.new(0.199999094, 0.100000001, 0.0999999866)
- Part14.BottomSurface = Enum.SurfaceType.Smooth
- Part14.BrickColor = BrickColor.new("Gold")
- Part14.Material = Enum.Material.Wood
- Part14.TopSurface = Enum.SurfaceType.Smooth
- Part14.brickColor = BrickColor.new("Gold")
- SpecialMesh15.Parent = Part14
- SpecialMesh15.MeshType = Enum.MeshType.Wedge
- Part16.Name = "linemiddle"
- Part16.Parent = Model1
- Part16.CFrame = CFrame.new(-7.47499609, 2.70000029, 6.70000029, 0, -0.999999523, 0, 0.999999523, 0, 0, 0, 0, 1)
- Part16.Orientation = Vector3.new(0, 0, 90)
- Part16.Position = Vector3.new(-7.47499609, 2.70000029, 6.70000029)
- Part16.Rotation = Vector3.new(0, 0, 90)
- Part16.Color = Color3.new(0.454902, 0.227451, 0.0431373)
- Part16.Transparency = 1
- Part16.Size = Vector3.new(0.0571425892, 0.0599999949, 0.0599999949)
- Part16.BottomSurface = Enum.SurfaceType.Smooth
- Part16.BrickColor = BrickColor.new("Burnt Sienna")
- Part16.Material = Enum.Material.SmoothPlastic
- Part16.TopSurface = Enum.SurfaceType.Smooth
- Part16.brickColor = BrickColor.new("Burnt Sienna")
- Beam17.Name = "lowerstring"
- Beam17.Parent = Part16
- Beam17.Color = ColorSequence.new(Color3.new(0.454902, 0.227451, 0.0431373),Color3.new(0.454902, 0.227451, 0.0431373))
- Beam17.FaceCamera = true
- Beam17.LightInfluence = 1
- Beam17.Transparency = NumberSequence.new(0,0)
- Beam17.Width0 = 0.050000000745058
- Beam17.Width1 = 0.050000000745058
- Beam18.Name = "upperstring"
- Beam18.Parent = Part16
- Beam18.Color = ColorSequence.new(Color3.new(0.454902, 0.227451, 0.0431373),Color3.new(0.454902, 0.227451, 0.0431373))
- Beam18.FaceCamera = true
- Beam18.LightInfluence = 1
- Beam18.Transparency = NumberSequence.new(0,0)
- Beam18.Width0 = 0.050000000745058
- Beam18.Width1 = 0.050000000745058
- Model19.Name = "upperpart"
- Model19.Parent = Model0
- Part20.Parent = Model19
- Part20.CFrame = CFrame.new(-7.93960524, 4.34640694, 6.69999981, 0.258818805, -0.965925157, 0, 0.965925157, 0.258818805, 0, 0, 0, 1)
- Part20.Orientation = Vector3.new(0, 0, 75)
- Part20.Position = Vector3.new(-7.93960524, 4.34640694, 6.69999981)
- Part20.Rotation = Vector3.new(0, 0, 75)
- Part20.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part20.Size = Vector3.new(0.100000001, 0.115000002, 0.215000004)
- Part20.BottomSurface = Enum.SurfaceType.Smooth
- Part20.BrickColor = BrickColor.new("Black")
- Part20.TopSurface = Enum.SurfaceType.Smooth
- Part20.brickColor = BrickColor.new("Black")
- Part21.Parent = Model19
- Part21.CFrame = CFrame.new(-8.19845104, 3.24999857, 6.66577339, 0, 0.965925395, 0.258817852, 0.999999285, 0, 0, 0, 0.25881803, -0.965926111)
- Part21.Orientation = Vector3.new(0, 165, 90)
- Part21.Position = Vector3.new(-8.19845104, 3.24999857, 6.66577339)
- Part21.Rotation = Vector3.new(-180, 15, -90)
- Part21.Color = Color3.new(0.156863, 0.498039, 0.278431)
- Part21.Size = Vector3.new(0.100000001, 0.0500000007, 0.129999995)
- Part21.BottomSurface = Enum.SurfaceType.Smooth
- Part21.BrickColor = BrickColor.new("Dark green")
- Part21.Material = Enum.Material.SmoothPlastic
- Part21.TopSurface = Enum.SurfaceType.Smooth
- Part21.brickColor = BrickColor.new("Dark green")
- Part22.Parent = Model19
- Part22.CFrame = CFrame.new(-8.04880333, 3.95780849, 6.70000076, 0.258818805, -0.965925157, 0, 0.965925157, 0.258818805, 0, 0, 0, 1)
- Part22.Orientation = Vector3.new(0, 0, 75)
- Part22.Position = Vector3.new(-8.04880333, 3.95780849, 6.70000076)
- Part22.Rotation = Vector3.new(0, 0, 75)
- Part22.Color = Color3.new(0.0509804, 0.411765, 0.67451)
- Part22.Size = Vector3.new(0.799999237, 0.100000001, 0.199999988)
- Part22.BottomSurface = Enum.SurfaceType.Smooth
- Part22.BrickColor = BrickColor.new("Bright blue")
- Part22.Material = Enum.Material.Wood
- Part22.TopSurface = Enum.SurfaceType.Smooth
- Part22.brickColor = BrickColor.new("Bright blue")
- Part23.Parent = Model19
- Part23.CFrame = CFrame.new(-7.53921175, 5.0375309, 6.70000076, 0.422617644, -0.90630722, 0, 0.90630722, 0.422617644, 0, 0, 0, 1)
- Part23.Orientation = Vector3.new(0, 0, 65)
- Part23.Position = Vector3.new(-7.53921175, 5.0375309, 6.70000076)
- Part23.Rotation = Vector3.new(0, 0, 65)
- Part23.Color = Color3.new(0.827451, 0.764706, 0.443137)
- Part23.Size = Vector3.new(0.399999142, 0.0500000007, 0.199999988)
- Part23.BottomSurface = Enum.SurfaceType.Smooth
- Part23.BrickColor = BrickColor.new("Gold")
- Part23.Material = Enum.Material.Wood
- Part23.TopSurface = Enum.SurfaceType.Smooth
- Part23.brickColor = BrickColor.new("Gold")
- Part24.Name = "upperattachmentpart"
- Part24.Parent = Model19
- Part24.CFrame = CFrame.new(-7.47887182, 5.28523684, 6.70000029, 0, -0.90630734, -0.422617704, 0, 0.422617704, -0.90630734, 1, 0, 0)
- Part24.Orientation = Vector3.new(65, -90, 0)
- Part24.Position = Vector3.new(-7.47887182, 5.28523684, 6.70000029)
- Part24.Rotation = Vector3.new(90, -25, 90)
- Part24.Color = Color3.new(0.827451, 0.764706, 0.443137)
- Part24.Size = Vector3.new(0.199999139, 0.150000006, 0.0999999791)
- Part24.BottomSurface = Enum.SurfaceType.Smooth
- Part24.BrickColor = BrickColor.new("Gold")
- Part24.Material = Enum.Material.Wood
- Part24.TopSurface = Enum.SurfaceType.Smooth
- Part24.brickColor = BrickColor.new("Gold")
- SpecialMesh25.Parent = Part24
- SpecialMesh25.MeshType = Enum.MeshType.Wedge
- Part26.Name = "mainupperpart"
- Part26.Parent = Model19
- Part26.CFrame = CFrame.new(-8.14999676, 3.19999957, 6.70000076, 0, -0.999999404, 0, 0.999999404, 0, 0, 0, 0, 1)
- Part26.Orientation = Vector3.new(0, 0, 90)
- Part26.Position = Vector3.new(-8.14999676, 3.19999957, 6.70000076)
- Part26.Rotation = Vector3.new(0, 0, 90)
- Part26.Color = Color3.new(0.827451, 0.764706, 0.443137)
- Part26.Size = Vector3.new(0.799999237, 0.100000001, 0.199999988)
- Part26.BottomSurface = Enum.SurfaceType.Smooth
- Part26.BrickColor = BrickColor.new("Gold")
- Part26.Material = Enum.Material.Wood
- Part26.TopSurface = Enum.SurfaceType.Smooth
- Part26.brickColor = BrickColor.new("Gold")
- Weld27.Parent = Part26
- Weld27.C0 = CFrame.new(2.08523846, -0.671125412, -4.76837158e-07, 0, 0.422617942, -0.906307876, 0, 0.906307876, 0.422617942, 1, 0, 0)
- Weld27.Part0 = Part26
- Weld27.Part1 = Part24
- Weld27.part1 = Part24
- Weld28.Parent = Part26
- Weld28.C0 = CFrame.new(0.37366724, -0.00333690643, -9.53674316e-07, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661, 0, 0, 0, 1)
- Weld28.Part0 = Part26
- Weld28.Part1 = Part40
- Weld28.part1 = Part40
- Weld29.Parent = Part26
- Weld29.C0 = CFrame.new(1.59733391, -0.4160285, 0, 0.906307876, 0.422617942, 0, -0.422617942, 0.906307876, 0, 0, 0, 1)
- Weld29.Part0 = Part26
- Weld29.Part1 = Part39
- Weld29.part1 = Part39
- Weld30.Parent = Part26
- Weld30.C0 = CFrame.new(1.58829618, -0.494567871, 0, 0, -0.422615886, 0.90630877, 0, -0.90630877, -0.422615886, 1, 0, 0)
- Weld30.Part0 = Part26
- Weld30.Part1 = Part37
- Weld30.part1 = Part37
- Weld31.Parent = Part26
- Weld31.C0 = CFrame.new(-2.38418579e-07, 0, 0, 0.999999881, 0, 0, 0, 0.999999881, 0, 0, 0, 1)
- Weld31.Part0 = Part26
- Weld31.Part1 = Part36
- Weld31.part1 = Part36
- Weld32.Parent = Part26
- Weld32.C0 = CFrame.new(1.83753228, -0.610785484, 0, 0.906307757, 0.422617882, 0, -0.422617882, 0.906307757, 0, 0, 0, 1)
- Weld32.Part0 = Part26
- Weld32.Part1 = Part23
- Weld32.part1 = Part23
- Weld33.Parent = Part26
- Weld33.C0 = CFrame.new(0.757809401, -0.101193428, 0, 0.965925753, 0.258818954, 0, -0.258818954, 0.965925753, 0, 0, 0, 1)
- Weld33.Part0 = Part26
- Weld33.Part1 = Part22
- Weld33.part1 = Part22
- Weld34.Parent = Part26
- Weld34.C0 = CFrame.new(1.14640832, -0.210391521, -9.53674316e-07, 0.965925753, 0.258818954, 0, -0.258818954, 0.965925753, 0, 0, 0, 1)
- Weld34.Part0 = Part26
- Weld34.Part1 = Part20
- Weld34.part1 = Part20
- Weld35.Parent = Part26
- Weld35.C0 = CFrame.new(0.0499989986, 0.0484542847, -0.0342273712, 0.999999881, 0, 0, 0, -0.965925992, -0.258818001, 0, 0.25881803, -0.965926111)
- Weld35.Part0 = Part26
- Weld35.Part1 = Part21
- Weld35.part1 = Part21
- Part36.Parent = Model19
- Part36.CFrame = CFrame.new(-8.14999676, 3.19999933, 6.70000076, 0, -0.999999285, 0, 0.999999285, 0, 0, 0, 0, 1)
- Part36.Orientation = Vector3.new(0, 0, 90)
- Part36.Position = Vector3.new(-8.14999676, 3.19999933, 6.70000076)
- Part36.Rotation = Vector3.new(0, 0, 90)
- Part36.Color = Color3.new(0.156863, 0.498039, 0.278431)
- Part36.Size = Vector3.new(0.200000003, 0.109999999, 0.209999993)
- Part36.BottomSurface = Enum.SurfaceType.Smooth
- Part36.BrickColor = BrickColor.new("Dark green")
- Part36.Material = Enum.Material.SmoothPlastic
- Part36.TopSurface = Enum.SurfaceType.Smooth
- Part36.brickColor = BrickColor.new("Dark green")
- Part37.Parent = Model19
- Part37.CFrame = CFrame.new(-7.65542936, 4.78829479, 6.70000076, 0, 0.906308234, 0.422615647, 0, -0.422615647, 0.906308234, 1, 0, 0)
- Part37.Orientation = Vector3.new(-65, 90, 180)
- Part37.Position = Vector3.new(-7.65542936, 4.78829479, 6.70000076)
- Part37.Rotation = Vector3.new(-90, 25, -90)
- Part37.Color = Color3.new(0.827451, 0.764706, 0.443137)
- Part37.Size = Vector3.new(0.200000003, 0.0500000007, 0.149999991)
- Part37.BottomSurface = Enum.SurfaceType.Smooth
- Part37.BrickColor = BrickColor.new("Gold")
- Part37.Material = Enum.Material.Wood
- Part37.TopSurface = Enum.SurfaceType.Smooth
- Part37.brickColor = BrickColor.new("Gold")
- SpecialMesh38.Parent = Part37
- SpecialMesh38.MeshType = Enum.MeshType.Wedge
- Part39.Parent = Model19
- Part39.CFrame = CFrame.new(-7.73396873, 4.79733276, 6.70000076, 0.422617704, -0.90630734, 0, 0.90630734, 0.422617704, 0, 0, 0, 1)
- Part39.Orientation = Vector3.new(0, 0, 65)
- Part39.Position = Vector3.new(-7.73396873, 4.79733276, 6.70000076)
- Part39.Rotation = Vector3.new(0, 0, 65)
- Part39.Color = Color3.new(0.827451, 0.764706, 0.443137)
- Part39.Size = Vector3.new(0.999999285, 0.100000001, 0.199999988)
- Part39.BottomSurface = Enum.SurfaceType.Smooth
- Part39.BrickColor = BrickColor.new("Gold")
- Part39.Material = Enum.Material.Wood
- Part39.TopSurface = Enum.SurfaceType.Smooth
- Part39.brickColor = BrickColor.new("Gold")
- Part40.Parent = Model19
- Part40.CFrame = CFrame.new(-8.14665985, 3.57366657, 6.69999981, 0.0871559158, -0.996194065, 0, 0.996194065, 0.0871559158, 0, 0, 0, 1)
- Part40.Orientation = Vector3.new(0, 0, 85)
- Part40.Position = Vector3.new(-8.14665985, 3.57366657, 6.69999981)
- Part40.Rotation = Vector3.new(0, 0, 85)
- Part40.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part40.Size = Vector3.new(0.100000001, 0.115000002, 0.215000004)
- Part40.BottomSurface = Enum.SurfaceType.Smooth
- Part40.BrickColor = BrickColor.new("Black")
- Part40.TopSurface = Enum.SurfaceType.Smooth
- Part40.brickColor = BrickColor.new("Black")
- Model41.Name = "lowerpart"
- Model41.Parent = Model0
- Part42.Parent = Model41
- Part42.CFrame = CFrame.new(-7.93960524, 1.03242707, 6.6999898, 0.258818924, -0.965925634, 0, -0.965925634, -0.258818924, 0, 0, 0, -1)
- Part42.Orientation = Vector3.new(0, 180, -105)
- Part42.Position = Vector3.new(-7.93960524, 1.03242707, 6.6999898)
- Part42.Rotation = Vector3.new(-180, 0, 75)
- Part42.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part42.Size = Vector3.new(0.100000001, 0.115000002, 0.215000004)
- Part42.BottomSurface = Enum.SurfaceType.Smooth
- Part42.BrickColor = BrickColor.new("Black")
- Part42.TopSurface = Enum.SurfaceType.Smooth
- Part42.brickColor = BrickColor.new("Black")
- Part43.Parent = Model41
- Part43.CFrame = CFrame.new(-8.04880333, 1.42102551, 6.69999218, 0.258818924, -0.965925634, 0, -0.965925634, -0.258818924, 0, 0, 0, -1)
- Part43.Orientation = Vector3.new(0, 180, -105)
- Part43.Position = Vector3.new(-8.04880333, 1.42102551, 6.69999218)
- Part43.Rotation = Vector3.new(-180, 0, 75)
- Part43.Color = Color3.new(0.0509804, 0.411765, 0.67451)
- Part43.Size = Vector3.new(0.799999237, 0.100000001, 0.199999988)
- Part43.BottomSurface = Enum.SurfaceType.Smooth
- Part43.BrickColor = BrickColor.new("Bright blue")
- Part43.Material = Enum.Material.Wood
- Part43.TopSurface = Enum.SurfaceType.Smooth
- Part43.brickColor = BrickColor.new("Bright blue")
- Part44.Name = "lowerattachmentpart"
- Part44.Parent = Model41
- Part44.CFrame = CFrame.new(-7.47887087, 0.0935959816, 6.69999599, 0, -0.906307757, -0.422617882, 0, -0.422617882, 0.906307757, -1, 0, 0)
- Part44.Orientation = Vector3.new(-65, -90, 180)
- Part44.Position = Vector3.new(-7.47887087, 0.0935959816, 6.69999599)
- Part44.Rotation = Vector3.new(-90, -25, 90)
- Part44.Color = Color3.new(0.827451, 0.764706, 0.443137)
- Part44.Size = Vector3.new(0.199999139, 0.150000006, 0.0999999791)
- Part44.BottomSurface = Enum.SurfaceType.Smooth
- Part44.BrickColor = BrickColor.new("Gold")
- Part44.Material = Enum.Material.Wood
- Part44.TopSurface = Enum.SurfaceType.Smooth
- Part44.brickColor = BrickColor.new("Gold")
- SpecialMesh45.Parent = Part44
- SpecialMesh45.MeshType = Enum.MeshType.Wedge
- Part46.Parent = Model41
- Part46.CFrame = CFrame.new(-7.65542889, 0.590539217, 6.69999123, 0, 0.906308651, 0.422615826, 0, 0.422615826, -0.906308651, -1, 0, 0)
- Part46.Orientation = Vector3.new(65, 90, 0)
- Part46.Position = Vector3.new(-7.65542889, 0.590539217, 6.69999123)
- Part46.Rotation = Vector3.new(90, 25, -90)
- Part46.Color = Color3.new(0.827451, 0.764706, 0.443137)
- Part46.Size = Vector3.new(0.200000003, 0.0500000007, 0.149999991)
- Part46.BottomSurface = Enum.SurfaceType.Smooth
- Part46.BrickColor = BrickColor.new("Gold")
- Part46.Material = Enum.Material.Wood
- Part46.TopSurface = Enum.SurfaceType.Smooth
- Part46.brickColor = BrickColor.new("Gold")
- SpecialMesh47.Parent = Part46
- SpecialMesh47.MeshType = Enum.MeshType.Wedge
- Part48.Parent = Model41
- Part48.CFrame = CFrame.new(-7.5392108, 0.341303229, 6.69999313, 0.422617823, -0.906307638, 0, -0.906307638, -0.422617823, 0, 0, 0, -1)
- Part48.Orientation = Vector3.new(0, 180, -115)
- Part48.Position = Vector3.new(-7.5392108, 0.341303229, 6.69999313)
- Part48.Rotation = Vector3.new(-180, 0, 65)
- Part48.Color = Color3.new(0.827451, 0.764706, 0.443137)
- Part48.Size = Vector3.new(0.399999142, 0.0500000007, 0.199999988)
- Part48.BottomSurface = Enum.SurfaceType.Smooth
- Part48.BrickColor = BrickColor.new("Gold")
- Part48.Material = Enum.Material.Wood
- Part48.TopSurface = Enum.SurfaceType.Smooth
- Part48.brickColor = BrickColor.new("Gold")
- Part49.Parent = Model41
- Part49.CFrame = CFrame.new(-7.73396778, 0.581501722, 6.69999218, 0.422617942, -0.906307876, 0, -0.906307876, -0.422617942, 0, 0, 0, -1)
- Part49.Orientation = Vector3.new(0, 180, -115)
- Part49.Position = Vector3.new(-7.73396778, 0.581501722, 6.69999218)
- Part49.Rotation = Vector3.new(-180, 0, 65)
- Part49.Color = Color3.new(0.827451, 0.764706, 0.443137)
- Part49.Size = Vector3.new(0.999999285, 0.100000001, 0.199999988)
- Part49.BottomSurface = Enum.SurfaceType.Smooth
- Part49.BrickColor = BrickColor.new("Gold")
- Part49.Material = Enum.Material.Wood
- Part49.TopSurface = Enum.SurfaceType.Smooth
- Part49.brickColor = BrickColor.new("Gold")
- Part50.Parent = Model41
- Part50.CFrame = CFrame.new(-8.14665985, 1.80516768, 6.69999123, 0.0871559605, -0.996194541, 0, -0.996194541, -0.0871559605, 0, 0, 0, -1)
- Part50.Orientation = Vector3.new(0, 180, -95)
- Part50.Position = Vector3.new(-8.14665985, 1.80516768, 6.69999123)
- Part50.Rotation = Vector3.new(-180, 0, 85)
- Part50.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part50.Size = Vector3.new(0.100000001, 0.115000002, 0.215000004)
- Part50.BottomSurface = Enum.SurfaceType.Smooth
- Part50.BrickColor = BrickColor.new("Black")
- Part50.TopSurface = Enum.SurfaceType.Smooth
- Part50.brickColor = BrickColor.new("Black")
- Part51.Name = "mainlowerpart"
- Part51.Parent = Model41
- Part51.CFrame = CFrame.new(-8.14999676, 2.19999957, 6.70000076, 0, -0.999999881, 0, 0.999999881, 0, -0, -0, 0, 1)
- Part51.Orientation = Vector3.new(0, 0, 90)
- Part51.Position = Vector3.new(-8.14999676, 2.19999957, 6.70000076)
- Part51.Rotation = Vector3.new(0, 0, 90)
- Part51.Color = Color3.new(0.827451, 0.764706, 0.443137)
- Part51.Size = Vector3.new(0.799999237, 0.100000001, 0.199999988)
- Part51.BottomSurface = Enum.SurfaceType.Smooth
- Part51.BrickColor = BrickColor.new("Gold")
- Part51.Material = Enum.Material.Wood
- Part51.TopSurface = Enum.SurfaceType.Smooth
- Part51.brickColor = BrickColor.new("Gold")
- Weld52.Parent = Part51
- Weld52.Part0 = Part51
- Weld52.Part1 = Part60
- Weld52.part1 = Part60
- Weld53.Parent = Part51
- Weld53.C0 = CFrame.new(-2.10640383, -0.671125889, -4.76837158e-06, 0, -0.422617942, 0.906307876, 0, 0.906307876, 0.422617942, -1, 0, 0)
- Weld53.Part0 = Part51
- Weld53.Part1 = Part44
- Weld53.part1 = Part44
- Weld54.Parent = Part51
- Weld54.C0 = CFrame.new(-0.394831896, -0.00333690643, -9.53674316e-06, -0.996194661, -0.087155968, 0, -0.087155968, 0.996194661, 0, 0, 0, -1)
- Weld54.Part0 = Part51
- Weld54.Part1 = Part50
- Weld54.part1 = Part50
- Weld55.Parent = Part51
- Weld55.C0 = CFrame.new(-1.61849809, -0.416028976, -8.58306885e-06, -0.906307876, -0.422617942, 0, -0.422617942, 0.906307876, 0, 0, 0, -1)
- Weld55.Part0 = Part51
- Weld55.Part1 = Part49
- Weld55.part1 = Part49
- Weld56.Parent = Part51
- Weld56.C0 = CFrame.new(-1.85869658, -0.610785961, -7.62939453e-06, -0.906307757, -0.422617882, 0, -0.422617882, 0.906307757, 0, 0, 0, -1)
- Weld56.Part0 = Part51
- Weld56.Part1 = Part48
- Weld56.part1 = Part48
- Weld57.Parent = Part51
- Weld57.C0 = CFrame.new(-1.60946059, -0.494567871, -9.53674316e-06, 0, 0.422615886, -0.90630877, 0, -0.90630877, -0.422615886, -1, 0, 0)
- Weld57.Part0 = Part51
- Weld57.Part1 = Part46
- Weld57.part1 = Part46
- Weld58.Parent = Part51
- Weld58.C0 = CFrame.new(-0.778974175, -0.101193428, -8.58306885e-06, -0.965925753, -0.258818954, 0, -0.258818954, 0.965925753, 0, 0, 0, -1)
- Weld58.Part0 = Part51
- Weld58.Part1 = Part43
- Weld58.part1 = Part43
- Weld59.Parent = Part51
- Weld59.C0 = CFrame.new(-1.16757262, -0.210391521, -1.09672546e-05, -0.965925753, -0.258818954, 0, -0.258818954, 0.965925753, 0, 0, 0, -1)
- Weld59.Part0 = Part51
- Weld59.Part1 = Part42
- Weld59.part1 = Part42
- Part60.Parent = Model41
- Part60.CFrame = CFrame.new(-8.14999676, 2.19999957, 6.70000076, 0, -0.999999881, 0, 0.999999881, 0, 0, 0, 0, 1)
- Part60.Orientation = Vector3.new(0, 0, 90)
- Part60.Position = Vector3.new(-8.14999676, 2.19999957, 6.70000076)
- Part60.Rotation = Vector3.new(0, 0, 90)
- Part60.Color = Color3.new(0.156863, 0.498039, 0.278431)
- Part60.Size = Vector3.new(0.200000003, 0.109999999, 0.209999993)
- Part60.BottomSurface = Enum.SurfaceType.Smooth
- Part60.BrickColor = BrickColor.new("Dark green")
- Part60.Material = Enum.Material.SmoothPlastic
- Part60.TopSurface = Enum.SurfaceType.Smooth
- Part60.brickColor = BrickColor.new("Dark green")
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = character
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- for i,v in pairs(Model0:GetDescendants()) do
- if v.ClassName == "Part" then
- v.CanCollide = false
- v.Locked = true
- end
- end
- canuse = true
- drawing = false
- equipped = false
- theholder = Part4
- mainlowerpart = Part51
- mainupperpart = Part26
- linemiddle = Part16
- upperattachmentpart = Part24
- lowerattachmentpart = Part44
- lowerstring = Beam17
- upperstring = Beam18
- remote = Instance.new("RemoteEvent", character)
- remote.Name = "bowremote"
- bowweld = Instance.new("Weld", theholder)
- bowweld.Part0 = character.Torso
- bowweld.Part1 = theholder
- bowweld.Name = "bowweld"
- bowweld.C0 = CFrame.new(-0.363851786, 0.0303258896, 0.531646669, 0.347845018, -0.937389731, 0.0174473673, 0.937532127, 0.347898811, 5.02271178e-05, -0.00611700071, 0.016339995, 0.99984777)
- linemiddleweld = Weld7
- middleattachment = Instance.new("Attachment", linemiddle)
- upperattachment = Instance.new("Attachment", upperattachmentpart)
- lowerattachment = Instance.new("Attachment", lowerattachmentpart)
- lowerstring.Attachment0 = middleattachment
- lowerstring.Attachment1 = lowerattachment
- upperstring.Attachment0 = middleattachment
- upperstring.Attachment1 = upperattachment
- local bowpull = Instance.new("Sound", theholder)
- bowpull.SoundId = "rbxassetid://609348868"
- bowpull.Volume = 2
- bowpull.Name = "bowpull"
- local drawarrow = Instance.new("Sound", theholder)
- drawarrow.SoundId = "rbxassetid://609345084"
- drawarrow.Volume = 2
- drawarrow.Name = "drawarrow"
- local drawbow = Instance.new("Sound", theholder)
- drawbow.SoundId = "rbxassetid://609338076"
- drawbow.Volume = 2
- drawbow.Name = "drawbow"
- local bowfire = Instance.new("Sound", theholder)
- bowfire.SoundId = "rbxassetid://145203279"
- bowfire.Volume = 2
- bowfire.Name = "bowfire"
- local bowrelease = Instance.new("Sound", theholder)
- bowrelease.SoundId = "rbxassetid://609348009"
- bowrelease.Volume = 2
- bowrelease.Name = "bowrelease"
- local arrowhitground = Instance.new("Sound", theholder)
- arrowhitground.SoundId = "rbxassetid://609352672"
- arrowhitground.Volume = 2
- arrowhitground.Name = "arrowhitground"
- local arrowhitbody = Instance.new("Sound", theholder)
- arrowhitbody.SoundId = "rbxassetid://609369680"
- arrowhitbody.Volume = 2
- arrowhitbody.Name = "arrowhitbody"
- local stabsound = Instance.new("Sound", theholder)
- stabsound.SoundId = "rbxassetid://220833967"
- stabsound.Volume = 0.5
- stabsound.Name = "stabsound"
- local stabsound2 = Instance.new("Sound", theholder)
- stabsound2.SoundId = "rbxassetid://220833976"
- stabsound2.Volume = 0.5
- stabsound2.Name = "stabsound2"
- local stabsound3 = Instance.new("Sound", theholder)
- stabsound3.SoundId = "rbxassetid://220834000"
- stabsound3.Volume = 0.5
- stabsound3.Name = "stabsound3"
- local crit = Instance.new("Sound", theholder)
- crit.SoundId = "rbxassetid://2801263"
- crit.Volume = 0.5
- crit.Name = "critical"
- local swingsound = Instance.new("Sound", theholder)
- swingsound.SoundId = "rbxassetid://608537390"
- swingsound.Volume = 1
- swingsound.Name = "swingarrow"
- antiremovearrowsounds = true
- theholder.ChildRemoved:connect(function(WHAT)
- if WHAT.ClassName == "Sound" then
- if WHAT.Name == "arrowhitbody" or WHAT.Name == "arrowhitground" or WHAT.Name == "critical" then
- if not antiremovearrowsounds then return end
- end
- local clonedlol = Instance.new("Sound", theholder)
- clonedlol.SoundId = WHAT.SoundId
- clonedlol.Volume = WHAT.Volume
- clonedlol.Name = WHAT.Name
- end
- end)
- remote.OnServerEvent:connect(function(WHO, WHAT, value, value2, value3, value4, value5, value6)
- if WHO == owner then
- if WHAT == "updatec0" then
- for i,v in pairs(character:GetDescendants()) do
- if v.Name == value then
- v.C0 = value2
- end
- end
- elseif WHAT == "removeweld" then
- for i,v in pairs(character:GetDescendants()) do
- if v.Name == value then
- v:destroy()
- end
- end
- elseif WHAT == "makeweld" then
- local newweld = Instance.new("Weld", character.Torso)
- newweld.Part0 = value
- newweld.Part1 = value2
- newweld.C0 = value4
- newweld.Name = value3
- elseif WHAT == "equip" then
- equipped = true
- bowweld.Part0 = character["Left Arm"]
- elseif WHAT == "unequip" then
- equipped = false
- bowweld.Part0 = character.Torso
- elseif WHAT == "makearrow" then
- --Converted with ttyyuu12345's model to script plugin v4
- local 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 = {}
- local mas = Instance.new("Model",game:GetService("Lighting"))
- local arrowmodel = Instance.new("Model")
- local Part1 = Instance.new("Part")
- local SpecialMesh2 = Instance.new("SpecialMesh")
- local based = Instance.new("Part")
- local Weld4 = Instance.new("Weld")
- local Weld5 = Instance.new("Weld")
- local Weld6 = Instance.new("Weld")
- local Weld7 = Instance.new("Weld")
- local Weld8 = Instance.new("Weld")
- local Part9 = Instance.new("Part")
- local SpecialMesh10 = Instance.new("SpecialMesh")
- local Part11 = Instance.new("Part")
- Part12 = Instance.new("Part")
- SpecialMesh13 = Instance.new("SpecialMesh")
- Part14 = Instance.new("Part")
- arrowmodel.Name = "arrow"
- arrowmodel.Parent = mas
- Part1.Parent = arrowmodel
- Part1.CFrame = CFrame.new(-16.7368565, 17.0252571, 6.32333803, 0.999047399, 3.26326699e-09, 0.0436189622, -3.2623575e-09, -0.999999166, -1.00598641e-10, 0.0436190255, 4.17209635e-11, -0.999048233)
- Part1.Orientation = Vector3.new(0, 177.5, -180)
- Part1.Position = Vector3.new(-16.7368565, 17.0252571, 6.32333803)
- Part1.Rotation = Vector3.new(180, 2.5, 0)
- Part1.Color = Color3.new(0.0509804, 0.411765, 0.67451)
- Part1.Size = Vector3.new(0.0500000007, 0.49393779, 0.152539358)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.BrickColor = BrickColor.new("Bright blue")
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.brickColor = BrickColor.new("Bright blue")
- SpecialMesh2.Parent = Part1
- SpecialMesh2.MeshType = Enum.MeshType.Wedge
- based.Name = "based"
- based.Parent = arrowmodel
- based.CFrame = CFrame.new(-16.7329483, 16.5392399, 6.24777508, -4.80133076e-06, 1.78255118e-06, -0.999999702, -0.999999702, -1.61851869e-11, 4.80366134e-06, 2.21335415e-11, 1, 1.77323795e-06)
- based.Orientation = Vector3.new(0, -90, -90)
- based.Position = Vector3.new(-16.7329483, 16.5392399, 6.24777508)
- based.Rotation = Vector3.new(-69.7399979, -89.9599991, -159.630005)
- based.Color = Color3.new(0.737255, 0.607843, 0.364706)
- based.Size = Vector3.new(1.63387752, 0.101693049, 0.101692945)
- based.BottomSurface = Enum.SurfaceType.Smooth
- based.BrickColor = BrickColor.new("Cork")
- based.Material = Enum.Material.Wood
- based.TopSurface = Enum.SurfaceType.Smooth
- based.brickColor = BrickColor.new("Cork")
- based.Shape = Enum.PartType.Cylinder
- Weld4.Parent = based
- Weld4.C0 = CFrame.new(-0.769482136, -0.000450134277, 1.90734863e-06, 0.999999404, 2.97601076e-11, -2.33012543e-09, 2.97601041e-11, 1, -9.31265731e-09, -2.33103492e-09, -9.31265731e-09, 0.999999404)
- Weld4.Part0 = based
- Weld4.Part1 = Part14
- Weld4.part1 = Part14
- Weld5.Parent = based
- Weld5.C0 = CFrame.new(-0.48601675, -0.076830864, -0.00274658203, 4.79629261e-06, 0.999999583, 2.09460964e-07, -0.0436257869, 2.2146153e-11, 0.999048054, 0.999047637, -4.804127e-06, 0.0436257534)
- Weld5.Part0 = based
- Weld5.Part1 = Part12
- Weld5.part1 = Part12
- Weld6.Parent = based
- Weld6.C0 = CFrame.new(-0.48601675, 0.0755629539, 0.0039100647, -4.7958265e-06, 0.999999464, -2.09422609e-07, 0.0436207987, 2.81071191e-11, -0.999048173, -0.999047637, -4.80459266e-06, -0.043620754)
- Weld6.Part0 = based
- Weld6.Part1 = Part1
- Weld6.part1 = Part1
- Weld7.Parent = based
- Weld7.C0 = CFrame.new(-0.358897686, -0.000450134277, 1.90734863e-06, 0.999999404, 2.97601076e-11, -2.33012543e-09, 2.97601041e-11, 1, -9.31265731e-09, -2.33103492e-09, -9.31265731e-09, 0.999999404)
- Weld7.Part0 = based
- Weld7.Part1 = Part11
- Weld7.part1 = Part11
- Weld8.Parent = based
- Weld8.C0 = CFrame.new(0.810475826, 0, 0, 0.999999762, 1.19040429e-11, -9.32232069e-10, 1.19040411e-11, 1, -3.72506292e-09, -9.32232069e-10, -3.72506292e-09, 0.999999762)
- Weld8.Part0 = based
- Weld8.Part1 = Part9
- Weld8.part1 = Part9
- Part9.Parent = arrowmodel
- Part9.CFrame = CFrame.new(-16.7329521, 15.7287645, 6.24777508, -4.80226436e-06, 1.77882612e-06, -0.99999994, -0.99999994, -4.26325641e-12, 4.80273047e-06, 1.02311579e-11, 1, 1.77696347e-06)
- Part9.Orientation = Vector3.new(0, -90, -90)
- Part9.Position = Vector3.new(-16.7329521, 15.7287645, 6.24777508)
- Part9.Rotation = Vector3.new(-69.6999969, -89.9800034, -159.669998)
- Part9.Color = Color3.new(0.737255, 0.607843, 0.364706)
- Part9.Size = Vector3.new(3.24466777, 0.101693049, 0.101692945)
- Part9.BottomSurface = Enum.SurfaceType.Smooth
- Part9.BrickColor = BrickColor.new("Cork")
- Part9.Material = Enum.Material.Wood
- Part9.TopSurface = Enum.SurfaceType.Smooth
- Part9.brickColor = BrickColor.new("Cork")
- SpecialMesh10.Parent = Part9
- SpecialMesh10.MeshType = Enum.MeshType.Sphere
- Part11.Parent = arrowmodel
- Part11.CFrame = CFrame.new(-16.7329483, 16.898138, 6.24732494, -4.798997e-06, 1.79186384e-06, -0.999999106, -0.999999106, -4.59900173e-11, 4.80598874e-06, 5.18894996e-11, 1, 1.76392427e-06)
- Part11.Orientation = Vector3.new(0, -90, -90)
- Part11.Position = Vector3.new(-16.7329483, 16.898138, 6.24732494)
- Part11.Rotation = Vector3.new(-69.8499985, -89.9199982, -159.529999)
- Part11.Color = Color3.new(0.203922, 0.556863, 0.25098)
- Part11.Size = Vector3.new(0.160166651, 0.106777705, 0.106777593)
- Part11.BottomSurface = Enum.SurfaceType.Smooth
- Part11.BrickColor = BrickColor.new("Sea green")
- Part11.Material = Enum.Material.SmoothPlastic
- Part11.TopSurface = Enum.SurfaceType.Smooth
- Part11.brickColor = BrickColor.new("Sea green")
- Part11.Shape = Enum.PartType.Cylinder
- Part12.Parent = arrowmodel
- Part12.CFrame = CFrame.new(-16.7301998, 17.0252571, 6.17094421, -0.999047399, 2.79669621e-09, -0.0436239615, 2.79624146e-09, -0.999999285, 8.62598881e-11, -0.0436240137, 3.57608249e-11, 0.999048114)
- Part12.Orientation = Vector3.new(0, -2.5, 180)
- Part12.Position = Vector3.new(-16.7301998, 17.0252571, 6.17094421)
- Part12.Rotation = Vector3.new(0, -2.5, -180)
- Part12.Color = Color3.new(0.0509804, 0.411765, 0.67451)
- Part12.Size = Vector3.new(0.0500000007, 0.49393779, 0.152539358)
- Part12.BottomSurface = Enum.SurfaceType.Smooth
- Part12.BrickColor = BrickColor.new("Bright blue")
- Part12.TopSurface = Enum.SurfaceType.Smooth
- Part12.brickColor = BrickColor.new("Bright blue")
- SpecialMesh13.Parent = Part12
- SpecialMesh13.MeshType = Enum.MeshType.Wedge
- Part14.Parent = arrowmodel
- Part14.CFrame = CFrame.new(-16.7329464, 17.3087215, 6.24732494, -4.798997e-06, 1.79186384e-06, -0.999999106, -0.999999106, -4.59900173e-11, 4.80598874e-06, 5.18894996e-11, 1, 1.76392427e-06)
- Part14.Orientation = Vector3.new(0, -90, -90)
- Part14.Position = Vector3.new(-16.7329464, 17.3087215, 6.24732494)
- Part14.Rotation = Vector3.new(-69.8499985, -89.9199982, -159.529999)
- Part14.Color = Color3.new(0.415686, 0.223529, 0.0352941)
- Part14.Size = Vector3.new(0.050846573, 0.106777705, 0.106777593)
- Part14.BottomSurface = Enum.SurfaceType.Smooth
- Part14.BrickColor = BrickColor.new("Burnt Sienna")
- Part14.Material = Enum.Material.SmoothPlastic
- Part14.TopSurface = Enum.SurfaceType.Smooth
- Part14.brickColor = BrickColor.new("Burnt Sienna")
- Part14.Shape = Enum.PartType.Cylinder
- for i,v in pairs(mas:GetChildren()) do
- if value == "hand" then
- v.Parent = character["Right Arm"]
- elseif value == "shoot" then
- v.Parent = workspace
- elseif value == "hit" then
- v.Parent = value3
- end
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- for i,v in pairs(arrowmodel:GetDescendants()) do
- if v.ClassName == "Part" then
- v.CanCollide = false
- end
- end
- if value == "hand" then
- local weldarrow = Instance.new("Weld", character["Right Arm"])
- weldarrow.Part0 = character["Right Arm"]
- weldarrow.Part1 = based
- weldarrow.Name = "based?basedonwhat?"
- weldarrow.C0 = CFrame.new(-0.606494904, -0.714157581, -0.790890455, -0.464412391, 0.211017355, -0.860111833, 0.530729294, -0.711173058, -0.461041301, -0.70897603, -0.670600176, 0.218284503)
- elseif value == "shoot" then
- if character["Right Arm"]:findFirstChild("based?basedonwhat?") then
- character["Right Arm"]:findFirstChild("based?basedonwhat?"):destroy()
- end
- local woosh = Instance.new("Sound", based)
- woosh.SoundId = "rbxassetid://609350494"
- woosh.Volume = 0.5
- woosh.Looped = true
- woosh:Play()
- woosh.Name = "woosh"
- woosh.MaxDistance = 25
- based.CFrame = CFrame.new(value2, Vector3.new(value3.x,value2.y,value3.z)) * CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)
- local bodygyro = Instance.new("BodyGyro", based)
- bodygyro.P = 120
- bodygyro.CFrame = based.CFrame * CFrame.fromEulerAnglesXYZ(0,0,-math.pi/2)
- based.CFrame = CFrame.new(value2, value3) * CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)
- local velocity = Instance.new("BodyVelocity", based)
- velocity.Velocity = based.CFrame.rightVector*200
- velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- local collider = Instance.new("Part", based)
- collider.Size = Vector3.new(5,0.1,0.1)
- collider.CanCollide = false
- collider.CFrame = based.CFrame
- collider.Transparency = 1
- collider:BreakJoints()
- for q,w in pairs(arrowmodel:GetChildren()) do
- if w.ClassName == "Part" then
- w:SetNetworkOwner(owner)
- end
- end
- local colliderweld = Instance.new("Weld", collider)
- colliderweld.Part0 = based
- colliderweld.Part1 = collider
- colliderweld.C0 = CFrame.new(5,0,0)
- local attach = Instance.new("Attachment", based)
- attach.Position = Vector3.new(0, 0, 0.1)
- local attach1 = Instance.new("Attachment", based)
- attach1.Position = Vector3.new(0, 0, -0.1)
- local trail = Instance.new("Trail", based)
- trail.Lifetime = 0.1
- trail.Attachment0 = attach
- trail.Attachment1 = attach1
- trail.FaceCamera = true
- trail.Name = "arrowtrail"
- based.CFrame = based.CFrame * CFrame.new(2.5,0,0)
- local canhit = true
- coroutine.wrap(function()
- for i = 1,120 do
- if canhit then
- velocity.Velocity = velocity.Velocity - Vector3.new(0,1.5,0)
- wait(0.1)
- end
- end
- end)()
- collider.Touched:connect(function(hit)
- if canhit then
- if hit.Parent == character then return end
- if hit.Parent == arrowmodel then return end
- if hit.Parent.ClassName == "Accessory" then return end
- if hit.Parent.ClassName == "Hat" then return end
- if hit.Parent.Name == "arrow" then return end
- if not hit.CanCollide and not hit.Parent:findFirstChildOfClass("Humanoid") then return end
- canhit = false
- trail:destroy()
- woosh:destroy()
- collider:destroy()
- bodygyro:destroy()
- local ignorlist = {character}
- for q,w in pairs(workspace:GetDescendants()) do
- if w.Name == "HumanoidRootPart" then
- table.insert(ignorlist, w)
- end
- if w.Parent.Name == "arrow" then
- table.insert(ignorlist, w.Parent)
- end
- if w.Parent.ClassName == "Accessory" or w.Parent.ClassName == "Hat" then
- table.insert(ignorlist, w)
- end
- end
- local rayecas = Ray.new(based.Position, based.CFrame.rightVector*40)
- local hi,po,surf = workspace:FindPartOnRayWithIgnoreList(rayecas, ignorlist)
- local humanoidTHIS = hit.Parent:findFirstChildOfClass("Humanoid")
- if hi then
- arrowmodel.Parent = hi
- velocity:destroy()
- based.CFrame = CFrame.new(po)
- based.CFrame = CFrame.new(po, rayecas.Origin) * CFrame.fromEulerAnglesXYZ(0,-math.pi/2,0)
- based.CFrame = based.CFrame * CFrame.new(-1.5,0,0)
- local weldhit = Instance.new("Weld", based)
- weldhit.C0 = hi.CFrame:toObjectSpace(based.CFrame)
- weldhit.Part0 = hi
- weldhit.Part1 = based
- weldhit.Name = "oucharrowAAAAAAAAAA"
- local soundpart = Instance.new("Part", theholder)
- soundpart.CanCollide = false
- soundpart.Transparency = 1
- soundpart.Anchored = true
- soundpart.Size = Vector3.new(0.1,0.1,0.1)
- soundpart.CFrame = CFrame.new(po)
- antiremovearrowsounds = false
- if hi.Name == "Head" then
- theholder.critical.PlaybackSpeed = 1+math.random(-20,20)/80
- theholder.critical.Parent = soundpart
- soundpart.critical:Play()
- coroutine.wrap(function()
- wait(0.5)
- soundpart.critical.Parent = theholder
- end)()
- end
- if humanoidTHIS then
- theholder.arrowhitbody.PlaybackSpeed = 1+math.random(-20,20)/80
- theholder.arrowhitbody.Parent = soundpart
- soundpart.arrowhitbody:Play()
- coroutine.wrap(function()
- wait(0.6)
- soundpart.arrowhitbody.Parent = theholder
- soundpart:destroy()
- antiremovearrowsounds = true
- end)()
- else
- game.Debris:AddItem(arrowmodel, 30)
- theholder.arrowhitground.PlaybackSpeed = 1+math.random(-20,20)/80
- theholder.arrowhitground.Parent = soundpart
- soundpart.arrowhitground:Play()
- coroutine.wrap(function()
- wait(0.6)
- soundpart.arrowhitground.Parent = theholder
- soundpart:destroy()
- antiremovearrowsounds = true
- end)()
- end
- for i = 1,math.random(4,5) do
- local effect = Instance.new("SpawnLocation", workspace)
- Instance.new("SpecialMesh", effect).MeshType = "Sphere"
- effect.CanCollide = false
- effect.Size = Vector3.new(0.1,0.5,0.1)
- effect.Anchored = true
- effect.Transparency = 0
- effect.CFrame = CFrame.new(po) * CFrame.fromEulerAnglesXYZ(math.random(-20,20)/10,math.random(-20,20)/10,math.random(-20,20)/10)
- if humanoidTHIS then
- effect.BrickColor = BrickColor.new("Maroon")
- else
- effect.BrickColor = hi.BrickColor
- end
- coroutine.wrap(function()
- for i = 1,20 do
- effect.CFrame = effect.CFrame * CFrame.new(0,0.05,0)
- effect.Transparency = effect.Transparency + 0.05
- runservice.Stepped:wait()
- end
- effect:destroy()
- end)()
- end
- local bodyv = Instance.new("BodyVelocity", hi)
- bodyv.MaxForce = Vector3.new(math.huge,0,math.huge)
- bodyv.Velocity = based.CFrame.rightVector * 15
- game.Debris:AddItem(bodyv, 0.2)
- local canbone = true
- local canglue = true
- if hi.Name == "Head" then
- ragdollkill(hi.Parent)
- elseif hi.Name == "Torso" or hi.Name == "LowerTorso" or hi.Name == "UpperTorso" then
- canglue = false
- canbone = false
- end
- for q,w in pairs(workspace:GetDescendants()) do
- if w.ClassName == "Motor6D" then
- if w.Part1 == hi then
- if canglue then
- local gluueeee = Instance.new("Glue", hi)
- gluueeee.C0 = w.C0
- gluueeee.C1 = w.C1
- gluueeee.Part0 = w.Part0
- gluueeee.Part1 = hi
- gluueeee.Name = "4kultrahdragdoller"
- if hi.Name == "Left Leg" then
- gluueeee.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- gluueeee.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- elseif hi.Name == "Right Leg" then
- gluueeee.C0 = CFrame.new(0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- gluueeee.C1 = CFrame.new(0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- elseif hi.Name == "Left Arm" then
- gluueeee.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- gluueeee.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- elseif hi.Name == "Right Arm" then
- gluueeee.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- gluueeee.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- end
- w:destroy()
- end
- if hi.Parent:findFirstChild("UpperTorso") then
- if string.gmatch(string.lower(hi.Name), "upper") then
- canbone = false
- end
- end
- if canbone then
- local bone = Instance.new("Part", hi)
- bone.Shape = "Cylinder"
- bone.Size = Vector3.new(hi.Size.y/1.5,hi.Size.x,hi.Size.z)
- bone.Transparency = 1
- bone.Name = "arrowhitBONEEEEE"
- bone:BreakJoints()
- local boneweld = Instance.new("Weld", bone)
- boneweld.Part0 = hi
- boneweld.Part1 = bone
- boneweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-(hi.Size.y/2) + (bone.Size.x/2),0,0)
- end
- end
- end
- end
- if hit.Parent ~= nil then
- if humanoidTHIS then
- local totaldmg = math.random(20,30)
- if hi.Name == "Torso" or hi.Name == "UpperTorso" then
- totaldmg = totaldmg + math.random(20,30)
- end
- if hi.Name == "LowerTorso" then
- totaldmg = totaldmg + math.random(30,40)
- end
- local rightbroke = false
- local leftbroke = false
- if hi.Parent:findFirstChild("UpperTorso") then
- for q,w in pairs(hi.Parent:GetDescendants()) do
- if w.Name == "4kultrahdragdoller" then
- if w.Parent.Name == "RightUpperLeg" or w.Parent.Name == "RightLowerLeg" or w.Parent.Name == "RightFoot" then
- rightbroke = true
- elseif w.Parent.Name == "LeftUpperLeg" or w.Parent.Name == "LeftLowerLeg" or w.Parent.Name == "LeftFoot" then
- leftbroke = true
- end
- end
- end
- for q,w in pairs(hi.Parent:GetDescendants()) do
- if rightbroke then
- if w.Name == "RightLowerLeg" then
- local bone = Instance.new("Part", w)
- bone.Shape = "Cylinder"
- bone.Size = Vector3.new(w.Size.y/1.5,w.Size.x,w.Size.z)
- bone.Transparency = 1
- bone.Name = "arrowhitBONEEEEE"
- bone:BreakJoints()
- local boneweld = Instance.new("Weld", bone)
- boneweld.Part0 = w
- boneweld.Part1 = bone
- boneweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-(w.Size.y/2) + (bone.Size.x/2),0,0)
- end
- end
- if leftbroke then
- if w.Name == "LeftLowerLeg" then
- local bone = Instance.new("Part", w)
- bone.Shape = "Cylinder"
- bone.Size = Vector3.new(w.Size.y/1.5,w.Size.x,w.Size.z)
- bone.Transparency = 1
- bone.Name = "arrowhitBONEEEEE"
- bone:BreakJoints()
- local boneweld = Instance.new("Weld", bone)
- boneweld.Part0 = w
- boneweld.Part1 = bone
- boneweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-(w.Size.y/2) + (bone.Size.x/2),0,0)
- end
- end
- end
- if not hi.Parent:findFirstChild("RightUpperLeg") then
- rightbroke = true
- elseif not hi.Parent:findFirstChild("LeftUpperLeg") then
- leftbroke = true
- end
- if rightbroke and leftbroke then
- humanoidTHIS.PlatformStand = true
- humanoidTHIS.AutoRotate = false
- end
- elseif hi.Parent:findFirstChild("Torso") then
- for q,w in pairs(hi.Parent:GetDescendants()) do
- if w.Name == "4kultrahdragdoller" then
- if w.Parent.Name == "Right Leg" then
- rightbroke = true
- elseif w.Parent.Name == "Left Leg" then
- leftbroke = true
- end
- end
- end
- if not hi.Parent:findFirstChild("Right Leg") then
- rightbroke = true
- elseif not hi.Parent:findFirstChild("Left Leg") then
- leftbroke = true
- end
- if rightbroke and leftbroke then
- humanoidTHIS.PlatformStand = true
- humanoidTHIS.AutoRotate = false
- end
- end
- if totaldmg >= humanoidTHIS.Health then
- humanoidTHIS.Health = 0
- ragdollkill(hi.Parent)
- else
- humanoidTHIS.Health = humanoidTHIS.Health - totaldmg
- end
- end
- end
- end
- end
- end)
- end
- elseif WHAT == "draw" then
- drawing = true
- elseif WHAT == "undraw" then
- drawing = false
- elseif WHAT == "remove" then
- value:destroy()
- elseif WHAT == "playsound" then
- if value2 then
- theholder[value].PlaybackSpeed = 1+(math.random(-20,20)/80)
- end
- theholder[value]:Play()
- elseif WHAT == "changecolor" then
- local random = BrickColor.random()
- for q,w in pairs(Model0:GetDescendants()) do
- if w.ClassName == "Part" then
- if w.BrickColor ~= BrickColor.new("Dark green") and w.BrickColor ~= BrickColor.new("Black") and w.BrickColor ~= BrickColor.new("Bright blue") then
- w.BrickColor = random
- end
- end
- end
- elseif WHAT == "ragdollifylimb" then
- for q,w in pairs(workspace:GetDescendants()) do
- if w.ClassName == "Motor6D" then
- local canbone = true
- if w.Part1 == value then
- local gluueeee = Instance.new("Glue", value)
- gluueeee.C0 = w.C0
- gluueeee.C1 = w.C1
- gluueeee.Part0 = w.Part0
- gluueeee.Part1 = value
- gluueeee.Name = "4kultrahdragdoller"
- if value.Name == "Left Leg" then
- gluueeee.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- gluueeee.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- elseif value.Name == "Right Leg" then
- gluueeee.C0 = CFrame.new(0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- gluueeee.C1 = CFrame.new(0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- elseif value.Name == "Left Arm" then
- gluueeee.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- gluueeee.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- elseif value.Name == "Right Arm" then
- gluueeee.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- gluueeee.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- end
- w:destroy()
- end
- if value.Parent:findFirstChild("UpperTorso") then
- if string.gmatch(string.lower(value.Name), "upper") then
- canbone = false
- end
- end
- if canbone then
- local bone = Instance.new("Part", value)
- bone.Shape = "Cylinder"
- bone.Size = Vector3.new(value.Size.y/1.5,value.Size.x,value.Size.z)
- bone.Transparency = 1
- bone.Name = "arrowhitBONEEEEE"
- bone:BreakJoints()
- local boneweld = Instance.new("Weld", bone)
- boneweld.Part0 = value
- boneweld.Part1 = bone
- boneweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-(value.Size.y/2) + (bone.Size.x/2),0,0)
- end
- end
- end
- elseif WHAT == "damage" then
- if value.Health <= value2 then
- value.Health = value.Health - value2
- ragdollkill(value.Parent)
- else
- value.Health = value.Health - value2
- end
- elseif WHAT == "trailon" then
- if character["Right Arm"]:findFirstChild("arrow") then
- local based = character["Right Arm"]:findFirstChild("arrow").based
- local attach = Instance.new("Attachment", based)
- attach.Position = Vector3.new(0, 0, 0.1)
- local attach1 = Instance.new("Attachment", based)
- attach1.Position = Vector3.new(0, 0, -0.1)
- local trail = Instance.new("Trail", based)
- trail.Lifetime = 0.1
- trail.Attachment0 = attach
- trail.Attachment1 = attach1
- trail.FaceCamera = true
- trail.Name = "arrowtrail"
- end
- elseif WHAT == "trailoff" then
- if character["Right Arm"]:findFirstChild("arrow") then
- local based = character["Right Arm"]:findFirstChild("arrow").based
- if based:findFirstChild("arrowtrail") then
- based.arrowtrail:destroy()
- end
- for i = 1,2 do
- if based:findFirstChildOfClass("Attachment") then
- based:findFirstChildOfClass("Attachment"):destroy()
- end
- end
- end
- elseif WHAT == "stopsound" then
- theholder[value]:Stop()
- end
- end
- end)
- function ragdollkill(character)
- if character ~= workspace then
- if character.Parent ~= nil then
- local victimshumanoid = character:findFirstChildOfClass("Humanoid")
- local checkragd = character:findFirstChild("ragded")
- if not checkragd then
- local boolvalue = Instance.new("BoolValue", character)
- boolvalue.Name = "ragded"
- if not character:findFirstChild("UpperTorso") then
- character.Archivable = true
- for i,v in pairs(character:GetChildren()) do
- if v.ClassName == "Sound" then
- v:remove()
- end
- for q,w in pairs(v:GetChildren()) do
- if w.ClassName == "Sound" then
- w:remove()
- end
- end
- end
- local ragdoll = character:Clone()
- for i,v in pairs(ragdoll:GetDescendants()) do
- if v.ClassName == "Motor" or v.ClassName == "Motor6D" then
- v:destroy()
- end
- if v.Name == "arrowhitBONEEEEE" then
- v:destroy()
- end
- end
- ragdoll:findFirstChildOfClass("Humanoid").BreakJointsOnDeath = false
- ragdoll:findFirstChildOfClass("Humanoid").Health = 0
- if ragdoll:findFirstChild("Health") then
- if ragdoll:findFirstChild("Health").ClassName == "Script" then
- ragdoll:findFirstChild("Health").Disabled = true
- end
- end
- for i,v in pairs(character:GetChildren()) do
- if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" then
- v:destroy()
- end
- end
- for i,v in pairs(character:GetChildren()) do
- if v.ClassName == "Accessory" then
- local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
- if attachment1 then
- for q,w in pairs(character:GetChildren()) do
- if w.ClassName == "Part" then
- local attachment2 = w:findFirstChild(attachment1.Name)
- if attachment2 then
- local hinge = Instance.new("HingeConstraint", v.Handle)
- hinge.Attachment0 = attachment1
- hinge.Attachment1 = attachment2
- hinge.LimitsEnabled = true
- hinge.LowerAngle = 0
- hinge.UpperAngle = 0
- end
- end
- end
- end
- end
- end
- ragdoll.Parent = workspace
- if ragdoll:findFirstChild("Right Arm") then
- local glue = Instance.new("Glue", ragdoll.Torso)
- glue.Part0 = ragdoll.Torso
- glue.Part1 = ragdoll:findFirstChild("Right Arm")
- glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Arm"))
- limbcollider.Size = Vector3.new(1.4,1,1)
- limbcollider.Shape = "Cylinder"
- limbcollider.Transparency = 1
- limbcollider.Name = "LimbCollider"
- local limbcolliderweld = Instance.new("Weld", limbcollider)
- limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Arm")
- limbcolliderweld.Part1 = limbcollider
- limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
- end
- if ragdoll:findFirstChild("Left Arm") then
- local glue = Instance.new("Glue", ragdoll.Torso)
- glue.Part0 = ragdoll.Torso
- glue.Part1 = ragdoll:findFirstChild("Left Arm")
- glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Arm"))
- limbcollider.Size = Vector3.new(1.4,1,1)
- limbcollider.Shape = "Cylinder"
- limbcollider.Name = "LimbCollider"
- limbcollider.Transparency = 1
- local limbcolliderweld = Instance.new("Weld", limbcollider)
- limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Arm")
- limbcolliderweld.Part1 = limbcollider
- limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
- end
- if ragdoll:findFirstChild("Left Leg") then
- local glue = Instance.new("Glue", ragdoll.Torso)
- glue.Part0 = ragdoll.Torso
- glue.Part1 = ragdoll:findFirstChild("Left Leg")
- glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Leg"))
- limbcollider.Size = Vector3.new(1.4,1,1)
- limbcollider.Shape = "Cylinder"
- limbcollider.Name = "LimbCollider"
- limbcollider.Transparency = 1
- local limbcolliderweld = Instance.new("Weld", limbcollider)
- limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Leg")
- limbcolliderweld.Part1 = limbcollider
- limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
- end
- if ragdoll:findFirstChild("Right Leg") then
- local glue = Instance.new("Glue", ragdoll.Torso)
- glue.Part0 = ragdoll.Torso
- glue.Part1 = ragdoll:findFirstChild("Right Leg")
- glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Leg"))
- limbcollider.Size = Vector3.new(1.4,1,1)
- limbcollider.Shape = "Cylinder"
- limbcollider.Name = "LimbCollider"
- limbcollider.Transparency = 1
- local limbcolliderweld = Instance.new("Weld", limbcollider)
- limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Leg")
- limbcolliderweld.Part1 = limbcollider
- limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
- end
- if ragdoll:findFirstChild("Head") and ragdoll.Torso:findFirstChild("NeckAttachment") then
- local HeadAttachment = Instance.new("Attachment", ragdoll["Head"])
- HeadAttachment.Position = Vector3.new(0, -0.5, 0)
- local connection = Instance.new('HingeConstraint', ragdoll["Head"])
- connection.LimitsEnabled = true
- connection.Attachment0 = ragdoll.Torso.NeckAttachment
- connection.Attachment1 = HeadAttachment
- connection.UpperAngle = 60
- connection.LowerAngle = -60
- elseif ragdoll:findFirstChild("Head") and not ragdoll.Torso:findFirstChild("NeckAttachment") then
- local hedweld = Instance.new("Weld", ragdoll.Torso)
- hedweld.Part0 = ragdoll.Torso
- hedweld.Part1 = ragdoll.Head
- hedweld.C0 = CFrame.new(0,1.5,0)
- end
- game.Debris:AddItem(ragdoll, 30)
- if ragdoll:findFirstChild("HumanoidRootPart") then
- ragdoll:findFirstChild("HumanoidRootPart"):destroy()
- end
- local function aaaalol()
- wait(0.1)
- if ragdoll:findFirstChildOfClass("Humanoid") then
- ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
- end
- wait(0.1)
- local function searchforvelocity(wot)
- for i,v in pairs(wot:GetChildren()) do
- searchforvelocity(v)
- if v.ClassName == "BodyPosition" or v.ClassName == "BodyVelocity" then
- v:destroy()
- end
- end
- end
- searchforvelocity(ragdoll)
- end
- spawn(aaaalol)
- elseif character:findFirstChild("UpperTorso") then
- character.Archivable = true
- for i,v in pairs(character:GetChildren()) do
- if v.ClassName == "Sound" then
- v:remove()
- end
- for q,w in pairs(v:GetChildren()) do
- if w.ClassName == "Sound" then
- w:remove()
- end
- end
- end
- local ragdoll = character:Clone()
- for i,v in pairs(ragdoll:GetDescendants()) do
- if v.ClassName == "Motor" or v.ClassName == "Motor6D" then
- v:destroy()
- end
- if v.Name == "arrowhitBONEEEEE" then
- v:destroy()
- end
- end
- ragdoll:BreakJoints()
- ragdoll:findFirstChildOfClass("Humanoid").Health = 0
- if ragdoll:findFirstChild("Health") then
- if ragdoll:findFirstChild("Health").ClassName == "Script" then
- ragdoll:findFirstChild("Health").Disabled = true
- end
- end
- for i,v in pairs(character:GetChildren()) do
- if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" or v.ClassName == "MeshPart" then
- v:destroy()
- end
- end
- for i,v in pairs(character:GetChildren()) do
- if v.ClassName == "Accessory" then
- local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
- if attachment1 then
- for q,w in pairs(character:GetChildren()) do
- if w.ClassName == "Part" or w.ClassName == "MeshPart" then
- local attachment2 = w:findFirstChild(attachment1.Name)
- if attachment2 then
- local hinge = Instance.new("HingeConstraint", v.Handle)
- hinge.Attachment0 = attachment1
- hinge.Attachment1 = attachment2
- hinge.LimitsEnabled = true
- hinge.LowerAngle = 0
- hinge.UpperAngle = 0
- end
- end
- end
- end
- end
- end
- ragdoll.Parent = workspace
- local Humanoid = ragdoll:findFirstChildOfClass("Humanoid")
- Humanoid.PlatformStand = true
- local function makeballconnections(limb, attachementone, attachmenttwo, twistlower, twistupper)
- local connection = Instance.new('BallSocketConstraint', limb)
- connection.LimitsEnabled = true
- connection.Attachment0 = attachementone
- connection.Attachment1 = attachmenttwo
- connection.TwistLimitsEnabled = true
- connection.TwistLowerAngle = twistlower
- connection.TwistUpperAngle = twistupper
- local limbcollider = Instance.new("Part", limb)
- limbcollider.Size = Vector3.new(0.1,1,1)
- limbcollider.Shape = "Cylinder"
- limbcollider.Transparency = 1
- limbcollider:BreakJoints()
- local limbcolliderweld = Instance.new("Weld", limbcollider)
- limbcolliderweld.Part0 = limb
- limbcolliderweld.Part1 = limbcollider
- limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
- end
- local function makehingeconnections(limb, attachementone, attachmenttwo, lower, upper)
- local connection = Instance.new('HingeConstraint', limb)
- connection.LimitsEnabled = true
- connection.Attachment0 = attachementone
- connection.Attachment1 = attachmenttwo
- connection.LimitsEnabled = true
- connection.LowerAngle = lower
- connection.UpperAngle = upper
- local limbcollider = Instance.new("Part", limb)
- limbcollider.Size = Vector3.new(0.1,1,1)
- limbcollider.Shape = "Cylinder"
- limbcollider.Transparency = 1
- limbcollider:BreakJoints()
- local limbcolliderweld = Instance.new("Weld", limbcollider)
- limbcolliderweld.Part0 = limb
- limbcolliderweld.Part1 = limbcollider
- limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
- end
- local HeadAttachment = Instance.new("Attachment", Humanoid.Parent.Head)
- HeadAttachment.Position = Vector3.new(0, -0.5, 0)
- if ragdoll.UpperTorso:findFirstChild("NeckAttachment") then
- makehingeconnections(Humanoid.Parent.Head, HeadAttachment, ragdoll.UpperTorso.NeckAttachment, -50, 50)
- end
- makehingeconnections(Humanoid.Parent.LowerTorso, Humanoid.Parent.LowerTorso.WaistRigAttachment, Humanoid.Parent.UpperTorso.WaistRigAttachment, -50, 50)
- makeballconnections(Humanoid.Parent.LeftUpperArm, Humanoid.Parent.LeftUpperArm.LeftShoulderRigAttachment, Humanoid.Parent.UpperTorso.LeftShoulderRigAttachment, -200, 200, 180)
- makehingeconnections(Humanoid.Parent.LeftLowerArm, Humanoid.Parent.LeftLowerArm.LeftElbowRigAttachment, Humanoid.Parent.LeftUpperArm.LeftElbowRigAttachment, 0, -60)
- makehingeconnections(Humanoid.Parent.LeftHand, Humanoid.Parent.LeftHand.LeftWristRigAttachment, Humanoid.Parent.LeftLowerArm.LeftWristRigAttachment, -20, 20)
- --
- makeballconnections(Humanoid.Parent.RightUpperArm, Humanoid.Parent.RightUpperArm.RightShoulderRigAttachment, Humanoid.Parent.UpperTorso.RightShoulderRigAttachment, -200, 200, 180)
- makehingeconnections(Humanoid.Parent.RightLowerArm, Humanoid.Parent.RightLowerArm.RightElbowRigAttachment, Humanoid.Parent.RightUpperArm.RightElbowRigAttachment, 0, -60)
- makehingeconnections(Humanoid.Parent.RightHand, Humanoid.Parent.RightHand.RightWristRigAttachment, Humanoid.Parent.RightLowerArm.RightWristRigAttachment, -20, 20)
- --
- makeballconnections(Humanoid.Parent.RightUpperLeg, Humanoid.Parent.RightUpperLeg.RightHipRigAttachment, Humanoid.Parent.LowerTorso.RightHipRigAttachment, -80, 80, 80)
- makehingeconnections(Humanoid.Parent.RightLowerLeg, Humanoid.Parent.RightLowerLeg.RightKneeRigAttachment, Humanoid.Parent.RightUpperLeg.RightKneeRigAttachment, 0, 60)
- makehingeconnections(Humanoid.Parent.RightFoot, Humanoid.Parent.RightFoot.RightAnkleRigAttachment, Humanoid.Parent.RightLowerLeg.RightAnkleRigAttachment, -20, 20)
- --
- makeballconnections(Humanoid.Parent.LeftUpperLeg, Humanoid.Parent.LeftUpperLeg.LeftHipRigAttachment, Humanoid.Parent.LowerTorso.LeftHipRigAttachment, -80, 80, 80)
- makehingeconnections(Humanoid.Parent.LeftLowerLeg, Humanoid.Parent.LeftLowerLeg.LeftKneeRigAttachment, Humanoid.Parent.LeftUpperLeg.LeftKneeRigAttachment, 0, 60)
- makehingeconnections(Humanoid.Parent.LeftFoot, Humanoid.Parent.LeftFoot.LeftAnkleRigAttachment, Humanoid.Parent.LeftLowerLeg.LeftAnkleRigAttachment, -20, 20)
- for i,v in pairs(Humanoid.Parent:GetChildren()) do
- if v.ClassName == "Accessory" then
- local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
- if attachment1 then
- for q,w in pairs(Humanoid.Parent:GetChildren()) do
- if w.ClassName == "Part" then
- local attachment2 = w:findFirstChild(attachment1.Name)
- if attachment2 then
- local hinge = Instance.new("HingeConstraint", v.Handle)
- hinge.Attachment0 = attachment1
- hinge.Attachment1 = attachment2
- hinge.LimitsEnabled = true
- hinge.LowerAngle = 0
- hinge.UpperAngle = 0
- end
- end
- end
- end
- end
- end
- for i,v in pairs(ragdoll:GetChildren()) do
- for q,w in pairs(v:GetChildren()) do
- if w.ClassName == "Motor6D"--[[ and w.Name ~= "Neck"--]] and w.Name ~= "oucharrowAAAAAAAAAA" then
- w:destroy()
- end
- end
- end
- if ragdoll:findFirstChild("HumanoidRootPart") then
- ragdoll.HumanoidRootPart:destroy()
- end
- if ragdoll:findFirstChildOfClass("Humanoid") then
- ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
- end
- local function waitfordatmoment()
- wait(0.2)
- local function searchforvelocity(wot)
- for i,v in pairs(wot:GetChildren()) do
- searchforvelocity(v)
- if v.ClassName == "BodyPosition" or v.ClassName == "BodyVelocity" then
- v:destroy()
- end
- end
- end
- searchforvelocity(ragdoll)
- end
- spawn(waitfordatmoment)
- game.Debris:AddItem(ragdoll, 30)
- end
- end
- end
- end
- end
Add Comment
Please, Sign In to add comment