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

If someone can help me fix the first part of the script ?

game.Players.PlayerAdded:Connect(function(player) if player.name = "larakraft22" then local tags = { { TagText = "test", -- Tag TagColor = Color3.fromRGB(255, 0, 0) -- Color } } local ChatService = require(game:GetService("ServerScriptService"):WaitForChild("ChatServiceRunner").ChatService) local speaker = nil while speaker == nil do speaker = ChatService:GetSpeaker(player.Name) if speaker ~= nil then break end wait(0.01) end speaker:SetExtraData("Tags",tags) speaker:SetExtraData("ChatColor",Color3.fromRGB(255, 0, 0)) -- Text Color end end)

--how can i fix the issue so the script will work ? https://imgur.com/a/u93v1Oc

1 answer

Change line 2 to

if player.Name == 'larakradt22' then

It's a rookie issue but you get the point. You're setting the data when using '=' however when using two of them '==' you're comparing the data.

2 comments

0

Its not my fault , im new to scripting. Thanks!

0

Also you can accept this answer if this solved it. Hope to seeing you around soon.

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