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

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

Asked by
Gigaset39 111
1 year ago

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.

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 Gigaset39 111 — 1y
0
uhhhhhhhhh XRed03 17 — 1y

1 answer

Log in to vote
0
Answered by
enes223 327 Moderation Voter
1 year ago

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

Ad

Answer this question