![]() ![]() 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 returns nil if the killer is no longer in the game 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) pg=Players.Player:WaitForChild("PlayerGui") (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. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |