Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why can't ROBLOX seem to detect this part?

local player = game.Players.LocalPlayer
local char = player.Character
local img = char.Arm.RImage.RankGui.RankImage
local group = player:GetRankInGroup(2971993)

if group == 8 then
	img = "http://www.roblox.com/asset/?id=1312036764"
end

Everything works fine in Studio, however, when testing in-game I'm given this error: http://prntscr.com/jaf5sm

And here's a screenshot of the Workspace, if it helps: http://prntscr.com/jaf65z

1 answer

✓ Accepted answer
local player = game.Players.LocalPlayer
local char = player.Character
local img = char.Arm:WaitForChild("RImage"):WaitForChild("RankGui"):WaitForChild("RankImage")
local group = player:GetRankInGroup(2971993)

if group == 8 then
    img.Image = "http://www.roblox.com/asset/?id=1312036764"
end


1 comment

0

Massively helped. Cheers.

This discussion is preserved as it was. New answers, comments, and votes are closed.