So I'm trying to make it to where once you step on a certain SpawnPoint your torso color changes. I also changed the Starting Character to a default r6 character. If there's any way that this could be fixed It would be great.
local rougSpawn1 = game.Workspace.Terrain.Land.Spawns.RougSpawn local rougSpawn2 = game.Workspace.Terrain.Land.Spawns.RougSpawn2 local rougSpawn3 = game.Workspace.Terrain.Land.Spawns.RougSpawn3 local rougSpawn4 = game.Workspace.Terrain.Land.Spawns.RougSpawn4 rougSpawn1.Touched:Connect(function(player) game.Workspace[player.Name].Torso.BrickColor = BrickColor.new("Sea green") game.Workspace[player.Name].Humanoid.MaxHealth = 80 game.Workspace[player.Name].Humanoid.WalkSpeed = 22 end) rougSpawn2.Touched:Connect(function(player) game.Workspace[player.Name].Torso.BrickColor = BrickColor.new("Sea green") game.Workspace[player.Name].Humanoid.MaxHealth = 80 game.Workspace[player.Name].Humanoid.WalkSpeed = 22 end) rougSpawn3.Touched:Connect(function(player) game.Workspace[player.Name].Torso.BrickColor = BrickColor.new("Sea green") game.Workspace[player.Name].Humanoid.MaxHealth = 80 game.Workspace[player.Name].Humanoid.WalkSpeed = 22 end) rougSpawn4.Touched:Connect(function(player) game.Workspace[player.Name].Torso.BrickColor = BrickColor.new("Sea green") game.Workspace[player.Name].Humanoid.MaxHealth = 80 game.Workspace[player.Name].Humanoid.WalkSpeed = 22 end)
It also seems like after touching the spawn that your maxhealth or speed doesn't change either.
The variable inside touch is the brick that hit the touch brick. You'd get the character by saying
if(game.Players:FindFirstChild(nameOfParameterGoesHere.Parent.Name))then local player = nameOfParameterGoesHere.Parent --all the rest of your code can go here. end