I dont have much Time and If you find a mistake please correct it for me thanks! Read it through for the brain box's the leaderboard isnt yet fully connected with the main script.
game.Players.PlayerAdded:connect(function(player) local leaderstats = Instance.new("Model") leaderstats.Name = "leaderstats" leaderstats.Parent = player local Level = Instance.new("IntValue") Level.Name = "Level" Level.Value = 0 Level.Parent = leaderstats end) --- Leaderboards while wait(60) do --- 60 secounds. for _, player in ipairs(game.Players:GetPlayers()) do if player:FindFirstChild("leaderstats") then player.leaderstats.Level.Value = player.leaderstats.Level.Value + 1 --- Every 60 secounds it adds 1 to the leaderboard end end end --- local PlayVech = Instance.new("Folder", game.Players.LocalPlayer) JeepCloneVar = LocalPlayerT:WaitForChild("leaderstats"):WaitForChild("Level"):Clone() --- Making the var for the clones. local NewJeep = workspace:WaitForChild("JeepNoOwner"):Clone() -- Wait for it and then clone PlayVech.Name = "CarComp" print("MadeFolder") --- Created the folder called Carcomp which is were data of levels and info is placed. LocalPlayerT = game.Players.LocalPlayer LocalPlayerT.leaderstats.Level:Clone() -- Already waited for above (will error if destroyed) LocLeaderStats = game.Players.LocalPlayer.leaderstats LocLeaderStats.Level.Parent = LocalPlayerT.CarComp print("CopiedLocalLevelStats") print("LoadingNextSteps..") --- Takes level local CarCompM = Instance.new("Model", LocalPlayerT.CarComp) workspace:WaitForChild("JeepNoOwner"):Clone() NewJeep.Parent = CarCompM CarCompM.Name = "JeepOwned" --- Should Copy and paste a CLONE Of the jeep into a model in car comp. if game.Workspace.JeepNoOwner.Configurations.Speed.Value = 80 then --- = in red? Im doing something wrong? game.Workspace.JeepNoOwner.Name = ("JeepNoOwner") --- Test level if it at 80 it makes JeepNoOwner as when your level 0 you will be at 81 speed. if game.Workspace.JeepNoOwner.Configurations.Owned.Value = true then game.Workspace.JeepNoOwner.Name = ("JeepOwned") UserOfOwnedJeep = game.Workspace.JeepOwned.Configurations.Owner --- No idea if its possible but if inside an if sounds good. ResetNoJeep = game.Workspace.JeepNoOwner.Owned = ("NoOwner") end --- did some random reset and user things they will be handy later hopefully. end --- if game.Workspace.JeepNoOwner.Configurations.Owned = false then --- Reseting them if one states false game.Workspace.JeepNoOwner.Configurations.Owner = ("NoOwner") end if game.Workspace.JeepNoOwner.Configurations.Owner = ("NoOwner") then game.Workspace.JeepNoOwner.Configurations.Owned = false --- Reseting them if one states false end ---
Tell me if i messed up anywhere and correct it for me please thanks!
Closed as Too Broad by Goulstem
This question has been closed because it is too broad and is generally unanswerable. Please ask a more specific question.
Why was this question closed?