Need help with remote events

Script in ServerScriptServine

local Replicated = game:GetService("ReplicatedStorage")
local RemoteEventTest = Replicated:WaitForChild("RemoteEventTest")

local function PartCreate(player,playerColor,playerPos)
	print(player.Name .. " Fire the event")
	local Part = Instance.new("Part")
	Part.BrickColor = playerColor
	Part.Position = playerPos
	Part.Parent = workspace
end

RemoteEventTest.OnServerEvent:Connect(PartCreate)

LocalScript in StaterPlayerScript

local Replicated = game:GetService("ReplicatedStorage")
local RemoteEventTest = Replicated:WaitForChild("RemoteEventTest")

RemoteEventTest:FireServer(BrickColor.Red, Vector3.new(-74,0.5,57))

The error
a

This should be:
BrickColor.Red()

I am so stupid I am really sorry

Its ok. It happens all the time. To me as well.

1 Like