How would I go about making a JJBA king crimson script?

  1. What do you want to achieve? Keep it simple and clear!
    I would like to make a king crimson script time erase script.
  2. What is the issue? Include screenshots / videos if possible!
    I already have the time erases client effect (Everything goes transparent, the sky becomes space)
    Like this:
    https://static.jojowiki.com/images/thumb/a/a2/latest/20191015215155/TimeSkip2.jpg/400px-TimeSkip2.jpg
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I have tried getting every player in the game, and multiplying their cframe to a cframe.new(random, random, random) but it didnt work.
    After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
    This is all the code I have so far:
    ``

local TimeErased = script.Parent:WaitForChild("TimeErased")

TimeErased.Changed:Connect(function()
	if TimeErased.Value == true then
		--Choose a random location around every player
		--Clone the players character
		--Make playerclone move to the random position around the player
		--after time erase is done, teleport the player to the random position
		end
	end)

Assuming this is done in a localscript (because you wouldn’t want the clones of all the players to replicate to every client), you need to fire to the server after the time erase is done to change the CFrame of every player instance, so cframe.new(x, y, z) won’t work if done locally (hope that fixes your problem with it not working). I don’t know your code so I can’t really get much from what you’ve sent, sorry

Oh yeah, also firing to the server with CFrame parameters leaves vulnerabilities for exploiters to take advantage of. I would fire to the server straight after you’ve cloned the players and concatenate the names of said clones to “clone_” … plr so that you can re-reference them and get the cframe in the server script

Yes, thank you for the reply, although, I do not know how I would get all player instances and get a random position around each of them.