ok so i dont know whyt but i can figure out why i cant get my portal to close after im done using it or why i cant get animations :l
bin = script.Parent hold = false currentColor = 1 firstTime = true function onButton1Down(mouse) if (hold==false) then mouse.Icon = "rbxasset://textures\\GunWaitCursor.png" hold = true local part = mouse.Target if part~=nil then local position = mouse.Hit local target = position.p script.Parent.BuildSound:Play() if firstTime == true then firstTime = false script.Parent.Teleporters:MoveTo(Vector3.new(math.random(-200,200), 1000, math.random(-200,200))) script.Parent.Teleporters.Parent = game.Players.LocalPlayer.Character end if currentColor == 1 then game.Players.LocalPlayer.Character.Teleporters.Red.Position = target currentColor = 2 script.Parent.Open:Play() elseif currentColor == 2 then game.Players.LocalPlayer.Character.Teleporters.Blue.Position = target currentColor = 1 script.Parent.Open:Play() end end mouse.Icon = "rbxasset://textures\\GunCursor.png" hold=false end end function onSelected(mouse) mouse.Icon = "rbxasset://textures\\GunCursor.png" mouse.Button1Down:connect(function() onButton1Down(mouse) end) end bin.Selected:connect(onSelected)