script 1 (local script)
local name = script.Parent.Parent.TextBox.Text -- clan name script.Parent.MouseButton1Down:Connect(function() game.ReplicatedStorage.MakeClan:FireServer(name) -- putted in cos someone told me to :P end)
script 2 (server script)
Remote = game.ReplicatedStorage.MakeClan Remote.OnServerEvent:Connect(function(name) local clan = Instance.new("Team") clan.Parent = game:GetService("Teams") clan.Name = name -- .Name is not a string according to dev log end)
you know the details, right?
Name isn't set to anything. It can't get your "local" variable from a local script. To change this, inside your local script do this
local name = script.Parent.Parent.TextBox.Text -- clan name script.Parent.MouseButton1Down:Connect(function() game.ReplicatedStorage.MakeClan:FireServer(name) end)
and for your server script this
Remote = game.ReplicatedStorage.MakeClan Remote.OnServerEvent:Connect(function(dwasd, name) local clan = Instance.new("Team") clan.Parent = game:GetService("Teams") clan.Name = name -- .Name is not a string according to dev log end)