mark298
|
  |
| Joined: 24 Oct 2008 |
| Total Posts: 1264 |
|
|
| 14 Dec 2013 12:18 PM |
Ok, so, I want to make my own Custom Leaderboard for my game. I've removed the Default Leaderboard with 'game.StarterGui:SetCoreGuiEnabled("PlayerList", false)' And I have no problem scripting my own gui one.
My problem is that, on the default leadarboard, you can send Friend Requests to other players. Is there any way for a player to send a friend request to another through a gui button, and to accept one through a gui button? Because this is a feature I would like on my own one.
-Mark298 |
|
|
| Report Abuse |
|
|
Superfryx
|
  |
| Joined: 01 Aug 2011 |
| Total Posts: 3253 |
|
|
| 14 Dec 2013 12:19 PM |
You can click on the player and send a friend request.( At least I think it is still a feature)
~local Superfryx=game.Workspace.Awesomeness |
|
|
| Report Abuse |
|
|
DrWaffler
|
  |
| Joined: 16 Sep 2011 |
| Total Posts: 4248 |
|
|
| 14 Dec 2013 12:20 PM |
No, the required methods are protected and you can't use them.
However you could always give a nice popup to the players saying "This user would like to become friends with you! Send them a FR on the website! :D"
--[Territory Conquest Developer, Valerian Studios Developer, Business Casual Narwhal Moai. ]]-- |
|
|
| Report Abuse |
|
|
|
| 14 Dec 2013 12:21 PM |
u no whut? you just learnt me how to remove the playerslist from my place. THANK YOU! :D |
|
|
| Report Abuse |
|
|
mark298
|
  |
| Joined: 24 Oct 2008 |
| Total Posts: 1264 |
|
|
| 14 Dec 2013 12:25 PM |
@DrWaffler, That's very unfortunate.
I may just have to use what you suggested, or have the default Leaderboard pop-up when you open your character menu(It would fit nicely with the other features). My custom leaderboard opens in the middle of the screen when you click a gui button that says 'Leaderboard', you see. So it wouldn't get in the way either. |
|
|
| Report Abuse |
|
|
|
| 14 Dec 2013 12:26 PM |
http://wiki.roblox.com/index.php/RequestFriendship_(Method) http://wiki.roblox.com/index.php/RevokeFriendship_(Method)
Yes, it's protected by ROBLOX. |
|
|
| Report Abuse |
|
|
mark298
|
  |
| Joined: 24 Oct 2008 |
| Total Posts: 1264 |
|
| |
|
|
| 14 Dec 2013 12:46 PM |
you cant edit linkedLeaderboard, but here is a custom one just for you ;D
function Entered(player) wait() if player:findFirstChild("leaderstats") ~= nil then player.leaderstats:remove() end
stats = Instance.new("IntValue") stats.Parent = player stats.Name = "leaderstats"
money = Instance.new("IntValue") money.Parent = stats money.Name = "Points" money.Value = 0 end game.Players.PlayerAdded:connect(Entered)
c = game.Players:GetChildren() for i=1, #c do Entered(c[i]) end
|
|
|
| Report Abuse |
|
|
mark298
|
  |
| Joined: 24 Oct 2008 |
| Total Posts: 1264 |
|
|
| 14 Dec 2013 01:29 PM |
@freerobux456, no, you've got the wrong idea... :/
I can make my own leaderboards perfectly fine.
I was removing the actual PlayerList from the game and making my own GUI one, which I can do very easily. I just wanted to know if you could Send/Accept friend requests with GUI buttons, which I now know you cannot. |
|
|
| Report Abuse |
|
|