i have no knowledge of data save and if you do know please give me a small example plz. TY


---[CODE BY ALEXANDRE (aleandroblingo)]

local Module = {}

function Module:Inject()
	
end

function onPlayerEntered(newPlayer)
	wait(.5)
	
	--[]--------------------------------------------------
	
	--[Settings]
	local CharacterSettings =    Instance.new("Configuration")
	local HelmetColour =         Instance.new("Color3Value")
	local HelmetLivery =         Instance.new("StringValue")
	local ShirtID =              Instance.new("StringValue")
	local PantsID =              Instance.new("StringValue")
	local Country =              Instance.new("StringValue")
	
	--[Go kart aesthetics]	
	local Kart =                 Instance.new("Configuration")
	
	local Livery =               Instance.new("StringValue")

	local BodyColour =           Instance.new("Color3Value")
	local BodyReflection =       Instance.new("StringValue")
	
	local WheelColour =          Instance.new("Color3Value")
	local WheelReflection =      Instance.new("StringValue")
	
	local KartingNumber =        Instance.new("StringValue")
	local KartingNumberColour1 = Instance.new("Color3Value")
	local KartingNumberColour2 = Instance.new("Color3Value")

	--[Inventory]
	local Inventory =         Instance.new("Configuration")	
	
	--[Object Storages]
	local HelmetStorage =     Instance.new("Configuration")	
	local OutFitStorage =     Instance.new("Configuration")	
	local LiveryStorage =     Instance.new("Configuration")	
	local CratesStorage =     Instance.new("Configuration")	
	
	--[Stats]
	local TrackStatistics = Instance.new("Configuration")
	local CornerCuts      = Instance.new("IntValue")
	local Penalties       = Instance.new("IntValue")
	local Position        = Instance.new("IntValue")
	local Status          = Instance.new("StringValue")
	local Laps            = Instance.new("IntValue")

    --[Skin Settings]
	local BodyColors =        Instance.new("BodyColors")
	
	--[Extra]
	local TimePlayed =        Instance.new("IntValue")
	
	--[Cases]
	local CommonCase =        Instance.new("IntValue")
	local UncommonCase =      Instance.new("IntValue")
	local RareCase =          Instance.new("IntValue")
	local ExoticCase =        Instance.new("IntValue")
	local LegendaryCase =     Instance.new("IntValue")
	local GodlyCase =         Instance.new("IntValue")

	--[NAMES]----------------------------------------------
	
	--[Settings]
	CharacterSettings.Name =    "CharacterSettings"
	
	HelmetColour.Name =         "HelmetColour"
	HelmetColour.Value =        Color3.fromRGB(248, 248, 248)
	
	HelmetLivery.Name =         "HelmetLivery"
	HelmetLivery.Value =        ""
	
	ShirtID.Name =              "ShirtID"
	ShirtID.Value =             ""
	
	PantsID.Name =              "PantsID"
	PantsID.Value =             ""
	
	Country.Name =              "Country"
	Country.Value =	            "UK"
	
	--[Go kart aesthetics]	
	Kart.Name =                 "Kart"
	
    Livery.Name =               "Livery"
    Livery.Value =              "rbxassetid://1555866673"

    BodyColour.Name =           "BodyColour"
    BodyColour.Value =          Color3.fromRGB(0, 0, 0)   

    BodyReflection.Name =       "BodyReflection"
    BodyReflection.Value =      "0"

    WheelColour.Name =          "WheelColour"
    WheelColour.Value =         Color3.fromRGB(0, 0, 0)

    WheelReflection.Name =      "WheelReflection"
    WheelReflection.Value =     "0"

    KartingNumber.Name =        "KartingNumber"
    KartingNumber.Value =       "001"

    KartingNumberColour1.Name = "KartingNumberColour1"
    KartingNumberColour1.Value = Color3.fromRGB(0, 0, 0)

    KartingNumberColour2.Name = "KartingNumberColour2"
    KartingNumberColour2.Value = Color3.fromRGB(248, 248, 248)

	--[Inventory]
	Inventory.Name =         "Inventory"
	
	--[Object Storages]
	HelmetStorage.Name =     "HelmetStorage"
	OutFitStorage.Name =     "OutFitStorage"
	LiveryStorage.Name =     "LiveryStorage"
	CratesStorage.Name =     "CratesStorage"
	
	--[Stats]
	TrackStatistics.Name = "TrackStatistics"
	Penalties.Name       = "Penalties"
	CornerCuts.Name      = "CornerCuts"
	Position.Name        = "Position"	
	Status.Name          = "Status"
	Laps.Name            = "Laps"	
		
    --[Skin Settings]
	BodyColors.Name =        "BodyColors"
	
	--[Extra]
	TimePlayed.Name =        "TimePlayed"
	TimePlayed.Value =       "0000000000"
	
	--[Cases]
	
	CommonCase.Name =        "CommonCase"
	CommonCase.Value =       "0000000020"
	
	UncommonCase.Name =      "UncommonCase"
	UncommonCase.Value =     "0000000010"
	
	RareCase.Name =        	 "RareCase"
	RareCase.Value =       	 "0000000005"
	
	ExoticCase.Name =        "ExoticCase"
	ExoticCase.Value =       "0000000003"
	
	LegendaryCase.Name =     "LegendaryCase"
	LegendaryCase.Value =    "0000000002"
	
	GodlyCase.Name =         "GodlyCase"
	GodlyCase.Value =        "0000000001"
	
    --[LOCATIONS]------------------------------------------
	
	--[Settings]
	CharacterSettings.Parent = newPlayer
	
	Inventory.Parent =         newPlayer
	
	HelmetStorage.Parent =	   Inventory
	OutFitStorage.Parent = 	   Inventory
	LiveryStorage.Parent =     Inventory
	CratesStorage.Parent =     Inventory
	
	--[Stats]
	TrackStatistics.Parent =   newPlayer
	CornerCuts.Parent =        TrackStatistics
    Penalties.Parent =         TrackStatistics
    Position.Parent =          TrackStatistics
    Status.Parent =            TrackStatistics
    Laps.Parent =              TrackStatistics

	TimePlayed.Parent =        CharacterSettings
	HelmetColour.Parent =      CharacterSettings
	HelmetLivery.Parent =      CharacterSettings
	ShirtID.Parent =           CharacterSettings
	PantsID.Parent =           CharacterSettings
	BodyColors.Parent =        CharacterSettings
	Country.Parent =           CharacterSettings
	
	--[Go kart aesthetics]
	Kart.Parent =	              newPlayer
	
	Livery.Parent =               Kart
	BodyColour.Parent =           Kart
	BodyReflection.Parent =       Kart
	
	BodyColour.Parent =           Kart
	BodyReflection.Parent =       Kart	
	WheelColour.Parent =          Kart
	WheelReflection.Parent =      Kart
	KartingNumber.Parent =        Kart
	KartingNumberColour1.Parent = Kart
	KartingNumberColour2.Parent = Kart
	
	---	
	CommonCase.Parent =        CratesStorage
	UncommonCase.Parent =      CratesStorage
	RareCase.Parent =          CratesStorage
	ExoticCase.Parent =        CratesStorage
	LegendaryCase.Parent =     CratesStorage
	GodlyCase.Parent =         CratesStorage

	--[]----------------------------------------------------

end

game.Players.ChildAdded:connect(onPlayerEntered)

return Module

4 comments

0

You shouldn't be using ChildAdded on the Players service, use PlayerAdded. And connect is deprecated use Connect

0

http://robloxdev.com/articles/Data-store# read on that it should help you out.

0

will it be hard ;/ ?

0

Also thanks @incapaz :), im looking at some tutorials cos im new to scripting