Facebook
From збір, 1 Month ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 139
  1. game.Workspace.Teleports.Level2.Part1.Transparency = 1
  2. game.Workspace.Teleports.Level2.Part1.Position = game.Workspace.Teleports.Level2.Part1.Position + Vector3.new(0,100,0)
  3. local count = 0
  4. function onTouchSword1(who)
  5.   game.Workspace.C1:Destroy()
  6.   count = count+1
  7.   if count == 3 then
  8.     game.Workspace.Teleports.Level2.Part1.Position = game.Workspace.Teleports.Level2.Part1.Position - Vector3.new(0,100,0)
  9.     game.Workspace.Teleports.Level2.Part1.Transparency = 0
  10.   end
  11. end
  12. function onTouchSword2(who)
  13.   game.Workspace.C2:Destroy()
  14.   count = count+1
  15.   if count == 3 then
  16.     game.Workspace.Teleports.Level2.Part1.Position = game.Workspace.Teleports.Level2.Part1.Position - Vector3.new(0,100,0)
  17.     game.Workspace.Teleports.Level2.Part1.Transparency = 0
  18.   end
  19. end
  20. function onTouchSword3(who)
  21.   game.Workspace.C3:Destroy()
  22.   count = count+1
  23.   if count == 3 then
  24.     game.Workspace.Teleports.Level2.Part1.Position = game.Workspace.Teleports.Level2.Part1.Position - Vector3.new(0,100,0)
  25.     game.Workspace.Teleports.Level2.Part1.Transparency = 0
  26.   end
  27. end
  28.  
  29. game.Workspace.one.Touched:Connect(onTouchSword1)
  30. game.Workspace.two.Touched:Connect(onTouchSword2)
  31. game.Workspace.three.Touched:Connect(onTouchSword3)