Hey scriptinghelpers, how do I make this work for the server and other players. Right now it only changes color for the player with the tool, when I want it to change color for the whole server and other players. Thanks for the help in advance. I appreciate it. I'm only here to learn.
This is a LocalScript inside of a Handle(Part) inside of a Tool.
local player = nil
local character = nil
local handle = script.Parent
local tool = handle.Parent
local brickcolorvalue = game:GetService("ReplicatedStorage"):FindFirstChildWhichIsA("BrickColorValue")
function theplayer()
if game:GetService("Players"):GetPlayerFromCharacter(tool.Parent) ~= nil then
player = game:GetService("Players"):GetPlayerFromCharacter(tool.Parent)
character = tool.Parent
end
if tool.Parent:IsA("Backpack") then
player = tool.Parent.Parent
character = tool.Parent.Parent.Character
end
end
theplayer()
tool:GetPropertyChangedSignal("Parent"):Connect(theplayer)
function color()
handle.BrickColor = brickcolorvalue.Value
end
color()
brickcolorvalue:GetPropertyChangedSignal("Value"):Connect(color)

4 comments
LocalScripts only affect the client (ie. the player with the tool). You need to use a server 'Script' to affect the entire server.
Yeah, I already tried using this as a "Script" before I posted this question and it didn't work. I don't get any output either.
No need to use remotes for this. Change it on the server and on the client, revert it to how it's suppose to be
I don't really understand. I had to take a break from this script it was frustrating me. I'm going to continue testing now though, I'll get back to you guys. Sorry for the late response!