So i made a Tag command and it just doesnt work.
PLACES
SCRIPTS
TagModule
local Data = {
["Colors"] = {
red = Color3.fromRGB(255, 0, 0);
green = Color3.fromRGB(0, 255, 0);
blue = Color3.fromRGB(0, 179, 255);
yellow = Color3.fromRGB(255, 255, 0);
orange = Color3.fromRGB(255, 140, 0);
white = Color3.fromRGB(255, 255, 255);
purple = Color3.fromRGB(187, 0, 255);
RED = Color3.fromRGB(100, 0, 0);
GREEN = Color3.fromRGB(0, 100, 0);
BLUE = Color3.fromRGB(0, 72, 100);
YELLOW = Color3.fromRGB(100, 100, 0);
ORANGE = Color3.fromRGB(100, 53, 0);
WHITE = Color3.fromRGB(100, 100, 100);
PURPLE = Color3.fromRGB(73, 0, 100);
},
["Models"] = {
Tag = script.Tag;
}
}
return Data
Command
local Moderators = {"Fik0sz_Master"}
local Data = require(script.Parent)
game.Players.PlayerAdded:Connect(function(Player)
if table.find(Moderators,Player.Name) then
Player.Chatted:Connect(function(Message)
local Cmds = Message:split(" ")
if Cmds[1]:lower() == "/tag" then
if game.Players[Cmds[2]] then
local tag = Data.Models["Tag"]:Clone()
local color: Color3 = Data.Colors[Cmds[4]:lower()]
local text = Cmds[3]
tag.TXT.Text = text
tag.TXT.UIGradient.Color = ColorSequence.new(Data.Colors[Cmds[4]:upper()],Color3.fromRGB(0,0,0))
tag.TXT.UIStroke.UIGradient.Color = ColorSequence.new(color,color)
if game.Players[Cmds[2]].Character.Head:FindFirstChild("Tag") then
game.Players[Cmds[2]].Character.Head:FindFirstChild("Tag"):Destroy()
end
wait(0)
tag.Parent = game.Players[Cmds[2]].Character.Head
tag.Adornee = game.Players[Cmds[2]].Character.Head
end
end
end)
end
end)
ERRORS
Absolutely nothing.
NOTE: It works, but only on me. when i test it on others it doesnt give errors and doesnt show up above the players head.
Early thanks
~Fikusz Master