llaserxJoin Date: 2011-12-10 Post Count: 53069 |
|
|
Thane_1Join Date: 2009-04-08 Post Count: 3406 |
If by game stats, you mean the leaderstats in the player, then yes. But if your using FE, then the script requiring it must be server-side.
~ Who's awesome, you're awesome ~ R$81,911 Tx1,261 |
|
|
FilteringEnabled has nothing to do with it.
Modules cache and they cache separately on the server and each client. |
|
Thane_1Join Date: 2009-04-08 Post Count: 3406 |
FilteringEnabled can be a factor, if you have FE, and use a localscript, then it won't work.
~ Who's awesome, you're awesome ~ R$81,911 Tx1,261 |
|
|
No, local scripts can require a module even with filteringenabled |
|
gulletJoin Date: 2008-08-14 Post Count: 96 |
I think he was talking about changing the leaderboard from the server |
|
|
They still cache separately so it wouldn't make a difference |
|
Thane_1Join Date: 2009-04-08 Post Count: 3406 |
I know localscripts can require Module's, but it won't be able to change things on the server.
~ Who's awesome, you're awesome ~ R$81,911 Tx1,261 |
|
llaserxJoin Date: 2011-12-10 Post Count: 53069 |
alright so i tried using the module script for the 1st time
i failed no errors
local _m = {}
function _m.lvlC()
local Player = game.Players.LocalPlayer
local stats = Player:WaitForChild('leaderstats')
local lvl = stats.Lvl
local me = Player.PlayerGui:WaitForChild('Me')
local lt = me.Stats.BackDrop.Level
wait(5)
lt = stats.Lvl.Value
while wait() do
lvl.Changed:connect(function()
lt = stats.Lvl.Value
end)
end
end
return _m
http://www.roblox.com/xla-item?id=290739801http://www.roblox.com/aser-item?id=290739819http://www.roblox.com/23-item?id=290739831 R$329 Tx424 (づ ゚ ³ ゚)づ |
|
Thane_1Join Date: 2009-04-08 Post Count: 3406 |
while wait() do
lvl.Changed:connect(function()
lt = stats.Lvl.Value
end)
end
You don't need the loop.
~ Who's awesome, you're awesome ~ R$81,911 Tx1,261 |
|
Thane_1Join Date: 2009-04-08 Post Count: 3406 |
Are you using a localscript to require the module, and is FilteringEnabled on?
~ Who's awesome, you're awesome ~ R$81,911 Tx1,261 |
|
llaserxJoin Date: 2011-12-10 Post Count: 53069 |
|
|
Thane_1Join Date: 2009-04-08 Post Count: 3406 |
You might have to use a waitforchild for "local lvl = stats.Lvl
"
~ Who's awesome, you're awesome ~ R$81,911 Tx1,261 |
|