#help

1 messages · Page 1 of 1 (latest)

jovial dock
#
game.Players.PlayerAdded:Connect(function(player)
    if player.Name == script.OwnersUsername.Value then
        local tags = {
            {
                TagText = "Owner", -- Tag
                TagColor = Color3.fromRGB(0, 26, 194) -- VIP 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) ```
#

i put it in serverscriptservice

#

it doesnt work

#

anyone help

celest raft
#

Do you get errors?

jovial dock
#

i have no scripting idea can u help me solve it

#

no errors

#

i checked output

#

of script

#

m

celest raft
#

on it

jovial dock
#

tysm

celest raft
#

ok first

jovial dock
#

yes?

distant shard
celest raft
#

I recommend splitting everything into variables.
Insted of:

local ChatService = require(game:GetService("ServerScriptService"):WaitForChild("ChatServiceRunner").ChatService)

or 

game.Players.PlayerAdded

do

local ServerScriptStorage = game:GetService("ServerScriptService")

local ChatService = require(ServerScriptStorage:WaitForChild("ChatServiceRunner").ChatService)
jovial dock
#

idk wym i got no scripting iea

celest raft
#

Keeps everyting easy to read

jovial dock
#

idea

#

😭

#

oh i put

#

second script

#

insteaad

#

?

celest raft
#

It just puts it into variables, so people and you can read it easly and you can use it aguin without calling it multiple times

jovial dock
#

so cana u send

#

what script

#

i put

#

in the folder

#

😭

celest raft
#

i want you to figure it out

jovial dock
#

i dont study

celest raft
#

so you understand

jovial dock
#

scripting

#

i jsut wnn do it

#

asap

celest raft
jovial dock
#

Broo

#

I need help

#

im not hiring

celest raft
jovial dock
#

i dont wnn learn scripting

#

i just need help with that one script

celest raft
# jovial dock i dont wnn learn scripting

fine

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
#

This is your error

jovial dock
#

wth

#

so i gotta

#

somehow

#

write

#

new ?

#

instead of that

celest raft
#

This is basic logic

jovial dock
#

Bro

#

i got

#

0 IDEA

#

abotu scripting

#

its like ur talking aalien to me

#

😭

celest raft
#

This should give you EVRYTHING you need to know

celest raft
#

Sends and event when a player chats

jovial dock
#

here

#

local ChatServiceRunner = game:GetService("ServerScriptService"):WaitForChild("ChatServiceRunner")
local ChatService = require(ChatServiceRunner:WaitForChild("ChatService"))


local OwnersUsername = script:WaitForChild("OwnersUsername")

game.Players.PlayerAdded:Connect(function(player)

    if player.Name == OwnersUsername.Value then
        
        local tags = {
            {
                TagText = "Owner", 
                TagColor = Color3.fromRGB(0, 26, 194) 
            }
        }

        
        local function waitForSpeaker()
            local speaker = ChatService:GetSpeaker(player.Name)
            while not speaker do
                task.wait(0.05)
                speaker = ChatService:GetSpeaker(player.Name)
            end
            return speaker
        end


#

@celest raft

#

this one doesnt work too

#

im giving up bro

#

nnoying

celest raft
#
 local function waitForSpeaker()
            local speaker = ChatService:GetSpeaker(player.Name)
            while not speaker do
                task.wait(0.05)
                speaker = ChatService:GetSpeaker(player.Name)
            end
            return speaker
        end
#

This

#

don't use this

jovial dock
#

brooooooooo

#

what aam i supposed to use

#

cn u just write the script

#

😭

#

THIS

#

local ChatServiceRunner = game:GetService("ServerScriptService"):WaitForChild("ChatServiceRunner")
local ChatService = require(ChatServiceRunner:WaitForChild("ChatService"))


local OwnersUsername = script:WaitForChild("OwnersUsername")


local ownerName = OwnersUsername.Value


game.Players.PlayerAdded:Connect(function(player)
    
    ChatService.SpeakerAdded:Connect(function(speakerName)
        
        if speakerName == player.Name and player.Name == ownerName then
            local speaker = ChatService:GetSpeaker(speakerName)
            if speaker then
                speaker:SetExtraData("Tags", {
                    {
                        TagText = "Owner",
                        TagColor = Color3.fromRGB(0, 26, 194)
                    }
                })
                speaker:SetExtraData("ChatColor", Color3.fromRGB(255, 0, 0))
            end
        end
    end)
end)```
celest raft
#
OwnersUsername.Chatted:Connect(function()

end)
#

When the owner chats

#

Its that simple

jovial dock
#

the one i made.

#

Is it correct.

celest raft
#

you tell me

jovial dock
#

o

#

No

#

bro

#

why make this so hard

#

just send me the script

#

i have no intention to learn scripting

#

legit couldve done this by now

celest raft
#

Scripting help is place for people to learn

#

And get help

jovial dock
#

sped

#

if ur helping

#

help me

#

bro

celest raft
cold oxide
celest raft
jovial dock
#

u couldve just said

#

Use textchatservice

celest raft
#

I PINGED A POOR RADON GUY

distant shard
#

IM SO SMART

#

o cam je;[

sand gate
#

There is also no reason to fix your script if you don’t learn anything from your errors

#

Good luck

#

It’s never too late to learn

jovial dock
#

i dont plan to learn scripting

#

ur not making sense

#

i only learn modeling and animating/vfx

sand gate
jovial dock
#

english isnt my best language

#

i tried before and had trouble understanding lua

sand gate
#

Skill issue

jovial dock
#

Got reasons

sand gate
jovial dock
#

Ur life isnt making sense either

sand gate
#

Sure bud

#

At least I ain’t giving up

#

I’m not a loser

#

¯_(ツ)_/¯

jovial dock
#

My life is making sense

sand gate
#

Sure buddy

jovial dock
#

I have job and i dont give up on it

sand gate
#

Marketplace blacklist 💀

#

Blud might scam ppl

#

Reinforces the fact that he has a job 🦧

jovial dock
#

im busy to respond to poorons

#

find someone else