Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Transparency(number)
- for i,v in pairs(game.Players:GetChildren()) do
- if v.Character then
- for _,c in pairs(v.Character:GetDescendants()) do
- if not c.Parent.Name:match("sword") or c.Parent.Name:match("pickaxe") or c.Parent.Name:match("axe") then
- if c:IsA("BasePart") or c:IsA("Decal") and c.Name ~= "HumanoidRootPart" then
- c.Transparency = number
- v.Character.PrimaryPart.Transparency = 1
- end
- end
- end
- end
- end
- end
- function addcustommodel(player,Model)
- if Model == "Amogus" then
- if not game.Workspace:FindFirstChild("CustomFolderv") then
- local customfolder = Instance.new("Folder",game:GetService("Workspace"))
- customfolder.Name = "CustomFolderv"
- end
- if not game.Workspace.CustomFolderv:FindFirstChild(player.Name) then
- local customfolder = game.Workspace.CustomFolderv
- local newmesh = Instance.new("MeshPart",customfolder)
- newmesh.CanCollide = false
- newmesh.Massless = true
- newmesh.MeshId = "rbxassetid://8760585445"
- newmesh.Size = Vector3.new(0.1367, 0.1213, 0.133)
- newmesh.CFrame = player.Character.HumanoidRootPart.CFrame
- local weld = Instance.new("WeldConstraint",newmesh)
- weld.Part0 = player.Character.HumanoidRootPart
- weld.Part1 = newmesh
- newmesh.Name = player.Name
- end
- end
- end
- Transparency(1)
- for i,v in pairs(game.Players:GetChildren()) do
- addcustommodel(v,"Amogus")
- end
Advertisement
Add Comment
Please, Sign In to add comment