Advertisement
FlamingDrey

Untitled

Jun 10th, 2023
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.45 KB | None | 0 0
  1. local Y=require(game:GetService("ReplicatedStorage").TS.games.bedwars["bedwars-swords"]).BedwarsSwords;function hashFunc(Z)return{value=Z}end;local function _(s)if not s then return{items={},armor={}}end;local a0,a1=pcall(function()return require(game:GetService("ReplicatedStorage").TS.inventory["inventory-util"]).InventoryUtil.getInventory(s)end)if not a0 then return{items={},armor={}}end;if s.Character and s.Character:FindFirstChild("InventoryFolder")then local a2=s.Character:FindFirstChild("InventoryFolder").Value;if not a2 then return a1 end;for p,q in next,a1 do for a3,a4 in next,q do if typeof(a4)=='table'and a4.itemType then a4.instance=a2:FindFirstChild(a4.itemType)end end;if typeof(q)=='table'and q.itemType then q.instance=a2:FindFirstChild(q.itemType)end end end;return a1 end;local function a5()local a6,a7=-9e9,nil;for p,q in next,_(h).items do local a8=table.find(Y,q.itemType)if not a8 then end;if a8>a6 then a7=q;a6=a8 end end;return a7 end;local a9=m:Get(r["SwordRemote"])local aa={["Value"]=21}local ab=t;if ab then spawn(function()repeat task.wait(0.12)local ac=getnearestplayer(aa["Value"])if ac~=nil and ac.Team~=h.Team and isAlive(ac)and ac.Character:FindFirstChild("Humanoid").Health>0.1 and isAlive(h)and h.Character:FindFirstChild("Humanoid").Health>0.1 and not ac.Character:FindFirstChild("ForceField")then local ad=a5()spawn(function()local ae=Instance.new("Animation")ae.AnimationId="rbxassetid://4947108314"local af=h.Character:FindFirstChild("Humanoid"):FindFirstChild("Animator")af:LoadAnimation(ae):Play()ae:Destroy()r["ViewmodelController"]:playAnimation(15)end)if ad~=nil then r["SwordController"].lastAttack=game:GetService("Workspace"):GetServerTimeNow()-0.11;a9:SendToServer({["weapon"]=ad.tool,["entityInstance"]=ac.Character,["validate"]={["raycast"]={["cameraPosition"]=hashFunc(j.CFrame.Position),["cursorDirection"]=hashFunc(Ray.new(j.CFrame.Position,ac.Character:FindFirstChild("HumanoidRootPart").Position).Unit.Direction)},["targetPosition"]=hashFunc(ac.Character:FindFirstChild("HumanoidRootPart").Position),["selfPosition"]=hashFunc(h.Character:FindFirstChild("HumanoidRootPart").Position+((h.Character:FindFirstChild("HumanoidRootPart").Position-ac.Character:FindFirstChild("HumanoidRootPart").Position).magnitude>14 and CFrame.lookAt(h.Character:FindFirstChild("HumanoidRootPart").Position,ac.Character:FindFirstChild("HumanoidRootPart").Position).LookVector*4 or Vector3.new(0,0,0)))},["chargedAttack"]={["chargeRatio"]=0.8}})end end until not ab end)end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement