Say I have a trail shop. I use a remote event whenever a player wants to buy a trail. The trails argument is the trails Name, a string Value.
-- Just made this up
local buy = script.Parent
buy.MouseButton1Click:Connect(function()
local trail = script.Parent.Parent
local str = str.Name
buyTrail:FireServer(str)
end)
Now say a nasty exploiter came along and changed this string value into an Int-Value, or a BoolValue, or nothing at all! Of course the server will error on that player, but will it effect all players in the game as well? If that is the case, then would I just do the following below:
buyTrail.OnServerEvent:Connect(function(player, trailName)
if trailName:IsA("StringValue") and trailName ~= nil then
--Stuff
end
end)
Have a good day!