Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

I would like to know how to rmove the "Claim tycoon" parts and humanoid?

my question specifically is that if you play tycoon games then you know what im talking about, im trying to make one, and i can figure out how to remove the "Claim Tycoon Parts" and change the player team to ex: Red Tycoon or Green Tycoon or what ever team, i have a sample but it dosent work

Claimtycoon1 = game.Workspace.ClaimTycoon.Head

function ClaimTycoon()
	Claimtycoon1.remove()
end

script.Parent.Touched:connect(ClaimTycoon)

i dont know the how to change the players team to ex: Red Tycoon or Green Tycoon i need to know that script

1 answer

✓ Accepted answer

Oh boy. Well, for one, you are trying to call the remove function as a property. This script should work as to what you need. BTW, thank you for not free modeling it.

ClaimTycoonRed = script.Parent

script.Parent.Touched:connect(function(player)
	ClaimTycoonRed:Remove()
	player.TeamColor = BrightRed
end)

Also, you can put a humanoid object in any part, so you could make a brick, insert a humanoid, set the humanoids name to "Claim Tycoon", and then put this script inside. Then it would be easier than actually going into the Workspace. This should work to change the players team IF you have a team with the team color Bright Red, or whatever you change it too.

This discussion is preserved as it was. New answers, comments, and votes are closed.