so i was trying to make a Map voting gui, failed coding miserably, tried starting from sratch. Now i was doing a system to detect a player gui with server script service. And i got an error (see title). Here is the code i have got so far ´
local Players = game:GetService("Players")
local RS = game:GetService("ReplicatedStorage")
local Folder = Instance.new("Folder")
Folder.Name = "Players"
Folder.Parent = RS
Players.PlayerAdded:Connect(function(player)
--print(player.Name .. " joined the game!")
local StrVal = Instance.new("IntValue",Folder)
StrVal.Name = "Player:"..player
StrVal.Value = player
end)
And im starting to go crazy because everything im trying to do is failing. Please help