Hi! I've got a quite advanced ban-system script. But, however my medium-script skillz. I can't fix my problem.
I get this error-output:
Players.HeadlessDeathSpeaker.PlayerGui.BanList.BanList.HeadlessDeathSpeaker.BanlistCoreScript:44: attempt to concatenate string with userdata
This is a bit of the script:
DeReden = script.Parent.DeReden
BanDate = script.Parent.Date.Value
BanNote = script.Parent.Parent[PlayerName].BanAppeal
BanStat = script.Parent.BanStatus.Value
local Speler = script.Parent.Parent.Parent.Parent.Parent
local PlayerName = Speler.Name
Speler:Kick('Dear '..PlayerName..'You have been banned since '..BanDate..' for '..DeReden..'. The owner left you a note: "'..BanNote..'". Cya!')
Speler = Player (current player)
The error does NOT appear if i remove "..DeReden.." and "..BanNote.."
Both are a BoolValue in the script. Also, ..BanDate.. is StringValue.
Why won't BoolValue work, and BanDate does?
This script is inside a PlayerGui

2 comments
DeReden is a userdata, assuming its some type of value, simply add .Value to the end
Yep, you right! My bad. I thought i added .Value to it, as that makes sence yeah xD