You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? when button is clicked it changes the Color3Value’s value
-
What is the issue? the color3value’s value wont change wont work i need help.
–Serversidedscript
-- ServerScript
local TweenService = game:GetService("TweenService")
local remoteEvent = game:GetService("ReplicatedStorage"):WaitForChild("ChangeColorsEvent")
local color3value = game.StarterGui:WaitForChild("Dealership"):WaitForChild("DealershipFrame"):WaitForChild("BuyFrame"):WaitForChild("Color"):WaitForChild("colorValue").Value
local function changetext()
color3value = Color3.fromRGB(2, 27, 255)
end
remoteEvent.OnServerEvent:Connect(changetext)
local script
local TweenService = game:GetService("TweenService")
local TweenSpeed = 0.3
local Info = TweenInfo.new(TweenSpeed, Enum.EasingStyle.Quad, Enum.EasingDirection.In, 0)
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local remoteEvent = ReplicatedStorage:WaitForChild("ChangeColorsEvent")
local function triggerEvent()
remoteEvent:FireServer()
TweenService:Create(script.Parent.Parent.SelectedColor, Info, {BackgroundColor3 = script.Parent.BackgroundColor3}):Play()
print("Remote Event has been Fired")
end
script.Parent.MouseButton1Click:Connect(triggerEvent)