Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Hello, this script used to work with another script but I can't seem to figure it out anymore?

Asked by
hopup 15
6 years ago
01game.Players.PlayerAdded:Connect(function(player)
02local ms = require(script.ModuleScript)
03local groupService = game:GetService('GroupService')
04local groups = groupService:GetGroupsAsync(player.UserId)
05 
06    wait(1)
07    local ui = script.Rank:Clone()
08    ui.Parent = player.Character.Head
09    ui.Adornee = player.Character.Head
10 
11 
12    while not player.Character.Humanoid do wait() end
13    player.Character.Humanoid.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
14    local frame = ui.Frame
15    local name = frame.Main
View all 29 lines...

Error: ServerScriptService.RankHandler:21: attempt to index global 'v' (a nil value)

How to fix this?

0
v is nil User#23365 30 — 6y
0
you didnt define it User#23365 30 — 6y
0
And when I define it, I get this error: ServerScriptService.RankHandler:21: attempt to index local 'v' (a number value) hopup 15 — 6y
0
you never defined `v` you defined `groupInfo`. You use that instead of `v` since v doesn't exist supercoolboy8804 114 — 6y
0
^ turtle2004 167 — 6y

Answer this question