Advertisement
Aura_Exploits

Untitled

Feb 2nd, 2023
1,340
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. for i,v in pairs(workspace:GetChildren()) do
  2. if v.Name == "fakediamond1" then v:Destroy() end
  3. end
  4.  
  5. local diamondmesh = Instance.new("MeshPart")
  6. diamondmesh.Anchored = true
  7. diamondmesh.MeshId = "rbxassetid://10241207391"
  8. diamondmesh.Name = "fakediamond1"
  9. diamondmesh.Size = Vector3.new(0.507319, 0.543082, 0.585802)
  10. Instance.new("Highlight", diamondmesh)
  11.  
  12. local player = game.Players.LocalPlayer
  13. local character = player.character
  14. local arena
  15. local cupFolder
  16.  
  17. for _, v in pairs(game:GetService("Workspace").ArenasREAL:GetDescendants()) do
  18. if v:IsA("TextLabel") and v.Text == "@"..player.Name then
  19. arena = v.Parent.Parent.Parent.Parent.Parent.Parent.Parent
  20. end
  21. end
  22.  
  23. for _, v in pairs(arena:GetDescendants()) do
  24. if v.Name == "Spot" then
  25. v.Parent.Name = tostring(v.Value)
  26. cupFolder = v.Parent.Parent
  27. end
  28. end
  29.  
  30. for _,diamond in pairs(arena.ArenaTemplate.Important.Diamonds:GetChildren()) do
  31. if diamond.Transparency == 1 then continue end
  32.  
  33. local closest,distance = nil, 1000
  34. for _,cup in pairs(cupFolder:GetChildren()) do
  35. local mag = (cup.Detail.Position - diamond.Position).Magnitude
  36. if mag < distance then closest = cup distance = mag end
  37. end
  38.  
  39. local clone = diamondmesh:Clone()
  40. clone.Parent = workspace
  41. clone.Position = closest.Primary.Position
  42. closest.Primary:GetPropertyChangedSignal("Position"):Connect(function()
  43. clone.Position = closest.Primary.Position
  44. end)
  45. end
  46.  
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement