Help my fire event get error

Hello devs i creating forum in my roblox game !


  12:56:23.678  ServerScriptService.MainForum.Post:12: invalid argument #3 (string expected, got Instance)  -  Server - Post:12

game.ReplicatedStorage.NewTopic.OnServerEvent:Connect(function(TopicName, TopicDecsr, TopicCreator)
	--//File Name: Post.lua
	--//File Creator: Miras_fan_/izdenov_miras

	--//Local Modules
	local ForumTopicsModule = require(script.Parent.Sync.ForumTopics)
	local Template = game.ServerStorage.TheTopics.TopicTemplate:Clone()
	--//Script Locals
	local Players = game:GetService("Players")
	--//Main Script
	Template.Parent = game.ServerStorage.TheTopics
	Template.Name = TopicName --// Error Here!
	Template.TopicName.Value = TopicName
	Template.Desc.Value = TopicDecsr
	Template.Creator.Value = TopicCreator
end)

the button script

script.Parent.MouseButton1Click:Connect(function()
	game.ReplicatedStorage.NewTopic:FireServer("Testing Forum", "ForumTesting", game.Players.LocalPlayer.Name)
end)
2 Likes

Go in-game and open the DevConsole [KEYBIND: F9] or open the output. This is easier to find the error in the script and the exact line.

game.ReplicatedStorage.NewTopic.OnServerEvent:Connect(function(plr,TopicName, TopicDecsr, TopicCreator)
	--//File Name: Post.lua
	--//File Creator: Miras_fan_/izdenov_miras

	--//Local Modules
	local ForumTopicsModule = require(script.Parent.Sync.ForumTopics)
	local Template = game.ServerStorage.TheTopics.TopicTemplate:Clone()
	--//Script Locals
	local Players = game:GetService("Players")
	--//Main Script
	Template.Parent = game.ServerStorage.TheTopics
	Template.Name = TopicName --// Error Here!
	Template.TopicName.Value = TopicName
	Template.Desc.Value = TopicDecsr
	Template.Creator.Value = TopicCreator
end)

in the onserverevent the first parameter is ALWAYS the player who fired it so try this script

UHHH


THANKS!

that error is probably a plugin error or something as i always have that stupid error