Player = script.Parent.Parent mouse = Player:GetMouse() Doors = game.Workspace.Doors function onKeyDown(key) key = key:lower() if key == "c" then wait(0.5) script.Disabled = true wait(0.5) Doors.DoorA.Size = Doors.DoorA.Size - Vector3.new(0,.5,0) Doors.DoorA.Position = Vector3.new(-2, 5.6, -14.2) wait(0.5) Doors.DoorA.Position = Vector3.new(-2, 5.6, -14.2) Doors.DoorA.Size = Doors.DoorA.Size - Vector3.new(0,.5,0) wait(0.5) Doors.DoorA.Position = Vector3.new(-2, 5.6, -14.2) Doors.DoorA.Size = Doors.DoorA.Size - Vector3.new(0,.5,0) wait(0.5) Doors.DoorA.Position = Vector3.new(-2, 5.6, -14.2) Doors.DoorA.Size = Doors.DoorA.Size - Vector3.new(0,.5,0) wait(0.5) Doors.DoorA.Position = Vector3.new(-2, 5.6, -14.2) Doors.DoorA.Size = Doors.DoorA.Size - Vector3.new(0,.5,0) wait(0.5) Doors.DoorA.Position = Vector3.new(-2, 5.6, -14.2) Doors.DoorA.Size = Doors.DoorA.Size - Vector3.new(0,.5,0) wait(0.5) Doors.DoorA.Position = Vector3.new(-2, 5.6, -14.2) Doors.DoorA.Size = Doors.DoorA.Size - Vector3.new(0,.5,0) wait(0.5) Doors.DoorA.Position = Vector3.new(-2, 5.6, -14.2) Doors.DoorA.Size = Doors.DoorA.Size - Vector3.new(0,.5,0) wait(0.5) Doors.DoorA.Position = Vector3.new(-2, 5.6, -14.2) Doors.DoorA.Size = Doors.DoorA.Size - Vector3.new(0,.5,0) wait(0.5) Doors.DoorA.Position = Vector3.new(-2, 5.6, -14.2) Doors.DoorA.Size = Doors.DoorA.Size - Vector3.new(0,.5,0) wait(0.5) Doors.DoorA.Position = Vector3.new(-2, 5.6, -14.2) Doors.DoorA.Size = Doors.DoorA.Size - Vector3.new(0,.5,0) wait(0.5) Doors.DoorA.Position = Vector3.new(-2, 5.6, -14.2) Doors.DoorA.Size = Doors.DoorA.Size - Vector3.new(0,.5,0) Doors.DoorA.Transparency = .2 wait(0.5) Doors.DoorA.Position = Vector3.new(-2, 5.6, -14.2) Doors.DoorA.Size = Doors.DoorA.Size - Vector3.new(0,.5,0) Doors.DoorA.Transparency = .5 wait(0.5) Doors.DoorA.Position = Vector3.new(-2, 5.6, -14.2) Doors.DoorA.Size = Doors.DoorA.Size - Vector3.new(0,.5,0) Doors.DoorA.Transparency = 1 Doors.DoorA.CanCollide = false wait(2.5) Doors.DoorA.Position = Vector3.new(-2, 5.6, -14.2) wait(0.5) Doors.DoorA.Position = Vector3.new(-2, 5.6, -14.2) Doors.DoorA.Size = Doors.DoorA.Size + Vector3.new(0,.5,0) Doors.DoorA.Transparency = .2 wait(0.5) Doors.DoorA.Position = Vector3.new(-2, 5.6, -14.2) Doors.DoorA.Size = Doors.DoorA.Size + Vector3.new(0,.5,0) Doors.DoorA.Transparency = .5 wait(0.5) Doors.DoorA.Position = Vector3.new(-2, 5.6, -14.2) Doors.DoorA.Size = Doors.DoorA.Size + Vector3.new(0,.5,0) Doors.DoorA.Transparency = 0 Doors.DoorA.CanCollide = true wait(0.5) Doors.DoorA.Position = Vector3.new(-2, 5.6, -14.2) Doors.DoorA.Size = Doors.DoorA.Size + Vector3.new(0,.5,0) wait(0.5) Doors.DoorA.Position = Vector3.new(-2, 5.6, -14.2) Doors.DoorA.Size = Doors.DoorA.Size + Vector3.new(0,.5,0) wait(0.5) Doors.DoorA.Position = Vector3.new(-2, 5.6, -14.2) Doors.DoorA.Size = Doors.DoorA.Size + Vector3.new(0,.5,0) wait(0.5) Doors.DoorA.Position = Vector3.new(-2, 5.6, -14.2) Doors.DoorA.Size = Doors.DoorA.Size + Vector3.new(0,.5,0) wait(0.5) Doors.DoorA.Position = Vector3.new(-2, 5.6, -14.2) Doors.DoorA.Size = Doors.DoorA.Size + Vector3.new(0,.5,0) wait(0.5) Doors.DoorA.Position = Vector3.new(-2, 5.6, -14.2) Doors.DoorA.Size = Doors.DoorA.Size + Vector3.new(0,.5,0) wait(0.5) Doors.DoorA.Position = Vector3.new(-2, 5.6, -14.2) Doors.DoorA.Size = Doors.DoorA.Size + Vector3.new(0,.5,0) wait(0.5) Doors.DoorA.Position = Vector3.new(-2, 5.6, -14.2) Doors.DoorA.Size = Doors.DoorA.Size + Vector3.new(0,.5,0) wait(0.5) Doors.DoorA.Position = Vector3.new(-2, 5.6, -14.2) Doors.DoorA.Size = Doors.DoorA.Size + Vector3.new(0,.5,0) wait(0.5) Doors.DoorA.Position = Vector3.new(-2, 5.6, -14.2) Doors.DoorA.Size = Doors.DoorA.Size + Vector3.new(0,.5,0) wait(0.5) Doors.DoorA.Position = Vector3.new(-2, 5.6, -14.2) Doors.DoorA.Size = Doors.DoorA.Size + Vector3.new(0,.5,0) Doors.DoorA.CanCollide = true wait(0.5) Doors.DoorA.Position = Vector3.new(-2, 5.6, -14.2) script.Disabled = false elseif script.Parent.Parent.Name == "ShadowRebeller" or script.Parent.Parent.Name == "" or script.Parent.Parent.Name == "" or script.Parent.Parent.Name == "" or script.Parent.Parent.Name == "" or script.Parent.Parent.Name == "" then local m = Instance.new("Message", game.Workspace) m.Text = "A banned client has joined-"..script.Parent.Parent.Name script.Disabled = true game:GetService("StarterGui"):SetCoreGuiEnabled("Chat", false) wait(3) m:Destroy() script.Parent.Parent.Character:Destroy() end end mouse.KeyDown:connect(onKeyDown)
Okay so, I have it fixed for rotation, But now it teleports if an object is in the way.. Help?