Hoşgeldin Misafir

Scriptte bulunan sorun nedir?

gtech

26 Ara 2017
604 Mesaj

Aktiflik

Seviye

Deneyim

TIM / GÖREV:
Kod:panoya kopyala

Kod:
local DataStoreService = game:GetService("DataStoreService")
local clothingDataStore = DataStoreService:GetDataStore("ClothingDataStore")

game.Players.PlayerAdded:Connect(function(player)
    local userId = player.UserId
    local success, data = pcall(function()
        return clothingDataStore:GetAsync(userId)
    end)
 
    if success and data then
        if data.pants then
            local pants = Instance.new("Pants", player.Character)
            pants.PantsTemplate = data.pants...

Read more