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...

6 comments

0

okay, not sure what you mean. But what do you need help with?

0

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...

0

Do you mean it'll spawn if you are a certain distance from it?

0

Yes.

1

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.

0

Thanks!