Hello,
I’m trying to concatenate string sent via FireClient with another string, however, the string sent is said to be a Boolean, but it’s a string. Basically, whenever you click on a Part, the remote fires. I’m stuck on this string however, since it’s returning as a Boolean. Here’s my code:
ClickDetector script (“Shield” is the string that’s causing the error):
local cd = script.Parent.ClickDetector
cd.MouseClick:Connect(function(player)
game.ReplicatedStorage.Prompt:FireClient(player, "Shield", 100, false)
end)
OnClientEvent script:
game.ReplicatedStorage.Prompt.OnClientEvent:Connect(function(player, itemname, cost, free)
prompt(itemname, cost, free)
end)
prompt() function (the line that is causing the issue):
BF.ItemDescription.Text = "Want to buy "..tostring(itemname).." for "..cost.." coins?"
Any ideas?
Thanks,
p0s_0.