delije23
|
  |
| Joined: 10 Oct 2012 |
| Total Posts: 574 |
|
|
| 23 Aug 2017 02:56 PM |
Im not sure how to do this part of script.
if Value xp == 2 then Value xp = "Newbie" textgroup.TextColor3 = Color3.new(241/1, 54/1, 7/1) end
How do i make it so when it found value xp that i have 20 xp to equals newbie tag? |
|
|
| Report Abuse |
|
|
|
| 23 Aug 2017 02:58 PM |
variable cant have a space in it
also do textgroup.TextColor3 = Color3.fromRGB(241, 54, 7)
getfield(lua_State, -1, "MemeService") |
|
|
| Report Abuse |
|
|
delije23
|
  |
| Joined: 10 Oct 2012 |
| Total Posts: 574 |
|
|
| 23 Aug 2017 03:01 PM |
Im really trying my hardest i got an UNIQUE game idea.Like for real i would pay you if i had robux....
The problem is im trying to make it
if (value gets called xp gets to 2) == 2 then (changes the tag to) = "Newbie" textgroup.TextColor3 = Color3.new(241/1, 54/1, 7/1) end
Value is xp |
|
|
| Report Abuse |
|
|
| |
|
|
| 23 Aug 2017 03:09 PM |
^
I can't help because I don't have enough information. Just learn to script.
getfield(lua_State, -1, "MemeService") |
|
|
| Report Abuse |
|
|
delije23
|
  |
| Joined: 10 Oct 2012 |
| Total Posts: 574 |
|
|
| 23 Aug 2017 03:13 PM |
function onPlayerEntered(newPlayer)
local stats = Instance.new("IntValue") stats.Name = "leaderstats"
local xp = Instance.new("IntValue") xp.Name = "XP" xp.Value = 0
local lvl = Instance.new("IntValue") lvl.Name = "Level" lvl.Value = 0
xp.Parent = stats lvl.Parent = stats stats.Parent = newPlayer end
game.Players.ChildAdded:connect(onPlayerEntered)
this is what i did and with other part what i wanna do is when it get to certain number then tag change from newbie to player... |
|
|
| Report Abuse |
|
|
igrach2
|
  |
| Joined: 09 Mar 2017 |
| Total Posts: 252 |
|
|
| 23 Aug 2017 03:25 PM |
game.Players.PlayerAdded:Connect(function(newPlayer) local stats=Instance.new("Folder",newPlayer) stats.Name="leaderstats" local xp=Instance.new("IntValue",stats)xp.Name="XP" local lvl=Instance.new("IntValue",stats)lvl.Name="Level" wait()xp.Changed:Connect(function() if xp.Value==2 then xp.Value="Newbie" textgroup.TextColor3 = Color3.new(241/1, 54/1, 7/1) end end)
end |
|
|
| Report Abuse |
|
|