#datastore issues
27 messages · Page 1 of 1 (latest)
no
Ok so
not sure if this is correct as im an amateur scripter but you have got the value from the data store by using GetAsync
but you havent set it using SetAsync
ah yes i see that now
you do have a save function but i cannot see when you are calling it when the player leaves
under playerData
what does dowodStworz mean
no you have this line: remoteEvent.OnServerEvent:Connect(function(player, imie, nazwisko, wiek)
and the remote event is here
local remoteEvent = game.ReplicatedStorage:WaitForChild("dowodStworz")
So im assuming this function wants to be called when the player leaves
its probably better to use Players.PlayerRemoving:Connect(function()
it might work if it doesnt ping me or dm me
local imieTextBox = script.Parent.Parent.imie
local nazwiskoTextBox = script.Parent.Parent.nazwisko
local wiekTextBox = script.Parent.Parent.wiek
local potwierdzButton = script.Parent.Parent.potwierdz
local remoteEvent = game.ReplicatedStorage:WaitForChild("dowodStworz")
local function check(s)
return s:match("^%s*(.-)%s*$")
end
potwierdzButton.MouseButton1Click:Connect(function()
local imie = check(imieTextBox.Text)
local nazwisko = check(nazwiskoTextBox.Text)
local wiek = check(wiekTextBox.Text)
remoteEvent:FireServer(imie, nazwisko, wiek)
end)
this is my localscript that fires the remote
basically if guibutton is clicked it fires the remote to get the textbox text to compare them to the ones in the tables
so i cant use playerremoving