Hi! So I am trying to make it so when a player touches the part, a message will show up in chat. Here is part of the script:
part.Touched:Connect(function(hit)
print("started")
if hit.Parent:FindFirstChild("Humanoid") then
game.StarterGui:SetCore('ChatMakeSystemMessage', {
Text = player.."has finished the logo quiz!";
Font = Enum.Font.SourceSansBold;
Color = BrickColor.new('Fire Yellow');
FontSize = Enum.FontSize.Size24;
}
print("started")
if hit.Parent:FindFirstChild("Humanoid") then
game.StarterGui:SetCore('ChatMakeSystemMessage', {
Text = player.Name .." has finished the logo quiz!"; -- Changed line
Font = Enum.Font.SourceSansBold;
Color = BrickColor.new('Fire Yellow');
FontSize = Enum.FontSize.Size24;
}
You shouldn’t use a local script to detect the .Touched event (its un-detectable on the client)
Use the line i gave you in a SERVER script, it will fix it