#How come the rest of my spawn points don't have TouchInterest?
1 messages · Page 1 of 1 (latest)
Hey you did turn on cantouch right?
where is that?
The parts need a touchintrest to be able to work with the touched function
Otherwise the command wont fire
If cancollide is off you can see the extra setting
both cancollide and cantouch is on
for all checkpoints
That's pretty weird, it seems like it's only looping trough the first 3
Add a print to the top of the for loop and send me the output
Just print v
normally you would store playerdata in the player himself and not in serverstorage
Uhh? Pretty sure its serverscript?
oh I see
Hold on
warn(spawns:GetChildren())
put this on like line 4 and show us the console
Serversscriptservice is the most secure place to put a datasaving scrilt
And this has nothing to do with datasaving
** You are now Level 2! **
but its not a good idea to store playerdata in serverstorage because you cant read it from the client
here
wehn stored in the player its readable for the client which is later used for UI
show me the array
@rare lily whats the name of the type of object you used as checkpoint?
spawns
click the like little orange arrow
Yh but hackers can read and inject scripts that might compromise your data
hm
the data is only readable...
there are no serversided exploits
Try to use ipairs instead mabey?
Not exactly
If they can read your script they can acces the name of the database youre usinf
remove the pairs() and try again
ok
If that does not work try ipairs instead
still the same error message
how do I do that? sorry I'm new at scripting
Just do the pairs() and turn it into ipairs()
oh ok
they cant but okay
Well no they cant fully but its just safer in general to deny acces completely
it still didn't work
Whats the name of the object u used as checkpoint?
spawn
Try to replace it with a part
ok
how would you make ui for the player with a currency? or leaderstats?
And make a script that does moveto() to the checkpoint part when the character respawns
So if it does not give the error add a local script to the startercharacter and read the checkpoint int value and find the part in the folder and then move the character to that part using character:MoveTo(checkpointpart.Position)
oooh I fixed it
Yes but it does not respawn
thankss
and put the player data inside of the player!
Nooo ;-; in server script service! Every youtuber recommends it!
im gonna crashout
I mean that you create folders, etc. which is "playerdata" in the player himself the script stays in serverscriptservice
alright ty!
as i know touchInterest is now use less as you can just do Part.Touched (for that you need to enable can touche in the part properties)