Here I have a Script in ServerScriptService.
local ChatService = require(game:GetService("ServerScriptService"):WaitForChild("ChatServiceRunner"))
local Marketplace = game:GetService("MarketplaceService")
local Players = game:GetService("Players")
local Player = Players:WaitForChild(Players.LocalPlayer)
local Chat = game:GetService("Chat")
local PassID = 10492005
Players.LocalPlayer.Chatted:Connect(function(speaker)
if Marketplace.PlayerHasPass(Players.LocalPlayer,PassID) then
speaker:SetExtraData("Tags", {{TagText = "VIP", TagColor = Color3.new(255,255,0)}})
end
end)
The errors I get are:
Attempted to call require with invalid argument(s). and require(assetId) cannot be called from a client.
It's a normal script, and it's not on the client? How do I fix it?
