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

I need help whit a script that i wrote, why isnt working?

Hi, soo i want to teleport evry player that touches the parts that are called: Main1,Main2...
and they are placed in a Model called: Teleporter so i use:

    door = workspace.Lobby.Teleporter:GetChildren()

    while true do
door.CanTouch = true  ---each player that touches (Should)  be teleported 
wait(2)
    door.CanTouch = false --- the door cant be touched by a player, right??
    wait(1)

But it doesent work,( i took a ”one way teleporter” from toolbox and modiefied it.) why isnt the script changing the CanTouch proprety? when i change the Main1,main2 etc.. to Cantouch=true (checked box), i start the game and i touch the part ( Main1) its works, but what i wanted to do, is to Main1 exist whit the CanTouch= false, so whn a new round of the game starts, i can CanTouch=True, and after the players are teleported to the part called: teleporter i can do CanTouch=False, so if a player die, it will not get back in the game.

2 comments

0

t=0 t=6 repeat t= t-1 hint.Text = " " ..t wait(1) until t == 1 local plrs = game.Players:GetChildren() for i = 1, #plrs do local num = math.random(1,7) plrs [i].Character.Head.CFrame = CFrame.new(workspace.Game.Teleports["Part" ..num] .Position) end

0

uhhhhhhhhh

1 answer

hey you! have you ever heard of enes? if you are in trouble, better call enes!

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