Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- __doctype__ = "Roblox Server-Sided Script"
- __author__ = "Izzy"
- function createCard(deck,username,playerId,color,ranking)
- newCard = Instance.new("Part",deck)
- newCard.Size = Vector3.new(1.5,.2,1)
- newCard.BrickColor = BrickColor.new(color)
- newCard.TopSurface = "Smooth"
- newCard.BottomSurface = "Smooth"
- newCard.Material = "SmoothPlastic"
- newCard.Name = username
- gui = Instance.new("SurfaceGui",newCard)
- gui.Adornee = newCard
- gui.Face = "Top"
- frame = Instance.new("Frame",gui)
- frame.Size = UDim2.new(1,0,1,0)
- frame.BackgroundTransparency = 1
- name = Instance.new("TextLabel",frame)
- name.Size = UDim2.new(.8,0,.1,0)
- name.BackgroundTransparency = 1
- name.Text = username
- name.TextScaled = true
- name.Font = "Arcade"
- rank= Instance.new("TextLabel",frame)
- rank.Size = UDim2.new(.2,0,.1,0)
- rank.Position = UDim2.new(.8,0,0,0)
- rank.BackgroundTransparency = 1
- rank.Text = ranking
- rank.TextScaled = true
- rank.Font = "Arcade"
- img= Instance.new("ImageLabel",frame)
- img.Size = UDim2.new(1,0,.8,0)
- img.Position = UDim2.new(0,0,.1,0)
- img.BackgroundTransparency = 1
- img.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&userid="..playerId
- end
- function createDeck(p,deckId)
- if deckId == 1 then
- local users = {{"amazingranma261",6529546},{"Reinitialized",189503},{"Ceirios",25356207},{"KingAbsalom",5615419},{"dullbakuganroll",19564273},{"einsteinK",19564273},{"MakerModelLua",38837082},{"basictality",25319113},{"AntiBoomz0r",4719353},{"kerrhau",2593}}
- for i,v in ipairs(users) do
- createCard(p,users[1],users[2],Color3.new(1,1,1),i)
- end
- end
- end
- createDeck(workspace,1)
Add Comment
Please, Sign In to add comment