Jakepoz
|
  |
| Joined: 16 Feb 2013 |
| Total Posts: 83 |
|
|
| 21 Feb 2014 09:40 PM |
Okay so I am making a new admin script. I want to add a aging command. How exactly would I do that would it be like (Stating v is defined.)
v:GetAge() |
|
|
| Report Abuse |
|
|
Jakepoz
|
  |
| Joined: 16 Feb 2013 |
| Total Posts: 83 |
|
| |
|
Jakepoz
|
  |
| Joined: 16 Feb 2013 |
| Total Posts: 83 |
|
| |
|
|
| 21 Feb 2014 10:08 PM |
i think if u do sometin like
game.Players.PlayerAdded:connect(function(plr) plr.Chatted:connect(function(msg) msg = string.lower(msg) if not admins[plr.Name] then return end if string.sub(msg, 1, 4) == "age/" then local nub = string.sub(msg, 5) for i,v in pairs(game.Players:GetPlayers()) do if string.sub(v.Name, 1, #nub) == nub then nub = v break end end if nub ~= nil then local age = nub:GetAge() local msg = Instance.new("Hint", plr.PlayerGui) msg.Text = age wait(3) msg:remove() end end end) end) |
|
|
| Report Abuse |
|
|
|
| 21 Feb 2014 10:08 PM |
| it mite look ugleh and mite error bcuz i was rushin, and i mite have gon off topic |
|
|
| Report Abuse |
|
|
Jakepoz
|
  |
| Joined: 16 Feb 2013 |
| Total Posts: 83 |
|
|
| 21 Feb 2014 10:09 PM |
| lol thanks I just needed to know if :GetAge() was right. |
|
|
| Report Abuse |
|
|
|
| 21 Feb 2014 10:11 PM |
| oh, idk if getage() is rite, i will check |
|
|
| Report Abuse |
|
|
|
| 21 Feb 2014 10:11 PM |
GetAge() is a nono
you have to get it from the players properties |
|
|
| Report Abuse |
|
|
| |
|
|
| 21 Feb 2014 10:13 PM |
| #### ###### admin or something |
|
|
| Report Abuse |
|
|
|
| 21 Feb 2014 10:14 PM |
| its v.AccountAge, brah, I was just using :GetAge() because you said it, lol |
|
|
| Report Abuse |
|
|
Jakepoz
|
  |
| Joined: 16 Feb 2013 |
| Total Posts: 83 |
|
|
| 21 Feb 2014 10:15 PM |
| @kyro NO I am not using some free model to help me with this game I am making AT ALL! |
|
|
| Report Abuse |
|
|
|
| 21 Feb 2014 10:15 PM |
| http://wiki.roblox.com/index.php?title=AccountAge_(Property) |
|
|
| Report Abuse |
|
|
L0cky2013
|
  |
| Joined: 30 Jul 2012 |
| Total Posts: 1446 |
|
|
| 21 Feb 2014 10:53 PM |
| print(math.ceil(v.AccountAge/12)) |
|
|
| Report Abuse |
|
|
jonesj627
|
  |
| Joined: 06 Oct 2010 |
| Total Posts: 1496 |
|
|
| 22 Feb 2014 12:11 AM |
game.Players.LocalPlayer.Chatted:connect(function(msg) if msg:sub(1,4) == "age/" then a = Instance.new("Hint",workspace) a.Text = game.Players.LocalPlayer.Name.." is "..game.Players.LocalPlayer.AccountAge.."days old" end end) |
|
|
| Report Abuse |
|
|