I have been looking forever for a script to make that spawns stuff based on your distance from where you want it to spawn. I'm thinking maybe it has something to do with lighting...
COMMUNITY QUESTION
Help with important question?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

6 comments
okay, not sure what you mean. But what do you need help with?
I have been looking everywhere on a idea that i had to see if there was a way you could do it some how but i couldn't find anything on it. What i am trying to do as you walk to a certain point more closer it will spawn what i want to spawn. Ok i know that sounds a little confusing...
Do you mean it'll spawn if you are a certain distance from it?
Yes.
The :DistanceFromCharacter() method should work well with what you're trying to do. Something like if player:DistanceFromCharacter(spawnpoint.Position) <= 30 then spawn(spawnpoint) end. Just put that in a loop, name spawnpoint and playe, and write to function to actually spawn it.
Thanks!