#How to reset data?

4 messages · Page 1 of 1 (latest)

soft canyon
#

well i decided to use this to just clear all the items in the inventory then kick the player and saves the empty inventory ```lua
game.ReplicatedStorage.leaveEvent.OnServerEvent:Connect(function(plr)
local inv = plr:WaitForChild("inventory")
inv:ClearAllChildren()

task.wait()
plr:Kick("YOUR DATA HAS BEEN WIPED LMAO")

end)```

#

but how do i reset like ALL data for the player

#

like a whole data

#

not just the inventory