I have a local script so if the Player is in the group and the player also chatted a certain keyword then it does something, I am in the group but it still doesn't work ;c, Can you help me?
local player = game.Players.LocalPlayer
Player.Chatted:connect(function(msg)
local groupId = 2723362
if player:IsInGroup(groupId) and player:GetRoleInGroup(groupId) >= "GM's Assistant" and
string.sub(msg,1,5) == "tron/SD" then
game.Tron.Decal.Transparency = 1
end
Tron is the Part that the Decal is on, Whenever I say tron/SD it does nothing, Idk if there is a error or not that I cannot see,
Here is a second code that still didn't work ;c
local Player = game.Players.LocalPlayer
Player.Chatted:connect(function(msg)
local groupId = 2723362
if Player:IsInGroup(groupId) and Player:GetRoleInGroup(groupId) >= "GM's Assistant" and
string.sub(msg,1,5) == "tron/SD" then
game.Tron.Decal.Transparency = 1
end
end)

4 comments
Didn't work, But I do have this in the logs I am curious about, What is Plugin_184275443.Manager:28: attempt to concatenate local 'newVersion' (a nil value)
A ROBLOX error - I don't know what it is. As for my answer, did it send an error? I assure you that my code works. Make sure to set up some prints to test where it goes to, and edit 'minRank' to your preference.
I was told that it should be (msg,1,7) == "tron/SD" but that still doesn't work, It shows no errors though so I am guessing there is something wrong on my end
Use prints to debug lol