Script not finding items in game

Anything in your console?
Tipp: always add a screenshot of your console when there is any message.


For some reason it took 20 years to spawn, and then I got this.

:WaitForChild(“HumanoidRootPart”)

1 Like

Is there a reason it took 20 years though?

Also, where would I add is here?

				v.Character.HumanoidRootPart.CFrame = target.CFrame + Vector3.new(0,4,0)

Literally, where you had v.Character.Torso.CFrame = target.CFrame + Vector3.new(0,4,0) before.

It seems like when “6 Blocks” is chosen, the game doesn’t even try to teleport players? change it to this

map = game.Lighting:FindFirstChild("Map2"):Clone() 
		map.Parent = game.Workspace
		map.Name = "Map"
		map:MakeJoints()
		target = game.Workspace.Map["Spawn1"] 
		for i, v in pairs(game.Players:GetPlayers()) do
			v.Character.Torso.CFrame = target.CFrame + Vector3.new(0,4,0)
	end 
wait(PlayTime)
map:Destroy()

v.Character:WaitForChild("HumanoidRootPart").CFrame = target.CFrame + Vector3.new(0,4,0)


Now working. For some reason, it still takes past the 10sec intermission time and that can mess up my intermission counter.

Then just adjust your intermission counter.

Thanks, works. Dont know why it took 20 years.

  1. PlayerGui is not directly located within game.Players but at game.Players.PlayerName.PlayerGui.
    You can only manipulate a players UI from a LocalScript anyways.
    Little tipp: Instead of accessing the player by name from a localscript, just do game.Players.LocalPlayer.

  2. Changing the text of the UI can be done in a LocalScript fairly easy by doing game.Players.LocalPlayer.MGDisplay.(Name of text element here).Text = "Text"

  3. I recommend putting the maps into “ServerStorage”, since thats just more effective.

  4. Playerteleport: Do v.Character:WaitForChild("HumanoidRootPart").CFrame = target.CFrame + Vector3.new(0,4,0) thanks to @Provenoc for that.

1 Like

Sure, why not. Working on some text code

So here’s 1 mroe problem: The time it takes to load is always undefined.

1 time it took 15 seconds to load, and the next 45.

Also, the time to despawn is too. I think the delayed time to load influences it.