NewPlayer. Humanoid.Died:connect(function() onHumanoidDied(humanoid, newPlayer) end ) Local Short = Ĭash.Value = Settings:ConvertShort(PlayerStats.Value)Ĭash.Value = Settings:ConvertComma(PlayerStats.Value) Local PlayerStats = :FindFirstChild(newPlayer.Name) If newPlayer.Character ~= nil then break end Is the problem even what I think it is (player arrived before character)? Local captures = Instance.new("IntValue") Stands.FlagCaptured:connect(onCaptureScored) If (c.className = "Model" or c.className = "Part") then Local stats = killer:findFirstChild("leaderstats") If killer.Parent ~= nil then - killer still in gameįunction handleKillCount(humanoid, player) Local tag = humanoid:findFirstChild("creator") check for kill tag on humanoid - may be more than one - todo: deal with this Allows the Emotes Menu to be disabled using the existing StarterGui:SetCoreGuiEnabled () API. The CoreGui used to display and send in-game chat message with other players. returns nil if the killer is no longer in the game The CoreGui displaying a players backpack (containing a players tools, gear, etc.). returns the player object that killed this humanoid Humanoid.Died:connect(function() onHumanoidDied(h, p) end )įunction getKillerOfHumanoidIfStillInGame(humanoid) If property = "Character" and player.Character ~= nil then Local killer = getKillerOfHumanoidIfStillInGame(humanoid)įunction onPlayerRespawn(property, player) do short dance to try and find the killer Local stats = player:findFirstChild("leaderstats") diamonds=pg:WaitForChild("Ores").įunction onHumanoidDied(humanoid, player) (it doesnt show up the leaderboard, just my name) local Settings = require() Here is my current script, can someone tell me what is wrong/what i am missing. Im trying to get data to show from a PlayersGui onto the leaderboard but nothing seems to work, i have asked on the forums but cant seem to get the help i need.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |