Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

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

Asked by 9 years ago

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

Locked by Tortelloni and BlueTaslem

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?

1 answer

Log in to vote
2
Answered by 9 years ago

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.

Ad