The_Banana

amongus

Apr 9th, 2022
3,111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. function Transparency(number)
  2. for i,v in pairs(game.Players:GetChildren()) do
  3. if v.Character then
  4. for _,c in pairs(v.Character:GetDescendants()) do
  5. if not c.Parent.Name:match("sword") or c.Parent.Name:match("pickaxe") or c.Parent.Name:match("axe") then
  6. if c:IsA("BasePart") or c:IsA("Decal") and c.Name ~= "HumanoidRootPart" then
  7. c.Transparency = number
  8. v.Character.PrimaryPart.Transparency = 1
  9. end
  10. end
  11. end
  12. end
  13. end
  14. end
  15.  
  16. function addcustommodel(player,Model)
  17. if Model == "Amogus" then
  18. if not game.Workspace:FindFirstChild("CustomFolderv") then
  19. local customfolder = Instance.new("Folder",game:GetService("Workspace"))
  20. customfolder.Name = "CustomFolderv"
  21. end
  22. if not game.Workspace.CustomFolderv:FindFirstChild(player.Name) then
  23. local customfolder = game.Workspace.CustomFolderv
  24. local newmesh = Instance.new("MeshPart",customfolder)
  25. newmesh.CanCollide = false
  26. newmesh.Massless = true
  27. newmesh.MeshId = "rbxassetid://8760585445"
  28. newmesh.Size = Vector3.new(0.1367, 0.1213, 0.133)
  29. newmesh.CFrame = player.Character.HumanoidRootPart.CFrame
  30. local weld = Instance.new("WeldConstraint",newmesh)
  31. weld.Part0 = player.Character.HumanoidRootPart
  32. weld.Part1 = newmesh
  33. newmesh.Name = player.Name
  34. end
  35. end
  36. end
  37.  
  38. Transparency(1)
  39. for i,v in pairs(game.Players:GetChildren()) do
  40. addcustommodel(v,"Amogus")
  41. end
Advertisement
Add Comment
Please, Sign In to add comment