Script not working as intended

I’m trying to make it so when someone says “davidvenin2015” it will change the startercharacter of the person who said it to a different startercharacter. But it is changing evryones startercharactermto a different one. Here’s the code:

local Players = game:GetService("Players")

local davidvenin2015Variable = game:GetService("ServerStorage"):WaitForChild("StarterCharacter")
local NormalStarterCharacter = game:GetService("StarterPlayer"):WaitForChild("StarterCharacter")

Players.PlayerAdded:Connect(function(player) -- runs every time a player joins
	player.Chatted:Connect(function(msg) -- runs once the player that joined chats a message
		if msg == "davidvenin2015" then -- create your conditions
			davidvenin2015Variable.Name = "StarterCharacter"
			NormalStarterCharacter.Name = "NormalCharacter"
			davidvenin2015Variable.Parent = game:GetService("StarterPlayer")
			NormalStarterCharacter.Parent = game:GetService("ServerStorage")
			player:LoadCharacter()
		end
	end)
end)

i would assume its because your messing with the base model if your giving someone a startercharacter you should clone it not reparent it

1 Like