|
I'm planning on making a badge which would also award Player Points, but then again check the next time if the player still has the badge so he doesn't step on it 10 tiems and get so many points for doing so. |
|
|
|
Then is there any way of preventing this from happening? |
|
|
are you asking for scripts or something
stop using a badge to prevent someone from something
use a value and some data store |
|
|
I'm willing to give our Player Points while someone finds a badge.
And to prevent them from touching it a few times for more points. |
|
|
|
Just adding 2 or three lines into the Point script, but I've never done saving(?) |
|
|
bibo5oJoin Date: 2009-01-17 Post Count: 414 |
Datastore can be quite confusing, Persistent Data is easier to use, but less efficient. Take your pick.
http://wiki.roblox.com/index.php?title=Data_Persistence
http://wiki.roblox.com/index.php?title=Data_store |
|
C_SharperJoin Date: 2011-10-03 Post Count: 9405 |
Srry this kinda off the original topic, but Phy, you seem to know what I need to know. I just bumped my post, sooo if you could check it out. |
|
|
Data store example:
Game.Players.PlayerRemoving:connect(function(Player1)
local Data = Game:GetService("DataStoreService"):GetDataStore(Player1.userId);
Data:GetAsync(Player.ValueName);
end)
Game.Players.PlayerAdded:connect(function(Player2)
local Data2 = Game:GetService("DataStoreService"):GetDataStore(Player2.userId);
Data2:SetAsync(Player.ValueName, Player.ValueName.Value);
end)
|
|
|
You'll need to change the two "Player" words that I left in the parenthesis. Change
each to the parameter in it's function |
|
|
I have no idea where to even place this |
|