#About CollectionService
1 messages · Page 1 of 1 (latest)
And then
Yo wait
My code :
local CollectionService = game:GetService("CollectionService")
local Button = script.Parent.Parent
local ButtonSound = Button.ClickDetector["button.wav"]
local SpecialPart = game:GetService("ReplicatedStorage").SpecialPart
local TagAddText = workspace.Machine6.TagAddPart.SurfaceGui.TagAddBox
Button.ClickDetector.MouseClick:Connect(function()
ButtonSound:Play()
local tagname = TagAddText.Text
if tagname ~= "" then
CollectionService:AddTag(SpecialPart, tagname)
else
warn("Sen çok zeki bir arkadaşsın")
end
end)local CollectionService = game:GetService("CollectionService")
local Button = script.Parent.Parent
local ButtonSound = Button.ClickDetector["button.wav"]
local SpecialPart = game:GetService("ReplicatedStorage").SpecialPart
local TagAddText = workspace.Machine6.TagAddPart.SurfaceGui.TagAddBox
Button.ClickDetector.MouseClick:Connect(function()
ButtonSound:Play()
local tagname = TagAddText.Text
if tagname ~= "" then
CollectionService:AddTag(SpecialPart, tagname)
else
warn("Sen çok zeki bir arkadaşsın")
end
end)
And then
This happened :
It should be Blue
But ITS not
What should i do :(
i dont see anything that changes colors in the code you show
I didnt mean color
I just wanted to add "Blue" tag
But it just added "Test"
probably server script can't read the text in the textbox on the client
so on server the textbox contents havent changed
Oh
** You are now Level 3! **
well first check if thats actually the cause...
second idk remote event? up to you to solve it
There's no way to be sure.
How can i solve this with an event?
google is your friend